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
@@ -13,15 +13,43 @@
13
13
 
14
14
  namespace Microsoft::ReactNativeSpecs {
15
15
 
16
+ REACT_STRUCT(AccessibilityManagerSpec_setAccessibilityContentSizeMultipliers_JSMultipliers)
17
+ struct AccessibilityManagerSpec_setAccessibilityContentSizeMultipliers_JSMultipliers {
18
+ REACT_FIELD(extraSmall)
19
+ std::optional<double> extraSmall;
20
+ REACT_FIELD(small)
21
+ std::optional<double> small;
22
+ REACT_FIELD(medium)
23
+ std::optional<double> medium;
24
+ REACT_FIELD(large)
25
+ std::optional<double> large;
26
+ REACT_FIELD(extraLarge)
27
+ std::optional<double> extraLarge;
28
+ REACT_FIELD(extraExtraLarge)
29
+ std::optional<double> extraExtraLarge;
30
+ REACT_FIELD(extraExtraExtraLarge)
31
+ std::optional<double> extraExtraExtraLarge;
32
+ REACT_FIELD(accessibilityMedium)
33
+ std::optional<double> accessibilityMedium;
34
+ REACT_FIELD(accessibilityLarge)
35
+ std::optional<double> accessibilityLarge;
36
+ REACT_FIELD(accessibilityExtraLarge)
37
+ std::optional<double> accessibilityExtraLarge;
38
+ REACT_FIELD(accessibilityExtraExtraLarge)
39
+ std::optional<double> accessibilityExtraExtraLarge;
40
+ REACT_FIELD(accessibilityExtraExtraExtraLarge)
41
+ std::optional<double> accessibilityExtraExtraExtraLarge;
42
+ };
43
+
16
44
  struct AccessibilityManagerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
17
45
  static constexpr auto methods = std::tuple{
18
- Method<void(Callback<React::JSValue>, Callback<React::JSValue>) noexcept>{0, L"getCurrentBoldTextState"},
19
- Method<void(Callback<React::JSValue>, Callback<React::JSValue>) noexcept>{1, L"getCurrentGrayscaleState"},
20
- Method<void(Callback<React::JSValue>, Callback<React::JSValue>) noexcept>{2, L"getCurrentInvertColorsState"},
21
- Method<void(Callback<React::JSValue>, Callback<React::JSValue>) noexcept>{3, L"getCurrentReduceMotionState"},
22
- Method<void(Callback<React::JSValue>, Callback<React::JSValue>) noexcept>{4, L"getCurrentReduceTransparencyState"},
23
- Method<void(Callback<React::JSValue>, Callback<React::JSValue>) noexcept>{5, L"getCurrentVoiceOverState"},
24
- Method<void(React::JSValueObject) noexcept>{6, L"setAccessibilityContentSizeMultipliers"},
46
+ Method<void(Callback<bool>, Callback<React::JSValue>) noexcept>{0, L"getCurrentBoldTextState"},
47
+ Method<void(Callback<bool>, Callback<React::JSValue>) noexcept>{1, L"getCurrentGrayscaleState"},
48
+ Method<void(Callback<bool>, Callback<React::JSValue>) noexcept>{2, L"getCurrentInvertColorsState"},
49
+ Method<void(Callback<bool>, Callback<React::JSValue>) noexcept>{3, L"getCurrentReduceMotionState"},
50
+ Method<void(Callback<bool>, Callback<React::JSValue>) noexcept>{4, L"getCurrentReduceTransparencyState"},
51
+ Method<void(Callback<bool>, Callback<React::JSValue>) noexcept>{5, L"getCurrentVoiceOverState"},
52
+ Method<void(AccessibilityManagerSpec_setAccessibilityContentSizeMultipliers_JSMultipliers) noexcept>{6, L"setAccessibilityContentSizeMultipliers"},
25
53
  Method<void(double) noexcept>{7, L"setAccessibilityFocus"},
26
54
  Method<void(std::string) noexcept>{8, L"announceForAccessibility"},
27
55
  };
@@ -33,38 +61,38 @@ struct AccessibilityManagerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec
33
61
  REACT_SHOW_METHOD_SPEC_ERRORS(
34
62
  0,
35
63
  "getCurrentBoldTextState",
36
- " REACT_METHOD(getCurrentBoldTextState) void getCurrentBoldTextState(std::function<void(React::JSValue const &)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n"
37
- " REACT_METHOD(getCurrentBoldTextState) static void getCurrentBoldTextState(std::function<void(React::JSValue const &)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n");
64
+ " REACT_METHOD(getCurrentBoldTextState) void getCurrentBoldTextState(std::function<void(bool)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n"
65
+ " REACT_METHOD(getCurrentBoldTextState) static void getCurrentBoldTextState(std::function<void(bool)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n");
38
66
  REACT_SHOW_METHOD_SPEC_ERRORS(
39
67
  1,
40
68
  "getCurrentGrayscaleState",
41
- " REACT_METHOD(getCurrentGrayscaleState) void getCurrentGrayscaleState(std::function<void(React::JSValue const &)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n"
42
- " REACT_METHOD(getCurrentGrayscaleState) static void getCurrentGrayscaleState(std::function<void(React::JSValue const &)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n");
69
+ " REACT_METHOD(getCurrentGrayscaleState) void getCurrentGrayscaleState(std::function<void(bool)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n"
70
+ " REACT_METHOD(getCurrentGrayscaleState) static void getCurrentGrayscaleState(std::function<void(bool)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n");
43
71
  REACT_SHOW_METHOD_SPEC_ERRORS(
44
72
  2,
45
73
  "getCurrentInvertColorsState",
46
- " REACT_METHOD(getCurrentInvertColorsState) void getCurrentInvertColorsState(std::function<void(React::JSValue const &)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n"
47
- " REACT_METHOD(getCurrentInvertColorsState) static void getCurrentInvertColorsState(std::function<void(React::JSValue const &)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n");
74
+ " REACT_METHOD(getCurrentInvertColorsState) void getCurrentInvertColorsState(std::function<void(bool)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n"
75
+ " REACT_METHOD(getCurrentInvertColorsState) static void getCurrentInvertColorsState(std::function<void(bool)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n");
48
76
  REACT_SHOW_METHOD_SPEC_ERRORS(
49
77
  3,
50
78
  "getCurrentReduceMotionState",
51
- " REACT_METHOD(getCurrentReduceMotionState) void getCurrentReduceMotionState(std::function<void(React::JSValue const &)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n"
52
- " REACT_METHOD(getCurrentReduceMotionState) static void getCurrentReduceMotionState(std::function<void(React::JSValue const &)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n");
79
+ " REACT_METHOD(getCurrentReduceMotionState) void getCurrentReduceMotionState(std::function<void(bool)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n"
80
+ " REACT_METHOD(getCurrentReduceMotionState) static void getCurrentReduceMotionState(std::function<void(bool)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n");
53
81
  REACT_SHOW_METHOD_SPEC_ERRORS(
54
82
  4,
55
83
  "getCurrentReduceTransparencyState",
56
- " REACT_METHOD(getCurrentReduceTransparencyState) void getCurrentReduceTransparencyState(std::function<void(React::JSValue const &)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n"
57
- " REACT_METHOD(getCurrentReduceTransparencyState) static void getCurrentReduceTransparencyState(std::function<void(React::JSValue const &)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n");
84
+ " REACT_METHOD(getCurrentReduceTransparencyState) void getCurrentReduceTransparencyState(std::function<void(bool)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n"
85
+ " REACT_METHOD(getCurrentReduceTransparencyState) static void getCurrentReduceTransparencyState(std::function<void(bool)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n");
58
86
  REACT_SHOW_METHOD_SPEC_ERRORS(
59
87
  5,
60
88
  "getCurrentVoiceOverState",
61
- " REACT_METHOD(getCurrentVoiceOverState) void getCurrentVoiceOverState(std::function<void(React::JSValue const &)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n"
62
- " REACT_METHOD(getCurrentVoiceOverState) static void getCurrentVoiceOverState(std::function<void(React::JSValue const &)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n");
89
+ " REACT_METHOD(getCurrentVoiceOverState) void getCurrentVoiceOverState(std::function<void(bool)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n"
90
+ " REACT_METHOD(getCurrentVoiceOverState) static void getCurrentVoiceOverState(std::function<void(bool)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n");
63
91
  REACT_SHOW_METHOD_SPEC_ERRORS(
64
92
  6,
65
93
  "setAccessibilityContentSizeMultipliers",
66
- " REACT_METHOD(setAccessibilityContentSizeMultipliers) void setAccessibilityContentSizeMultipliers(React::JSValueObject && JSMultipliers) noexcept { /* implementation */ }}\n"
67
- " REACT_METHOD(setAccessibilityContentSizeMultipliers) static void setAccessibilityContentSizeMultipliers(React::JSValueObject && JSMultipliers) noexcept { /* implementation */ }}\n");
94
+ " REACT_METHOD(setAccessibilityContentSizeMultipliers) void setAccessibilityContentSizeMultipliers(AccessibilityManagerSpec_setAccessibilityContentSizeMultipliers_JSMultipliers && JSMultipliers) noexcept { /* implementation */ }}\n"
95
+ " REACT_METHOD(setAccessibilityContentSizeMultipliers) static void setAccessibilityContentSizeMultipliers(AccessibilityManagerSpec_setAccessibilityContentSizeMultipliers_JSMultipliers && JSMultipliers) noexcept { /* implementation */ }}\n");
68
96
  REACT_SHOW_METHOD_SPEC_ERRORS(
69
97
  7,
70
98
  "setAccessibilityFocus",
@@ -13,10 +13,66 @@
13
13
 
14
14
  namespace Microsoft::ReactNativeSpecs {
15
15
 
16
+ REACT_STRUCT(ActionSheetManagerSpec_showActionSheetWithOptions_options)
17
+ struct ActionSheetManagerSpec_showActionSheetWithOptions_options {
18
+ REACT_FIELD(title)
19
+ std::optional<std::string> title;
20
+ REACT_FIELD(message)
21
+ std::optional<std::string> message;
22
+ REACT_FIELD(options)
23
+ std::optional<std::vector<std::string>> options;
24
+ REACT_FIELD(destructiveButtonIndices)
25
+ std::optional<std::vector<double>> destructiveButtonIndices;
26
+ REACT_FIELD(cancelButtonIndex)
27
+ std::optional<double> cancelButtonIndex;
28
+ REACT_FIELD(anchor)
29
+ std::optional<double> anchor;
30
+ REACT_FIELD(tintColor)
31
+ std::optional<double> tintColor;
32
+ REACT_FIELD(cancelButtonTintColor)
33
+ std::optional<double> cancelButtonTintColor;
34
+ REACT_FIELD(userInterfaceStyle)
35
+ std::optional<std::string> userInterfaceStyle;
36
+ REACT_FIELD(disabledButtonIndices)
37
+ std::optional<std::vector<double>> disabledButtonIndices;
38
+ };
39
+
40
+ REACT_STRUCT(ActionSheetManagerSpec_showShareActionSheetWithOptions_options)
41
+ struct ActionSheetManagerSpec_showShareActionSheetWithOptions_options {
42
+ REACT_FIELD(message)
43
+ std::optional<std::string> message;
44
+ REACT_FIELD(url)
45
+ std::optional<std::string> url;
46
+ REACT_FIELD(subject)
47
+ std::optional<std::string> subject;
48
+ REACT_FIELD(anchor)
49
+ std::optional<double> anchor;
50
+ REACT_FIELD(tintColor)
51
+ std::optional<double> tintColor;
52
+ REACT_FIELD(cancelButtonTintColor)
53
+ std::optional<double> cancelButtonTintColor;
54
+ REACT_FIELD(excludedActivityTypes)
55
+ std::optional<std::vector<std::string>> excludedActivityTypes;
56
+ REACT_FIELD(userInterfaceStyle)
57
+ std::optional<std::string> userInterfaceStyle;
58
+ };
59
+
60
+ REACT_STRUCT(ActionSheetManagerSpec_showShareActionSheetWithOptions_failureCallback_error)
61
+ struct ActionSheetManagerSpec_showShareActionSheetWithOptions_failureCallback_error {
62
+ REACT_FIELD(domain)
63
+ std::string domain;
64
+ REACT_FIELD(code)
65
+ std::string code;
66
+ REACT_FIELD(userInfo)
67
+ std::optional<React::JSValue> userInfo;
68
+ REACT_FIELD(message)
69
+ std::string message;
70
+ };
71
+
16
72
  struct ActionSheetManagerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
17
73
  static constexpr auto methods = std::tuple{
18
- Method<void(React::JSValueObject, Callback<React::JSValue>) noexcept>{0, L"showActionSheetWithOptions"},
19
- Method<void(React::JSValueObject, Callback<React::JSValue>, Callback<React::JSValue>) noexcept>{1, L"showShareActionSheetWithOptions"},
74
+ Method<void(ActionSheetManagerSpec_showActionSheetWithOptions_options, Callback<double>) noexcept>{0, L"showActionSheetWithOptions"},
75
+ Method<void(ActionSheetManagerSpec_showShareActionSheetWithOptions_options, Callback<ActionSheetManagerSpec_showShareActionSheetWithOptions_failureCallback_error>, Callback<bool, std::optional<std::string>>) noexcept>{1, L"showShareActionSheetWithOptions"},
20
76
  };
21
77
 
22
78
  template <class TModule>
@@ -26,13 +82,13 @@ struct ActionSheetManagerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
26
82
  REACT_SHOW_METHOD_SPEC_ERRORS(
27
83
  0,
28
84
  "showActionSheetWithOptions",
29
- " REACT_METHOD(showActionSheetWithOptions) void showActionSheetWithOptions(React::JSValueObject && options, std::function<void(React::JSValue const &)> const & callback) noexcept { /* implementation */ }}\n"
30
- " REACT_METHOD(showActionSheetWithOptions) static void showActionSheetWithOptions(React::JSValueObject && options, std::function<void(React::JSValue const &)> const & callback) noexcept { /* implementation */ }}\n");
85
+ " REACT_METHOD(showActionSheetWithOptions) void showActionSheetWithOptions(ActionSheetManagerSpec_showActionSheetWithOptions_options && options, std::function<void(double)> const & callback) noexcept { /* implementation */ }}\n"
86
+ " REACT_METHOD(showActionSheetWithOptions) static void showActionSheetWithOptions(ActionSheetManagerSpec_showActionSheetWithOptions_options && options, std::function<void(double)> const & callback) noexcept { /* implementation */ }}\n");
31
87
  REACT_SHOW_METHOD_SPEC_ERRORS(
32
88
  1,
33
89
  "showShareActionSheetWithOptions",
34
- " REACT_METHOD(showShareActionSheetWithOptions) void showShareActionSheetWithOptions(React::JSValueObject && options, std::function<void(React::JSValue const &)> const & failureCallback, std::function<void(React::JSValue const &)> const & successCallback) noexcept { /* implementation */ }}\n"
35
- " REACT_METHOD(showShareActionSheetWithOptions) static void showShareActionSheetWithOptions(React::JSValueObject && options, std::function<void(React::JSValue const &)> const & failureCallback, std::function<void(React::JSValue const &)> const & successCallback) noexcept { /* implementation */ }}\n");
90
+ " REACT_METHOD(showShareActionSheetWithOptions) void showShareActionSheetWithOptions(ActionSheetManagerSpec_showShareActionSheetWithOptions_options && options, std::function<void(ActionSheetManagerSpec_showShareActionSheetWithOptions_failureCallback_error const &)> const & failureCallback, std::function<void(bool, std::optional<std::string>)> const & successCallback) noexcept { /* implementation */ }}\n"
91
+ " REACT_METHOD(showShareActionSheetWithOptions) static void showShareActionSheetWithOptions(ActionSheetManagerSpec_showShareActionSheetWithOptions_options && options, std::function<void(ActionSheetManagerSpec_showShareActionSheetWithOptions_failureCallback_error const &)> const & failureCallback, std::function<void(bool, std::optional<std::string>)> const & successCallback) noexcept { /* implementation */ }}\n");
36
92
  }
37
93
  };
38
94
 
@@ -20,7 +20,7 @@ struct AlertManagerSpec_Args {
20
20
  REACT_FIELD(message)
21
21
  std::optional<std::string> message;
22
22
  REACT_FIELD(buttons)
23
- std::optional<React::JSValueArray> buttons;
23
+ std::optional<std::vector<React::JSValue>> buttons;
24
24
  REACT_FIELD(type)
25
25
  std::optional<std::string> type;
26
26
  REACT_FIELD(defaultValue)
@@ -35,7 +35,7 @@ struct AlertManagerSpec_Args {
35
35
 
36
36
  struct AlertManagerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
37
37
  static constexpr auto methods = std::tuple{
38
- Method<void(AlertManagerSpec_Args, Callback<React::JSValue>) noexcept>{0, L"alertWithArgs"},
38
+ Method<void(AlertManagerSpec_Args, Callback<double, std::string>) noexcept>{0, L"alertWithArgs"},
39
39
  };
40
40
 
41
41
  template <class TModule>
@@ -45,8 +45,8 @@ struct AlertManagerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
45
45
  REACT_SHOW_METHOD_SPEC_ERRORS(
46
46
  0,
47
47
  "alertWithArgs",
48
- " REACT_METHOD(alertWithArgs) void alertWithArgs(AlertManagerSpec_Args && args, std::function<void(React::JSValue const &)> const & callback) noexcept { /* implementation */ }}\n"
49
- " REACT_METHOD(alertWithArgs) static void alertWithArgs(AlertManagerSpec_Args && args, std::function<void(React::JSValue const &)> const & callback) noexcept { /* implementation */ }}\n");
48
+ " REACT_METHOD(alertWithArgs) void alertWithArgs(AlertManagerSpec_Args && args, std::function<void(double, std::string)> const & callback) noexcept { /* implementation */ }}\n"
49
+ " REACT_METHOD(alertWithArgs) static void alertWithArgs(AlertManagerSpec_Args && args, std::function<void(double, std::string)> const & callback) noexcept { /* implementation */ }}\n");
50
50
  }
51
51
  };
52
52
 
@@ -22,7 +22,7 @@ struct AnimatedModuleSpec_EndResult {
22
22
  REACT_STRUCT(AnimatedModuleSpec_EventMapping)
23
23
  struct AnimatedModuleSpec_EventMapping {
24
24
  REACT_FIELD(nativeEventPath)
25
- React::JSValueArray nativeEventPath;
25
+ std::vector<std::string> nativeEventPath;
26
26
  REACT_FIELD(animatedValueTag)
27
27
  std::optional<double> animatedValueTag;
28
28
  };
@@ -31,13 +31,13 @@ struct AnimatedModuleSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
31
31
  static constexpr auto methods = std::tuple{
32
32
  Method<void() noexcept>{0, L"startOperationBatch"},
33
33
  Method<void() noexcept>{1, L"finishOperationBatch"},
34
- Method<void(double, React::JSValueObject) noexcept>{2, L"createAnimatedNode"},
35
- Method<void(double, Callback<React::JSValue>) noexcept>{3, L"getValue"},
34
+ Method<void(double, React::JSValue) noexcept>{2, L"createAnimatedNode"},
35
+ Method<void(double, Callback<double>) noexcept>{3, L"getValue"},
36
36
  Method<void(double) noexcept>{4, L"startListeningToAnimatedNodeValue"},
37
37
  Method<void(double) noexcept>{5, L"stopListeningToAnimatedNodeValue"},
38
38
  Method<void(double, double) noexcept>{6, L"connectAnimatedNodes"},
39
39
  Method<void(double, double) noexcept>{7, L"disconnectAnimatedNodes"},
40
- Method<void(double, double, React::JSValueObject, Callback<React::JSValue>) noexcept>{8, L"startAnimatingNode"},
40
+ Method<void(double, double, React::JSValue, Callback<AnimatedModuleSpec_EndResult>) noexcept>{8, L"startAnimatingNode"},
41
41
  Method<void(double) noexcept>{9, L"stopAnimation"},
42
42
  Method<void(double, double) noexcept>{10, L"setAnimatedNodeValue"},
43
43
  Method<void(double, double) noexcept>{11, L"setAnimatedNodeOffset"},
@@ -70,13 +70,13 @@ struct AnimatedModuleSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
70
70
  REACT_SHOW_METHOD_SPEC_ERRORS(
71
71
  2,
72
72
  "createAnimatedNode",
73
- " REACT_METHOD(createAnimatedNode) void createAnimatedNode(double tag, React::JSValueObject && config) noexcept { /* implementation */ }}\n"
74
- " REACT_METHOD(createAnimatedNode) static void createAnimatedNode(double tag, React::JSValueObject && config) noexcept { /* implementation */ }}\n");
73
+ " REACT_METHOD(createAnimatedNode) void createAnimatedNode(double tag, React::JSValue && config) noexcept { /* implementation */ }}\n"
74
+ " REACT_METHOD(createAnimatedNode) static void createAnimatedNode(double tag, React::JSValue && config) noexcept { /* implementation */ }}\n");
75
75
  REACT_SHOW_METHOD_SPEC_ERRORS(
76
76
  3,
77
77
  "getValue",
78
- " REACT_METHOD(getValue) void getValue(double tag, std::function<void(React::JSValue const &)> const & saveValueCallback) noexcept { /* implementation */ }}\n"
79
- " REACT_METHOD(getValue) static void getValue(double tag, std::function<void(React::JSValue const &)> const & saveValueCallback) noexcept { /* implementation */ }}\n");
78
+ " REACT_METHOD(getValue) void getValue(double tag, std::function<void(double)> const & saveValueCallback) noexcept { /* implementation */ }}\n"
79
+ " REACT_METHOD(getValue) static void getValue(double tag, std::function<void(double)> const & saveValueCallback) noexcept { /* implementation */ }}\n");
80
80
  REACT_SHOW_METHOD_SPEC_ERRORS(
81
81
  4,
82
82
  "startListeningToAnimatedNodeValue",
@@ -100,8 +100,8 @@ struct AnimatedModuleSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
100
100
  REACT_SHOW_METHOD_SPEC_ERRORS(
101
101
  8,
102
102
  "startAnimatingNode",
103
- " REACT_METHOD(startAnimatingNode) void startAnimatingNode(double animationId, double nodeTag, React::JSValueObject && config, std::function<void(React::JSValue const &)> const & endCallback) noexcept { /* implementation */ }}\n"
104
- " REACT_METHOD(startAnimatingNode) static void startAnimatingNode(double animationId, double nodeTag, React::JSValueObject && config, std::function<void(React::JSValue const &)> const & endCallback) noexcept { /* implementation */ }}\n");
103
+ " REACT_METHOD(startAnimatingNode) void startAnimatingNode(double animationId, double nodeTag, React::JSValue && config, std::function<void(AnimatedModuleSpec_EndResult const &)> const & endCallback) noexcept { /* implementation */ }}\n"
104
+ " REACT_METHOD(startAnimatingNode) static void startAnimatingNode(double animationId, double nodeTag, React::JSValue && config, std::function<void(AnimatedModuleSpec_EndResult const &)> const & endCallback) noexcept { /* implementation */ }}\n");
105
105
  REACT_SHOW_METHOD_SPEC_ERRORS(
106
106
  9,
107
107
  "stopAnimation",
@@ -22,7 +22,7 @@ struct AnimatedTurboModuleSpec_EndResult {
22
22
  REACT_STRUCT(AnimatedTurboModuleSpec_EventMapping)
23
23
  struct AnimatedTurboModuleSpec_EventMapping {
24
24
  REACT_FIELD(nativeEventPath)
25
- React::JSValueArray nativeEventPath;
25
+ std::vector<std::string> nativeEventPath;
26
26
  REACT_FIELD(animatedValueTag)
27
27
  std::optional<double> animatedValueTag;
28
28
  };
@@ -31,13 +31,13 @@ struct AnimatedTurboModuleSpec : winrt::Microsoft::ReactNative::TurboModuleSpec
31
31
  static constexpr auto methods = std::tuple{
32
32
  Method<void() noexcept>{0, L"startOperationBatch"},
33
33
  Method<void() noexcept>{1, L"finishOperationBatch"},
34
- Method<void(double, React::JSValueObject) noexcept>{2, L"createAnimatedNode"},
35
- Method<void(double, Callback<React::JSValue>) noexcept>{3, L"getValue"},
34
+ Method<void(double, React::JSValue) noexcept>{2, L"createAnimatedNode"},
35
+ Method<void(double, Callback<double>) noexcept>{3, L"getValue"},
36
36
  Method<void(double) noexcept>{4, L"startListeningToAnimatedNodeValue"},
37
37
  Method<void(double) noexcept>{5, L"stopListeningToAnimatedNodeValue"},
38
38
  Method<void(double, double) noexcept>{6, L"connectAnimatedNodes"},
39
39
  Method<void(double, double) noexcept>{7, L"disconnectAnimatedNodes"},
40
- Method<void(double, double, React::JSValueObject, Callback<React::JSValue>) noexcept>{8, L"startAnimatingNode"},
40
+ Method<void(double, double, React::JSValue, Callback<AnimatedTurboModuleSpec_EndResult>) noexcept>{8, L"startAnimatingNode"},
41
41
  Method<void(double) noexcept>{9, L"stopAnimation"},
42
42
  Method<void(double, double) noexcept>{10, L"setAnimatedNodeValue"},
43
43
  Method<void(double, double) noexcept>{11, L"setAnimatedNodeOffset"},
@@ -70,13 +70,13 @@ struct AnimatedTurboModuleSpec : winrt::Microsoft::ReactNative::TurboModuleSpec
70
70
  REACT_SHOW_METHOD_SPEC_ERRORS(
71
71
  2,
72
72
  "createAnimatedNode",
73
- " REACT_METHOD(createAnimatedNode) void createAnimatedNode(double tag, React::JSValueObject && config) noexcept { /* implementation */ }}\n"
74
- " REACT_METHOD(createAnimatedNode) static void createAnimatedNode(double tag, React::JSValueObject && config) noexcept { /* implementation */ }}\n");
73
+ " REACT_METHOD(createAnimatedNode) void createAnimatedNode(double tag, React::JSValue && config) noexcept { /* implementation */ }}\n"
74
+ " REACT_METHOD(createAnimatedNode) static void createAnimatedNode(double tag, React::JSValue && config) noexcept { /* implementation */ }}\n");
75
75
  REACT_SHOW_METHOD_SPEC_ERRORS(
76
76
  3,
77
77
  "getValue",
78
- " REACT_METHOD(getValue) void getValue(double tag, std::function<void(React::JSValue const &)> const & saveValueCallback) noexcept { /* implementation */ }}\n"
79
- " REACT_METHOD(getValue) static void getValue(double tag, std::function<void(React::JSValue const &)> const & saveValueCallback) noexcept { /* implementation */ }}\n");
78
+ " REACT_METHOD(getValue) void getValue(double tag, std::function<void(double)> const & saveValueCallback) noexcept { /* implementation */ }}\n"
79
+ " REACT_METHOD(getValue) static void getValue(double tag, std::function<void(double)> const & saveValueCallback) noexcept { /* implementation */ }}\n");
80
80
  REACT_SHOW_METHOD_SPEC_ERRORS(
81
81
  4,
82
82
  "startListeningToAnimatedNodeValue",
@@ -100,8 +100,8 @@ struct AnimatedTurboModuleSpec : winrt::Microsoft::ReactNative::TurboModuleSpec
100
100
  REACT_SHOW_METHOD_SPEC_ERRORS(
101
101
  8,
102
102
  "startAnimatingNode",
103
- " REACT_METHOD(startAnimatingNode) void startAnimatingNode(double animationId, double nodeTag, React::JSValueObject && config, std::function<void(React::JSValue const &)> const & endCallback) noexcept { /* implementation */ }}\n"
104
- " REACT_METHOD(startAnimatingNode) static void startAnimatingNode(double animationId, double nodeTag, React::JSValueObject && config, std::function<void(React::JSValue const &)> const & endCallback) noexcept { /* implementation */ }}\n");
103
+ " REACT_METHOD(startAnimatingNode) void startAnimatingNode(double animationId, double nodeTag, React::JSValue && config, std::function<void(AnimatedTurboModuleSpec_EndResult const &)> const & endCallback) noexcept { /* implementation */ }}\n"
104
+ " REACT_METHOD(startAnimatingNode) static void startAnimatingNode(double animationId, double nodeTag, React::JSValue && config, std::function<void(AnimatedTurboModuleSpec_EndResult const &)> const & endCallback) noexcept { /* implementation */ }}\n");
105
105
  REACT_SHOW_METHOD_SPEC_ERRORS(
106
106
  9,
107
107
  "stopAnimation",
@@ -13,22 +13,44 @@
13
13
 
14
14
  namespace Microsoft::ReactNativeSpecs {
15
15
 
16
+ REACT_STRUCT(AppStateSpec_getCurrentAppState_success_appState)
17
+ struct AppStateSpec_getCurrentAppState_success_appState {
18
+ REACT_FIELD(app_state)
19
+ std::string app_state;
20
+ };
21
+
22
+ REACT_STRUCT(AppStateSpec_Constants)
23
+ struct AppStateSpec_Constants {
24
+ REACT_FIELD(initialAppState)
25
+ std::string initialAppState;
26
+ };
27
+
16
28
  struct AppStateSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
29
+ static constexpr auto constants = std::tuple{
30
+ TypedConstant<AppStateSpec_Constants>{0},
31
+ };
17
32
  static constexpr auto methods = std::tuple{
18
- Method<void(Callback<React::JSValue>, Callback<React::JSValue>) noexcept>{0, L"getCurrentAppState"},
33
+ Method<void(Callback<AppStateSpec_getCurrentAppState_success_appState>, Callback<React::JSValue>) noexcept>{0, L"getCurrentAppState"},
19
34
  Method<void(std::string) noexcept>{1, L"addListener"},
20
35
  Method<void(double) noexcept>{2, L"removeListeners"},
21
36
  };
22
37
 
23
38
  template <class TModule>
24
39
  static constexpr void ValidateModule() noexcept {
40
+ constexpr auto constantCheckResults = CheckConstants<TModule, AppStateSpec>();
25
41
  constexpr auto methodCheckResults = CheckMethods<TModule, AppStateSpec>();
26
42
 
43
+ REACT_SHOW_CONSTANT_SPEC_ERRORS(
44
+ 0,
45
+ "AppStateSpec_Constants",
46
+ " REACT_GET_CONSTANTS(GetConstants) AppStateSpec_Constants GetConstants() noexcept {/*implementation*/}\n"
47
+ " REACT_GET_CONSTANTS(GetConstants) static AppStateSpec_Constants GetConstants() noexcept {/*implementation*/}\n");
48
+
27
49
  REACT_SHOW_METHOD_SPEC_ERRORS(
28
50
  0,
29
51
  "getCurrentAppState",
30
- " REACT_METHOD(getCurrentAppState) void getCurrentAppState(std::function<void(React::JSValue const &)> const & success, std::function<void(React::JSValue const &)> const & error) noexcept { /* implementation */ }}\n"
31
- " REACT_METHOD(getCurrentAppState) static void getCurrentAppState(std::function<void(React::JSValue const &)> const & success, std::function<void(React::JSValue const &)> const & error) noexcept { /* implementation */ }}\n");
52
+ " REACT_METHOD(getCurrentAppState) void getCurrentAppState(std::function<void(AppStateSpec_getCurrentAppState_success_appState const &)> const & success, std::function<void(React::JSValue const &)> const & error) noexcept { /* implementation */ }}\n"
53
+ " REACT_METHOD(getCurrentAppState) static void getCurrentAppState(std::function<void(AppStateSpec_getCurrentAppState_success_appState const &)> const & success, std::function<void(React::JSValue const &)> const & error) noexcept { /* implementation */ }}\n");
32
54
  REACT_SHOW_METHOD_SPEC_ERRORS(
33
55
  1,
34
56
  "addListener",
@@ -15,7 +15,7 @@ namespace Microsoft::ReactNativeSpecs {
15
15
 
16
16
  struct AppearanceSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
17
17
  static constexpr auto methods = std::tuple{
18
- SyncMethod<std::string() noexcept>{0, L"getColorScheme"},
18
+ SyncMethod<std::optional<std::string>() noexcept>{0, L"getColorScheme"},
19
19
  Method<void(std::string) noexcept>{1, L"addListener"},
20
20
  Method<void(double) noexcept>{2, L"removeListeners"},
21
21
  };
@@ -27,8 +27,8 @@ struct AppearanceSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
27
27
  REACT_SHOW_METHOD_SPEC_ERRORS(
28
28
  0,
29
29
  "getColorScheme",
30
- " REACT_SYNC_METHOD(getColorScheme) std::string getColorScheme() noexcept { /* implementation */ }}\n"
31
- " REACT_SYNC_METHOD(getColorScheme) static std::string getColorScheme() noexcept { /* implementation */ }}\n");
30
+ " REACT_SYNC_METHOD(getColorScheme) std::optional<std::string> getColorScheme() noexcept { /* implementation */ }}\n"
31
+ " REACT_SYNC_METHOD(getColorScheme) static std::optional<std::string> getColorScheme() noexcept { /* implementation */ }}\n");
32
32
  REACT_SHOW_METHOD_SPEC_ERRORS(
33
33
  1,
34
34
  "addListener",
@@ -13,14 +13,62 @@
13
13
 
14
14
  namespace Microsoft::ReactNativeSpecs {
15
15
 
16
+ REACT_STRUCT(AsyncLocalStorageSpec_multiGet_callback_errors_element)
17
+ struct AsyncLocalStorageSpec_multiGet_callback_errors_element {
18
+ REACT_FIELD(message)
19
+ std::string message;
20
+ REACT_FIELD(key)
21
+ std::optional<std::string> key;
22
+ };
23
+
24
+ REACT_STRUCT(AsyncLocalStorageSpec_multiSet_callback_errors_element)
25
+ struct AsyncLocalStorageSpec_multiSet_callback_errors_element {
26
+ REACT_FIELD(message)
27
+ std::string message;
28
+ REACT_FIELD(key)
29
+ std::optional<std::string> key;
30
+ };
31
+
32
+ REACT_STRUCT(AsyncLocalStorageSpec_multiMerge_callback_errors_element)
33
+ struct AsyncLocalStorageSpec_multiMerge_callback_errors_element {
34
+ REACT_FIELD(message)
35
+ std::string message;
36
+ REACT_FIELD(key)
37
+ std::optional<std::string> key;
38
+ };
39
+
40
+ REACT_STRUCT(AsyncLocalStorageSpec_multiRemove_callback_errors_element)
41
+ struct AsyncLocalStorageSpec_multiRemove_callback_errors_element {
42
+ REACT_FIELD(message)
43
+ std::string message;
44
+ REACT_FIELD(key)
45
+ std::optional<std::string> key;
46
+ };
47
+
48
+ REACT_STRUCT(AsyncLocalStorageSpec_clear_callback_error)
49
+ struct AsyncLocalStorageSpec_clear_callback_error {
50
+ REACT_FIELD(message)
51
+ std::string message;
52
+ REACT_FIELD(key)
53
+ std::optional<std::string> key;
54
+ };
55
+
56
+ REACT_STRUCT(AsyncLocalStorageSpec_getAllKeys_callback_error)
57
+ struct AsyncLocalStorageSpec_getAllKeys_callback_error {
58
+ REACT_FIELD(message)
59
+ std::string message;
60
+ REACT_FIELD(key)
61
+ std::optional<std::string> key;
62
+ };
63
+
16
64
  struct AsyncLocalStorageSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
17
65
  static constexpr auto methods = std::tuple{
18
- Method<void(React::JSValueArray, Callback<React::JSValue>) noexcept>{0, L"multiGet"},
19
- Method<void(React::JSValueArray, Callback<React::JSValue>) noexcept>{1, L"multiSet"},
20
- Method<void(React::JSValueArray, Callback<React::JSValue>) noexcept>{2, L"multiMerge"},
21
- Method<void(React::JSValueArray, Callback<React::JSValue>) noexcept>{3, L"multiRemove"},
22
- Method<void(Callback<React::JSValue>) noexcept>{4, L"clear"},
23
- Method<void(Callback<React::JSValue>) noexcept>{5, L"getAllKeys"},
66
+ Method<void(std::vector<std::string>, Callback<std::optional<std::vector<AsyncLocalStorageSpec_multiGet_callback_errors_element>>, std::optional<std::vector<std::vector<std::string>>>>) noexcept>{0, L"multiGet"},
67
+ Method<void(std::vector<std::vector<std::string>>, Callback<std::optional<std::vector<AsyncLocalStorageSpec_multiSet_callback_errors_element>>>) noexcept>{1, L"multiSet"},
68
+ Method<void(std::vector<std::vector<std::string>>, Callback<std::optional<std::vector<AsyncLocalStorageSpec_multiMerge_callback_errors_element>>>) noexcept>{2, L"multiMerge"},
69
+ Method<void(std::vector<std::string>, Callback<std::optional<std::vector<AsyncLocalStorageSpec_multiRemove_callback_errors_element>>>) noexcept>{3, L"multiRemove"},
70
+ Method<void(Callback<AsyncLocalStorageSpec_clear_callback_error>) noexcept>{4, L"clear"},
71
+ Method<void(Callback<std::optional<AsyncLocalStorageSpec_getAllKeys_callback_error>, std::optional<std::vector<std::string>>>) noexcept>{5, L"getAllKeys"},
24
72
  };
25
73
 
26
74
  template <class TModule>
@@ -30,33 +78,33 @@ struct AsyncLocalStorageSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
30
78
  REACT_SHOW_METHOD_SPEC_ERRORS(
31
79
  0,
32
80
  "multiGet",
33
- " REACT_METHOD(multiGet) void multiGet(React::JSValueArray && keys, std::function<void(React::JSValue const &)> const & callback) noexcept { /* implementation */ }}\n"
34
- " REACT_METHOD(multiGet) static void multiGet(React::JSValueArray && keys, std::function<void(React::JSValue const &)> const & callback) noexcept { /* implementation */ }}\n");
81
+ " REACT_METHOD(multiGet) void multiGet(std::vector<std::string> const & keys, std::function<void(std::optional<std::vector<AsyncLocalStorageSpec_multiGet_callback_errors_element>>, std::optional<std::vector<std::vector<std::string>>>)> const & callback) noexcept { /* implementation */ }}\n"
82
+ " REACT_METHOD(multiGet) static void multiGet(std::vector<std::string> const & keys, std::function<void(std::optional<std::vector<AsyncLocalStorageSpec_multiGet_callback_errors_element>>, std::optional<std::vector<std::vector<std::string>>>)> const & callback) noexcept { /* implementation */ }}\n");
35
83
  REACT_SHOW_METHOD_SPEC_ERRORS(
36
84
  1,
37
85
  "multiSet",
38
- " REACT_METHOD(multiSet) void multiSet(React::JSValueArray && kvPairs, std::function<void(React::JSValue const &)> const & callback) noexcept { /* implementation */ }}\n"
39
- " REACT_METHOD(multiSet) static void multiSet(React::JSValueArray && kvPairs, std::function<void(React::JSValue const &)> const & callback) noexcept { /* implementation */ }}\n");
86
+ " REACT_METHOD(multiSet) void multiSet(std::vector<std::vector<std::string>> const & kvPairs, std::function<void(std::optional<std::vector<AsyncLocalStorageSpec_multiSet_callback_errors_element>>)> const & callback) noexcept { /* implementation */ }}\n"
87
+ " REACT_METHOD(multiSet) static void multiSet(std::vector<std::vector<std::string>> const & kvPairs, std::function<void(std::optional<std::vector<AsyncLocalStorageSpec_multiSet_callback_errors_element>>)> const & callback) noexcept { /* implementation */ }}\n");
40
88
  REACT_SHOW_METHOD_SPEC_ERRORS(
41
89
  2,
42
90
  "multiMerge",
43
- " REACT_METHOD(multiMerge) void multiMerge(React::JSValueArray && kvPairs, std::function<void(React::JSValue const &)> const & callback) noexcept { /* implementation */ }}\n"
44
- " REACT_METHOD(multiMerge) static void multiMerge(React::JSValueArray && kvPairs, std::function<void(React::JSValue const &)> const & callback) noexcept { /* implementation */ }}\n");
91
+ " REACT_METHOD(multiMerge) void multiMerge(std::vector<std::vector<std::string>> const & kvPairs, std::function<void(std::optional<std::vector<AsyncLocalStorageSpec_multiMerge_callback_errors_element>>)> const & callback) noexcept { /* implementation */ }}\n"
92
+ " REACT_METHOD(multiMerge) static void multiMerge(std::vector<std::vector<std::string>> const & kvPairs, std::function<void(std::optional<std::vector<AsyncLocalStorageSpec_multiMerge_callback_errors_element>>)> const & callback) noexcept { /* implementation */ }}\n");
45
93
  REACT_SHOW_METHOD_SPEC_ERRORS(
46
94
  3,
47
95
  "multiRemove",
48
- " REACT_METHOD(multiRemove) void multiRemove(React::JSValueArray && keys, std::function<void(React::JSValue const &)> const & callback) noexcept { /* implementation */ }}\n"
49
- " REACT_METHOD(multiRemove) static void multiRemove(React::JSValueArray && keys, std::function<void(React::JSValue const &)> const & callback) noexcept { /* implementation */ }}\n");
96
+ " REACT_METHOD(multiRemove) void multiRemove(std::vector<std::string> const & keys, std::function<void(std::optional<std::vector<AsyncLocalStorageSpec_multiRemove_callback_errors_element>>)> const & callback) noexcept { /* implementation */ }}\n"
97
+ " REACT_METHOD(multiRemove) static void multiRemove(std::vector<std::string> const & keys, std::function<void(std::optional<std::vector<AsyncLocalStorageSpec_multiRemove_callback_errors_element>>)> const & callback) noexcept { /* implementation */ }}\n");
50
98
  REACT_SHOW_METHOD_SPEC_ERRORS(
51
99
  4,
52
100
  "clear",
53
- " REACT_METHOD(clear) void clear(std::function<void(React::JSValue const &)> const & callback) noexcept { /* implementation */ }}\n"
54
- " REACT_METHOD(clear) static void clear(std::function<void(React::JSValue const &)> const & callback) noexcept { /* implementation */ }}\n");
101
+ " REACT_METHOD(clear) void clear(std::function<void(AsyncLocalStorageSpec_clear_callback_error const &)> const & callback) noexcept { /* implementation */ }}\n"
102
+ " REACT_METHOD(clear) static void clear(std::function<void(AsyncLocalStorageSpec_clear_callback_error const &)> const & callback) noexcept { /* implementation */ }}\n");
55
103
  REACT_SHOW_METHOD_SPEC_ERRORS(
56
104
  5,
57
105
  "getAllKeys",
58
- " REACT_METHOD(getAllKeys) void getAllKeys(std::function<void(React::JSValue const &)> const & callback) noexcept { /* implementation */ }}\n"
59
- " REACT_METHOD(getAllKeys) static void getAllKeys(std::function<void(React::JSValue const &)> const & callback) noexcept { /* implementation */ }}\n");
106
+ " REACT_METHOD(getAllKeys) void getAllKeys(std::function<void(std::optional<AsyncLocalStorageSpec_getAllKeys_callback_error>, std::optional<std::vector<std::string>>)> const & callback) noexcept { /* implementation */ }}\n"
107
+ " REACT_METHOD(getAllKeys) static void getAllKeys(std::function<void(std::optional<AsyncLocalStorageSpec_getAllKeys_callback_error>, std::optional<std::vector<std::string>>)> const & callback) noexcept { /* implementation */ }}\n");
60
108
  }
61
109
  };
62
110