react-native-windows 0.71.30 → 0.71.32

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 (108) hide show
  1. package/Directory.Build.props +5 -0
  2. package/Microsoft.ReactNative/IReactDispatcher.cpp +4 -0
  3. package/Microsoft.ReactNative/IReactDispatcher.h +1 -0
  4. package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj +2 -4
  5. package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.cpp +30 -11
  6. package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.h +0 -2
  7. package/Microsoft.ReactNative/Views/DevMenu.cpp +3 -3
  8. package/Microsoft.ReactNative.Cxx/JSI/NodeApiJsiLoader.cpp +16 -0
  9. package/Microsoft.ReactNative.Cxx/Microsoft.ReactNative.Cxx.vcxitems +43 -12
  10. package/Microsoft.ReactNative.Cxx/Microsoft.ReactNative.Cxx.vcxitems.filters +17 -6
  11. package/PropertySheets/External/Microsoft.ReactNative.Uwp.CSharpApp.targets +1 -1
  12. package/PropertySheets/External/Microsoft.ReactNative.Uwp.CppApp.targets +1 -1
  13. package/PropertySheets/External/Microsoft.ReactNative.WinAppSDK.CSharpApp.targets +1 -1
  14. package/PropertySheets/Generated/PackageVersion.g.props +3 -3
  15. package/PropertySheets/JSEngine.props +4 -4
  16. package/PropertySheets/React.Cpp.props +1 -0
  17. package/PropertySheets/Warnings.props +6 -0
  18. package/ReactCommon/ReactCommon.vcxproj +53 -1
  19. package/ReactCommon/cgmanifest.json +15 -0
  20. package/Scripts/Tfs/Layout-MSRN-Headers.ps1 +36 -0
  21. package/Shared/DevSupportManager.cpp +2 -9
  22. package/Shared/DevSupportManager.h +2 -6
  23. package/Shared/HermesRuntimeHolder.cpp +344 -84
  24. package/Shared/HermesRuntimeHolder.h +32 -21
  25. package/Shared/HermesSamplingProfiler.cpp +66 -14
  26. package/Shared/HermesSamplingProfiler.h +5 -3
  27. package/Shared/InspectorPackagerConnection.cpp +62 -108
  28. package/Shared/InspectorPackagerConnection.h +9 -21
  29. package/Shared/JSI/RuntimeHolder.h +2 -2
  30. package/Shared/JSI/ScriptStore.h +18 -20
  31. package/Shared/JSI/V8RuntimeHolder.cpp +260 -0
  32. package/Shared/JSI/V8RuntimeHolder.h +37 -0
  33. package/Shared/OInstance.cpp +16 -32
  34. package/Shared/SafeLoadLibrary.cpp +77 -0
  35. package/Shared/SafeLoadLibrary.h +19 -0
  36. package/Shared/Shared.vcxitems +19 -8
  37. package/Shared/Shared.vcxitems.filters +23 -30
  38. package/codegen/NativeAccessibilityInfoSpec.g.h +2 -1
  39. package/codegen/NativeAccessibilityManagerSpec.g.h +27 -16
  40. package/codegen/NativeActionSheetManagerSpec.g.h +42 -26
  41. package/codegen/NativeAlertManagerSpec.g.h +18 -12
  42. package/codegen/NativeAnimatedModuleSpec.g.h +17 -6
  43. package/codegen/NativeAnimatedTurboModuleSpec.g.h +17 -6
  44. package/codegen/NativeAnimationsDebugModuleSpec.g.h +2 -1
  45. package/codegen/NativeAppStateSpec.g.h +16 -5
  46. package/codegen/NativeAppThemeSpec.g.h +24 -13
  47. package/codegen/NativeAppearanceSpec.g.h +2 -1
  48. package/codegen/NativeBlobModuleSpec.g.h +10 -4
  49. package/codegen/NativeBugReportingSpec.g.h +2 -1
  50. package/codegen/NativeClipboardSpec.g.h +2 -1
  51. package/codegen/NativeDatePickerAndroidSpec.g.h +2 -1
  52. package/codegen/NativeDevLoadingViewSpec.g.h +2 -1
  53. package/codegen/NativeDevMenuSpec.g.h +2 -1
  54. package/codegen/NativeDevSettingsSpec.g.h +2 -1
  55. package/codegen/NativeDevSplitBundleLoaderSpec.g.h +2 -1
  56. package/codegen/NativeDeviceEventManagerSpec.g.h +2 -1
  57. package/codegen/NativeDeviceInfoSpec.g.h +41 -20
  58. package/codegen/NativeDialogManagerAndroidSpec.g.h +26 -15
  59. package/codegen/NativeDialogManagerWindowsSpec.g.h +27 -16
  60. package/codegen/NativeExceptionsManagerSpec.g.h +27 -16
  61. package/codegen/NativeFileReaderModuleSpec.g.h +2 -1
  62. package/codegen/NativeFrameRateLoggerSpec.g.h +10 -4
  63. package/codegen/NativeHeadlessJsTaskSupportSpec.g.h +2 -1
  64. package/codegen/NativeI18nManagerSpec.g.h +11 -5
  65. package/codegen/NativeImageEditorSpec.g.h +37 -16
  66. package/codegen/NativeImageLoaderAndroidSpec.g.h +2 -1
  67. package/codegen/NativeImageLoaderIOSSpec.g.h +2 -1
  68. package/codegen/NativeImageStoreAndroidSpec.g.h +2 -1
  69. package/codegen/NativeImageStoreIOSSpec.g.h +16 -5
  70. package/codegen/NativeIntentAndroidSpec.g.h +2 -1
  71. package/codegen/NativeJSCHeapCaptureSpec.g.h +2 -1
  72. package/codegen/NativeJSCSamplingProfilerSpec.g.h +2 -1
  73. package/codegen/NativeKeyboardObserverSpec.g.h +2 -1
  74. package/codegen/NativeLinkingManagerSpec.g.h +2 -1
  75. package/codegen/NativeLogBoxSpec.g.h +2 -1
  76. package/codegen/NativeModalManagerSpec.g.h +2 -1
  77. package/codegen/NativeNetworkingAndroidSpec.g.h +2 -1
  78. package/codegen/NativeNetworkingIOSSpec.g.h +16 -10
  79. package/codegen/NativePerformanceObserverSpec.g.h +15 -9
  80. package/codegen/NativePermissionsAndroidSpec.g.h +2 -1
  81. package/codegen/NativePlatformConstantsAndroidSpec.g.h +29 -18
  82. package/codegen/NativePlatformConstantsIOSSpec.g.h +24 -13
  83. package/codegen/NativePlatformConstantsWinSpec.g.h +21 -10
  84. package/codegen/NativePushNotificationManagerIOSSpec.g.h +36 -20
  85. package/codegen/NativeRedBoxSpec.g.h +2 -1
  86. package/codegen/NativeSampleTurboModuleSpec.g.h +11 -5
  87. package/codegen/NativeSegmentFetcherSpec.g.h +2 -1
  88. package/codegen/NativeSettingsManagerSpec.g.h +9 -3
  89. package/codegen/NativeShareModuleSpec.g.h +10 -4
  90. package/codegen/NativeSoundManagerSpec.g.h +2 -1
  91. package/codegen/NativeSourceCodeSpec.g.h +9 -3
  92. package/codegen/NativeStatusBarManagerAndroidSpec.g.h +10 -4
  93. package/codegen/NativeStatusBarManagerIOSSpec.g.h +17 -6
  94. package/codegen/NativeTimingSpec.g.h +2 -1
  95. package/codegen/NativeToastAndroidSpec.g.h +13 -7
  96. package/codegen/NativeUIManagerSpec.g.h +2 -1
  97. package/codegen/NativeVibrationSpec.g.h +2 -1
  98. package/codegen/NativeWebSocketModuleSpec.g.h +9 -3
  99. package/package.json +3 -3
  100. package/template/cs-app-WinAppSDK/proj/ExperimentalFeatures.props +1 -1
  101. package/Microsoft.ReactNative.Cxx/JSI/NodeApiJsiRuntime.cpp +0 -2103
  102. package/Microsoft.ReactNative.Cxx/JSI/NodeApiJsiRuntime.h +0 -73
  103. package/Shared/HermesShim.cpp +0 -118
  104. package/Shared/HermesShim.h +0 -21
  105. package/Shared/JSI/NapiJsiV8RuntimeHolder.cpp +0 -209
  106. package/Shared/JSI/NapiJsiV8RuntimeHolder.h +0 -44
  107. package/Shared/V8JSIRuntimeHolder.cpp +0 -70
  108. package/Shared/V8JSIRuntimeHolder.h +0 -53
@@ -8,11 +8,12 @@
8
8
  */
9
9
  #pragma once
10
10
 
11
- #include "NativeModules.h"
11
+ #include <NativeModules.h>
12
12
  #include <tuple>
13
13
 
14
14
  namespace Microsoft::ReactNativeSpecs {
15
15
 
16
+
16
17
  struct TimingSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
17
18
  static constexpr auto methods = std::tuple{
18
19
  Method<void(double, double, double, bool) noexcept>{0, L"createTimer"},
@@ -8,25 +8,31 @@
8
8
  */
9
9
  #pragma once
10
10
 
11
- #include "NativeModules.h"
11
+ #include <NativeModules.h>
12
12
  #include <tuple>
13
13
 
14
14
  namespace Microsoft::ReactNativeSpecs {
15
15
 
16
- REACT_STRUCT(ToastAndroidSpec_Constants)
17
16
  struct ToastAndroidSpec_Constants {
18
- REACT_FIELD(SHORT)
19
17
  double SHORT;
20
- REACT_FIELD(LONG)
21
18
  double LONG;
22
- REACT_FIELD(TOP)
23
19
  double TOP;
24
- REACT_FIELD(BOTTOM)
25
20
  double BOTTOM;
26
- REACT_FIELD(CENTER)
27
21
  double CENTER;
28
22
  };
29
23
 
24
+
25
+ inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(ToastAndroidSpec_Constants*) noexcept {
26
+ winrt::Microsoft::ReactNative::FieldMap fieldMap {
27
+ {L"SHORT", &ToastAndroidSpec_Constants::SHORT},
28
+ {L"LONG", &ToastAndroidSpec_Constants::LONG},
29
+ {L"TOP", &ToastAndroidSpec_Constants::TOP},
30
+ {L"BOTTOM", &ToastAndroidSpec_Constants::BOTTOM},
31
+ {L"CENTER", &ToastAndroidSpec_Constants::CENTER},
32
+ };
33
+ return fieldMap;
34
+ }
35
+
30
36
  struct ToastAndroidSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
31
37
  static constexpr auto constants = std::tuple{
32
38
  TypedConstant<ToastAndroidSpec_Constants>{0},
@@ -8,11 +8,12 @@
8
8
  */
9
9
  #pragma once
10
10
 
11
- #include "NativeModules.h"
11
+ #include <NativeModules.h>
12
12
  #include <tuple>
13
13
 
14
14
  namespace Microsoft::ReactNativeSpecs {
15
15
 
16
+
16
17
  struct UIManagerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
17
18
  static constexpr auto methods = std::tuple{
18
19
  SyncMethod<::React::JSValue(std::string) noexcept>{0, L"getConstantsForViewManager"},
@@ -8,11 +8,12 @@
8
8
  */
9
9
  #pragma once
10
10
 
11
- #include "NativeModules.h"
11
+ #include <NativeModules.h>
12
12
  #include <tuple>
13
13
 
14
14
  namespace Microsoft::ReactNativeSpecs {
15
15
 
16
+
16
17
  struct VibrationSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
17
18
  static constexpr auto methods = std::tuple{
18
19
  Method<void(double) noexcept>{0, L"vibrate"},
@@ -8,17 +8,23 @@
8
8
  */
9
9
  #pragma once
10
10
 
11
- #include "NativeModules.h"
11
+ #include <NativeModules.h>
12
12
  #include <tuple>
13
13
 
14
14
  namespace Microsoft::ReactNativeSpecs {
15
15
 
16
- REACT_STRUCT(WebSocketModuleSpec_connect_options)
17
16
  struct WebSocketModuleSpec_connect_options {
18
- REACT_FIELD(headers)
19
17
  std::optional<::React::JSValue> headers;
20
18
  };
21
19
 
20
+
21
+ inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(WebSocketModuleSpec_connect_options*) noexcept {
22
+ winrt::Microsoft::ReactNative::FieldMap fieldMap {
23
+ {L"headers", &WebSocketModuleSpec_connect_options::headers},
24
+ };
25
+ return fieldMap;
26
+ }
27
+
22
28
  struct WebSocketModuleSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
23
29
  static constexpr auto methods = std::tuple{
24
30
  Method<void(std::string, std::optional<std::vector<std::string>>, WebSocketModuleSpec_connect_options, double) noexcept>{0, L"connect"},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-windows",
3
- "version": "0.71.30",
3
+ "version": "0.71.32",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,7 +26,7 @@
26
26
  "@react-native-community/cli": "10.2.4",
27
27
  "@react-native-community/cli-platform-android": "10.2.0",
28
28
  "@react-native-community/cli-platform-ios": "10.2.4",
29
- "@react-native-windows/cli": "0.71.14",
29
+ "@react-native-windows/cli": "0.71.16",
30
30
  "@react-native/assets": "1.0.0",
31
31
  "@react-native/normalize-color": "2.1.0",
32
32
  "@react-native/polyfills": "2.0.0",
@@ -58,7 +58,7 @@
58
58
  "ws": "^6.2.2"
59
59
  },
60
60
  "devDependencies": {
61
- "@react-native-windows/codegen": "0.71.6",
61
+ "@react-native-windows/codegen": "0.71.7",
62
62
  "@rnw-scripts/babel-react-native-config": "0.0.0",
63
63
  "@rnw-scripts/eslint-config": "1.1.14",
64
64
  "@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.0",
@@ -12,7 +12,7 @@
12
12
 
13
13
  <!--
14
14
  Compiles Hermes-related code and sets it to the default JS engine.
15
- Requires the "ReactNative.Hermes.Windows" NuGet package.
15
+ Requires the "Microsoft.JavaScript.Hermes" NuGet package.
16
16
 
17
17
  See https://microsoft.github.io/react-native-windows/docs/0.64/hermes
18
18
  -->