react-native-windows 0.75.4 → 0.75.6

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 (73) hide show
  1. package/Microsoft.ReactNative/ComponentView.idl +11 -0
  2. package/Microsoft.ReactNative/Composition.Input.idl +1 -0
  3. package/Microsoft.ReactNative/CompositionSwitcher.idl +3 -0
  4. package/Microsoft.ReactNative/Fabric/ComponentView.cpp +19 -9
  5. package/Microsoft.ReactNative/Fabric/ComponentView.h +8 -6
  6. package/Microsoft.ReactNative/Fabric/Composition/Composition.Input.cpp +4 -0
  7. package/Microsoft.ReactNative/Fabric/Composition/Composition.Input.h +1 -0
  8. package/Microsoft.ReactNative/Fabric/Composition/CompositionContextHelper.cpp +44 -13
  9. package/Microsoft.ReactNative/Fabric/Composition/CompositionDynamicAutomationProvider.cpp +76 -1
  10. package/Microsoft.ReactNative/Fabric/Composition/CompositionDynamicAutomationProvider.h +8 -2
  11. package/Microsoft.ReactNative/Fabric/Composition/CompositionHwndHost.cpp +1 -0
  12. package/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.cpp +35 -8
  13. package/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.h +4 -3
  14. package/Microsoft.ReactNative/Fabric/Composition/DebuggingOverlayComponentView.cpp +8 -6
  15. package/Microsoft.ReactNative/Fabric/Composition/DebuggingOverlayComponentView.h +1 -2
  16. package/Microsoft.ReactNative/Fabric/Composition/FocusManager.cpp +20 -6
  17. package/Microsoft.ReactNative/Fabric/Composition/FocusManager.h +13 -6
  18. package/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewComponentView.cpp +2 -3
  19. package/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewComponentView.h +1 -2
  20. package/Microsoft.ReactNative/Fabric/Composition/ReactNativeIsland.cpp +80 -57
  21. package/Microsoft.ReactNative/Fabric/Composition/ReactNativeIsland.h +15 -4
  22. package/Microsoft.ReactNative/Fabric/Composition/RootComponentView.cpp +37 -8
  23. package/Microsoft.ReactNative/Fabric/Composition/RootComponentView.h +7 -2
  24. package/Microsoft.ReactNative/Fabric/Composition/ScrollViewComponentView.cpp +18 -7
  25. package/Microsoft.ReactNative/Fabric/Composition/ScrollViewComponentView.h +1 -2
  26. package/Microsoft.ReactNative/Fabric/Composition/SwitchComponentView.cpp +6 -6
  27. package/Microsoft.ReactNative/Fabric/Composition/SwitchComponentView.h +1 -2
  28. package/Microsoft.ReactNative/Fabric/Composition/TextDrawing.cpp +1 -2
  29. package/Microsoft.ReactNative/Fabric/Composition/TextDrawing.h +1 -1
  30. package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.cpp +97 -140
  31. package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.h +8 -4
  32. package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputShadowNode.cpp +14 -11
  33. package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputShadowNode.h +4 -4
  34. package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputState.cpp +0 -13
  35. package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputState.h +0 -3
  36. package/Microsoft.ReactNative/Fabric/Composition/Theme.cpp +12 -4
  37. package/Microsoft.ReactNative/Fabric/Composition/TooltipService.cpp +338 -0
  38. package/Microsoft.ReactNative/Fabric/Composition/TooltipService.h +66 -0
  39. package/Microsoft.ReactNative/Fabric/Composition/UiaHelpers.cpp +37 -4
  40. package/Microsoft.ReactNative/Fabric/Composition/UiaHelpers.h +3 -0
  41. package/Microsoft.ReactNative/Fabric/Composition/UnimplementedNativeViewComponentView.cpp +1 -2
  42. package/Microsoft.ReactNative/Fabric/Composition/UnimplementedNativeViewComponentView.h +1 -2
  43. package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.cpp +31 -3
  44. package/Microsoft.ReactNative/Fabric/ReactTaggedView.h +4 -0
  45. package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/view/HostPlatformViewProps.cpp +5 -0
  46. package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/view/HostPlatformViewProps.h +1 -1
  47. package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/view/HostPlatformViewTraitsInitializer.h +1 -1
  48. package/Microsoft.ReactNative/Fabric/platform/react/renderer/textlayoutmanager/TextLayoutManager.cpp +9 -2
  49. package/Microsoft.ReactNative/IReactViewComponentBuilder.idl +8 -1
  50. package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj +1 -1
  51. package/Microsoft.ReactNative/Modules/LogBoxModule.cpp +9 -0
  52. package/Microsoft.ReactNative/Modules/LogBoxModule.h +2 -0
  53. package/Microsoft.ReactNative/Modules/SampleTurboModule.cpp +104 -0
  54. package/Microsoft.ReactNative/Modules/SampleTurboModule.h +78 -0
  55. package/Microsoft.ReactNative/ReactCoreInjection.h +0 -1
  56. package/Microsoft.ReactNative/ReactHost/MsoReactContext.cpp +0 -7
  57. package/Microsoft.ReactNative/ReactHost/MsoReactContext.h +0 -5
  58. package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.cpp +17 -1
  59. package/Microsoft.ReactNative/ReactInstanceSettingsBuilder.cpp +59 -0
  60. package/Microsoft.ReactNative/ReactInstanceSettingsBuilder.h +23 -0
  61. package/Microsoft.ReactNative/ReactNativeAppBuilder.cpp +179 -0
  62. package/Microsoft.ReactNative/ReactNativeAppBuilder.h +35 -0
  63. package/Microsoft.ReactNative/ReactNativeAppBuilder.idl +69 -0
  64. package/Microsoft.ReactNative/ReactNativeIsland.idl +2 -0
  65. package/Microsoft.ReactNative/ReactNativeWin32App.cpp +82 -0
  66. package/Microsoft.ReactNative/ReactNativeWin32App.h +38 -0
  67. package/Microsoft.ReactNative/packages.lock.json +67 -40
  68. package/PropertySheets/Generated/PackageVersion.g.props +3 -3
  69. package/Shared/Shared.vcxitems +36 -0
  70. package/Shared/Shared.vcxitems.filters +3 -0
  71. package/Shared/TurboModuleManager.cpp +0 -3
  72. package/package.json +3 -3
  73. package/templates/cpp-app/windows/MyApp/MyApp.cpp +1 -0
@@ -0,0 +1,35 @@
1
+ #pragma once
2
+ #include "ReactNativeAppBuilder.g.h"
3
+ #include <winrt/Microsoft.UI.Content.h>
4
+
5
+ namespace winrt::Microsoft::ReactNative::implementation {
6
+ struct ReactNativeAppBuilder : ReactNativeAppBuilderT<ReactNativeAppBuilder> {
7
+ ReactNativeAppBuilder();
8
+
9
+ ~ReactNativeAppBuilder();
10
+
11
+ winrt::Microsoft::ReactNative::ReactNativeAppBuilder AddPackageProviders(
12
+ winrt::Windows::Foundation::Collections::IVector<winrt::Microsoft::ReactNative::IReactPackageProvider> const
13
+ &packageProviders);
14
+ winrt::Microsoft::ReactNative::ReactNativeAppBuilder SetReactInstanceSettings(
15
+ winrt::Microsoft::ReactNative::ReactInstanceSettings const &settings);
16
+
17
+ // TODO: Currently, SetCompositor API is not exposed to the developer.
18
+ // Compositor depends on the DispatcherQueue created by DispatcherQueueController on a current thread
19
+ // or dedicated thread. So we also have to make a provision for setting DispatcherQueueController.
20
+ winrt::Microsoft::ReactNative::ReactNativeAppBuilder SetCompositor(
21
+ winrt::Microsoft::UI::Composition::Compositor const &compositor);
22
+ winrt::Microsoft::ReactNative::ReactNativeAppBuilder SetAppWindow(
23
+ winrt::Microsoft::UI::Windowing::AppWindow const &appWindow);
24
+ winrt::Microsoft::ReactNative::ReactNativeAppBuilder SetReactViewOptions(
25
+ winrt::Microsoft::ReactNative::ReactViewOptions const &reactViewOptions);
26
+ winrt::Microsoft::ReactNative::ReactNativeWin32App Build();
27
+
28
+ private:
29
+ winrt::Microsoft::ReactNative::ReactViewOptions m_reactViewOptions{};
30
+ winrt::Microsoft::ReactNative::ReactNativeWin32App m_reactNativeWin32App{nullptr};
31
+ };
32
+ } // namespace winrt::Microsoft::ReactNative::implementation
33
+ namespace winrt::Microsoft::ReactNative::factory_implementation {
34
+ struct ReactNativeAppBuilder : ReactNativeAppBuilderT<ReactNativeAppBuilder, implementation::ReactNativeAppBuilder> {};
35
+ } // namespace winrt::Microsoft::ReactNative::factory_implementation
@@ -0,0 +1,69 @@
1
+
2
+ import "ReactNativeHost.idl";
3
+ import "ReactNativeIsland.idl";
4
+ import "ReactInstanceSettings.idl";
5
+ import "IReactPackageProvider.idl";
6
+
7
+ #include "DocString.h"
8
+
9
+ namespace Microsoft.ReactNative {
10
+
11
+ [experimental]
12
+ DOC_STRING("ReactNativeWin32App is used to manage resources appropriately to be able to host ReactNative component in a contentIsland.")
13
+ runtimeclass ReactNativeWin32App {
14
+ // Properties
15
+ Microsoft.UI.Windowing.AppWindow AppWindow {get;};
16
+
17
+ Microsoft.UI.Composition.Compositor Compositor {get;};
18
+
19
+ Microsoft.UI.Content.DesktopChildSiteBridge DesktopChildSiteBridge {get;};
20
+
21
+ ReactNativeHost ReactNativeHost {get;};
22
+
23
+ ReactNativeIsland ReactNativeIsland {get;};
24
+
25
+ // Methods
26
+ void Start();
27
+ }
28
+
29
+ [experimental]
30
+ DOC_STRING("This is the builder for creating ReactInstanceSettings.")
31
+ runtimeclass ReactInstanceSettingsBuilder
32
+ {
33
+ ReactInstanceSettingsBuilder();
34
+
35
+ // Properties
36
+ ReactInstanceSettings ReactInstanceSettings {get;};
37
+
38
+ // Methods
39
+ ReactInstanceSettingsBuilder UseDirectDebugger(Boolean state);
40
+
41
+ ReactInstanceSettingsBuilder UseDeveloperSupport(Boolean state);
42
+
43
+ ReactInstanceSettingsBuilder BundleRootPath(String path);
44
+
45
+ ReactInstanceSettingsBuilder DebugBundlePath(String path);
46
+
47
+ ReactInstanceSettingsBuilder JavaScriptBundleFile(String file);
48
+
49
+ ReactInstanceSettingsBuilder UseFastRefresh(Boolean state);
50
+ }
51
+
52
+ [experimental]
53
+ DOC_STRING("ReactNativeAppBuilder initializes all the required infrastructure for a Win32 Fabric Application.")
54
+ runtimeclass ReactNativeAppBuilder
55
+ {
56
+ ReactNativeAppBuilder();
57
+
58
+ // Methods
59
+ ReactNativeAppBuilder AddPackageProviders(Windows.Foundation.Collections.IVector<Microsoft.ReactNative.IReactPackageProvider> packageProviders);
60
+
61
+ ReactNativeAppBuilder SetReactInstanceSettings(ReactInstanceSettings settings);
62
+
63
+ ReactNativeAppBuilder SetAppWindow(Microsoft.UI.Windowing.AppWindow appWindow);
64
+
65
+ ReactNativeAppBuilder SetReactViewOptions(Microsoft.ReactNative.ReactViewOptions reactViewOptions);
66
+
67
+ ReactNativeWin32App Build();
68
+ }
69
+ }
@@ -98,6 +98,8 @@ namespace Microsoft.ReactNative
98
98
  DOC_STRING("ScaleFactor for this windows (DPI/96)")
99
99
  Single ScaleFactor {get; set;};
100
100
 
101
+ Single FontSizeMultiplier { get; };
102
+
101
103
  DOC_STRING("Move focus to this @ReactNativeIsland")
102
104
  FocusNavigationResult NavigateFocus(FocusNavigationRequest request);
103
105
 
@@ -0,0 +1,82 @@
1
+ #include "pch.h"
2
+ #include "ReactNativeWin32App.h"
3
+ #include "ReactNativeWin32App.g.cpp"
4
+ #include "ReactNativeHost.h"
5
+ #include "winrt/Microsoft.UI.Composition.h"
6
+ #include "winrt/Microsoft.UI.Content.h"
7
+ #include "winrt/Microsoft.UI.Interop.h"
8
+ #include "winrt/Microsoft.UI.Windowing.h"
9
+
10
+ namespace winrt::Microsoft::ReactNative::implementation {
11
+ ReactNativeWin32App::ReactNativeWin32App() {}
12
+
13
+ ReactNativeWin32App::~ReactNativeWin32App() {
14
+ m_desktopChildSiteBridge = nullptr;
15
+
16
+ // Destroy all Composition objects
17
+ m_compositor.Close();
18
+ m_compositor = nullptr;
19
+ }
20
+
21
+ void ReactNativeWin32App::AppWindow(winrt::Microsoft::UI::Windowing::AppWindow const &appWindow) {
22
+ m_appWindow = appWindow;
23
+ }
24
+
25
+ winrt::Microsoft::UI::Windowing::AppWindow ReactNativeWin32App::AppWindow() {
26
+ return m_appWindow;
27
+ }
28
+
29
+ void ReactNativeWin32App::Compositor(winrt::Microsoft::UI::Composition::Compositor const &compositor) {
30
+ m_compositor = compositor;
31
+ }
32
+
33
+ winrt::Microsoft::UI::Composition::Compositor ReactNativeWin32App::Compositor() {
34
+ return m_compositor;
35
+ }
36
+
37
+ winrt::Microsoft::ReactNative::ReactNativeIsland ReactNativeWin32App::ReactNativeIsland() {
38
+ return m_reactNativeIsland;
39
+ }
40
+
41
+ void ReactNativeWin32App::ReactNativeIsland(winrt::Microsoft::ReactNative::ReactNativeIsland const &reactNativeIsland) {
42
+ m_reactNativeIsland = reactNativeIsland;
43
+ }
44
+
45
+ winrt::Microsoft::UI::Content::DesktopChildSiteBridge ReactNativeWin32App::DesktopChildSiteBridge() {
46
+ return m_desktopChildSiteBridge;
47
+ }
48
+
49
+ void ReactNativeWin32App::DesktopChildSiteBridge(
50
+ winrt::Microsoft::UI::Content::DesktopChildSiteBridge const &desktopChildSiteBridge) {
51
+ m_desktopChildSiteBridge = desktopChildSiteBridge;
52
+ }
53
+
54
+ winrt::Microsoft::ReactNative::ReactNativeHost ReactNativeWin32App::ReactNativeHost() {
55
+ if (m_host == nullptr) {
56
+ m_host = winrt::make<winrt::Microsoft::ReactNative::implementation::ReactNativeHost>();
57
+ }
58
+ return m_host;
59
+ }
60
+
61
+ void ReactNativeWin32App::ReactNativeHost(winrt::Microsoft::ReactNative::ReactNativeHost const &host) {
62
+ m_host = host;
63
+ }
64
+
65
+ void ReactNativeWin32App::DispatchQueueController(
66
+ winrt::Microsoft::UI::Dispatching::DispatcherQueueController const &dispatcherQueueController) {
67
+ m_dispatcherQueueController = dispatcherQueueController;
68
+ }
69
+
70
+ void ReactNativeWin32App::Start() {
71
+ m_desktopChildSiteBridge.Show();
72
+
73
+ // Run the main application event loop
74
+ m_dispatcherQueueController.DispatcherQueue().RunEventLoop();
75
+
76
+ // Rundown the DispatcherQueue. This drains the queue and raises events to let components
77
+ // know the message loop has finished.
78
+ m_dispatcherQueueController.ShutdownQueue();
79
+
80
+ m_desktopChildSiteBridge.Close();
81
+ }
82
+ } // namespace winrt::Microsoft::ReactNative::implementation
@@ -0,0 +1,38 @@
1
+ #pragma once
2
+ #include "ReactNativeWin32App.g.h"
3
+ #include "winrt/Microsoft.UI.Dispatching.h"
4
+
5
+ namespace winrt::Microsoft::ReactNative::implementation {
6
+ struct ReactNativeWin32App : ReactNativeWin32AppT<ReactNativeWin32App> {
7
+ ReactNativeWin32App();
8
+ ~ReactNativeWin32App();
9
+
10
+ void AppWindow(winrt::Microsoft::UI::Windowing::AppWindow const &appWindow);
11
+ winrt::Microsoft::UI::Windowing::AppWindow AppWindow();
12
+
13
+ winrt::Microsoft::UI::Composition::Compositor Compositor();
14
+ void Compositor(winrt::Microsoft::UI::Composition::Compositor const &compositor);
15
+
16
+ winrt::Microsoft::ReactNative::ReactNativeIsland ReactNativeIsland();
17
+ void ReactNativeIsland(winrt::Microsoft::ReactNative::ReactNativeIsland const &reactNativeIsland);
18
+
19
+ winrt::Microsoft::UI::Content::DesktopChildSiteBridge DesktopChildSiteBridge();
20
+ void DesktopChildSiteBridge(winrt::Microsoft::UI::Content::DesktopChildSiteBridge const &desktopChildSiteBridge);
21
+
22
+ void DispatchQueueController(
23
+ winrt::Microsoft::UI::Dispatching::DispatcherQueueController const &dispatcherQueueController);
24
+
25
+ winrt::Microsoft::ReactNative::ReactNativeHost ReactNativeHost();
26
+ void ReactNativeHost(winrt::Microsoft::ReactNative::ReactNativeHost const &host);
27
+
28
+ void Start();
29
+
30
+ private:
31
+ winrt::Microsoft::UI::Windowing::AppWindow m_appWindow{nullptr};
32
+ winrt::Microsoft::UI::Composition::Compositor m_compositor{nullptr};
33
+ winrt::Microsoft::UI::Dispatching::DispatcherQueueController m_dispatcherQueueController{nullptr};
34
+ winrt::Microsoft::ReactNative::ReactNativeHost m_host{nullptr};
35
+ winrt::Microsoft::ReactNative::ReactNativeIsland m_reactNativeIsland{nullptr};
36
+ winrt::Microsoft::UI::Content::DesktopChildSiteBridge m_desktopChildSiteBridge{nullptr};
37
+ };
38
+ } // namespace winrt::Microsoft::ReactNative::implementation
@@ -40,20 +40,19 @@
40
40
  "resolved": "2.0.230706.1",
41
41
  "contentHash": "l0D7oCw/5X+xIKHqZTi62TtV+1qeSz7KVluNFdrJ9hXsst4ghvqQ/Yhura7JqRdZWBXAuDS0G0KwALptdoxweQ=="
42
42
  },
43
- "Microsoft.Build.Tasks.Git": {
44
- "type": "Transitive",
45
- "resolved": "1.1.1",
46
- "contentHash": "AT3HlgTjsqHnWpBHSNeR0KxbLZD7bztlZVj7I8vgeYG9SYqbeFGh0TM/KVtC6fg53nrWHl3VfZFvb5BiQFcY6Q=="
47
- },
48
- "Microsoft.SourceLink.Common": {
49
- "type": "Transitive",
50
- "resolved": "1.1.1",
51
- "contentHash": "WMcGpWKrmJmzrNeuaEb23bEMnbtR/vLmvZtkAP5qWu7vQsY59GqfRJd65sFpBszbd2k/bQ8cs8eWawQKAabkVg=="
43
+ "Microsoft.WindowsAppSDK": {
44
+ "type": "Direct",
45
+ "requested": "[1.5.240227000, )",
46
+ "resolved": "1.5.240227000",
47
+ "contentHash": "6rESOsREi8534J7IDpNfFYPvxQaSleXKt4A7ZYPeQyckNMQ0o1W0jZ420bJbEMz9Cw/S/8IbpPftLLZ9w/GTCQ==",
48
+ "dependencies": {
49
+ "Microsoft.Windows.SDK.BuildTools": "10.0.22621.756"
50
+ }
52
51
  },
53
- "Microsoft.Web.WebView2": {
52
+ "Microsoft.Windows.SDK.BuildTools": {
54
53
  "type": "Transitive",
55
- "resolved": "1.0.1264.42",
56
- "contentHash": "7OBUTkzQ5VI/3gb0ufi5U4zjuCowAJwQg2li0zXXzqkM+S1kmOlivTy1R4jAW+gY5Vyg510M+qMAESCQUjrfgA=="
54
+ "resolved": "10.0.22621.756",
55
+ "contentHash": "7ZL2sFSioYm1Ry067Kw1hg0SCcW5kuVezC2SwjGbcPE61Nn+gTbH86T73G3LcEOVj0S3IZzNuE/29gZvOLS7VA=="
57
56
  },
58
57
  "common": {
59
58
  "type": "Project",
@@ -80,52 +79,80 @@
80
79
  }
81
80
  },
82
81
  "native,Version=v0.0/win10-arm": {
83
- "Microsoft.Web.WebView2": {
84
- "type": "Transitive",
85
- "resolved": "1.0.1264.42",
86
- "contentHash": "7OBUTkzQ5VI/3gb0ufi5U4zjuCowAJwQg2li0zXXzqkM+S1kmOlivTy1R4jAW+gY5Vyg510M+qMAESCQUjrfgA=="
82
+ "Microsoft.WindowsAppSDK": {
83
+ "type": "Direct",
84
+ "requested": "[1.5.240227000, )",
85
+ "resolved": "1.5.240227000",
86
+ "contentHash": "6rESOsREi8534J7IDpNfFYPvxQaSleXKt4A7ZYPeQyckNMQ0o1W0jZ420bJbEMz9Cw/S/8IbpPftLLZ9w/GTCQ==",
87
+ "dependencies": {
88
+ "Microsoft.Windows.SDK.BuildTools": "10.0.22621.756"
89
+ }
87
90
  }
88
91
  },
89
92
  "native,Version=v0.0/win10-arm-aot": {
90
- "Microsoft.Web.WebView2": {
91
- "type": "Transitive",
92
- "resolved": "1.0.1264.42",
93
- "contentHash": "7OBUTkzQ5VI/3gb0ufi5U4zjuCowAJwQg2li0zXXzqkM+S1kmOlivTy1R4jAW+gY5Vyg510M+qMAESCQUjrfgA=="
93
+ "Microsoft.WindowsAppSDK": {
94
+ "type": "Direct",
95
+ "requested": "[1.5.240227000, )",
96
+ "resolved": "1.5.240227000",
97
+ "contentHash": "6rESOsREi8534J7IDpNfFYPvxQaSleXKt4A7ZYPeQyckNMQ0o1W0jZ420bJbEMz9Cw/S/8IbpPftLLZ9w/GTCQ==",
98
+ "dependencies": {
99
+ "Microsoft.Windows.SDK.BuildTools": "10.0.22621.756"
100
+ }
94
101
  }
95
102
  },
96
103
  "native,Version=v0.0/win10-arm64-aot": {
97
- "Microsoft.Web.WebView2": {
98
- "type": "Transitive",
99
- "resolved": "1.0.1264.42",
100
- "contentHash": "7OBUTkzQ5VI/3gb0ufi5U4zjuCowAJwQg2li0zXXzqkM+S1kmOlivTy1R4jAW+gY5Vyg510M+qMAESCQUjrfgA=="
104
+ "Microsoft.WindowsAppSDK": {
105
+ "type": "Direct",
106
+ "requested": "[1.5.240227000, )",
107
+ "resolved": "1.5.240227000",
108
+ "contentHash": "6rESOsREi8534J7IDpNfFYPvxQaSleXKt4A7ZYPeQyckNMQ0o1W0jZ420bJbEMz9Cw/S/8IbpPftLLZ9w/GTCQ==",
109
+ "dependencies": {
110
+ "Microsoft.Windows.SDK.BuildTools": "10.0.22621.756"
111
+ }
101
112
  }
102
113
  },
103
114
  "native,Version=v0.0/win10-x64": {
104
- "Microsoft.Web.WebView2": {
105
- "type": "Transitive",
106
- "resolved": "1.0.1264.42",
107
- "contentHash": "7OBUTkzQ5VI/3gb0ufi5U4zjuCowAJwQg2li0zXXzqkM+S1kmOlivTy1R4jAW+gY5Vyg510M+qMAESCQUjrfgA=="
115
+ "Microsoft.WindowsAppSDK": {
116
+ "type": "Direct",
117
+ "requested": "[1.5.240227000, )",
118
+ "resolved": "1.5.240227000",
119
+ "contentHash": "6rESOsREi8534J7IDpNfFYPvxQaSleXKt4A7ZYPeQyckNMQ0o1W0jZ420bJbEMz9Cw/S/8IbpPftLLZ9w/GTCQ==",
120
+ "dependencies": {
121
+ "Microsoft.Windows.SDK.BuildTools": "10.0.22621.756"
122
+ }
108
123
  }
109
124
  },
110
125
  "native,Version=v0.0/win10-x64-aot": {
111
- "Microsoft.Web.WebView2": {
112
- "type": "Transitive",
113
- "resolved": "1.0.1264.42",
114
- "contentHash": "7OBUTkzQ5VI/3gb0ufi5U4zjuCowAJwQg2li0zXXzqkM+S1kmOlivTy1R4jAW+gY5Vyg510M+qMAESCQUjrfgA=="
126
+ "Microsoft.WindowsAppSDK": {
127
+ "type": "Direct",
128
+ "requested": "[1.5.240227000, )",
129
+ "resolved": "1.5.240227000",
130
+ "contentHash": "6rESOsREi8534J7IDpNfFYPvxQaSleXKt4A7ZYPeQyckNMQ0o1W0jZ420bJbEMz9Cw/S/8IbpPftLLZ9w/GTCQ==",
131
+ "dependencies": {
132
+ "Microsoft.Windows.SDK.BuildTools": "10.0.22621.756"
133
+ }
115
134
  }
116
135
  },
117
136
  "native,Version=v0.0/win10-x86": {
118
- "Microsoft.Web.WebView2": {
119
- "type": "Transitive",
120
- "resolved": "1.0.1264.42",
121
- "contentHash": "7OBUTkzQ5VI/3gb0ufi5U4zjuCowAJwQg2li0zXXzqkM+S1kmOlivTy1R4jAW+gY5Vyg510M+qMAESCQUjrfgA=="
137
+ "Microsoft.WindowsAppSDK": {
138
+ "type": "Direct",
139
+ "requested": "[1.5.240227000, )",
140
+ "resolved": "1.5.240227000",
141
+ "contentHash": "6rESOsREi8534J7IDpNfFYPvxQaSleXKt4A7ZYPeQyckNMQ0o1W0jZ420bJbEMz9Cw/S/8IbpPftLLZ9w/GTCQ==",
142
+ "dependencies": {
143
+ "Microsoft.Windows.SDK.BuildTools": "10.0.22621.756"
144
+ }
122
145
  }
123
146
  },
124
147
  "native,Version=v0.0/win10-x86-aot": {
125
- "Microsoft.Web.WebView2": {
126
- "type": "Transitive",
127
- "resolved": "1.0.1264.42",
128
- "contentHash": "7OBUTkzQ5VI/3gb0ufi5U4zjuCowAJwQg2li0zXXzqkM+S1kmOlivTy1R4jAW+gY5Vyg510M+qMAESCQUjrfgA=="
148
+ "Microsoft.WindowsAppSDK": {
149
+ "type": "Direct",
150
+ "requested": "[1.5.240227000, )",
151
+ "resolved": "1.5.240227000",
152
+ "contentHash": "6rESOsREi8534J7IDpNfFYPvxQaSleXKt4A7ZYPeQyckNMQ0o1W0jZ420bJbEMz9Cw/S/8IbpPftLLZ9w/GTCQ==",
153
+ "dependencies": {
154
+ "Microsoft.Windows.SDK.BuildTools": "10.0.22621.756"
155
+ }
129
156
  }
130
157
  }
131
158
  }
@@ -10,11 +10,11 @@
10
10
  -->
11
11
  <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
12
12
  <PropertyGroup>
13
- <ReactNativeWindowsVersion>0.75.4</ReactNativeWindowsVersion>
13
+ <ReactNativeWindowsVersion>0.75.6</ReactNativeWindowsVersion>
14
14
  <ReactNativeWindowsMajor>0</ReactNativeWindowsMajor>
15
15
  <ReactNativeWindowsMinor>75</ReactNativeWindowsMinor>
16
- <ReactNativeWindowsPatch>4</ReactNativeWindowsPatch>
16
+ <ReactNativeWindowsPatch>6</ReactNativeWindowsPatch>
17
17
  <ReactNativeWindowsCanary>false</ReactNativeWindowsCanary>
18
- <ReactNativeWindowsCommitId>cad883d48893bef40110a0f15be7abac071dd15b</ReactNativeWindowsCommitId>
18
+ <ReactNativeWindowsCommitId>499b89b7e5c209d97efd981342b953b75854c903</ReactNativeWindowsCommitId>
19
19
  </PropertyGroup>
20
20
  </Project>
@@ -150,6 +150,9 @@
150
150
  <ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\TextDrawing.cpp">
151
151
  <ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
152
152
  </ClCompile>
153
+ <ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\TooltipService.cpp">
154
+ <ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
155
+ </ClCompile>
153
156
  <ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\UiaHelpers.cpp">
154
157
  <ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
155
158
  </ClCompile>
@@ -219,6 +222,21 @@
219
222
  </ClCompile>
220
223
  <ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\SynchronousEventBeat.cpp">
221
224
  <ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
225
+ </ClCompile>
226
+ <ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactNativeWin32App.cpp">
227
+ <ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
228
+ <DependentUpon>$(ReactNativeWindowsDir)Microsoft.ReactNative\ReactNativeAppBuilder.idl</DependentUpon>
229
+ <SubType>Code</SubType>
230
+ </ClCompile>
231
+ <ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactNativeAppBuilder.cpp">
232
+ <ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
233
+ <DependentUpon>$(ReactNativeWindowsDir)Microsoft.ReactNative\ReactNativeAppBuilder.idl</DependentUpon>
234
+ <SubType>Code</SubType>
235
+ </ClCompile>
236
+ <ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactInstanceSettingsBuilder.cpp">
237
+ <ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
238
+ <DependentUpon>$(ReactNativeWindowsDir)Microsoft.ReactNative\ReactNativeAppBuilder.idl</DependentUpon>
239
+ <SubType>Code</SubType>
222
240
  </ClCompile>
223
241
  <ClCompile Include="$(MSBuildThisFileDirectory)BaseFileReaderResource.cpp" />
224
242
  <ClCompile Include="$(MSBuildThisFileDirectory)BaseScriptStoreImpl.cpp" />
@@ -322,6 +340,21 @@
322
340
  <DependentUpon>$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\JsiApi.idl</DependentUpon>
323
341
  </ClInclude>
324
342
  <ClInclude Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\SchedulerSettings.h" />
343
+ <ClInclude Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactNativeWin32App.h">
344
+ <ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
345
+ <DependentUpon>$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactNativeAppBuilder.idl</DependentUpon>
346
+ <SubType>Code</SubType>
347
+ </ClInclude>
348
+ <ClInclude Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactNativeAppBuilder.h">
349
+ <ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
350
+ <DependentUpon>$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactNativeAppBuilder.idl</DependentUpon>
351
+ <SubType>Code</SubType>
352
+ </ClInclude>
353
+ <ClInclude Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactInstanceSettingsBuilder.h">
354
+ <ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
355
+ <DependentUpon>$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactNativeAppBuilder.idl</DependentUpon>
356
+ <SubType>Code</SubType>
357
+ </ClInclude>
325
358
  <ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\DynamicReader.cpp">
326
359
  <DependentUpon>$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\IJSValueReader.idl</DependentUpon>
327
360
  </ClCompile>
@@ -376,6 +409,7 @@
376
409
  <ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Timer.cpp">
377
410
  <DependentUpon>$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Timer.idl</DependentUpon>
378
411
  </ClCompile>
412
+
379
413
  <ClInclude Include="$(MSBuildThisFileDirectory)AbiSafe.h" />
380
414
  <ClInclude Include="$(MSBuildThisFileDirectory)BaseFileReaderResource.h" />
381
415
  <ClInclude Include="$(MSBuildThisFileDirectory)CppRuntimeOptions.h" />
@@ -467,6 +501,7 @@
467
501
  <ClCompile Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\Modules\PlatformConstantsWinModule.cpp" />
468
502
  <ClCompile Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\Modules\ExceptionsManager.cpp" />
469
503
  <ClCompile Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\Modules\Timing.cpp" />
504
+ <ClCompile Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\Modules\SampleTurboModule.cpp" />
470
505
  <ClCompile Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\Modules\SourceCode.cpp" />
471
506
  <ClCompile Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\NativeModulesProvider.cpp" />
472
507
  <ClCompile Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\ReactHost\AsyncActionQueue.cpp" />
@@ -662,6 +697,7 @@
662
697
  <Midl Condition="'$(UseFabric)' == 'true' OR '$(IncludeFabricInterface)' == 'true'" Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\Theme.idl" />
663
698
  <Midl Condition="'$(UseFabric)' == 'true' OR '$(IncludeFabricInterface)' == 'true'" Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\UriImageManager.idl" />
664
699
  <Midl Condition="'$(UseFabric)' == 'true' OR '$(IncludeFabricInterface)' == 'true'" Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\ViewProps.idl" />
700
+ <Midl Condition="'$(UseFabric)' == 'true' OR '$(IncludeFabricInterface)' == 'true'" Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\ReactNativeAppBuilder.idl" />
665
701
  </ItemGroup>
666
702
  <ItemGroup>
667
703
  <ClInclude Include="$(NodeApiJsiDir)src\ApiLoaders\HermesApi.h" />
@@ -304,6 +304,7 @@
304
304
  <ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\AbiShadowNode.cpp" />
305
305
  <ClCompile Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\Modules\PlatformConstantsWinModule.cpp" />
306
306
  <ClCompile Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\Modules\ExceptionsManager.cpp" />
307
+ <ClCompile Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\Modules\SampleTurboModule.cpp" />
307
308
  <ClCompile Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\Modules\SourceCode.cpp" />
308
309
  <ClCompile Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\Modules\Timing.cpp" />
309
310
  <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\featureflags\ReactNativeFeatureFlags.cpp" />
@@ -328,6 +329,8 @@
328
329
  <ClCompile Include="$(ReactNativeDir)\ReactCommon\cxxreact\JSExecutor.cpp" />
329
330
  <ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\RuntimeTargetConsole.cpp" />
330
331
  <ClCompile Include="$(MSBuildThisFileDirectory)Networking\NetworkPropertyIds.cpp" />
332
+ <ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\AbiEventEmitter.cpp" />
333
+ <ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\TooltipService.cpp" />
331
334
  </ItemGroup>
332
335
  <ItemGroup>
333
336
  <Filter Include="Source Files">
@@ -30,9 +30,6 @@ std::shared_ptr<TurboModule> TurboModuleManager::getModule(const std::string &mo
30
30
  }
31
31
  }
32
32
 
33
- if (moduleName.compare("SampleTurboModule") == 0) {
34
- return m_modules.emplace(moduleName, std::make_shared<SampleTurboCxxModule>(m_callInvoker)).first->second;
35
- }
36
33
  return nullptr;
37
34
  }
38
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-windows",
3
- "version": "0.75.4",
3
+ "version": "0.75.6",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,7 +26,7 @@
26
26
  "@react-native-community/cli": "14.1.0",
27
27
  "@react-native-community/cli-platform-android": "14.1.0",
28
28
  "@react-native-community/cli-platform-ios": "14.1.0",
29
- "@react-native-windows/cli": "0.75.3",
29
+ "@react-native-windows/cli": "0.75.4",
30
30
  "@react-native/assets": "1.0.0",
31
31
  "@react-native/assets-registry": "0.75.3",
32
32
  "@react-native/codegen": "0.75.3",
@@ -67,7 +67,7 @@
67
67
  "yargs": "^17.6.2"
68
68
  },
69
69
  "devDependencies": {
70
- "@react-native-windows/codegen": "0.75.1",
70
+ "@react-native-windows/codegen": "0.75.2",
71
71
  "@react-native/metro-config": "0.75.3",
72
72
  "@rnw-scripts/babel-react-native-config": "0.0.0",
73
73
  "@rnw-scripts/eslint-config": "1.2.23",
@@ -35,6 +35,7 @@ void UpdateRootViewSizeToAppWindow(
35
35
  if (window.Presenter().as<winrt::Microsoft::UI::Windowing::OverlappedPresenter>().State() !=
36
36
  winrt::Microsoft::UI::Windowing::OverlappedPresenterState::Minimized) {
37
37
  winrt::Microsoft::ReactNative::LayoutConstraints constraints;
38
+ constraints.LayoutDirection = winrt::Microsoft::ReactNative::LayoutDirection::Undefined;
38
39
  constraints.MaximumSize = constraints.MinimumSize = size;
39
40
  rootView.Arrange(constraints, {0,0});
40
41
  }