react-native-windows 0.66.1 → 0.67.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.
Files changed (255) hide show
  1. package/.flowconfig +2 -1
  2. package/CHANGELOG.json +879 -47
  3. package/CHANGELOG.md +342 -27
  4. package/Libraries/ActionSheetIOS/ActionSheetIOS.js +14 -1
  5. package/Libraries/ActionSheetIOS/NativeActionSheetManager.js +2 -0
  6. package/Libraries/Alert/Alert.windows.js +48 -21
  7. package/Libraries/Alert/NativeDialogManagerWindows.js +49 -0
  8. package/Libraries/Animated/AnimatedEvent.js +23 -4
  9. package/Libraries/Animated/NativeAnimatedHelper.js +2 -2
  10. package/Libraries/Animated/components/AnimatedImage.js +3 -3
  11. package/Libraries/Animated/components/AnimatedScrollView.js +3 -3
  12. package/Libraries/Animated/components/AnimatedText.js +3 -3
  13. package/Libraries/Animated/components/AnimatedView.js +1 -3
  14. package/Libraries/Animated/createAnimatedComponent.js +3 -34
  15. package/Libraries/AppTheme/AppTheme.d.ts +3 -2
  16. package/Libraries/AppTheme/AppTheme.js +20 -2
  17. package/Libraries/AppTheme/AppTheme.js.map +1 -1
  18. package/Libraries/Components/Button.js +3 -0
  19. package/Libraries/Components/Button.windows.js +70 -38
  20. package/Libraries/Components/DatePicker/DatePickerIOS.ios.js +3 -6
  21. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +4 -7
  22. package/Libraries/Components/Flyout/Flyout.js +3 -3
  23. package/Libraries/Components/Flyout/Flyout.js.map +1 -1
  24. package/Libraries/Components/Flyout/FlyoutProps.d.ts +4 -0
  25. package/Libraries/Components/Flyout/FlyoutProps.js.map +1 -1
  26. package/Libraries/Components/Glyph/Glyph.js +2 -2
  27. package/Libraries/Components/Glyph/Glyph.js.map +1 -1
  28. package/Libraries/Components/Keyboard/KeyboardExt.js +4 -3
  29. package/Libraries/Components/Keyboard/KeyboardExt.js.map +1 -1
  30. package/Libraries/Components/Popup/Popup.js +3 -3
  31. package/Libraries/Components/Popup/Popup.js.map +1 -1
  32. package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +1 -0
  33. package/Libraries/Components/ScrollView/ScrollView.js +17 -16
  34. package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +268 -252
  35. package/Libraries/Components/View/View.js +1 -1
  36. package/Libraries/Components/View/View.windows.js +1 -1
  37. package/Libraries/Components/View/ViewAccessibility.js +1 -1
  38. package/Libraries/Components/View/ViewAccessibility.windows.js +1 -1
  39. package/Libraries/Components/View/ViewWindows.js +1 -1
  40. package/Libraries/Components/View/ViewWindows.js.map +1 -1
  41. package/Libraries/Components/View/ViewWindowsProps.d.ts +42 -2
  42. package/Libraries/Components/View/ViewWindowsProps.js.map +1 -1
  43. package/Libraries/Core/ExceptionsManager.js +45 -80
  44. package/Libraries/Core/ExtendedError.js +0 -1
  45. package/Libraries/Core/ReactNativeVersion.js +2 -2
  46. package/Libraries/Core/setUpBatchedBridge.js +1 -1
  47. package/Libraries/Core/setUpGlobals.js +2 -4
  48. package/Libraries/Core/setUpTimers.js +2 -2
  49. package/Libraries/Image/Image.ios.js +6 -0
  50. package/Libraries/Image/Image.windows.js +6 -0
  51. package/Libraries/Image/ImageBackground.js +10 -8
  52. package/Libraries/Image/ImageProps.js +28 -0
  53. package/Libraries/LogBox/Data/LogBoxData.js +18 -19
  54. package/Libraries/LogBox/UI/LogBoxImages/alert-triangle.png +0 -0
  55. package/Libraries/LogBox/UI/LogBoxImages/chevron-left.png +0 -0
  56. package/Libraries/LogBox/UI/LogBoxImages/chevron-right.png +0 -0
  57. package/Libraries/LogBox/UI/LogBoxImages/close.png +0 -0
  58. package/Libraries/LogBox/UI/LogBoxImages/loader.png +0 -0
  59. package/Libraries/NewAppScreen/components/logo.png +0 -0
  60. package/Libraries/PermissionsAndroid/NativePermissionsAndroid.js +2 -1
  61. package/Libraries/PermissionsAndroid/PermissionsAndroid.js +2 -0
  62. package/Libraries/Pressability/Pressability.js +13 -13
  63. package/Libraries/Pressability/Pressability.windows.js +13 -13
  64. package/Libraries/Pressability/PressabilityPerformanceEventEmitter.js +1 -1
  65. package/Libraries/ReactNative/AppRegistry.js +4 -2
  66. package/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +1569 -875
  67. package/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +529 -319
  68. package/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +570 -362
  69. package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +1592 -891
  70. package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +521 -311
  71. package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +562 -354
  72. package/Libraries/Share/Share.js +1 -1
  73. package/Libraries/StyleSheet/normalizeColor.js +2 -2
  74. package/Libraries/Text/Text.windows.js +1 -0
  75. package/Libraries/Text/TextNativeComponent.windows.js +72 -0
  76. package/Libraries/Text/TextProps.js +1 -7
  77. package/Libraries/TurboModule/TurboModuleRegistry.js +1 -1
  78. package/Libraries/Utilities/HMRClient.js +1 -1
  79. package/Microsoft.ReactNative/ABIViewManager.cpp +10 -1
  80. package/Microsoft.ReactNative/ABIViewManager.h +3 -0
  81. package/Microsoft.ReactNative/Base/CoreNativeModules.cpp +0 -6
  82. package/Microsoft.ReactNative/IReactDispatcher.cpp +16 -1
  83. package/Microsoft.ReactNative/IViewManager.idl +25 -0
  84. package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj +37 -8
  85. package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj.filters +60 -0
  86. package/Microsoft.ReactNative/Modules/AccessibilityInfoModule.cpp +3 -4
  87. package/Microsoft.ReactNative/Modules/AccessibilityInfoModule.h +3 -3
  88. package/Microsoft.ReactNative/Modules/AlertModule.cpp +57 -14
  89. package/Microsoft.ReactNative/Modules/AlertModule.h +17 -24
  90. package/Microsoft.ReactNative/Modules/Animated/InterpolationAnimatedNode.cpp +4 -2
  91. package/Microsoft.ReactNative/Modules/Animated/PropsAnimatedNode.cpp +3 -1
  92. package/Microsoft.ReactNative/Modules/AppStateModule.cpp +8 -6
  93. package/Microsoft.ReactNative/Modules/AppStateModule.h +6 -9
  94. package/Microsoft.ReactNative/Modules/DeviceInfoModule.cpp +34 -22
  95. package/Microsoft.ReactNative/Modules/DeviceInfoModule.h +8 -4
  96. package/Microsoft.ReactNative/Modules/I18nManagerModule.cpp +6 -4
  97. package/Microsoft.ReactNative/Modules/I18nManagerModule.h +3 -2
  98. package/Microsoft.ReactNative/Modules/ImageViewManagerModule.cpp +47 -95
  99. package/Microsoft.ReactNative/Modules/ImageViewManagerModule.h +28 -17
  100. package/Microsoft.ReactNative/Modules/LinkingManagerModule.cpp +14 -4
  101. package/Microsoft.ReactNative/Modules/NativeUIManager.cpp +4 -6
  102. package/Microsoft.ReactNative/Modules/PaperUIManagerModule.cpp +82 -66
  103. package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.cpp +14 -5
  104. package/Microsoft.ReactNative/ReactInstanceSettings.idl +3 -1
  105. package/Microsoft.ReactNative/ReactPointerEventArgs.cpp +37 -0
  106. package/Microsoft.ReactNative/ReactPointerEventArgs.h +28 -0
  107. package/Microsoft.ReactNative/ReactPointerEventArgs.idl +67 -0
  108. package/Microsoft.ReactNative/ReactRootView.cpp +28 -3
  109. package/Microsoft.ReactNative/ReactRootView.h +6 -0
  110. package/Microsoft.ReactNative/Utils/TextTransform.h +1 -1
  111. package/Microsoft.ReactNative/Utils/XamlIslandUtils.cpp +24 -10
  112. package/Microsoft.ReactNative/Utils/XamlIslandUtils.h +4 -2
  113. package/Microsoft.ReactNative/Version.rc +2 -19
  114. package/Microsoft.ReactNative/Views/DevMenu.cpp +0 -1
  115. package/Microsoft.ReactNative/Views/FlyoutViewManager.cpp +57 -2
  116. package/Microsoft.ReactNative/Views/FrameworkElementTransferProperties.cpp +3 -0
  117. package/Microsoft.ReactNative/Views/FrameworkElementViewManager.cpp +7 -2
  118. package/Microsoft.ReactNative/Views/Image/ImageViewManager.cpp +16 -6
  119. package/Microsoft.ReactNative/Views/Image/ReactImage.cpp +18 -11
  120. package/Microsoft.ReactNative/Views/Image/ReactImage.h +3 -1
  121. package/Microsoft.ReactNative/Views/RawTextViewManager.cpp +4 -53
  122. package/Microsoft.ReactNative/Views/RawTextViewManager.h +0 -3
  123. package/Microsoft.ReactNative/Views/RootViewManager.cpp +8 -9
  124. package/Microsoft.ReactNative/Views/ShadowNodeBase.h +5 -0
  125. package/Microsoft.ReactNative/Views/Text/TextHighlighterVisitor.cpp +52 -0
  126. package/Microsoft.ReactNative/Views/Text/TextHighlighterVisitor.h +37 -0
  127. package/Microsoft.ReactNative/Views/Text/TextHitTestUtils.cpp +343 -0
  128. package/Microsoft.ReactNative/Views/Text/TextHitTestUtils.h +13 -0
  129. package/Microsoft.ReactNative/Views/Text/TextHitTestVisitor.cpp +76 -0
  130. package/Microsoft.ReactNative/Views/Text/TextHitTestVisitor.h +32 -0
  131. package/Microsoft.ReactNative/Views/Text/TextParentVisitor.cpp +12 -0
  132. package/Microsoft.ReactNative/Views/Text/TextParentVisitor.h +19 -0
  133. package/Microsoft.ReactNative/Views/Text/TextPropertyChangedParentVisitor.cpp +80 -0
  134. package/Microsoft.ReactNative/Views/Text/TextPropertyChangedParentVisitor.h +43 -0
  135. package/Microsoft.ReactNative/Views/Text/TextTransformParentVisitor.cpp +21 -0
  136. package/Microsoft.ReactNative/Views/Text/TextTransformParentVisitor.h +23 -0
  137. package/Microsoft.ReactNative/Views/Text/TextTransformVisitor.cpp +70 -0
  138. package/Microsoft.ReactNative/Views/Text/TextTransformVisitor.h +34 -0
  139. package/Microsoft.ReactNative/Views/Text/TextVisitor.cpp +56 -0
  140. package/Microsoft.ReactNative/Views/Text/TextVisitor.h +34 -0
  141. package/Microsoft.ReactNative/Views/Text/TextVisitorScope.h +35 -0
  142. package/Microsoft.ReactNative/Views/Text/TextVisitors.h +47 -0
  143. package/Microsoft.ReactNative/Views/TextViewManager.cpp +112 -103
  144. package/Microsoft.ReactNative/Views/TextViewManager.h +6 -12
  145. package/Microsoft.ReactNative/Views/TouchEventHandler.cpp +171 -129
  146. package/Microsoft.ReactNative/Views/TouchEventHandler.h +19 -15
  147. package/Microsoft.ReactNative/Views/ViewManagerBase.cpp +31 -0
  148. package/Microsoft.ReactNative/Views/ViewManagerBase.h +2 -0
  149. package/Microsoft.ReactNative/Views/ViewViewManager.cpp +0 -5
  150. package/Microsoft.ReactNative/Views/VirtualTextViewManager.cpp +21 -91
  151. package/Microsoft.ReactNative/Views/VirtualTextViewManager.h +5 -8
  152. package/Microsoft.ReactNative/XamlView.h +3 -3
  153. package/Microsoft.ReactNative/packages.config +1 -1
  154. package/Microsoft.ReactNative.Cxx/NativeModules.h +114 -0
  155. package/Microsoft.ReactNative.Cxx/VersionMacros.h +19 -0
  156. package/PropertySheets/External/Microsoft.ReactNative.Common.props +2 -0
  157. package/PropertySheets/External/Microsoft.ReactNative.Uwp.CppApp.props +1 -0
  158. package/PropertySheets/External/Microsoft.ReactNative.Uwp.CppLib.props +1 -0
  159. package/PropertySheets/Generated/PackageVersion.g.props +19 -0
  160. package/PropertySheets/JSEngine.props +0 -3
  161. package/PropertySheets/PackageVersionDefinitions.props +28 -0
  162. package/PropertySheets/React.Cpp.props +0 -1
  163. package/PropertySheets/WinUI.props +1 -1
  164. package/Scripts/Microsoft.ReactNative.Managed.nuspec +1 -1
  165. package/Scripts/Microsoft.ReactNative.targets +1 -1
  166. package/Scripts/copyRNLibraries.js +12 -0
  167. package/Scripts/rnw-dependencies.ps1 +25 -24
  168. package/Shared/HermesSamplingProfiler.cpp +5 -25
  169. package/Shared/HermesShim.cpp +34 -8
  170. package/Shared/Modules/PlatformConstantsModule.cpp +1 -15
  171. package/Shared/OInstance.cpp +6 -10
  172. package/Shared/Shared.vcxitems +4 -12
  173. package/Shared/Utils.cpp +58 -0
  174. package/Shared/Utils.h +3 -0
  175. package/codegen/NativeAccessibilityInfoSpec.g.h +9 -9
  176. package/codegen/NativeAccessibilityManagerSpec.g.h +49 -21
  177. package/codegen/NativeActionSheetManagerSpec.g.h +62 -6
  178. package/codegen/NativeAlertManagerSpec.g.h +4 -4
  179. package/codegen/NativeAnimatedModuleSpec.g.h +10 -10
  180. package/codegen/NativeAnimatedTurboModuleSpec.g.h +10 -10
  181. package/codegen/NativeAppStateSpec.g.h +25 -3
  182. package/codegen/NativeAppearanceSpec.g.h +3 -3
  183. package/codegen/NativeAsyncLocalStorageSpec.g.h +66 -18
  184. package/codegen/NativeAsyncSQLiteDBStorageSpec.g.h +66 -18
  185. package/codegen/NativeBlobModuleSpec.g.h +24 -6
  186. package/codegen/NativeBugReportingSpec.g.h +3 -3
  187. package/codegen/NativeDatePickerAndroidSpec.g.h +3 -3
  188. package/codegen/NativeDevLoadingViewSpec.g.h +3 -3
  189. package/codegen/NativeDeviceInfoSpec.g.h +18 -0
  190. package/codegen/NativeDialogManagerAndroidSpec.g.h +28 -4
  191. package/codegen/NativeDialogManagerWindowsSpec.g.h +77 -0
  192. package/codegen/NativeExceptionsManagerSpec.g.h +11 -11
  193. package/codegen/NativeFileReaderModuleSpec.g.h +6 -6
  194. package/codegen/NativeFrameRateLoggerSpec.g.h +11 -3
  195. package/codegen/NativeI18nManagerSpec.g.h +20 -0
  196. package/codegen/NativeImageEditorSpec.g.h +30 -6
  197. package/codegen/NativeImageLoaderAndroidSpec.g.h +6 -6
  198. package/codegen/NativeImageLoaderIOSSpec.g.h +6 -6
  199. package/codegen/NativeImagePickerIOSSpec.g.h +28 -12
  200. package/codegen/NativeImageStoreAndroidSpec.g.h +3 -3
  201. package/codegen/NativeImageStoreIOSSpec.g.h +21 -9
  202. package/codegen/NativeIntentAndroidSpec.g.h +3 -3
  203. package/codegen/NativeJSCHeapCaptureSpec.g.h +3 -3
  204. package/codegen/NativeJSCSamplingProfilerSpec.g.h +3 -3
  205. package/codegen/NativeJSDevSupportSpec.g.h +18 -0
  206. package/codegen/NativeNetworkingAndroidSpec.g.h +6 -6
  207. package/codegen/NativeNetworkingIOSSpec.g.h +26 -6
  208. package/codegen/NativePermissionsAndroidSpec.g.h +3 -3
  209. package/codegen/NativePlatformConstantsAndroidSpec.g.h +48 -0
  210. package/codegen/NativePlatformConstantsIOSSpec.g.h +38 -0
  211. package/codegen/NativePlatformConstantsWinSpec.g.h +32 -0
  212. package/codegen/NativePushNotificationManagerIOSSpec.g.h +35 -25
  213. package/codegen/NativeRedBoxSpec.g.h +3 -3
  214. package/codegen/NativeSampleTurboModuleSpec.g.h +32 -12
  215. package/codegen/NativeSegmentFetcherSpec.g.h +6 -6
  216. package/codegen/NativeSettingsManagerSpec.g.h +22 -6
  217. package/codegen/NativeShareModuleSpec.g.h +11 -3
  218. package/codegen/NativeSourceCodeSpec.g.h +16 -0
  219. package/codegen/NativeStatusBarManagerAndroidSpec.g.h +21 -3
  220. package/codegen/NativeStatusBarManagerIOSSpec.g.h +30 -6
  221. package/codegen/NativeToastAndroidSpec.g.h +24 -0
  222. package/codegen/NativeUIManagerSpec.g.h +63 -63
  223. package/codegen/NativeVibrationSpec.g.h +3 -3
  224. package/codegen/NativeWebSocketModuleSpec.g.h +9 -3
  225. package/index.js +15 -10
  226. package/index.windows.js +15 -10
  227. package/jest/mockModal.js +31 -0
  228. package/jest/setup.js +5 -3
  229. package/just-task.js +2 -1
  230. package/package.json +23 -20
  231. package/rntypes/BatchedBridge.d.ts +23 -0
  232. package/rntypes/Devtools.d.ts +20 -0
  233. package/rntypes/LaunchScreen.d.ts +9 -0
  234. package/rntypes/globals.d.ts +496 -0
  235. package/rntypes/index.d.ts +9966 -0
  236. package/rntypes/legacy-properties.d.ts +266 -0
  237. package/template/cpp-app/proj/MyApp.vcxproj +0 -5
  238. package/template/cpp-app/src/pch.h +1 -0
  239. package/template/cpp-lib/src/pch.h +3 -0
  240. package/template/cs-app/proj/MyApp.csproj +0 -6
  241. package/template/metro.config.js +8 -1
  242. package/template/metro.devMode.config.js +3 -1
  243. package/typings-index.d.ts +2 -1
  244. package/typings-index.js +7 -5
  245. package/typings-index.js.map +1 -1
  246. package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.android.js +0 -87
  247. package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.ios.js +0 -30
  248. package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.windows.js +0 -30
  249. package/Libraries/Components/DatePickerAndroid/DatePickerAndroidTypes.js +0 -30
  250. package/Libraries/Components/StaticContainer.react.js +0 -51
  251. package/Libraries/Components/Touchable/ensurePositiveDelayProps.js +0 -25
  252. package/Libraries/Interaction/InteractionMixin.js +0 -54
  253. package/Libraries/ReactNative/queryLayoutByID.js +0 -58
  254. package/template/cpp-app/keys/MyApp_TemporaryKey.pfx +0 -0
  255. package/template/cs-app/keys/MyApp_TemporaryKey.pfx +0 -0
package/.flowconfig CHANGED
@@ -29,6 +29,7 @@
29
29
  <PROJECT_ROOT>/Libraries/NewAppScreen/components/DebugInstructions.js
30
30
  <PROJECT_ROOT>/Libraries/NewAppScreen/components/ReloadInstructions.js
31
31
  <PROJECT_ROOT>/Libraries/Pressability/Pressability.js
32
+ <PROJECT_ROOT>/Libraries/Text/TextNativeComponent.js
32
33
  <PROJECT_ROOT>/Libraries/Types/CoreEventTypes.js
33
34
 
34
35
  ; Ignore react-native files in node_modules since they are copied into project root
@@ -118,4 +119,4 @@ untyped-import
118
119
  untyped-type-import
119
120
 
120
121
  [version]
121
- ^0.158.0
122
+ ^0.162.0