react-native-windows 0.66.3 → 0.67.0-preview.3

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 (262) hide show
  1. package/.flowconfig +2 -1
  2. package/CHANGELOG.json +917 -85
  3. package/CHANGELOG.md +352 -37
  4. package/Chakra/Chakra.vcxitems +0 -1
  5. package/Chakra/Chakra.vcxitems.filters +0 -3
  6. package/Chakra/ChakraHelpers.cpp +0 -267
  7. package/Chakra/ChakraInstanceArgs.h +0 -5
  8. package/Chakra/ChakraPlatform.h +0 -4
  9. package/Chakra/ChakraTracing.cpp +0 -33
  10. package/Chakra/ChakraValue.h +0 -4
  11. package/Chakra/Utf8DebugExtensions.cpp +0 -5
  12. package/Chakra/Utf8DebugExtensions.h +0 -6
  13. package/Libraries/ActionSheetIOS/ActionSheetIOS.js +14 -1
  14. package/Libraries/ActionSheetIOS/NativeActionSheetManager.js +2 -0
  15. package/Libraries/Alert/Alert.windows.js +48 -21
  16. package/Libraries/Alert/NativeDialogManagerWindows.js +49 -0
  17. package/Libraries/Animated/AnimatedEvent.js +23 -4
  18. package/Libraries/Animated/NativeAnimatedHelper.js +2 -2
  19. package/Libraries/Animated/components/AnimatedImage.js +3 -3
  20. package/Libraries/Animated/components/AnimatedScrollView.js +3 -3
  21. package/Libraries/Animated/components/AnimatedText.js +3 -3
  22. package/Libraries/Animated/components/AnimatedView.js +1 -3
  23. package/Libraries/Animated/createAnimatedComponent.js +3 -34
  24. package/Libraries/Components/Button.js +3 -0
  25. package/Libraries/Components/Button.windows.js +70 -38
  26. package/Libraries/Components/DatePicker/DatePickerIOS.ios.js +3 -6
  27. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +4 -7
  28. package/Libraries/Components/Flyout/Flyout.js +3 -3
  29. package/Libraries/Components/Flyout/Flyout.js.map +1 -1
  30. package/Libraries/Components/Flyout/FlyoutProps.d.ts +4 -0
  31. package/Libraries/Components/Flyout/FlyoutProps.js.map +1 -1
  32. package/Libraries/Components/Glyph/Glyph.js +2 -2
  33. package/Libraries/Components/Glyph/Glyph.js.map +1 -1
  34. package/Libraries/Components/Keyboard/KeyboardExt.js +4 -3
  35. package/Libraries/Components/Keyboard/KeyboardExt.js.map +1 -1
  36. package/Libraries/Components/Popup/Popup.js +3 -3
  37. package/Libraries/Components/Popup/Popup.js.map +1 -1
  38. package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +1 -0
  39. package/Libraries/Components/ScrollView/ScrollView.js +17 -16
  40. package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +268 -252
  41. package/Libraries/Components/View/View.js +1 -1
  42. package/Libraries/Components/View/View.windows.js +1 -1
  43. package/Libraries/Components/View/ViewAccessibility.js +1 -1
  44. package/Libraries/Components/View/ViewAccessibility.windows.js +1 -1
  45. package/Libraries/Components/View/ViewWindows.js +1 -1
  46. package/Libraries/Components/View/ViewWindows.js.map +1 -1
  47. package/Libraries/Components/View/ViewWindowsProps.d.ts +42 -2
  48. package/Libraries/Components/View/ViewWindowsProps.js.map +1 -1
  49. package/Libraries/Core/ExceptionsManager.js +45 -80
  50. package/Libraries/Core/ExtendedError.js +0 -1
  51. package/Libraries/Core/ReactNativeVersion.js +2 -2
  52. package/Libraries/Core/setUpBatchedBridge.js +1 -1
  53. package/Libraries/Core/setUpGlobals.js +2 -4
  54. package/Libraries/Core/setUpTimers.js +2 -2
  55. package/Libraries/Image/Image.ios.js +6 -0
  56. package/Libraries/Image/Image.windows.js +6 -0
  57. package/Libraries/Image/ImageBackground.js +10 -8
  58. package/Libraries/Image/ImageProps.js +28 -0
  59. package/Libraries/LogBox/Data/LogBoxData.js +18 -19
  60. package/Libraries/LogBox/UI/LogBoxImages/alert-triangle.png +0 -0
  61. package/Libraries/LogBox/UI/LogBoxImages/chevron-left.png +0 -0
  62. package/Libraries/LogBox/UI/LogBoxImages/chevron-right.png +0 -0
  63. package/Libraries/LogBox/UI/LogBoxImages/close.png +0 -0
  64. package/Libraries/LogBox/UI/LogBoxImages/loader.png +0 -0
  65. package/Libraries/NewAppScreen/components/logo.png +0 -0
  66. package/Libraries/PermissionsAndroid/NativePermissionsAndroid.js +2 -1
  67. package/Libraries/PermissionsAndroid/PermissionsAndroid.js +2 -0
  68. package/Libraries/Pressability/Pressability.js +13 -13
  69. package/Libraries/Pressability/Pressability.windows.js +13 -13
  70. package/Libraries/Pressability/PressabilityPerformanceEventEmitter.js +1 -1
  71. package/Libraries/ReactNative/AppRegistry.js +4 -2
  72. package/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +1569 -875
  73. package/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +529 -319
  74. package/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +570 -362
  75. package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +1592 -891
  76. package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +521 -311
  77. package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +562 -354
  78. package/Libraries/Share/Share.js +1 -1
  79. package/Libraries/StyleSheet/normalizeColor.js +2 -2
  80. package/Libraries/Text/Text.windows.js +1 -0
  81. package/Libraries/Text/TextNativeComponent.windows.js +72 -0
  82. package/Libraries/Text/TextProps.js +1 -7
  83. package/Libraries/TurboModule/TurboModuleRegistry.js +1 -1
  84. package/Libraries/Utilities/HMRClient.js +1 -1
  85. package/Microsoft.ReactNative/ABIViewManager.cpp +10 -1
  86. package/Microsoft.ReactNative/ABIViewManager.h +3 -0
  87. package/Microsoft.ReactNative/Base/CoreNativeModules.cpp +0 -6
  88. package/Microsoft.ReactNative/IReactDispatcher.cpp +16 -1
  89. package/Microsoft.ReactNative/IViewManager.idl +25 -0
  90. package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj +35 -8
  91. package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj.filters +60 -0
  92. package/Microsoft.ReactNative/Modules/AccessibilityInfoModule.cpp +3 -4
  93. package/Microsoft.ReactNative/Modules/AccessibilityInfoModule.h +3 -3
  94. package/Microsoft.ReactNative/Modules/AlertModule.cpp +57 -14
  95. package/Microsoft.ReactNative/Modules/AlertModule.h +17 -24
  96. package/Microsoft.ReactNative/Modules/Animated/InterpolationAnimatedNode.cpp +4 -2
  97. package/Microsoft.ReactNative/Modules/Animated/PropsAnimatedNode.cpp +3 -1
  98. package/Microsoft.ReactNative/Modules/AppStateModule.cpp +8 -6
  99. package/Microsoft.ReactNative/Modules/AppStateModule.h +6 -9
  100. package/Microsoft.ReactNative/Modules/DeviceInfoModule.cpp +34 -22
  101. package/Microsoft.ReactNative/Modules/DeviceInfoModule.h +8 -4
  102. package/Microsoft.ReactNative/Modules/I18nManagerModule.cpp +6 -4
  103. package/Microsoft.ReactNative/Modules/I18nManagerModule.h +3 -2
  104. package/Microsoft.ReactNative/Modules/ImageViewManagerModule.cpp +47 -95
  105. package/Microsoft.ReactNative/Modules/ImageViewManagerModule.h +28 -17
  106. package/Microsoft.ReactNative/Modules/LinkingManagerModule.cpp +14 -4
  107. package/Microsoft.ReactNative/Modules/NativeUIManager.cpp +1 -1
  108. package/Microsoft.ReactNative/Modules/PaperUIManagerModule.cpp +82 -66
  109. package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.cpp +14 -1
  110. package/Microsoft.ReactNative/ReactInstanceSettings.idl +3 -1
  111. package/Microsoft.ReactNative/ReactPointerEventArgs.cpp +37 -0
  112. package/Microsoft.ReactNative/ReactPointerEventArgs.h +28 -0
  113. package/Microsoft.ReactNative/ReactPointerEventArgs.idl +67 -0
  114. package/Microsoft.ReactNative/Utils/TextTransform.h +1 -1
  115. package/Microsoft.ReactNative/Utils/XamlIslandUtils.cpp +24 -10
  116. package/Microsoft.ReactNative/Utils/XamlIslandUtils.h +4 -2
  117. package/Microsoft.ReactNative/Version.rc +2 -19
  118. package/Microsoft.ReactNative/Views/FlyoutViewManager.cpp +57 -2
  119. package/Microsoft.ReactNative/Views/FrameworkElementTransferProperties.cpp +3 -0
  120. package/Microsoft.ReactNative/Views/FrameworkElementViewManager.cpp +7 -2
  121. package/Microsoft.ReactNative/Views/Image/ImageViewManager.cpp +16 -6
  122. package/Microsoft.ReactNative/Views/Image/ReactImage.cpp +18 -11
  123. package/Microsoft.ReactNative/Views/Image/ReactImage.h +3 -1
  124. package/Microsoft.ReactNative/Views/RawTextViewManager.cpp +4 -53
  125. package/Microsoft.ReactNative/Views/RawTextViewManager.h +0 -3
  126. package/Microsoft.ReactNative/Views/ShadowNodeBase.h +5 -0
  127. package/Microsoft.ReactNative/Views/Text/TextHighlighterVisitor.cpp +52 -0
  128. package/Microsoft.ReactNative/Views/Text/TextHighlighterVisitor.h +37 -0
  129. package/Microsoft.ReactNative/Views/Text/TextHitTestUtils.cpp +343 -0
  130. package/Microsoft.ReactNative/Views/Text/TextHitTestUtils.h +13 -0
  131. package/Microsoft.ReactNative/Views/Text/TextHitTestVisitor.cpp +76 -0
  132. package/Microsoft.ReactNative/Views/Text/TextHitTestVisitor.h +32 -0
  133. package/Microsoft.ReactNative/Views/Text/TextParentVisitor.cpp +12 -0
  134. package/Microsoft.ReactNative/Views/Text/TextParentVisitor.h +19 -0
  135. package/Microsoft.ReactNative/Views/Text/TextPropertyChangedParentVisitor.cpp +80 -0
  136. package/Microsoft.ReactNative/Views/Text/TextPropertyChangedParentVisitor.h +43 -0
  137. package/Microsoft.ReactNative/Views/Text/TextTransformParentVisitor.cpp +21 -0
  138. package/Microsoft.ReactNative/Views/Text/TextTransformParentVisitor.h +23 -0
  139. package/Microsoft.ReactNative/Views/Text/TextTransformVisitor.cpp +70 -0
  140. package/Microsoft.ReactNative/Views/Text/TextTransformVisitor.h +34 -0
  141. package/Microsoft.ReactNative/Views/Text/TextVisitor.cpp +56 -0
  142. package/Microsoft.ReactNative/Views/Text/TextVisitor.h +34 -0
  143. package/Microsoft.ReactNative/Views/Text/TextVisitorScope.h +35 -0
  144. package/Microsoft.ReactNative/Views/Text/TextVisitors.h +47 -0
  145. package/Microsoft.ReactNative/Views/TextViewManager.cpp +112 -103
  146. package/Microsoft.ReactNative/Views/TextViewManager.h +6 -12
  147. package/Microsoft.ReactNative/Views/TouchEventHandler.cpp +171 -129
  148. package/Microsoft.ReactNative/Views/TouchEventHandler.h +19 -15
  149. package/Microsoft.ReactNative/Views/ViewManagerBase.cpp +31 -0
  150. package/Microsoft.ReactNative/Views/ViewManagerBase.h +2 -0
  151. package/Microsoft.ReactNative/Views/ViewViewManager.cpp +0 -5
  152. package/Microsoft.ReactNative/Views/VirtualTextViewManager.cpp +21 -91
  153. package/Microsoft.ReactNative/Views/VirtualTextViewManager.h +5 -8
  154. package/Microsoft.ReactNative/XamlView.h +3 -3
  155. package/Microsoft.ReactNative/packages.config +1 -1
  156. package/Microsoft.ReactNative.Cxx/NativeModules.h +114 -0
  157. package/Microsoft.ReactNative.Cxx/VersionMacros.h +19 -0
  158. package/PropertySheets/External/Microsoft.ReactNative.Common.props +2 -0
  159. package/PropertySheets/External/Microsoft.ReactNative.Uwp.CppApp.props +1 -0
  160. package/PropertySheets/External/Microsoft.ReactNative.Uwp.CppLib.props +1 -0
  161. package/PropertySheets/Generated/PackageVersion.g.props +19 -0
  162. package/PropertySheets/PackageVersionDefinitions.props +28 -0
  163. package/PropertySheets/React.Cpp.props +2 -0
  164. package/PropertySheets/WinUI.props +1 -1
  165. package/Scripts/Microsoft.ReactNative.Managed.nuspec +1 -1
  166. package/Scripts/copyRNLibraries.js +12 -0
  167. package/Scripts/rnw-dependencies.ps1 +25 -24
  168. package/Shared/HermesSamplingProfiler.cpp +3 -21
  169. package/Shared/JSI/ChakraApi.cpp +1 -37
  170. package/Shared/JSI/ChakraApi.h +0 -4
  171. package/Shared/JSI/ChakraJsiRuntime_edgemode.cpp +1 -5
  172. package/Shared/JSI/ChakraRuntime.cpp +0 -12
  173. package/Shared/JSI/ChakraRuntimeFactory.h +0 -2
  174. package/Shared/Modules/PlatformConstantsModule.cpp +1 -15
  175. package/Shared/OInstance.cpp +6 -19
  176. package/Shared/Shared.vcxitems +0 -1
  177. package/Shared/Shared.vcxitems.filters +0 -3
  178. package/Shared/Utils.cpp +58 -0
  179. package/Shared/Utils.h +3 -0
  180. package/codegen/NativeAccessibilityInfoSpec.g.h +9 -9
  181. package/codegen/NativeAccessibilityManagerSpec.g.h +49 -21
  182. package/codegen/NativeActionSheetManagerSpec.g.h +62 -6
  183. package/codegen/NativeAlertManagerSpec.g.h +4 -4
  184. package/codegen/NativeAnimatedModuleSpec.g.h +10 -10
  185. package/codegen/NativeAnimatedTurboModuleSpec.g.h +10 -10
  186. package/codegen/NativeAppStateSpec.g.h +25 -3
  187. package/codegen/NativeAppearanceSpec.g.h +3 -3
  188. package/codegen/NativeAsyncLocalStorageSpec.g.h +66 -18
  189. package/codegen/NativeAsyncSQLiteDBStorageSpec.g.h +66 -18
  190. package/codegen/NativeBlobModuleSpec.g.h +24 -6
  191. package/codegen/NativeBugReportingSpec.g.h +3 -3
  192. package/codegen/NativeDatePickerAndroidSpec.g.h +3 -3
  193. package/codegen/NativeDevLoadingViewSpec.g.h +3 -3
  194. package/codegen/NativeDeviceInfoSpec.g.h +18 -0
  195. package/codegen/NativeDialogManagerAndroidSpec.g.h +28 -4
  196. package/codegen/NativeDialogManagerWindowsSpec.g.h +77 -0
  197. package/codegen/NativeExceptionsManagerSpec.g.h +11 -11
  198. package/codegen/NativeFileReaderModuleSpec.g.h +6 -6
  199. package/codegen/NativeFrameRateLoggerSpec.g.h +11 -3
  200. package/codegen/NativeI18nManagerSpec.g.h +20 -0
  201. package/codegen/NativeImageEditorSpec.g.h +30 -6
  202. package/codegen/NativeImageLoaderAndroidSpec.g.h +6 -6
  203. package/codegen/NativeImageLoaderIOSSpec.g.h +6 -6
  204. package/codegen/NativeImagePickerIOSSpec.g.h +28 -12
  205. package/codegen/NativeImageStoreAndroidSpec.g.h +3 -3
  206. package/codegen/NativeImageStoreIOSSpec.g.h +21 -9
  207. package/codegen/NativeIntentAndroidSpec.g.h +3 -3
  208. package/codegen/NativeJSCHeapCaptureSpec.g.h +3 -3
  209. package/codegen/NativeJSCSamplingProfilerSpec.g.h +3 -3
  210. package/codegen/NativeJSDevSupportSpec.g.h +18 -0
  211. package/codegen/NativeNetworkingAndroidSpec.g.h +6 -6
  212. package/codegen/NativeNetworkingIOSSpec.g.h +26 -6
  213. package/codegen/NativePermissionsAndroidSpec.g.h +3 -3
  214. package/codegen/NativePlatformConstantsAndroidSpec.g.h +48 -0
  215. package/codegen/NativePlatformConstantsIOSSpec.g.h +38 -0
  216. package/codegen/NativePlatformConstantsWinSpec.g.h +32 -0
  217. package/codegen/NativePushNotificationManagerIOSSpec.g.h +35 -25
  218. package/codegen/NativeRedBoxSpec.g.h +3 -3
  219. package/codegen/NativeSampleTurboModuleSpec.g.h +32 -12
  220. package/codegen/NativeSegmentFetcherSpec.g.h +6 -6
  221. package/codegen/NativeSettingsManagerSpec.g.h +22 -6
  222. package/codegen/NativeShareModuleSpec.g.h +11 -3
  223. package/codegen/NativeSourceCodeSpec.g.h +16 -0
  224. package/codegen/NativeStatusBarManagerAndroidSpec.g.h +21 -3
  225. package/codegen/NativeStatusBarManagerIOSSpec.g.h +30 -6
  226. package/codegen/NativeToastAndroidSpec.g.h +24 -0
  227. package/codegen/NativeUIManagerSpec.g.h +63 -63
  228. package/codegen/NativeVibrationSpec.g.h +3 -3
  229. package/codegen/NativeWebSocketModuleSpec.g.h +9 -3
  230. package/index.js +15 -10
  231. package/index.windows.js +15 -10
  232. package/jest/mockModal.js +31 -0
  233. package/jest/setup.js +5 -3
  234. package/just-task.js +2 -1
  235. package/package.json +23 -20
  236. package/rntypes/BatchedBridge.d.ts +23 -0
  237. package/rntypes/Devtools.d.ts +20 -0
  238. package/rntypes/LaunchScreen.d.ts +9 -0
  239. package/rntypes/globals.d.ts +496 -0
  240. package/rntypes/index.d.ts +9966 -0
  241. package/rntypes/legacy-properties.d.ts +266 -0
  242. package/template/cpp-app/proj/MyApp.vcxproj +0 -5
  243. package/template/cpp-app/src/pch.h +1 -0
  244. package/template/cpp-lib/src/pch.h +3 -0
  245. package/template/cs-app/proj/MyApp.csproj +0 -6
  246. package/typings-index.d.ts +2 -1
  247. package/typings-index.js +7 -5
  248. package/typings-index.js.map +1 -1
  249. package/Chakra/ChakraCoreDebugger.h +0 -147
  250. package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.android.js +0 -87
  251. package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.ios.js +0 -30
  252. package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.windows.js +0 -30
  253. package/Libraries/Components/DatePickerAndroid/DatePickerAndroidTypes.js +0 -30
  254. package/Libraries/Components/StaticContainer.react.js +0 -51
  255. package/Libraries/Components/Touchable/ensurePositiveDelayProps.js +0 -25
  256. package/Libraries/Interaction/InteractionMixin.js +0 -54
  257. package/Libraries/ReactNative/queryLayoutByID.js +0 -58
  258. package/Scripts/Microsoft.ChakraCore.ARM64.nuspec +0 -50
  259. package/Scripts/Microsoft.ChakraCore.ARM64.targets +0 -15
  260. package/Shared/JSI/ChakraCoreRuntime.h +0 -59
  261. package/template/cpp-app/keys/MyApp_TemporaryKey.pfx +0 -0
  262. package/template/cs-app/keys/MyApp_TemporaryKey.pfx +0 -0
@@ -15,30 +15,30 @@ namespace Microsoft::ReactNativeSpecs {
15
15
 
16
16
  struct UIManagerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
17
17
  static constexpr auto methods = std::tuple{
18
- SyncMethod<React::JSValueObject(std::string) noexcept>{0, L"getConstantsForViewManager"},
19
- SyncMethod<React::JSValueArray() noexcept>{1, L"getDefaultEventTypes"},
20
- SyncMethod<React::JSValueObject(std::string) noexcept>{2, L"lazilyLoadView"},
21
- Method<void(double, std::string, double, React::JSValueObject) noexcept>{3, L"createView"},
22
- Method<void(double, std::string, React::JSValueObject) noexcept>{4, L"updateView"},
23
- Method<void(double) noexcept>{5, L"focus"},
24
- Method<void(double) noexcept>{6, L"blur"},
25
- Method<void(double, React::JSValueArray, Callback<React::JSValue>) noexcept>{7, L"findSubviewIn"},
26
- Method<void(double, double, React::JSValueArray) noexcept>{8, L"dispatchViewManagerCommand"},
27
- Method<void(double, Callback<React::JSValue>) noexcept>{9, L"measure"},
28
- Method<void(double, Callback<React::JSValue>) noexcept>{10, L"measureInWindow"},
29
- Method<void(double, double, Callback<React::JSValue>) noexcept>{11, L"viewIsDescendantOf"},
30
- Method<void(double, double, Callback<React::JSValue>, Callback<React::JSValue>) noexcept>{12, L"measureLayout"},
31
- Method<void(double, Callback<React::JSValue>, Callback<React::JSValue>) noexcept>{13, L"measureLayoutRelativeToParent"},
32
- Method<void(double, bool) noexcept>{14, L"setJSResponder"},
18
+ SyncMethod<React::JSValue(std::string) noexcept>{0, L"getConstantsForViewManager"},
19
+ SyncMethod<std::vector<std::string>() noexcept>{1, L"getDefaultEventTypes"},
20
+ SyncMethod<React::JSValue(std::string) noexcept>{2, L"lazilyLoadView"},
21
+ Method<void(std::optional<double>, std::string, double, React::JSValue) noexcept>{3, L"createView"},
22
+ Method<void(double, std::string, React::JSValue) noexcept>{4, L"updateView"},
23
+ Method<void(std::optional<double>) noexcept>{5, L"focus"},
24
+ Method<void(std::optional<double>) noexcept>{6, L"blur"},
25
+ Method<void(std::optional<double>, std::vector<double>, Callback<double, double, double, double, double>) noexcept>{7, L"findSubviewIn"},
26
+ Method<void(std::optional<double>, double, std::optional<React::JSValueArray>) noexcept>{8, L"dispatchViewManagerCommand"},
27
+ Method<void(std::optional<double>, Callback<double, double, double, double, double, double>) noexcept>{9, L"measure"},
28
+ Method<void(std::optional<double>, Callback<double, double, double, double>) noexcept>{10, L"measureInWindow"},
29
+ Method<void(std::optional<double>, std::optional<double>, Callback<std::vector<bool>>) noexcept>{11, L"viewIsDescendantOf"},
30
+ Method<void(std::optional<double>, std::optional<double>, Callback<React::JSValue>, Callback<double, double, double, double>) noexcept>{12, L"measureLayout"},
31
+ Method<void(std::optional<double>, Callback<React::JSValue>, Callback<double, double, double, double>) noexcept>{13, L"measureLayoutRelativeToParent"},
32
+ Method<void(std::optional<double>, bool) noexcept>{14, L"setJSResponder"},
33
33
  Method<void() noexcept>{15, L"clearJSResponder"},
34
- Method<void(React::JSValueObject, Callback<React::JSValue>, Callback<React::JSValue>) noexcept>{16, L"configureNextLayoutAnimation"},
34
+ Method<void(React::JSValue, Callback<>, Callback<React::JSValue>) noexcept>{16, L"configureNextLayoutAnimation"},
35
35
  Method<void(double) noexcept>{17, L"removeSubviewsFromContainerWithID"},
36
- Method<void(double, double) noexcept>{18, L"replaceExistingNonRootView"},
37
- Method<void(double, React::JSValueArray) noexcept>{19, L"setChildren"},
38
- Method<void(double, React::JSValueArray, React::JSValueArray, React::JSValueArray, React::JSValueArray, React::JSValueArray) noexcept>{20, L"manageChildren"},
36
+ Method<void(std::optional<double>, std::optional<double>) noexcept>{18, L"replaceExistingNonRootView"},
37
+ Method<void(std::optional<double>, std::vector<double>) noexcept>{19, L"setChildren"},
38
+ Method<void(std::optional<double>, std::vector<double>, std::vector<double>, std::vector<double>, std::vector<double>, std::vector<double>) noexcept>{20, L"manageChildren"},
39
39
  Method<void(bool) noexcept>{21, L"setLayoutAnimationEnabledExperimental"},
40
- Method<void(double, double) noexcept>{22, L"sendAccessibilityEvent"},
41
- Method<void(double, React::JSValueArray, Callback<React::JSValue>, Callback<React::JSValue>) noexcept>{23, L"showPopupMenu"},
40
+ Method<void(std::optional<double>, double) noexcept>{22, L"sendAccessibilityEvent"},
41
+ Method<void(std::optional<double>, std::vector<std::string>, Callback<React::JSValue>, Callback<std::string, double>) noexcept>{23, L"showPopupMenu"},
42
42
  Method<void() noexcept>{24, L"dismissPopupMenu"},
43
43
  };
44
44
 
@@ -49,78 +49,78 @@ struct UIManagerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
49
49
  REACT_SHOW_METHOD_SPEC_ERRORS(
50
50
  0,
51
51
  "getConstantsForViewManager",
52
- " REACT_SYNC_METHOD(getConstantsForViewManager) React::JSValueObject getConstantsForViewManager(std::string viewManagerName) noexcept { /* implementation */ }}\n"
53
- " REACT_SYNC_METHOD(getConstantsForViewManager) static React::JSValueObject getConstantsForViewManager(std::string viewManagerName) noexcept { /* implementation */ }}\n");
52
+ " REACT_SYNC_METHOD(getConstantsForViewManager) React::JSValue getConstantsForViewManager(std::string viewManagerName) noexcept { /* implementation */ }}\n"
53
+ " REACT_SYNC_METHOD(getConstantsForViewManager) static React::JSValue getConstantsForViewManager(std::string viewManagerName) noexcept { /* implementation */ }}\n");
54
54
  REACT_SHOW_METHOD_SPEC_ERRORS(
55
55
  1,
56
56
  "getDefaultEventTypes",
57
- " REACT_SYNC_METHOD(getDefaultEventTypes) React::JSValueArray getDefaultEventTypes() noexcept { /* implementation */ }}\n"
58
- " REACT_SYNC_METHOD(getDefaultEventTypes) static React::JSValueArray getDefaultEventTypes() noexcept { /* implementation */ }}\n");
57
+ " REACT_SYNC_METHOD(getDefaultEventTypes) std::vector<std::string> getDefaultEventTypes() noexcept { /* implementation */ }}\n"
58
+ " REACT_SYNC_METHOD(getDefaultEventTypes) static std::vector<std::string> getDefaultEventTypes() noexcept { /* implementation */ }}\n");
59
59
  REACT_SHOW_METHOD_SPEC_ERRORS(
60
60
  2,
61
61
  "lazilyLoadView",
62
- " REACT_SYNC_METHOD(lazilyLoadView) React::JSValueObject lazilyLoadView(std::string name) noexcept { /* implementation */ }}\n"
63
- " REACT_SYNC_METHOD(lazilyLoadView) static React::JSValueObject lazilyLoadView(std::string name) noexcept { /* implementation */ }}\n");
62
+ " REACT_SYNC_METHOD(lazilyLoadView) React::JSValue lazilyLoadView(std::string name) noexcept { /* implementation */ }}\n"
63
+ " REACT_SYNC_METHOD(lazilyLoadView) static React::JSValue lazilyLoadView(std::string name) noexcept { /* implementation */ }}\n");
64
64
  REACT_SHOW_METHOD_SPEC_ERRORS(
65
65
  3,
66
66
  "createView",
67
- " REACT_METHOD(createView) void createView(double reactTag, std::string viewName, double rootTag, React::JSValueObject && props) noexcept { /* implementation */ }}\n"
68
- " REACT_METHOD(createView) static void createView(double reactTag, std::string viewName, double rootTag, React::JSValueObject && props) noexcept { /* implementation */ }}\n");
67
+ " REACT_METHOD(createView) void createView(std::optional<double> reactTag, std::string viewName, double rootTag, React::JSValue && props) noexcept { /* implementation */ }}\n"
68
+ " REACT_METHOD(createView) static void createView(std::optional<double> reactTag, std::string viewName, double rootTag, React::JSValue && props) noexcept { /* implementation */ }}\n");
69
69
  REACT_SHOW_METHOD_SPEC_ERRORS(
70
70
  4,
71
71
  "updateView",
72
- " REACT_METHOD(updateView) void updateView(double reactTag, std::string viewName, React::JSValueObject && props) noexcept { /* implementation */ }}\n"
73
- " REACT_METHOD(updateView) static void updateView(double reactTag, std::string viewName, React::JSValueObject && props) noexcept { /* implementation */ }}\n");
72
+ " REACT_METHOD(updateView) void updateView(double reactTag, std::string viewName, React::JSValue && props) noexcept { /* implementation */ }}\n"
73
+ " REACT_METHOD(updateView) static void updateView(double reactTag, std::string viewName, React::JSValue && props) noexcept { /* implementation */ }}\n");
74
74
  REACT_SHOW_METHOD_SPEC_ERRORS(
75
75
  5,
76
76
  "focus",
77
- " REACT_METHOD(focus) void focus(double reactTag) noexcept { /* implementation */ }}\n"
78
- " REACT_METHOD(focus) static void focus(double reactTag) noexcept { /* implementation */ }}\n");
77
+ " REACT_METHOD(focus) void focus(std::optional<double> reactTag) noexcept { /* implementation */ }}\n"
78
+ " REACT_METHOD(focus) static void focus(std::optional<double> reactTag) noexcept { /* implementation */ }}\n");
79
79
  REACT_SHOW_METHOD_SPEC_ERRORS(
80
80
  6,
81
81
  "blur",
82
- " REACT_METHOD(blur) void blur(double reactTag) noexcept { /* implementation */ }}\n"
83
- " REACT_METHOD(blur) static void blur(double reactTag) noexcept { /* implementation */ }}\n");
82
+ " REACT_METHOD(blur) void blur(std::optional<double> reactTag) noexcept { /* implementation */ }}\n"
83
+ " REACT_METHOD(blur) static void blur(std::optional<double> reactTag) noexcept { /* implementation */ }}\n");
84
84
  REACT_SHOW_METHOD_SPEC_ERRORS(
85
85
  7,
86
86
  "findSubviewIn",
87
- " REACT_METHOD(findSubviewIn) void findSubviewIn(double reactTag, React::JSValueArray && point, std::function<void(React::JSValue const &)> const & callback) noexcept { /* implementation */ }}\n"
88
- " REACT_METHOD(findSubviewIn) static void findSubviewIn(double reactTag, React::JSValueArray && point, std::function<void(React::JSValue const &)> const & callback) noexcept { /* implementation */ }}\n");
87
+ " REACT_METHOD(findSubviewIn) void findSubviewIn(std::optional<double> reactTag, std::vector<double> const & point, std::function<void(double, double, double, double, double)> const & callback) noexcept { /* implementation */ }}\n"
88
+ " REACT_METHOD(findSubviewIn) static void findSubviewIn(std::optional<double> reactTag, std::vector<double> const & point, std::function<void(double, double, double, double, double)> const & callback) noexcept { /* implementation */ }}\n");
89
89
  REACT_SHOW_METHOD_SPEC_ERRORS(
90
90
  8,
91
91
  "dispatchViewManagerCommand",
92
- " REACT_METHOD(dispatchViewManagerCommand) void dispatchViewManagerCommand(double reactTag, double commandID, React::JSValueArray && commandArgs) noexcept { /* implementation */ }}\n"
93
- " REACT_METHOD(dispatchViewManagerCommand) static void dispatchViewManagerCommand(double reactTag, double commandID, React::JSValueArray && commandArgs) noexcept { /* implementation */ }}\n");
92
+ " REACT_METHOD(dispatchViewManagerCommand) void dispatchViewManagerCommand(std::optional<double> reactTag, double commandID, std::optional<React::JSValueArray> commandArgs) noexcept { /* implementation */ }}\n"
93
+ " REACT_METHOD(dispatchViewManagerCommand) static void dispatchViewManagerCommand(std::optional<double> reactTag, double commandID, std::optional<React::JSValueArray> commandArgs) noexcept { /* implementation */ }}\n");
94
94
  REACT_SHOW_METHOD_SPEC_ERRORS(
95
95
  9,
96
96
  "measure",
97
- " REACT_METHOD(measure) void measure(double reactTag, std::function<void(React::JSValue const &)> const & callback) noexcept { /* implementation */ }}\n"
98
- " REACT_METHOD(measure) static void measure(double reactTag, std::function<void(React::JSValue const &)> const & callback) noexcept { /* implementation */ }}\n");
97
+ " REACT_METHOD(measure) void measure(std::optional<double> reactTag, std::function<void(double, double, double, double, double, double)> const & callback) noexcept { /* implementation */ }}\n"
98
+ " REACT_METHOD(measure) static void measure(std::optional<double> reactTag, std::function<void(double, double, double, double, double, double)> const & callback) noexcept { /* implementation */ }}\n");
99
99
  REACT_SHOW_METHOD_SPEC_ERRORS(
100
100
  10,
101
101
  "measureInWindow",
102
- " REACT_METHOD(measureInWindow) void measureInWindow(double reactTag, std::function<void(React::JSValue const &)> const & callback) noexcept { /* implementation */ }}\n"
103
- " REACT_METHOD(measureInWindow) static void measureInWindow(double reactTag, std::function<void(React::JSValue const &)> const & callback) noexcept { /* implementation */ }}\n");
102
+ " REACT_METHOD(measureInWindow) void measureInWindow(std::optional<double> reactTag, std::function<void(double, double, double, double)> const & callback) noexcept { /* implementation */ }}\n"
103
+ " REACT_METHOD(measureInWindow) static void measureInWindow(std::optional<double> reactTag, std::function<void(double, double, double, double)> const & callback) noexcept { /* implementation */ }}\n");
104
104
  REACT_SHOW_METHOD_SPEC_ERRORS(
105
105
  11,
106
106
  "viewIsDescendantOf",
107
- " REACT_METHOD(viewIsDescendantOf) void viewIsDescendantOf(double reactTag, double ancestorReactTag, std::function<void(React::JSValue const &)> const & callback) noexcept { /* implementation */ }}\n"
108
- " REACT_METHOD(viewIsDescendantOf) static void viewIsDescendantOf(double reactTag, double ancestorReactTag, std::function<void(React::JSValue const &)> const & callback) noexcept { /* implementation */ }}\n");
107
+ " REACT_METHOD(viewIsDescendantOf) void viewIsDescendantOf(std::optional<double> reactTag, std::optional<double> ancestorReactTag, std::function<void(std::vector<bool> const &)> const & callback) noexcept { /* implementation */ }}\n"
108
+ " REACT_METHOD(viewIsDescendantOf) static void viewIsDescendantOf(std::optional<double> reactTag, std::optional<double> ancestorReactTag, std::function<void(std::vector<bool> const &)> const & callback) noexcept { /* implementation */ }}\n");
109
109
  REACT_SHOW_METHOD_SPEC_ERRORS(
110
110
  12,
111
111
  "measureLayout",
112
- " REACT_METHOD(measureLayout) void measureLayout(double reactTag, double ancestorReactTag, std::function<void(React::JSValue const &)> const & errorCallback, std::function<void(React::JSValue const &)> const & callback) noexcept { /* implementation */ }}\n"
113
- " REACT_METHOD(measureLayout) static void measureLayout(double reactTag, double ancestorReactTag, std::function<void(React::JSValue const &)> const & errorCallback, std::function<void(React::JSValue const &)> const & callback) noexcept { /* implementation */ }}\n");
112
+ " REACT_METHOD(measureLayout) void measureLayout(std::optional<double> reactTag, std::optional<double> ancestorReactTag, std::function<void(React::JSValue const &)> const & errorCallback, std::function<void(double, double, double, double)> const & callback) noexcept { /* implementation */ }}\n"
113
+ " REACT_METHOD(measureLayout) static void measureLayout(std::optional<double> reactTag, std::optional<double> ancestorReactTag, std::function<void(React::JSValue const &)> const & errorCallback, std::function<void(double, double, double, double)> const & callback) noexcept { /* implementation */ }}\n");
114
114
  REACT_SHOW_METHOD_SPEC_ERRORS(
115
115
  13,
116
116
  "measureLayoutRelativeToParent",
117
- " REACT_METHOD(measureLayoutRelativeToParent) void measureLayoutRelativeToParent(double reactTag, std::function<void(React::JSValue const &)> const & errorCallback, std::function<void(React::JSValue const &)> const & callback) noexcept { /* implementation */ }}\n"
118
- " REACT_METHOD(measureLayoutRelativeToParent) static void measureLayoutRelativeToParent(double reactTag, std::function<void(React::JSValue const &)> const & errorCallback, std::function<void(React::JSValue const &)> const & callback) noexcept { /* implementation */ }}\n");
117
+ " REACT_METHOD(measureLayoutRelativeToParent) void measureLayoutRelativeToParent(std::optional<double> reactTag, std::function<void(React::JSValue const &)> const & errorCallback, std::function<void(double, double, double, double)> const & callback) noexcept { /* implementation */ }}\n"
118
+ " REACT_METHOD(measureLayoutRelativeToParent) static void measureLayoutRelativeToParent(std::optional<double> reactTag, std::function<void(React::JSValue const &)> const & errorCallback, std::function<void(double, double, double, double)> const & callback) noexcept { /* implementation */ }}\n");
119
119
  REACT_SHOW_METHOD_SPEC_ERRORS(
120
120
  14,
121
121
  "setJSResponder",
122
- " REACT_METHOD(setJSResponder) void setJSResponder(double reactTag, bool blockNativeResponder) noexcept { /* implementation */ }}\n"
123
- " REACT_METHOD(setJSResponder) static void setJSResponder(double reactTag, bool blockNativeResponder) noexcept { /* implementation */ }}\n");
122
+ " REACT_METHOD(setJSResponder) void setJSResponder(std::optional<double> reactTag, bool blockNativeResponder) noexcept { /* implementation */ }}\n"
123
+ " REACT_METHOD(setJSResponder) static void setJSResponder(std::optional<double> reactTag, bool blockNativeResponder) noexcept { /* implementation */ }}\n");
124
124
  REACT_SHOW_METHOD_SPEC_ERRORS(
125
125
  15,
126
126
  "clearJSResponder",
@@ -129,8 +129,8 @@ struct UIManagerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
129
129
  REACT_SHOW_METHOD_SPEC_ERRORS(
130
130
  16,
131
131
  "configureNextLayoutAnimation",
132
- " REACT_METHOD(configureNextLayoutAnimation) void configureNextLayoutAnimation(React::JSValueObject && config, std::function<void(React::JSValue const &)> const & callback, std::function<void(React::JSValue const &)> const & errorCallback) noexcept { /* implementation */ }}\n"
133
- " REACT_METHOD(configureNextLayoutAnimation) static void configureNextLayoutAnimation(React::JSValueObject && config, std::function<void(React::JSValue const &)> const & callback, std::function<void(React::JSValue const &)> const & errorCallback) noexcept { /* implementation */ }}\n");
132
+ " REACT_METHOD(configureNextLayoutAnimation) void configureNextLayoutAnimation(React::JSValue && config, std::function<void()> const & callback, std::function<void(React::JSValue const &)> const & errorCallback) noexcept { /* implementation */ }}\n"
133
+ " REACT_METHOD(configureNextLayoutAnimation) static void configureNextLayoutAnimation(React::JSValue && config, std::function<void()> const & callback, std::function<void(React::JSValue const &)> const & errorCallback) noexcept { /* implementation */ }}\n");
134
134
  REACT_SHOW_METHOD_SPEC_ERRORS(
135
135
  17,
136
136
  "removeSubviewsFromContainerWithID",
@@ -139,18 +139,18 @@ struct UIManagerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
139
139
  REACT_SHOW_METHOD_SPEC_ERRORS(
140
140
  18,
141
141
  "replaceExistingNonRootView",
142
- " REACT_METHOD(replaceExistingNonRootView) void replaceExistingNonRootView(double reactTag, double newReactTag) noexcept { /* implementation */ }}\n"
143
- " REACT_METHOD(replaceExistingNonRootView) static void replaceExistingNonRootView(double reactTag, double newReactTag) noexcept { /* implementation */ }}\n");
142
+ " REACT_METHOD(replaceExistingNonRootView) void replaceExistingNonRootView(std::optional<double> reactTag, std::optional<double> newReactTag) noexcept { /* implementation */ }}\n"
143
+ " REACT_METHOD(replaceExistingNonRootView) static void replaceExistingNonRootView(std::optional<double> reactTag, std::optional<double> newReactTag) noexcept { /* implementation */ }}\n");
144
144
  REACT_SHOW_METHOD_SPEC_ERRORS(
145
145
  19,
146
146
  "setChildren",
147
- " REACT_METHOD(setChildren) void setChildren(double containerTag, React::JSValueArray && reactTags) noexcept { /* implementation */ }}\n"
148
- " REACT_METHOD(setChildren) static void setChildren(double containerTag, React::JSValueArray && reactTags) noexcept { /* implementation */ }}\n");
147
+ " REACT_METHOD(setChildren) void setChildren(std::optional<double> containerTag, std::vector<double> const & reactTags) noexcept { /* implementation */ }}\n"
148
+ " REACT_METHOD(setChildren) static void setChildren(std::optional<double> containerTag, std::vector<double> const & reactTags) noexcept { /* implementation */ }}\n");
149
149
  REACT_SHOW_METHOD_SPEC_ERRORS(
150
150
  20,
151
151
  "manageChildren",
152
- " REACT_METHOD(manageChildren) void manageChildren(double containerTag, React::JSValueArray && moveFromIndices, React::JSValueArray && moveToIndices, React::JSValueArray && addChildReactTags, React::JSValueArray && addAtIndices, React::JSValueArray && removeAtIndices) noexcept { /* implementation */ }}\n"
153
- " REACT_METHOD(manageChildren) static void manageChildren(double containerTag, React::JSValueArray && moveFromIndices, React::JSValueArray && moveToIndices, React::JSValueArray && addChildReactTags, React::JSValueArray && addAtIndices, React::JSValueArray && removeAtIndices) noexcept { /* implementation */ }}\n");
152
+ " REACT_METHOD(manageChildren) void manageChildren(std::optional<double> containerTag, std::vector<double> const & moveFromIndices, std::vector<double> const & moveToIndices, std::vector<double> const & addChildReactTags, std::vector<double> const & addAtIndices, std::vector<double> const & removeAtIndices) noexcept { /* implementation */ }}\n"
153
+ " REACT_METHOD(manageChildren) static void manageChildren(std::optional<double> containerTag, std::vector<double> const & moveFromIndices, std::vector<double> const & moveToIndices, std::vector<double> const & addChildReactTags, std::vector<double> const & addAtIndices, std::vector<double> const & removeAtIndices) noexcept { /* implementation */ }}\n");
154
154
  REACT_SHOW_METHOD_SPEC_ERRORS(
155
155
  21,
156
156
  "setLayoutAnimationEnabledExperimental",
@@ -159,13 +159,13 @@ struct UIManagerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
159
159
  REACT_SHOW_METHOD_SPEC_ERRORS(
160
160
  22,
161
161
  "sendAccessibilityEvent",
162
- " REACT_METHOD(sendAccessibilityEvent) void sendAccessibilityEvent(double reactTag, double eventType) noexcept { /* implementation */ }}\n"
163
- " REACT_METHOD(sendAccessibilityEvent) static void sendAccessibilityEvent(double reactTag, double eventType) noexcept { /* implementation */ }}\n");
162
+ " REACT_METHOD(sendAccessibilityEvent) void sendAccessibilityEvent(std::optional<double> reactTag, double eventType) noexcept { /* implementation */ }}\n"
163
+ " REACT_METHOD(sendAccessibilityEvent) static void sendAccessibilityEvent(std::optional<double> reactTag, double eventType) noexcept { /* implementation */ }}\n");
164
164
  REACT_SHOW_METHOD_SPEC_ERRORS(
165
165
  23,
166
166
  "showPopupMenu",
167
- " REACT_METHOD(showPopupMenu) void showPopupMenu(double reactTag, React::JSValueArray && items, std::function<void(React::JSValue const &)> const & error, std::function<void(React::JSValue const &)> const & success) noexcept { /* implementation */ }}\n"
168
- " REACT_METHOD(showPopupMenu) static void showPopupMenu(double reactTag, React::JSValueArray && items, std::function<void(React::JSValue const &)> const & error, std::function<void(React::JSValue const &)> const & success) noexcept { /* implementation */ }}\n");
167
+ " REACT_METHOD(showPopupMenu) void showPopupMenu(std::optional<double> reactTag, std::vector<std::string> const & items, std::function<void(React::JSValue const &)> const & error, std::function<void(std::string, double)> const & success) noexcept { /* implementation */ }}\n"
168
+ " REACT_METHOD(showPopupMenu) static void showPopupMenu(std::optional<double> reactTag, std::vector<std::string> const & items, std::function<void(React::JSValue const &)> const & error, std::function<void(std::string, double)> const & success) noexcept { /* implementation */ }}\n");
169
169
  REACT_SHOW_METHOD_SPEC_ERRORS(
170
170
  24,
171
171
  "dismissPopupMenu",
@@ -16,7 +16,7 @@ namespace Microsoft::ReactNativeSpecs {
16
16
  struct VibrationSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
17
17
  static constexpr auto methods = std::tuple{
18
18
  Method<void(double) noexcept>{0, L"vibrate"},
19
- Method<void(React::JSValueArray, double) noexcept>{1, L"vibrateByPattern"},
19
+ Method<void(std::vector<double>, double) noexcept>{1, L"vibrateByPattern"},
20
20
  Method<void() noexcept>{2, L"cancel"},
21
21
  };
22
22
 
@@ -32,8 +32,8 @@ struct VibrationSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
32
32
  REACT_SHOW_METHOD_SPEC_ERRORS(
33
33
  1,
34
34
  "vibrateByPattern",
35
- " REACT_METHOD(vibrateByPattern) void vibrateByPattern(React::JSValueArray && pattern, double repeat) noexcept { /* implementation */ }}\n"
36
- " REACT_METHOD(vibrateByPattern) static void vibrateByPattern(React::JSValueArray && pattern, double repeat) noexcept { /* implementation */ }}\n");
35
+ " REACT_METHOD(vibrateByPattern) void vibrateByPattern(std::vector<double> const & pattern, double repeat) noexcept { /* implementation */ }}\n"
36
+ " REACT_METHOD(vibrateByPattern) static void vibrateByPattern(std::vector<double> const & pattern, double repeat) noexcept { /* implementation */ }}\n");
37
37
  REACT_SHOW_METHOD_SPEC_ERRORS(
38
38
  2,
39
39
  "cancel",
@@ -13,9 +13,15 @@
13
13
 
14
14
  namespace Microsoft::ReactNativeSpecs {
15
15
 
16
+ REACT_STRUCT(WebSocketModuleSpec_connect_options)
17
+ struct WebSocketModuleSpec_connect_options {
18
+ REACT_FIELD(headers)
19
+ std::optional<React::JSValue> headers;
20
+ };
21
+
16
22
  struct WebSocketModuleSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
17
23
  static constexpr auto methods = std::tuple{
18
- Method<void(std::string, React::JSValueArray, React::JSValueObject, double) noexcept>{0, L"connect"},
24
+ Method<void(std::string, std::optional<std::vector<std::string>>, WebSocketModuleSpec_connect_options, double) noexcept>{0, L"connect"},
19
25
  Method<void(std::string, double) noexcept>{1, L"send"},
20
26
  Method<void(std::string, double) noexcept>{2, L"sendBinary"},
21
27
  Method<void(double) noexcept>{3, L"ping"},
@@ -31,8 +37,8 @@ struct WebSocketModuleSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
31
37
  REACT_SHOW_METHOD_SPEC_ERRORS(
32
38
  0,
33
39
  "connect",
34
- " REACT_METHOD(connect) void connect(std::string url, React::JSValueArray && protocols, React::JSValueObject && options, double socketID) noexcept { /* implementation */ }}\n"
35
- " REACT_METHOD(connect) static void connect(std::string url, React::JSValueArray && protocols, React::JSValueObject && options, double socketID) noexcept { /* implementation */ }}\n");
40
+ " REACT_METHOD(connect) void connect(std::string url, std::optional<std::vector<std::string>> protocols, WebSocketModuleSpec_connect_options && options, double socketID) noexcept { /* implementation */ }}\n"
41
+ " REACT_METHOD(connect) static void connect(std::string url, std::optional<std::vector<std::string>> protocols, WebSocketModuleSpec_connect_options && options, double socketID) noexcept { /* implementation */ }}\n");
36
42
  REACT_SHOW_METHOD_SPEC_ERRORS(
37
43
  1,
38
44
  "send",
package/index.js CHANGED
@@ -55,7 +55,6 @@ import typeof AppState from './Libraries/AppState/AppState';
55
55
  import typeof AsyncStorage from './Libraries/Storage/AsyncStorage';
56
56
  import typeof BackHandler from './Libraries/Utilities/BackHandler';
57
57
  import typeof Clipboard from './Libraries/Components/Clipboard/Clipboard';
58
- import typeof DatePickerAndroid from './Libraries/Components/DatePickerAndroid/DatePickerAndroid';
59
58
  import typeof DeviceInfo from './Libraries/Utilities/DeviceInfo';
60
59
  import typeof DevSettings from './Libraries/Utilities/DevSettings';
61
60
  import typeof Dimensions from './Libraries/Utilities/Dimensions';
@@ -297,15 +296,6 @@ module.exports = {
297
296
  );
298
297
  return require('./Libraries/Components/Clipboard/Clipboard');
299
298
  },
300
- get DatePickerAndroid(): DatePickerAndroid {
301
- warnOnce(
302
- 'DatePickerAndroid-merged',
303
- 'DatePickerAndroid has been merged with DatePickerIOS and will be removed in a future release. ' +
304
- "It can now be installed and imported from '@react-native-community/datetimepicker' instead of 'react-native'. " +
305
- 'See https://github.com/react-native-datetimepicker/datetimepicker',
306
- );
307
- return require('./Libraries/Components/DatePickerAndroid/DatePickerAndroid');
308
- },
309
299
  get DeviceInfo(): DeviceInfo {
310
300
  return require('./Libraries/Utilities/DeviceInfo');
311
301
  },
@@ -717,4 +707,19 @@ if (__DEV__) {
717
707
  );
718
708
  },
719
709
  });
710
+ /* $FlowFixMe[prop-missing] This is intentional: Flow will error when
711
+ * attempting to access DatePickerAndroid. */
712
+ /* $FlowFixMe[invalid-export] This is intentional: Flow will error when
713
+ * attempting to access DatePickerAndroid. */
714
+ Object.defineProperty(module.exports, 'DatePickerAndroid', {
715
+ configurable: true,
716
+ get() {
717
+ invariant(
718
+ false,
719
+ 'DatePickerAndroid has been removed from React Native. ' +
720
+ "It can now be installed and imported from '@react-native-community/datetimepicker' instead of 'react-native'. " +
721
+ 'See https://github.com/react-native-datetimepicker/datetimepicker',
722
+ );
723
+ },
724
+ });
720
725
  }
package/index.windows.js CHANGED
@@ -55,7 +55,6 @@ import typeof AppState from './Libraries/AppState/AppState';
55
55
  import typeof AsyncStorage from './Libraries/Storage/AsyncStorage';
56
56
  import typeof BackHandler from './Libraries/Utilities/BackHandler';
57
57
  import typeof Clipboard from './Libraries/Components/Clipboard/Clipboard';
58
- import typeof DatePickerAndroid from './Libraries/Components/DatePickerAndroid/DatePickerAndroid';
59
58
  import typeof DeviceInfo from './Libraries/Utilities/DeviceInfo';
60
59
  import typeof DevSettings from './Libraries/Utilities/DevSettings';
61
60
  import typeof Dimensions from './Libraries/Utilities/Dimensions';
@@ -297,15 +296,6 @@ module.exports = {
297
296
  );
298
297
  return require('./Libraries/Components/Clipboard/Clipboard');
299
298
  },
300
- get DatePickerAndroid(): DatePickerAndroid {
301
- warnOnce(
302
- 'DatePickerAndroid-merged',
303
- 'DatePickerAndroid has been merged with DatePickerIOS and will be removed in a future release. ' +
304
- "It can now be installed and imported from '@react-native-community/datetimepicker' instead of 'react-native'. " +
305
- 'See https://github.com/react-native-datetimepicker/datetimepicker',
306
- );
307
- return require('./Libraries/Components/DatePickerAndroid/DatePickerAndroid');
308
- },
309
299
  get DeviceInfo(): DeviceInfo {
310
300
  return require('./Libraries/Utilities/DeviceInfo');
311
301
  },
@@ -775,4 +765,19 @@ if (__DEV__) {
775
765
  );
776
766
  },
777
767
  });
768
+ /* $FlowFixMe[prop-missing] This is intentional: Flow will error when
769
+ * attempting to access DatePickerAndroid. */
770
+ /* $FlowFixMe[invalid-export] This is intentional: Flow will error when
771
+ * attempting to access DatePickerAndroid. */
772
+ Object.defineProperty(module.exports, 'DatePickerAndroid', {
773
+ configurable: true,
774
+ get() {
775
+ invariant(
776
+ false,
777
+ 'DatePickerAndroid has been removed from React Native. ' +
778
+ "It can now be installed and imported from '@react-native-community/datetimepicker' instead of 'react-native'. " +
779
+ 'See https://github.com/react-native-datetimepicker/datetimepicker',
780
+ );
781
+ },
782
+ });
778
783
  }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @format
8
+ * @flow strict-local
9
+ */
10
+
11
+ /* eslint-env jest */
12
+
13
+ 'use strict';
14
+
15
+ const React = require('react');
16
+ const Modal = require('../Libraries/Modal/Modal');
17
+
18
+ function mockModal(BaseComponent: $FlowFixMe) {
19
+ class ModalMock extends BaseComponent {
20
+ render(): React.Element<typeof Modal> {
21
+ return (
22
+ <BaseComponent {...this.props}>
23
+ {this.props.visible !== true ? null : this.props.children}
24
+ </BaseComponent>
25
+ );
26
+ }
27
+ }
28
+ return ModalMock;
29
+ }
30
+
31
+ module.exports = (mockModal: $FlowFixMe);
package/jest/setup.js CHANGED
@@ -110,9 +110,11 @@ jest
110
110
  getNativeRef: jest.fn(),
111
111
  }),
112
112
  )
113
- .mock('../Libraries/Modal/Modal', () =>
114
- mockComponent('../Libraries/Modal/Modal'),
115
- )
113
+ .mock('../Libraries/Modal/Modal', () => {
114
+ const baseComponent = mockComponent('../Libraries/Modal/Modal');
115
+ const mockModal = jest.requireActual('./mockModal');
116
+ return mockModal(baseComponent);
117
+ })
116
118
  .mock('../Libraries/Components/View/View', () =>
117
119
  mockComponent('../Libraries/Components/View/View', MockNativeMethods),
118
120
  )
package/just-task.js CHANGED
@@ -27,7 +27,8 @@ option('clean');
27
27
 
28
28
  task('codegen', () => {
29
29
  execSync(
30
- 'npx --no-install @react-native-windows/codegen --files Libraries/**/*[Nn]ative*.js --namespace Microsoft::ReactNativeSpecs --libraryName rnwcore',
30
+ 'react-native-windows-codegen --files Libraries/**/*[Nn]ative*.js --namespace Microsoft::ReactNativeSpecs --libraryName rnwcore',
31
+ {env: process.env},
31
32
  );
32
33
  });
33
34
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-windows",
3
- "version": "0.66.3",
3
+ "version": "0.67.0-preview.3",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,10 +26,10 @@
26
26
  "@react-native-community/cli": "^6.0.0",
27
27
  "@react-native-community/cli-platform-android": "^6.0.0",
28
28
  "@react-native-community/cli-platform-ios": "^6.0.0",
29
- "@react-native-windows/cli": "0.66.0",
30
- "@react-native-windows/virtualized-list": "0.66.0",
29
+ "@react-native-windows/cli": "0.67.0-preview.2",
30
+ "@react-native-windows/virtualized-list": "0.67.0-preview.1",
31
31
  "@react-native/assets": "1.0.0",
32
- "@react-native/normalize-color": "1.0.0",
32
+ "@react-native/normalize-color": "2.0.0",
33
33
  "@react-native/polyfills": "2.0.0",
34
34
  "abort-controller": "^3.0.0",
35
35
  "anser": "^1.4.9",
@@ -38,7 +38,6 @@
38
38
  "hermes-engine": "~0.9.0",
39
39
  "invariant": "^2.2.4",
40
40
  "jsc-android": "^250230.2.1",
41
- "metro-babel-register": "0.66.2",
42
41
  "metro-react-native-babel-transformer": "0.66.2",
43
42
  "metro-runtime": "0.66.2",
44
43
  "metro-source-map": "0.66.2",
@@ -46,8 +45,8 @@
46
45
  "pretty-format": "^26.5.2",
47
46
  "promise": "^8.0.3",
48
47
  "prop-types": "^15.7.2",
49
- "react-devtools-core": "^4.13.0",
50
- "react-native-codegen": "^0.0.7",
48
+ "react-devtools-core": "4.19.1",
49
+ "react-native-codegen": "^0.0.8",
51
50
  "react-refresh": "^0.4.0",
52
51
  "regenerator-runtime": "^0.13.2",
53
52
  "scheduler": "^0.20.2",
@@ -58,38 +57,38 @@
58
57
  "ws": "^6.1.4"
59
58
  },
60
59
  "devDependencies": {
61
- "@react-native-windows/codegen": "0.66.0",
62
- "@rnw-scripts/eslint-config": "1.1.7",
63
- "@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.0.1",
60
+ "@react-native-windows/codegen": "0.67.0-preview.1",
61
+ "@rnw-scripts/eslint-config": "1.1.8",
62
+ "@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.0.2",
64
63
  "@rnx-kit/jest-preset": "^0.1.0",
65
64
  "@types/node": "^14.14.22",
66
- "@types/react": "16.9.11",
67
- "@types/react-native": "^0.64.4",
65
+ "@types/react": "^17.0.21",
66
+ "@types/react-native": "^0.65.0",
68
67
  "eslint": "7.12.0",
69
68
  "eslint-plugin-prettier": "2.6.2",
70
- "flow-bin": "^0.158.0",
69
+ "flow-bin": "^0.162.0",
71
70
  "jscodeshift": "^0.11.0",
72
71
  "just-scripts": "^1.3.3",
73
72
  "metro-config": "^0.66.0",
74
73
  "prettier": "1.19.1",
75
74
  "react": "17.0.2",
76
- "react-native": "0.66.0",
77
- "react-native-platform-override": "^1.4.17",
75
+ "react-native": "0.67.0-rc.1",
76
+ "react-native-platform-override": "^1.5.1",
78
77
  "react-refresh": "^0.4.0",
79
78
  "react-shallow-renderer": "16.14.1",
80
- "typescript": "^3.8.3"
79
+ "typescript": "^4.4.4"
81
80
  },
82
81
  "peerDependencies": {
83
82
  "react": "17.0.2",
84
- "react-native": "^0.66.0"
83
+ "react-native": "0.67.0-rc.1"
85
84
  },
86
85
  "beachball": {
87
- "defaultNpmTag": "latest",
86
+ "defaultNpmTag": "preview",
88
87
  "gitTags": true,
89
88
  "disallowedChangeTypes": [
90
89
  "major",
91
90
  "minor",
92
- "prerelease"
91
+ "patch"
93
92
  ]
94
93
  },
95
94
  "files": [
@@ -116,6 +115,7 @@
116
115
  "/Shared",
117
116
  "/stubs",
118
117
  "/template",
118
+ "/rntypes",
119
119
  "/.flowconfig",
120
120
  "/Directory.Build.props",
121
121
  "/Directory.Build.targets",
@@ -136,5 +136,8 @@
136
136
  "/typings-index.js.map",
137
137
  "/rn-get-polyfills.js"
138
138
  ],
139
- "promoteRelease": true
139
+ "promoteRelease": true,
140
+ "engines": {
141
+ "node": ">= 12.0.0"
142
+ }
140
143
  }
@@ -0,0 +1,23 @@
1
+ interface SpyData {
2
+ type: number;
3
+ module?: string | undefined;
4
+ method: string | number;
5
+ args: any[];
6
+ }
7
+
8
+ declare class MessageQueue {
9
+ static spy(spyOrToggle: boolean | ((data: SpyData) => void)): void;
10
+
11
+ getCallableModule(name: string): Object;
12
+ registerCallableModule(name: string, module: Object): void;
13
+ registerLazyCallableModule(name: string, factory: () => Object): void;
14
+ }
15
+
16
+ declare module 'react-native/Libraries/BatchedBridge/BatchedBridge' {
17
+ const BatchedBridge: MessageQueue;
18
+ export default BatchedBridge;
19
+ }
20
+
21
+ declare module 'react-native/Libraries/BatchedBridge/MessageQueue' {
22
+ export default MessageQueue;
23
+ }
@@ -0,0 +1,20 @@
1
+ declare module 'react-native/Libraries/Core/Devtools/parseErrorStack' {
2
+ export type StackFrame = {
3
+ file: string;
4
+ methodName: string;
5
+ lineNumber: number;
6
+ column: number | null;
7
+ };
8
+
9
+ export interface ExtendedError extends Error {
10
+ framesToPop?: number | undefined;
11
+ }
12
+
13
+ export default function parseErrorStack(error: ExtendedError): StackFrame[];
14
+ }
15
+
16
+ declare module 'react-native/Libraries/Core/Devtools/symbolicateStackTrace' {
17
+ import { StackFrame } from 'react-native/Libraries/Core/Devtools/parseErrorStack';
18
+
19
+ export default function symbolicateStackTrace(stack: ReadonlyArray<StackFrame>): Promise<StackFrame[]>;
20
+ }
@@ -0,0 +1,9 @@
1
+ // Adds the JSX elements used in the launch screen.
2
+
3
+ declare module 'react-native/Libraries/NewAppScreen' {
4
+ export const Header: any;
5
+ export const LearnMoreLinks: any;
6
+ export const Colors: any;
7
+ export const DebugInstructions: any;
8
+ export const ReloadInstructions: any;
9
+ }