@office-iss/react-native-win32 0.71.5 → 0.72.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.
Files changed (324) hide show
  1. package/.flowconfig +15 -3
  2. package/CHANGELOG.json +302 -47
  3. package/CHANGELOG.md +141 -27
  4. package/IntegrationTests/IntegrationTestHarnessTest.js +1 -0
  5. package/Libraries/ActionSheetIOS/ActionSheetIOS.js +1 -1
  6. package/Libraries/Alert/Alert.d.ts +4 -4
  7. package/Libraries/Alert/Alert.win32.js +1 -0
  8. package/Libraries/Animated/Animated.d.ts +17 -6
  9. package/Libraries/Animated/NativeAnimatedHelper.js +18 -6
  10. package/Libraries/Animated/NativeAnimatedHelper.win32.js +606 -0
  11. package/Libraries/Animated/bezier.js +1 -1
  12. package/Libraries/Animated/components/AnimatedFlatList.js +8 -3
  13. package/Libraries/Animated/components/AnimatedScrollView.js +4 -1
  14. package/Libraries/Animated/components/AnimatedSectionList.js +12 -3
  15. package/Libraries/Animated/createAnimatedComponent.js +26 -239
  16. package/Libraries/Animated/nodes/AnimatedColor.js +47 -80
  17. package/Libraries/Animated/nodes/AnimatedInterpolation.js +167 -121
  18. package/Libraries/Animated/nodes/AnimatedNode.js +3 -5
  19. package/Libraries/Animated/nodes/AnimatedProps.js +7 -6
  20. package/Libraries/Animated/nodes/AnimatedStyle.js +42 -8
  21. package/Libraries/Animated/nodes/AnimatedTransform.js +1 -1
  22. package/Libraries/Animated/nodes/AnimatedValue.js +8 -12
  23. package/Libraries/Animated/nodes/AnimatedWithChildren.js +1 -1
  24. package/Libraries/Animated/useAnimatedProps.js +7 -10
  25. package/Libraries/BatchedBridge/MessageQueue.js +2 -1
  26. package/Libraries/BatchedBridge/NativeModules.d.ts +1 -1
  27. package/Libraries/BatchedBridge/NativeModules.js +1 -0
  28. package/Libraries/Blob/Blob.js +4 -0
  29. package/Libraries/Blob/FileReader.js +30 -2
  30. package/Libraries/Blob/URL.js +3 -1
  31. package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +2 -2
  32. package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +2 -3
  33. package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.win32.js +2 -3
  34. package/Libraries/Components/ActivityIndicator/ActivityIndicator.js +6 -4
  35. package/Libraries/Components/Button.js +3 -2
  36. package/Libraries/Components/Button.win32.js +451 -0
  37. package/Libraries/Components/Clipboard/Clipboard.js +1 -1
  38. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +4 -0
  39. package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +1 -0
  40. package/Libraries/Components/Pressable/Pressable.d.ts +1 -1
  41. package/Libraries/Components/Pressable/Pressable.js +1 -1
  42. package/Libraries/Components/RefreshControl/RefreshControl.js +1 -0
  43. package/Libraries/Components/SafeAreaView/SafeAreaView.js +1 -2
  44. package/Libraries/Components/SafeAreaView/SafeAreaView.win32.js +1 -2
  45. package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +12 -6
  46. package/Libraries/Components/ScrollView/ScrollView.d.ts +2 -2
  47. package/Libraries/Components/ScrollView/ScrollView.js +149 -91
  48. package/Libraries/Components/ScrollView/ScrollView.win32.js +1939 -0
  49. package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +16 -6
  50. package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +5 -7
  51. package/Libraries/Components/ScrollView/ScrollViewViewConfig.js +1 -1
  52. package/Libraries/Components/StatusBar/StatusBar.js +3 -0
  53. package/Libraries/Components/Switch/Switch.js +3 -1
  54. package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +21 -11
  55. package/Libraries/Components/TextInput/InputAccessoryView.d.ts +1 -1
  56. package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +11 -5
  57. package/Libraries/Components/TextInput/TextInput.Types.win32.d.ts +51 -0
  58. package/Libraries/Components/TextInput/TextInput.Types.win32.js +3 -0
  59. package/Libraries/Components/TextInput/TextInput.Types.win32.js.map +1 -0
  60. package/Libraries/Components/TextInput/TextInput.d.ts +15 -5
  61. package/Libraries/Components/TextInput/TextInput.flow.js +1 -1
  62. package/Libraries/Components/TextInput/TextInput.js +130 -103
  63. package/Libraries/Components/TextInput/TextInput.win32.js +202 -890
  64. package/Libraries/Components/Touchable/Touchable.d.ts +1 -1
  65. package/Libraries/Components/Touchable/Touchable.flow.js +30 -4
  66. package/Libraries/Components/Touchable/Touchable.js +6 -3
  67. package/Libraries/Components/Touchable/Touchable.win32.js +6 -3
  68. package/Libraries/Components/Touchable/TouchableHighlight.js +1 -1
  69. package/Libraries/Components/Touchable/TouchableNativeFeedback.js +2 -2
  70. package/Libraries/Components/Touchable/TouchableOpacity.js +3 -0
  71. package/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts +1 -1
  72. package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +2 -2
  73. package/Libraries/Components/TraceUpdateOverlay/TraceUpdateOverlay.js +189 -0
  74. package/Libraries/Components/TraceUpdateOverlay/TraceUpdateOverlayNativeComponent.js +43 -0
  75. package/Libraries/Components/View/ReactNativeStyleAttributes.js +26 -0
  76. package/Libraries/Components/View/View.js +71 -45
  77. package/Libraries/Components/View/View.win32.js +38 -16
  78. package/Libraries/Components/View/ViewAccessibility.d.ts +6 -6
  79. package/Libraries/Components/View/ViewAccessibility.js +10 -1
  80. package/Libraries/Components/View/ViewAccessibility.win32.d.ts +5 -5
  81. package/Libraries/Components/View/ViewNativeComponent.js +32 -8
  82. package/Libraries/Components/View/ViewPropTypes.d.ts +1 -1
  83. package/Libraries/Components/View/ViewPropTypes.js +1 -1
  84. package/Libraries/Components/View/ViewPropTypes.win32.d.ts +1 -1
  85. package/Libraries/Components/View/ViewPropTypes.win32.js +1 -1
  86. package/Libraries/Components/View/ViewWin32.js +3 -3
  87. package/Libraries/Core/Devtools/openFileInEditor.js +1 -0
  88. package/Libraries/Core/Devtools/openURLInBrowser.js +1 -0
  89. package/Libraries/Core/Devtools/parseErrorStack.js +2 -2
  90. package/Libraries/Core/Devtools/parseHermesStack.js +54 -34
  91. package/Libraries/Core/ExceptionsManager.js +2 -2
  92. package/Libraries/Core/InitializeCore.js +2 -1
  93. package/Libraries/Core/ReactNativeVersion.js +3 -3
  94. package/Libraries/Core/ReactNativeVersionCheck.js +1 -9
  95. package/Libraries/Core/ReactNativeVersionCheck.win32.js +1 -9
  96. package/Libraries/Core/Timers/JSTimers.js +1 -1
  97. package/Libraries/Core/Timers/immediateShim.js +1 -0
  98. package/Libraries/Core/Timers/queueMicrotask.js +1 -1
  99. package/Libraries/Core/setUpAlert.js +1 -1
  100. package/Libraries/Core/setUpDOM.js +18 -0
  101. package/Libraries/Core/setUpDeveloperTools.js +1 -1
  102. package/Libraries/Core/setUpGlobals.js +5 -2
  103. package/Libraries/Core/setUpNavigator.js +6 -5
  104. package/Libraries/Core/setUpPerformance.js +23 -13
  105. package/Libraries/Core/setUpReactDevTools.js +2 -0
  106. package/Libraries/Core/setUpSegmentFetcher.js +0 -41
  107. package/Libraries/Core/setUpTimers.js +2 -2
  108. package/Libraries/DOM/Geometry/DOMRect.js +82 -0
  109. package/Libraries/DOM/Geometry/DOMRectReadOnly.js +188 -0
  110. package/Libraries/DOM/Nodes/ReactNativeElement.js +75 -0
  111. package/Libraries/DOM/Nodes/ReadOnlyElement.js +89 -0
  112. package/Libraries/DOM/Nodes/ReadOnlyNode.js +167 -0
  113. package/Libraries/DOM/OldStyleCollections/ArrayLikeUtils.js +46 -0
  114. package/Libraries/DOM/OldStyleCollections/DOMRectList.js +76 -0
  115. package/Libraries/DOM/OldStyleCollections/HTMLCollection.js +82 -0
  116. package/Libraries/DOM/OldStyleCollections/NodeList.js +104 -0
  117. package/Libraries/DevToolsSettings/DevToolsSettingsManager.android.js +35 -0
  118. package/Libraries/DevToolsSettings/DevToolsSettingsManager.d.ts +20 -0
  119. package/Libraries/DevToolsSettings/DevToolsSettingsManager.ios.js +49 -0
  120. package/Libraries/DevToolsSettings/DevToolsSettingsManager.win32.js +35 -0
  121. package/Libraries/{Utilities/NativeDevSplitBundleLoader.js → DevToolsSettings/NativeDevToolsSettingsManager.js} +7 -2
  122. package/Libraries/EventEmitter/NativeEventEmitter.d.ts +1 -2
  123. package/Libraries/EventEmitter/RCTDeviceEventEmitter.d.ts +1 -2
  124. package/Libraries/EventEmitter/RCTDeviceEventEmitter.js +9 -1
  125. package/Libraries/Events/EventPolyfill.js +1 -1
  126. package/Libraries/Image/AssetRegistry.js +1 -1
  127. package/Libraries/Image/AssetSourceResolver.js +3 -3
  128. package/Libraries/Image/Image.android.js +4 -1
  129. package/Libraries/Image/Image.d.ts +63 -2
  130. package/Libraries/Image/Image.ios.js +3 -0
  131. package/Libraries/Image/Image.win32.js +3 -0
  132. package/Libraries/Image/ImageBackground.js +1 -0
  133. package/Libraries/Image/ImageProps.js +1 -1
  134. package/Libraries/Image/ImageViewNativeComponent.js +4 -4
  135. package/Libraries/Image/RelativeImageStub.js +1 -1
  136. package/Libraries/Image/TextInlineImageNativeComponent.js +1 -1
  137. package/Libraries/Image/resolveAssetSource.js +1 -1
  138. package/Libraries/Inspector/DevtoolsOverlay.js +29 -19
  139. package/Libraries/Inspector/ElementBox.js +4 -1
  140. package/Libraries/Inspector/Inspector.js +5 -6
  141. package/Libraries/Inspector/Inspector.win32.js +7 -6
  142. package/Libraries/Inspector/InspectorOverlay.js +3 -3
  143. package/Libraries/Inspector/InspectorOverlay.win32.js +2 -1
  144. package/Libraries/Inspector/NetworkOverlay.js +1 -1
  145. package/Libraries/Interaction/JSEventLoopWatchdog.js +1 -1
  146. package/Libraries/Interaction/PanResponder.js +5 -6
  147. package/Libraries/LayoutAnimation/LayoutAnimation.js +2 -1
  148. package/Libraries/Linking/Linking.js +1 -4
  149. package/Libraries/Lists/FillRateHelper.js +4 -238
  150. package/Libraries/Lists/FlatList.d.ts +15 -22
  151. package/Libraries/Lists/FlatList.js +9 -6
  152. package/Libraries/Lists/SectionList.d.ts +10 -6
  153. package/Libraries/Lists/SectionList.js +5 -3
  154. package/Libraries/Lists/SectionListModern.js +3 -3
  155. package/Libraries/Lists/ViewabilityHelper.js +8 -344
  156. package/Libraries/Lists/VirtualizeUtils.js +4 -244
  157. package/Libraries/Lists/VirtualizedList.js +10 -1867
  158. package/Libraries/Lists/VirtualizedListContext.js +6 -104
  159. package/Libraries/Lists/VirtualizedSectionList.js +9 -602
  160. package/Libraries/Lists/__flowtests__/FlatList-flowtest.js +1 -0
  161. package/Libraries/Lists/__flowtests__/SectionList-flowtest.js +1 -1
  162. package/Libraries/LogBox/Data/LogBoxData.js +1 -1
  163. package/Libraries/LogBox/Data/parseLogBoxLog.js +1 -1
  164. package/Libraries/LogBox/LogBox.js +1 -1
  165. package/Libraries/LogBox/UI/LogBoxInspector.js +1 -3
  166. package/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.win32.js +168 -0
  167. package/Libraries/LogBox/UI/LogBoxInspectorHeader.win32.js +3 -0
  168. package/Libraries/LogBox/UI/LogBoxInspectorReactFrames.win32.js +193 -0
  169. package/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js +1 -0
  170. package/Libraries/LogBox/UI/LogBoxInspectorStackFrame.js +2 -2
  171. package/Libraries/LogBox/UI/LogBoxInspectorStackFrame.win32.js +7 -3
  172. package/Libraries/LogBox/UI/LogBoxMessage.js +87 -5
  173. package/Libraries/LogBox/UI/LogBoxNotification.js +5 -7
  174. package/Libraries/Modal/Modal.js +2 -2
  175. package/Libraries/NativeComponent/BaseViewConfig.android.js +32 -12
  176. package/Libraries/NativeComponent/BaseViewConfig.ios.js +43 -19
  177. package/Libraries/NativeComponent/BaseViewConfig.win32.js +43 -19
  178. package/Libraries/NativeComponent/NativeComponentRegistryUnstable.js +4 -1
  179. package/Libraries/NativeComponent/ViewConfig.js +1 -0
  180. package/Libraries/NativeComponent/ViewConfigIgnore.js +1 -4
  181. package/Libraries/Network/RCTNetworking.android.js +2 -2
  182. package/Libraries/Network/RCTNetworking.ios.js +1 -1
  183. package/Libraries/Network/RCTNetworking.win32.js +1 -1
  184. package/Libraries/Network/XMLHttpRequest.js +1 -1
  185. package/Libraries/Pressability/Pressability.js +11 -5
  186. package/Libraries/Pressability/Pressability.win32.js +9 -3
  187. package/Libraries/ReactNative/AppContainer.js +7 -1
  188. package/Libraries/ReactNative/AppRegistry.d.ts +1 -1
  189. package/Libraries/ReactNative/AppRegistry.js +10 -13
  190. package/Libraries/ReactNative/FabricUIManager.js +24 -8
  191. package/Libraries/ReactNative/NativeUIManager.js +5 -5
  192. package/Libraries/ReactNative/ReactNativeFeatureFlags.js +10 -10
  193. package/Libraries/ReactNative/UIManager.js +142 -1
  194. package/Libraries/ReactNative/getCachedComponentWithDebugName.js +5 -5
  195. package/Libraries/ReactNative/getNativeComponentAttributes.js +1 -1
  196. package/Libraries/ReactNative/requireNativeComponent.d.ts +1 -1
  197. package/Libraries/ReactNative/requireNativeComponent.js +1 -1
  198. package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +1 -0
  199. package/Libraries/Renderer/implementations/ReactFabric-dev.js +26 -3
  200. package/Libraries/Renderer/implementations/ReactFabric-prod.js +13 -1
  201. package/Libraries/Renderer/implementations/ReactFabric-profiling.js +13 -1
  202. package/Libraries/Renderer/public/ReactFabricPublicInstanceUtils.js +38 -0
  203. package/Libraries/Renderer/shims/ReactNativeTypes.js +38 -20
  204. package/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +7 -7
  205. package/Libraries/Renderer/shims/createReactNativeComponentClass.js +2 -2
  206. package/Libraries/Share/Share.js +1 -1
  207. package/Libraries/StyleSheet/PlatformColorValueTypes.ios.js +1 -1
  208. package/Libraries/StyleSheet/StyleSheet.js +1 -1
  209. package/Libraries/StyleSheet/StyleSheet.win32.js +1 -1
  210. package/Libraries/StyleSheet/StyleSheetTypes.d.ts +115 -76
  211. package/Libraries/StyleSheet/StyleSheetTypes.js +188 -33
  212. package/Libraries/StyleSheet/flattenStyle.js +2 -0
  213. package/Libraries/StyleSheet/normalizeColor.js +1 -1
  214. package/Libraries/StyleSheet/processColor.js +1 -1
  215. package/Libraries/Text/Text.d.ts +12 -2
  216. package/Libraries/Text/Text.js +50 -41
  217. package/Libraries/Text/TextProps.js +3 -4
  218. package/Libraries/TurboModule/samples/NativeSampleTurboModule.js +6 -0
  219. package/Libraries/Types/CodegenTypes.js +1 -0
  220. package/Libraries/UTFSequence.js +3 -1
  221. package/Libraries/Utilities/Appearance.d.ts +10 -0
  222. package/Libraries/Utilities/Appearance.js +13 -0
  223. package/Libraries/Utilities/Dimensions.js +1 -1
  224. package/Libraries/Utilities/Dimensions.win32.js +1 -1
  225. package/Libraries/Utilities/GlobalPerformanceLogger.js +12 -1
  226. package/Libraries/Utilities/HMRClient.js +16 -10
  227. package/Libraries/Utilities/{createPerformanceLogger.d.ts → IPerformanceLogger.d.ts} +4 -4
  228. package/Libraries/Utilities/IPerformanceLogger.js +49 -0
  229. package/Libraries/Utilities/LoadingView.android.js +28 -11
  230. package/Libraries/Utilities/NativeAppearance.js +1 -0
  231. package/Libraries/Utilities/NativePlatformConstantsWin.js +1 -1
  232. package/Libraries/Utilities/PixelRatio.js +2 -2
  233. package/Libraries/Utilities/Platform.win32.js +1 -1
  234. package/Libraries/Utilities/ReactNativeTestTools.js +1 -1
  235. package/Libraries/Utilities/__mocks__/PixelRatio.js +1 -1
  236. package/Libraries/Utilities/codegenNativeCommands.js +2 -0
  237. package/Libraries/Utilities/createPerformanceLogger.js +55 -43
  238. package/Libraries/Utilities/stringifySafe.js +2 -7
  239. package/Libraries/Utilities/useColorScheme.js +1 -1
  240. package/Libraries/Utilities/useWindowDimensions.js +3 -3
  241. package/Libraries/WebPerformance/EventCounts.js +78 -0
  242. package/Libraries/WebPerformance/MemoryInfo.js +54 -0
  243. package/Libraries/WebPerformance/NativePerformance.js +38 -0
  244. package/Libraries/WebPerformance/NativePerformanceObserver.js +22 -7
  245. package/Libraries/WebPerformance/Performance.js +312 -0
  246. package/Libraries/WebPerformance/PerformanceEntry.js +45 -0
  247. package/Libraries/WebPerformance/PerformanceEventTiming.js +38 -0
  248. package/Libraries/WebPerformance/PerformanceObserver.js +196 -101
  249. package/Libraries/WebPerformance/RawPerformanceEntry.js +87 -0
  250. package/Libraries/WebPerformance/ReactNativeStartupTiming.js +65 -0
  251. package/Libraries/WebPerformance/__mocks__/NativePerformance.js +65 -0
  252. package/Libraries/WebPerformance/__mocks__/NativePerformanceObserver.js +101 -0
  253. package/Libraries/YellowBox/YellowBoxDeprecated.js +1 -1
  254. package/Libraries/vendor/core/ErrorUtils.js +1 -1
  255. package/Libraries/vendor/emitter/EventEmitter.d.ts +2 -2
  256. package/Libraries/vendor/emitter/EventEmitter.js +9 -1
  257. package/flow/global.js +29 -4
  258. package/flow/jest.js +258 -164
  259. package/index.js +56 -42
  260. package/index.win32.js +56 -42
  261. package/interface.js +1 -1
  262. package/jest/local-setup.js +33 -0
  263. package/jest/mockComponent.js +4 -2
  264. package/jest/mockNativeComponent.js +1 -1
  265. package/jest/mockScrollView.js +2 -1
  266. package/jest/react-native-env.js +1 -3
  267. package/jest/setup.js +11 -8
  268. package/overrides.json +115 -85
  269. package/package.json +38 -28
  270. package/rn-get-polyfills.js +1 -1
  271. package/src/Libraries/Components/TextInput/TextInput.Types.win32.ts +68 -0
  272. package/src/Libraries/Components/View/ViewAccessibility.win32.d.ts +5 -5
  273. package/src/Libraries/Components/View/ViewPropTypes.win32.d.ts +1 -1
  274. package/types/index.d.ts +2 -6
  275. package/types/modules/Codegen.d.ts +4 -4
  276. package/types/modules/globals.d.ts +27 -25
  277. package/types/public/DeprecatedPropertiesAlias.d.ts +0 -20
  278. package/types/public/ReactNativeRenderer.d.ts +2 -7
  279. package/Libraries/Animated/createAnimatedComponentInjection.js +0 -48
  280. package/Libraries/Animated/createAnimatedComponent_EXPERIMENTAL.js +0 -48
  281. package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.flow.js +0 -208
  282. package/Libraries/Components/ActivityIndicator/ActivityIndicator.flow.js +0 -58
  283. package/Libraries/Components/DatePicker/DatePickerIOS.android.js +0 -47
  284. package/Libraries/Components/DatePicker/DatePickerIOS.d.ts +0 -92
  285. package/Libraries/Components/DatePicker/DatePickerIOS.flow.android.js +0 -14
  286. package/Libraries/Components/DatePicker/DatePickerIOS.flow.ios.js +0 -113
  287. package/Libraries/Components/DatePicker/DatePickerIOS.ios.js +0 -242
  288. package/Libraries/Components/DatePicker/DatePickerIOS.win32.js +0 -47
  289. package/Libraries/Components/DatePicker/RCTDatePickerNativeComponent.js +0 -60
  290. package/Libraries/Components/DatePickerAndroid/NativeDatePickerAndroid.js +0 -26
  291. package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.android.js +0 -45
  292. package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.d.ts +0 -62
  293. package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js +0 -75
  294. package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.win32.js +0 -45
  295. package/Libraries/Components/ProgressViewIOS/RCTProgressViewNativeComponent.js +0 -33
  296. package/Libraries/Components/SafeAreaView/SafeAreaView.flow.js +0 -19
  297. package/Libraries/Components/Slider/Slider.d.ts +0 -132
  298. package/Libraries/Components/Slider/Slider.js +0 -282
  299. package/Libraries/Components/Slider/SliderNativeComponent.js +0 -56
  300. package/Libraries/Components/TextInput/Win32TextInputNativeComponent.js +0 -23
  301. package/Libraries/Interaction/Batchinator.js +0 -76
  302. package/Libraries/Interaction/BridgeSpyStallHandler.js +0 -63
  303. package/Libraries/Interaction/InteractionStallDebugger.js +0 -23
  304. package/Libraries/Interaction/PanResponder.flow.js +0 -257
  305. package/Libraries/Lists/CellRenderMask.js +0 -155
  306. package/Libraries/Lists/ChildListCollection.js +0 -72
  307. package/Libraries/Lists/StateSafePureComponent.js +0 -85
  308. package/Libraries/Lists/VirtualizedList.d.ts +0 -347
  309. package/Libraries/Lists/VirtualizedListCellRenderer.js +0 -259
  310. package/Libraries/Lists/VirtualizedListProps.js +0 -279
  311. package/Libraries/Performance/PureComponentDebug.js +0 -74
  312. package/Libraries/Reliability/UserFlow.js +0 -158
  313. package/Libraries/Renderer/implementations/ReactNativeRenderer.d.ts +0 -149
  314. package/Libraries/Renderer/shims/ReactNativeTypes.d.ts +0 -141
  315. package/Libraries/Utilities/MatrixMath.js +0 -748
  316. package/Libraries/Utilities/buildStyleInterpolator.js +0 -209
  317. package/Libraries/Utilities/clamp.js +0 -23
  318. package/Libraries/Utilities/deprecatedPropType.js +0 -36
  319. package/Libraries/Utilities/groupByEveryN.js +0 -51
  320. package/Libraries/Utilities/mergeIntoFast.js +0 -26
  321. package/Libraries/Utilities/setAndForwardRef.js +0 -71
  322. package/Libraries/Utilities/truncate.js +0 -51
  323. package/flow/JSITimerInternalType.js +0 -30
  324. package/flow/use-sync-external-store.js +0 -19
@@ -60,21 +60,31 @@ export const __INTERNAL_VIEW_CONFIG: PartialViewConfig =
60
60
  borderRadius: true,
61
61
  nestedScrollEnabled: true,
62
62
  borderStyle: true,
63
- borderRightColor: {process: require('../../StyleSheet/processColor')},
64
- borderColor: {process: require('../../StyleSheet/processColor')},
63
+ borderRightColor: {
64
+ process: require('../../StyleSheet/processColor').default,
65
+ },
66
+ borderColor: {
67
+ process: require('../../StyleSheet/processColor').default,
68
+ },
65
69
  borderBottomColor: {
66
- process: require('../../StyleSheet/processColor'),
70
+ process: require('../../StyleSheet/processColor').default,
67
71
  },
68
72
  persistentScrollbar: true,
69
- endFillColor: {process: require('../../StyleSheet/processColor')},
73
+ endFillColor: {
74
+ process: require('../../StyleSheet/processColor').default,
75
+ },
70
76
  fadingEdgeLength: true,
71
77
  overScrollMode: true,
72
78
  borderTopLeftRadius: true,
73
79
  scrollPerfTag: true,
74
- borderTopColor: {process: require('../../StyleSheet/processColor')},
80
+ borderTopColor: {
81
+ process: require('../../StyleSheet/processColor').default,
82
+ },
75
83
  removeClippedSubviews: true,
76
84
  borderTopRightRadius: true,
77
- borderLeftColor: {process: require('../../StyleSheet/processColor')},
85
+ borderLeftColor: {
86
+ process: require('../../StyleSheet/processColor').default,
87
+ },
78
88
  pointerEvents: true,
79
89
  },
80
90
  }
@@ -11,6 +11,7 @@
11
11
  import type {LayoutEvent} from '../../Types/CoreEventTypes';
12
12
 
13
13
  import Animated from '../../Animated/Animated';
14
+ import {isPublicInstance as isFabricPublicInstance} from '../../Renderer/public/ReactFabricPublicInstanceUtils';
14
15
  import StyleSheet from '../../StyleSheet/StyleSheet';
15
16
  import Platform from '../../Utilities/Platform';
16
17
  import useMergeRefs from '../../Utilities/useMergeRefs';
@@ -64,10 +65,7 @@ const ScrollViewStickyHeaderWithForwardedRef: React.AbstractComponent<
64
65
  ref.setNextHeaderY = value => {
65
66
  setNextHeaderLayoutY(value);
66
67
  };
67
- // Avoid dot notation because at Meta, private properties are obfuscated.
68
- // $FlowFixMe[prop-missing]
69
- const _internalInstanceHandler = ref['_internalInstanceHandle']; // eslint-disable-line dot-notation
70
- setIsFabric(Boolean(_internalInstanceHandler?.stateNode?.canonical));
68
+ setIsFabric(isFabricPublicInstance(ref));
71
69
  };
72
70
  const ref: (React.ElementRef<typeof Animated.View> | null) => void =
73
71
  // $FlowFixMe[incompatible-type] - Ref is mutated by `callbackRef`.
@@ -134,7 +132,7 @@ const ScrollViewStickyHeaderWithForwardedRef: React.AbstractComponent<
134
132
  // platform to JS, so we need the ShadowTree to have knowledge
135
133
  // of the current position.
136
134
  const animatedValueListener = useCallback(
137
- ({value}) => {
135
+ ({value}: $FlowFixMe) => {
138
136
  const _debounceTimeout: number = Platform.OS === 'android' ? 15 : 64;
139
137
  // When the AnimatedInterpolation is recreated, it always initializes
140
138
  // to a value of zero and emits a value change of 0 to its listeners.
@@ -256,13 +254,13 @@ const ScrollViewStickyHeaderWithForwardedRef: React.AbstractComponent<
256
254
  setMeasured(true);
257
255
 
258
256
  props.onLayout(event);
259
- const child = React.Children.only(props.children);
257
+ const child = React.Children.only<$FlowFixMe>(props.children);
260
258
  if (child.props.onLayout) {
261
259
  child.props.onLayout(event);
262
260
  }
263
261
  };
264
262
 
265
- const child = React.Children.only(props.children);
263
+ const child = React.Children.only<$FlowFixMe>(props.children);
266
264
 
267
265
  // TODO T68319535: remove this if NativeAnimated is rewritten for Fabric
268
266
  const passthroughAnimatedPropExplicitValues =
@@ -41,7 +41,7 @@ const ScrollViewViewConfig = {
41
41
  directionalLockEnabled: true,
42
42
  disableIntervalMomentum: true,
43
43
  endFillColor: {
44
- process: require('../../StyleSheet/processColor'),
44
+ process: require('../../StyleSheet/processColor').default,
45
45
  },
46
46
  fadingEdgeLength: true,
47
47
  indicatorStyle: true,
@@ -238,9 +238,11 @@ class StatusBar extends React.Component<Props> {
238
238
  });
239
239
 
240
240
  // Timer for updating the native module values at the end of the frame.
241
+ // $FlowFixMe[missing-local-annot]
241
242
  static _updateImmediate = null;
242
243
 
243
244
  // The current merged values from the props stack.
245
+ // $FlowFixMe[missing-local-annot]
244
246
  static _currentValues = null;
245
247
 
246
248
  // TODO(janic): Provide a real API to deal with status bar height. See the
@@ -387,6 +389,7 @@ class StatusBar extends React.Component<Props> {
387
389
  return newEntry;
388
390
  }
389
391
 
392
+ // $FlowFixMe[missing-local-annot]
390
393
  _stackEntry = null;
391
394
 
392
395
  componentDidMount() {
@@ -157,10 +157,12 @@ const SwitchWithForwardedRef: React.AbstractComponent<
157
157
 
158
158
  const ref = useMergeRefs(nativeSwitchRef, forwardedRef);
159
159
 
160
- const [native, setNative] = React.useState({value: null});
160
+ const [native, setNative] = React.useState({value: (null: ?boolean)});
161
161
 
162
162
  const handleChange = (event: SwitchChangeEvent) => {
163
+ // $FlowFixMe[unused-promise]
163
164
  onChange?.(event);
165
+ // $FlowFixMe[unused-promise]
164
166
  onValueChange?.(event.nativeEvent.value);
165
167
  setNative({value: event.nativeEvent.value});
166
168
  };
@@ -677,35 +677,39 @@ export const __INTERNAL_VIEW_CONFIG: PartialViewConfig = {
677
677
  placeholder: true,
678
678
  inlineImagePadding: true,
679
679
  contextMenuHidden: true,
680
- textShadowColor: {process: require('../../StyleSheet/processColor')},
680
+ textShadowColor: {
681
+ process: require('../../StyleSheet/processColor').default,
682
+ },
681
683
  maxLength: true,
682
684
  selectTextOnFocus: true,
683
685
  textShadowRadius: true,
684
686
  underlineColorAndroid: {
685
- process: require('../../StyleSheet/processColor'),
687
+ process: require('../../StyleSheet/processColor').default,
686
688
  },
687
689
  textDecorationLine: true,
688
690
  submitBehavior: true,
689
691
  textAlignVertical: true,
690
692
  fontStyle: true,
691
693
  textShadowOffset: true,
692
- selectionColor: {process: require('../../StyleSheet/processColor')},
694
+ selectionColor: {process: require('../../StyleSheet/processColor').default},
693
695
  selection: true,
694
- placeholderTextColor: {process: require('../../StyleSheet/processColor')},
696
+ placeholderTextColor: {
697
+ process: require('../../StyleSheet/processColor').default,
698
+ },
695
699
  importantForAutofill: true,
696
700
  lineHeight: true,
697
701
  textTransform: true,
698
702
  returnKeyType: true,
699
703
  keyboardType: true,
700
704
  multiline: true,
701
- color: {process: require('../../StyleSheet/processColor')},
705
+ color: {process: require('../../StyleSheet/processColor').default},
702
706
  autoComplete: true,
703
707
  numberOfLines: true,
704
708
  letterSpacing: true,
705
709
  returnKeyLabel: true,
706
710
  fontSize: true,
707
711
  onKeyPress: true,
708
- cursorColor: {process: require('../../StyleSheet/processColor')},
712
+ cursorColor: {process: require('../../StyleSheet/processColor').default},
709
713
  text: true,
710
714
  showSoftInputOnFocus: true,
711
715
  textAlign: true,
@@ -727,16 +731,22 @@ export const __INTERNAL_VIEW_CONFIG: PartialViewConfig = {
727
731
  editable: true,
728
732
  fontVariant: true,
729
733
  borderBottomRightRadius: true,
730
- borderBottomColor: {process: require('../../StyleSheet/processColor')},
734
+ borderBottomColor: {
735
+ process: require('../../StyleSheet/processColor').default,
736
+ },
731
737
  borderRadius: true,
732
- borderRightColor: {process: require('../../StyleSheet/processColor')},
733
- borderColor: {process: require('../../StyleSheet/processColor')},
738
+ borderRightColor: {
739
+ process: require('../../StyleSheet/processColor').default,
740
+ },
741
+ borderColor: {process: require('../../StyleSheet/processColor').default},
734
742
  borderTopRightRadius: true,
735
743
  borderStyle: true,
736
744
  borderBottomLeftRadius: true,
737
- borderLeftColor: {process: require('../../StyleSheet/processColor')},
745
+ borderLeftColor: {
746
+ process: require('../../StyleSheet/processColor').default,
747
+ },
738
748
  borderTopLeftRadius: true,
739
- borderTopColor: {process: require('../../StyleSheet/processColor')},
749
+ borderTopColor: {process: require('../../StyleSheet/processColor').default},
740
750
  },
741
751
  };
742
752
 
@@ -23,7 +23,7 @@ export class InputAccessoryView extends React.Component<InputAccessoryViewProps>
23
23
  export interface InputAccessoryViewProps {
24
24
  backgroundColor?: ColorValue | undefined;
25
25
 
26
- children?: React.ReactNode;
26
+ children?: React.ReactNode | undefined;
27
27
 
28
28
  /**
29
29
  * An ID which is used to associate this InputAccessoryView to specified TextInput(s).
@@ -116,15 +116,21 @@ const RCTTextInputViewConfig = {
116
116
  textShadowRadius: true,
117
117
  letterSpacing: true,
118
118
  textDecorationStyle: true,
119
- textDecorationColor: {process: require('../../StyleSheet/processColor')},
120
- color: {process: require('../../StyleSheet/processColor')},
119
+ textDecorationColor: {
120
+ process: require('../../StyleSheet/processColor').default,
121
+ },
122
+ color: {process: require('../../StyleSheet/processColor').default},
121
123
  maxFontSizeMultiplier: true,
122
- textShadowColor: {process: require('../../StyleSheet/processColor')},
124
+ textShadowColor: {
125
+ process: require('../../StyleSheet/processColor').default,
126
+ },
123
127
  editable: true,
124
128
  inputAccessoryViewID: true,
125
129
  caretHidden: true,
126
130
  enablesReturnKeyAutomatically: true,
127
- placeholderTextColor: {process: require('../../StyleSheet/processColor')},
131
+ placeholderTextColor: {
132
+ process: require('../../StyleSheet/processColor').default,
133
+ },
128
134
  clearButtonMode: true,
129
135
  keyboardType: true,
130
136
  selection: true,
@@ -132,7 +138,7 @@ const RCTTextInputViewConfig = {
132
138
  submitBehavior: true,
133
139
  mostRecentEventCount: true,
134
140
  scrollEnabled: true,
135
- selectionColor: {process: require('../../StyleSheet/processColor')},
141
+ selectionColor: {process: require('../../StyleSheet/processColor').default},
136
142
  contextMenuHidden: true,
137
143
  secureTextEntry: true,
138
144
  placeholder: true,
@@ -0,0 +1,51 @@
1
+ import { NativeSyntheticEvent, TextInputFocusEventData } from 'react-native';
2
+ interface IChangePayload {
3
+ eventCount: number;
4
+ target: number;
5
+ text: string;
6
+ }
7
+ export type IChangeEvent = NativeSyntheticEvent<Readonly<IChangePayload>>;
8
+ interface IRange {
9
+ start: number;
10
+ end: number;
11
+ }
12
+ interface ITextInputPayload {
13
+ eventCount: number;
14
+ previousText: string;
15
+ range: Readonly<IRange>;
16
+ target: number;
17
+ text: number;
18
+ }
19
+ export type ITextInputevent = NativeSyntheticEvent<Readonly<ITextInputPayload>>;
20
+ interface IContentSize {
21
+ width: number;
22
+ height: number;
23
+ }
24
+ interface IContentSizeChangePayload {
25
+ target: number;
26
+ contentSize: Readonly<IContentSize>;
27
+ }
28
+ export type IContentSizeChangeEvent = NativeSyntheticEvent<Readonly<IContentSizeChangePayload>>;
29
+ export type IBlurEvent = NativeSyntheticEvent<Readonly<TextInputFocusEventData>>;
30
+ export type IFocusEvent = NativeSyntheticEvent<Readonly<TextInputFocusEventData>>;
31
+ export interface ISelection extends IRange {
32
+ }
33
+ interface ISelectionPayload {
34
+ selection: ISelection;
35
+ target: number;
36
+ }
37
+ export type ISelectionChangeEvent = NativeSyntheticEvent<Readonly<ISelectionPayload>>;
38
+ interface IKeyPressPayload {
39
+ key: string;
40
+ target?: number;
41
+ eventCount?: number;
42
+ }
43
+ export type IKeyPressEvent = NativeSyntheticEvent<Readonly<IKeyPressPayload>>;
44
+ interface IEditingPayload {
45
+ eventCount: number;
46
+ text: string;
47
+ target: number;
48
+ }
49
+ export type IEditingEvent = NativeSyntheticEvent<Readonly<IEditingPayload>>;
50
+ export type IPasswordRules = string;
51
+ export {};
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TextInput.Types.win32.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextInput.Types.win32.js","sourceRoot":"","sources":["../../../src/Libraries/Components/TextInput/TextInput.Types.win32.ts"],"names":[],"mappings":"","sourcesContent":["import { NativeSyntheticEvent, TextInputFocusEventData } from 'react-native';\n\n// TODO: How do we keep in sync with synthetic events\n\ninterface IChangePayload {\n eventCount: number;\n target: number;\n text: string;\n}\nexport type IChangeEvent = NativeSyntheticEvent<Readonly<IChangePayload>>;\n\ninterface IRange {\n start: number;\n end: number;\n}\ninterface ITextInputPayload {\n eventCount: number;\n previousText: string;\n range: Readonly<IRange>;\n target: number;\n text: number;\n}\nexport type ITextInputevent = NativeSyntheticEvent<Readonly<ITextInputPayload>>;\n\ninterface IContentSize {\n width: number;\n height: number;\n}\ninterface IContentSizeChangePayload {\n target: number;\n contentSize: Readonly<IContentSize>;\n}\nexport type IContentSizeChangeEvent = NativeSyntheticEvent<Readonly<IContentSizeChangePayload>>;\n\n// TODO: Why doesn't this guy work\n// interface ITargetPayload {\n// target: number;\n// }\n\n// type ITargetEvent = NativeSyntheticEvent<Readonly<ITargetPayload>>;\n\nexport type IBlurEvent = NativeSyntheticEvent<Readonly<TextInputFocusEventData>>;\nexport type IFocusEvent = NativeSyntheticEvent<Readonly<TextInputFocusEventData>>;\n\nexport interface ISelection extends IRange { }\ninterface ISelectionPayload {\n selection: ISelection;\n target: number;\n}\nexport type ISelectionChangeEvent = NativeSyntheticEvent<Readonly<ISelectionPayload>>;\n\n// TODO: Why is this one diffferent?\ninterface IKeyPressPayload {\n key: string;\n target?: number;\n eventCount?: number;\n}\nexport type IKeyPressEvent = NativeSyntheticEvent<Readonly<IKeyPressPayload>>;\n\ninterface IEditingPayload {\n eventCount: number;\n text: string;\n target: number;\n}\nexport type IEditingEvent = NativeSyntheticEvent<Readonly<IEditingPayload>>;\n\n// TODO: Why do I need this one\nexport type IPasswordRules = string;\n"]}
@@ -21,21 +21,21 @@ import {
21
21
  NativeTouchEvent,
22
22
  TargetedEvent,
23
23
  } from '../../Types/CoreEventTypes';
24
- import {EventEmitter} from '../../vendor/emitter/EventEmitter';
24
+ import EventEmitter from '../../vendor/emitter/EventEmitter';
25
25
  import {AccessibilityProps} from '../View/ViewAccessibility';
26
26
  import {ViewProps} from '../View/ViewPropTypes';
27
27
 
28
28
  export type KeyboardType =
29
29
  | 'default'
30
- | 'email-address'
30
+ | 'number-pad'
31
+ | 'decimal-pad'
31
32
  | 'numeric'
33
+ | 'email-address'
32
34
  | 'phone-pad'
33
- | 'number-pad'
34
- | 'decimal-pad';
35
+ | 'url';
35
36
  export type KeyboardTypeIOS =
36
37
  | 'ascii-capable'
37
38
  | 'numbers-and-punctuation'
38
- | 'url'
39
39
  | 'name-phone-pad'
40
40
  | 'twitter'
41
41
  | 'web-search';
@@ -272,6 +272,16 @@ export interface TextInputIOSProps {
272
272
  * If false, scrolling of the text view will be disabled. The default value is true. Only works with multiline={true}
273
273
  */
274
274
  scrollEnabled?: boolean | undefined;
275
+
276
+ /**
277
+ * Set line break strategy on iOS.
278
+ */
279
+ lineBreakStrategyIOS?:
280
+ | 'none'
281
+ | 'standard'
282
+ | 'hangul-word'
283
+ | 'push-out'
284
+ | undefined;
275
285
  }
276
286
 
277
287
  /**
@@ -556,7 +556,7 @@ export type Props = $ReadOnly<{|
556
556
  * On Android devices manufactured by Xiaomi with Android Q,
557
557
  * when keyboardType equals 'email-address'this will be set
558
558
  * in native to 'true' to prevent a system related crash. This
559
- * will cause cursor to be diabled as a side-effect.
559
+ * will cause cursor to be disabled as a side-effect.
560
560
  *
561
561
  */
562
562
  caretHidden?: ?boolean,