react-native-windows 0.76.8 → 0.76.9

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 (128) hide show
  1. package/Libraries/Components/Button.windows.js +9 -0
  2. package/Libraries/Components/Pressable/Pressable.windows.js +9 -0
  3. package/Libraries/Components/TextInput/TextInput.windows.js +11 -1
  4. package/Libraries/Components/Touchable/TouchableBounce.windows.js +229 -0
  5. package/Libraries/Components/Touchable/TouchableNativeFeedback.windows.js +373 -0
  6. package/Libraries/Components/Touchable/TouchableOpacity.windows.js +7 -0
  7. package/Libraries/Components/Touchable/TouchableWithoutFeedback.windows.js +8 -0
  8. package/Libraries/Components/View/View.windows.js +11 -1
  9. package/Libraries/Components/View/ViewAccessibility.d.ts +15 -0
  10. package/Libraries/Components/View/ViewAccessibility.windows.js +3 -0
  11. package/Libraries/Components/View/ViewPropTypes.windows.js +3 -0
  12. package/Libraries/Image/Image.windows.js +7 -0
  13. package/Libraries/Modal/Modal.windows.js +4 -1
  14. package/Libraries/Text/Text.windows.js +14 -1
  15. package/Libraries/Text/TextProps.windows.js +3 -0
  16. package/Microsoft.ReactNative/CompositionComponentView.idl +13 -1
  17. package/Microsoft.ReactNative/Fabric/AbiPortalShadowNode.cpp +97 -0
  18. package/Microsoft.ReactNative/Fabric/AbiPortalShadowNode.h +53 -0
  19. package/Microsoft.ReactNative/Fabric/AbiViewComponentDescriptor.h +160 -17
  20. package/Microsoft.ReactNative/Fabric/AbiViewProps.cpp +8 -10
  21. package/Microsoft.ReactNative/Fabric/ComponentView.cpp +4 -2
  22. package/Microsoft.ReactNative/Fabric/Composition/ComponentViewRegistry.cpp +0 -5
  23. package/Microsoft.ReactNative/Fabric/Composition/CompositionDynamicAutomationProvider.cpp +428 -39
  24. package/Microsoft.ReactNative/Fabric/Composition/CompositionDynamicAutomationProvider.h +39 -1
  25. package/Microsoft.ReactNative/Fabric/Composition/CompositionEventHandler.cpp +55 -33
  26. package/Microsoft.ReactNative/Fabric/Composition/CompositionEventHandler.h +5 -3
  27. package/Microsoft.ReactNative/Fabric/Composition/CompositionRootAutomationProvider.cpp +43 -5
  28. package/Microsoft.ReactNative/Fabric/Composition/CompositionRootAutomationProvider.h +2 -1
  29. package/Microsoft.ReactNative/Fabric/Composition/CompositionTextProvider.cpp +115 -0
  30. package/Microsoft.ReactNative/Fabric/Composition/CompositionTextProvider.h +41 -0
  31. package/Microsoft.ReactNative/Fabric/Composition/CompositionTextRangeProvider.cpp +298 -0
  32. package/Microsoft.ReactNative/Fabric/Composition/CompositionTextRangeProvider.h +59 -0
  33. package/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.cpp +106 -56
  34. package/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.h +2 -0
  35. package/Microsoft.ReactNative/Fabric/Composition/ContentIslandComponentView.cpp +163 -10
  36. package/Microsoft.ReactNative/Fabric/Composition/ContentIslandComponentView.h +17 -1
  37. package/Microsoft.ReactNative/Fabric/Composition/FocusManager.cpp +4 -2
  38. package/Microsoft.ReactNative/Fabric/Composition/FocusManager.h +9 -1
  39. package/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewComponentView.cpp +348 -316
  40. package/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewComponentView.h +3 -61
  41. package/Microsoft.ReactNative/Fabric/Composition/PortalComponentView.cpp +78 -0
  42. package/Microsoft.ReactNative/Fabric/Composition/PortalComponentView.h +52 -0
  43. package/Microsoft.ReactNative/Fabric/Composition/ReactCompositionViewComponentBuilder.cpp +22 -0
  44. package/Microsoft.ReactNative/Fabric/Composition/ReactCompositionViewComponentBuilder.h +7 -5
  45. package/Microsoft.ReactNative/Fabric/Composition/ReactNativeIsland.cpp +99 -37
  46. package/Microsoft.ReactNative/Fabric/Composition/ReactNativeIsland.h +12 -6
  47. package/Microsoft.ReactNative/Fabric/Composition/RootComponentView.cpp +81 -22
  48. package/Microsoft.ReactNative/Fabric/Composition/RootComponentView.h +21 -2
  49. package/Microsoft.ReactNative/Fabric/Composition/Theme.cpp +6 -1
  50. package/Microsoft.ReactNative/Fabric/Composition/TooltipService.cpp +41 -37
  51. package/Microsoft.ReactNative/Fabric/Composition/UiaHelpers.cpp +76 -33
  52. package/Microsoft.ReactNative/Fabric/Composition/UiaHelpers.h +8 -2
  53. package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.cpp +1 -6
  54. package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.h +0 -3
  55. package/Microsoft.ReactNative/Fabric/WindowsComponentDescriptorRegistry.cpp +0 -2
  56. package/Microsoft.ReactNative/Fabric/platform/react/renderer/graphics/HostPlatformColor.h +5 -8
  57. package/Microsoft.ReactNative/Fabric/platform/react/renderer/graphics/PlatformColorParser.h +1 -2
  58. package/Microsoft.ReactNative/Fabric/platform/react/renderer/graphics/PlatformColorUtils.cpp +1 -1
  59. package/Microsoft.ReactNative/IReactCompositionViewComponentBuilder.idl +15 -1
  60. package/Microsoft.ReactNative/IReactContext.cpp +2 -2
  61. package/Microsoft.ReactNative/IReactContext.h +1 -1
  62. package/Microsoft.ReactNative/IReactContext.idl +2 -2
  63. package/Microsoft.ReactNative/IReactPackageBuilder.idl +3 -3
  64. package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj +97 -87
  65. package/Microsoft.ReactNative/Modules/AccessibilityInfoModule.cpp +4 -0
  66. package/Microsoft.ReactNative/Modules/AlertModule.cpp +9 -4
  67. package/Microsoft.ReactNative/Modules/Animated/NativeAnimatedNodeManager.cpp +1 -1
  68. package/Microsoft.ReactNative/Modules/Animated/PropsAnimatedNode.cpp +32 -35
  69. package/Microsoft.ReactNative/Modules/Animated/PropsAnimatedNode.h +7 -4
  70. package/Microsoft.ReactNative/Modules/AppStateModule.cpp +1 -1
  71. package/Microsoft.ReactNative/Modules/AppThemeModuleUwp.cpp +2 -2
  72. package/Microsoft.ReactNative/Modules/AppearanceModule.cpp +2 -2
  73. package/Microsoft.ReactNative/Modules/ClipboardModule.cpp +1 -1
  74. package/Microsoft.ReactNative/Modules/ClipboardModule.h +1 -1
  75. package/Microsoft.ReactNative/Modules/DeviceInfoModule.cpp +3 -3
  76. package/Microsoft.ReactNative/Modules/I18nManagerModule.cpp +1 -1
  77. package/Microsoft.ReactNative/Modules/LogBoxModule.cpp +7 -5
  78. package/Microsoft.ReactNative/Modules/LogBoxModule.h +2 -1
  79. package/Microsoft.ReactNative/Modules/Timing.cpp +2 -2
  80. package/Microsoft.ReactNative/ReactHost/IReactInstance.h +5 -0
  81. package/Microsoft.ReactNative/ReactHost/React.h +0 -3
  82. package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.cpp +36 -12
  83. package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.h +1 -1
  84. package/Microsoft.ReactNative/ReactNativeHost.cpp +9 -4
  85. package/Microsoft.ReactNative/ReactNativeIsland.idl +5 -1
  86. package/Microsoft.ReactNative/ReactPackageBuilder.cpp +3 -3
  87. package/Microsoft.ReactNative/ReactPackageBuilder.h +4 -4
  88. package/Microsoft.ReactNative/Utils/Helpers.cpp +0 -2
  89. package/Microsoft.ReactNative/Views/DevMenu.cpp +6 -6
  90. package/Microsoft.ReactNative/Views/DevMenu.h +1 -1
  91. package/Microsoft.ReactNative/XamlUIService.cpp +13 -7
  92. package/Microsoft.ReactNative/XamlUIService.h +4 -1
  93. package/Microsoft.ReactNative/XamlUIService.idl +2 -0
  94. package/Microsoft.ReactNative.Cxx/JSI/JsiAbiApi.h +6 -2
  95. package/Microsoft.ReactNative.Cxx/NativeModules.h +29 -0
  96. package/Microsoft.ReactNative.Cxx/ReactContext.h +1 -1
  97. package/Microsoft.ReactNative.Cxx/XamlUtils.h +12 -0
  98. package/PropertySheets/Generated/PackageVersion.g.props +3 -3
  99. package/PropertySheets/React.Cpp.props +3 -0
  100. package/PropertySheets/WebView2.props +1 -1
  101. package/PropertySheets/WinUI.props +5 -4
  102. package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/view/AccessibilityPrimitives.h +253 -0
  103. package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/view/accessibilityPropsConversions.h +799 -0
  104. package/Shared/InspectorPackagerConnection.cpp +2 -5
  105. package/Shared/InspectorPackagerConnection.h +2 -2
  106. package/Shared/Networking/WinRTWebSocketResource.cpp +369 -7
  107. package/Shared/Networking/WinRTWebSocketResource.h +118 -0
  108. package/Shared/Shared.vcxitems +12 -5
  109. package/Shared/Shared.vcxitems.filters +11 -4
  110. package/codegen/react/components/rnwcore/ActivityIndicatorView.g.h +212 -0
  111. package/codegen/react/components/rnwcore/AndroidDrawerLayout.g.h +295 -0
  112. package/codegen/react/components/rnwcore/AndroidHorizontalScrollContentView.g.h +200 -0
  113. package/codegen/react/components/rnwcore/AndroidProgressBar.g.h +224 -0
  114. package/codegen/react/components/rnwcore/AndroidSwipeRefreshLayout.g.h +250 -0
  115. package/codegen/react/components/rnwcore/AndroidSwitch.g.h +267 -0
  116. package/codegen/react/components/rnwcore/DebuggingOverlay.g.h +234 -0
  117. package/codegen/react/components/rnwcore/InputAccessory.g.h +200 -0
  118. package/codegen/react/components/rnwcore/ModalHostView.g.h +279 -0
  119. package/codegen/react/components/rnwcore/PullToRefreshView.g.h +246 -0
  120. package/codegen/react/components/rnwcore/SafeAreaView.g.h +197 -0
  121. package/codegen/react/components/rnwcore/Switch.g.h +263 -0
  122. package/codegen/react/components/rnwcore/UnimplementedNativeView.g.h +200 -0
  123. package/just-task.js +1 -1
  124. package/package.json +3 -3
  125. package/Microsoft.ReactNative/Fabric/AbiViewComponentDescriptor.cpp +0 -191
  126. package/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewComponentDescriptor.h +0 -39
  127. package/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewShadowNode.cpp +0 -18
  128. package/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewShadowNode.h +0 -39
@@ -15,11 +15,10 @@ namespace facebook::react {
15
15
 
16
16
  inline SharedColor
17
17
  parsePlatformColor(const ContextContainer &contextContainer, int32_t surfaceId, const RawValue &value) {
18
- if (value.hasType<std::unordered_map<std::string, std::string>>()) {
18
+ if (value.hasType<std::unordered_map<std::string, std::vector<std::string>>>()) {
19
19
  auto map = (std::unordered_map<std::string, std::vector<std::string>>)value;
20
20
  if (map.find("windowsbrush") != map.end()) {
21
21
  facebook::react::Color color = {
22
- /* .m_isDefined = */ true,
23
22
  /* .m_color = */ {},
24
23
  /* .m_platformColor = */ std::move(map["windowsbrush"]),
25
24
  };
@@ -16,7 +16,7 @@ winrt::Windows::UI::Color ResolvePlatformColor(const std::vector<std::string> &s
16
16
  for (auto platformColor : semanticItems) {
17
17
  #ifndef CORE_ABI
18
18
  // If XAML is loaded, look in application resources
19
- if (xaml::TryGetCurrentApplication()) {
19
+ if (xaml::TryGetCurrentUwpXamlApplication()) {
20
20
  xaml::Media::Brush brush{Microsoft::ReactNative::BrushFromColorObject(platformColor)};
21
21
  if (auto scb{brush.try_as<xaml::Media::SolidColorBrush>()}) {
22
22
  return scb.Color();
@@ -21,6 +21,10 @@ namespace Microsoft.ReactNative.Composition
21
21
  [experimental]
22
22
  delegate void ComponentIslandComponentViewInitializer(ContentIslandComponentView view);
23
23
 
24
+ [webhosthidden]
25
+ [experimental]
26
+ delegate void PortalComponentViewInitializer(PortalComponentView view);
27
+
24
28
  [experimental]
25
29
  [webhosthidden]
26
30
  delegate Microsoft.UI.Composition.Visual CreateVisualDelegate(Microsoft.ReactNative.ComponentView view);
@@ -48,6 +52,15 @@ namespace Microsoft.ReactNative.Composition
48
52
  };
49
53
  }
50
54
 
55
+ [webhosthidden]
56
+ [experimental]
57
+ DOC_STRING("StateData type to be used with a PortalComponentView. The LayoutConstraints and PointScaleFactor will be used to layout the content of the Portal")
58
+ interface IPortalStateData
59
+ {
60
+ Microsoft.ReactNative.LayoutConstraints LayoutConstraints { get; };
61
+ Single PointScaleFactor { get; };
62
+ };
63
+
51
64
  [webhosthidden]
52
65
  [experimental]
53
66
  DOC_STRING(".")
@@ -55,10 +68,11 @@ namespace Microsoft.ReactNative.Composition
55
68
  {
56
69
  void SetViewComponentViewInitializer(ViewComponentViewInitializer initializer);
57
70
  void SetContentIslandComponentViewInitializer(ComponentIslandComponentViewInitializer initializer);
71
+ void SetPortalComponentViewInitializer(PortalComponentViewInitializer initializer);
58
72
  void SetCreateVisualHandler(CreateVisualDelegate impl);
59
73
  void SetViewFeatures(ComponentViewFeatures viewFeatures);
60
74
  void SetUpdateLayoutMetricsHandler(UpdateLayoutMetricsDelegate impl);
61
75
  void SetVisualToMountChildrenIntoHandler(VisualToMountChildrenIntoDelegate impl);
62
76
  };
63
77
 
64
- } // namespace Microsoft.ReactNative
78
+ } // namespace Microsoft.ReactNative.Composition
@@ -4,7 +4,7 @@
4
4
  #include "pch.h"
5
5
  #include "IReactContext.h"
6
6
  #include "DynamicWriter.h"
7
- #ifndef CORE_ABI
7
+ #if !defined(CORE_ABI) && !defined(USE_FABRIC)
8
8
  #include "XamlUIService.h"
9
9
  #endif
10
10
 
@@ -121,7 +121,7 @@ LoadingState ReactContext::LoadingState() noexcept {
121
121
  };
122
122
  }
123
123
 
124
- #ifndef CORE_ABI
124
+ #if !defined(CORE_ABI) && !defined(USE_FABRIC)
125
125
  // Deprecated: Use XamlUIService directly.
126
126
  void ReactContext::DispatchEvent(
127
127
  xaml::FrameworkElement const &view,
@@ -46,7 +46,7 @@ struct ReactContext : winrt::implements<ReactContext, IReactContext> {
46
46
  IInspectable JSRuntime() noexcept;
47
47
  LoadingState LoadingState() noexcept;
48
48
 
49
- #ifndef CORE_ABI
49
+ #if !defined(CORE_ABI) && !defined(USE_FABRIC)
50
50
  void DispatchEvent(
51
51
  xaml::FrameworkElement const &view,
52
52
  hstring const &eventName,
@@ -5,7 +5,7 @@ import "IJSValueWriter.idl"; // The import is to be deprecated with IReactContex
5
5
  import "IReactNotificationService.idl";
6
6
  import "IReactPropertyBag.idl";
7
7
 
8
- #ifndef CORE_ABI
8
+ #if !defined(CORE_ABI) && !defined(USE_FABRIC)
9
9
  #include "NamespaceRedirect.h" // The include is to be deprecated with IReactContext::DispatchEvent
10
10
  #endif
11
11
 
@@ -185,7 +185,7 @@ namespace Microsoft.ReactNative
185
185
  "It is an experimental property that may be removed or changed in a future version.")
186
186
  Object JSRuntime { get; };
187
187
 
188
- #ifndef CORE_ABI
188
+ #if !defined(CORE_ABI) && !defined(USE_FABRIC)
189
189
  [deprecated("Use @XamlUIService.DispatchEvent instead", deprecate, 1)]
190
190
  DOC_STRING("Deprecated property. Use @XamlUIService.DispatchEvent instead. It will be removed in a future version.")
191
191
  void DispatchEvent(XAML_NAMESPACE.FrameworkElement view, String eventName, JSValueArgWriter eventDataArgWriter);
@@ -3,7 +3,7 @@
3
3
 
4
4
  import "IReactContext.idl";
5
5
  import "IReactModuleBuilder.idl";
6
- #ifndef CORE_ABI
6
+ #if !defined(CORE_ABI) && !defined(USE_FABRIC)
7
7
  import "IViewManager.idl";
8
8
  #endif
9
9
 
@@ -14,7 +14,7 @@ namespace Microsoft.ReactNative
14
14
  DOC_STRING("Provides information about a custom native module. See @IReactModuleBuilder.")
15
15
  delegate Object ReactModuleProvider(IReactModuleBuilder moduleBuilder);
16
16
 
17
- #ifndef CORE_ABI
17
+ #if !defined(CORE_ABI) && !defined(USE_FABRIC)
18
18
  DOC_STRING("Provides information about a custom view manager. See @IViewManager.")
19
19
  delegate IViewManager ReactViewManagerProvider();
20
20
  #endif
@@ -32,7 +32,7 @@ namespace Microsoft.ReactNative
32
32
  "NOTE: TurboModules using JSI directly will not run correctly while using @ReactInstanceSettings.UseWebDebugger")
33
33
  void AddTurboModule(String moduleName, ReactModuleProvider moduleProvider);
34
34
 
35
- #ifndef CORE_ABI
35
+ #if !defined(CORE_ABI) && !defined(USE_FABRIC)
36
36
  DOC_STRING("Adds a custom view manager. See @ReactViewManagerProvider.")
37
37
  void AddViewManager(String viewManagerName, ReactViewManagerProvider viewManagerProvider);
38
38
  #endif
@@ -188,16 +188,11 @@
188
188
  </ItemDefinitionGroup>
189
189
  <ItemGroup>
190
190
  <ClInclude Include="ABICxxModule.h" />
191
- <ClInclude Include="ABIViewManager.h" />
192
191
  <ClInclude Include="Base\CxxReactIncludes.h" />
193
192
  <ClInclude Include="Base\FollyIncludes.h" />
194
193
  <ClInclude Include="ReactHost\JSCallInvokerScheduler.h" />
195
194
  <ClInclude Include="Utils\ShadowNodeTypeUtils.h" />
196
195
  <ClInclude Include="Utils\BatchingEventEmitter.h" />
197
- <ClInclude Include="DevMenuControl.h">
198
- <DependentUpon>DevMenuControl.xaml</DependentUpon>
199
- <SubType>Code</SubType>
200
- </ClInclude>
201
196
  <ClInclude Include="DocString.h" />
202
197
  <ClInclude Include="DynamicReader.h">
203
198
  <DependentUpon>IJSValueReader.idl</DependentUpon>
@@ -208,7 +203,6 @@
208
203
  <ClInclude Include="JSDispatcherWriter.h">
209
204
  <DependentUpon>IJSValueWriter.idl</DependentUpon>
210
205
  </ClInclude>
211
- <ClInclude Include="GlyphViewManager.h" />
212
206
  <ClInclude Include="HResult.h" />
213
207
  <ClInclude Include="IReactDispatcher.h">
214
208
  <DependentUpon>IReactDispatcher.idl</DependentUpon>
@@ -265,20 +259,14 @@
265
259
  <ClInclude Include="Modules\ImageViewManagerModule.h" />
266
260
  <ClInclude Include="Modules\LinkingManagerModule.h" />
267
261
  <ClInclude Include="Modules\LogBoxModule.h" />
268
- <ClInclude Include="Modules\NativeUIManager.h" />
269
262
  <ClInclude Include="Modules\ReactRootViewTagGenerator.h" />
270
263
  <ClInclude Include="Modules\TimingModule.h" />
271
- <ClInclude Include="Modules\PaperUIManagerModule.h" />
272
264
  <ClInclude Include="NativeModulesProvider.h" />
273
265
  <ClInclude Include="ReactHost\IReactInstance.h" />
274
- <ClInclude Include="ReactHost\ViewManagerProvider.h" />
275
266
  <ClInclude Include="RedBoxErrorInfo.h" />
276
267
  <ClInclude Include="RedBoxErrorFrameInfo.h" />
277
268
  <ClInclude Include="TurboModulesProvider.h" />
278
269
  <ClInclude Include="Pch\pch.h" />
279
- <ClInclude Include="ReactApplication.h">
280
- <DependentUpon>ReactApplication.idl</DependentUpon>
281
- </ClInclude>
282
270
  <ClInclude Include="IReactContext.h">
283
271
  <DependentUpon>IReactContext.idl</DependentUpon>
284
272
  <SubType>Code</SubType>
@@ -317,7 +305,6 @@
317
305
  <DependentUpon>Timer.idl</DependentUpon>
318
306
  <SubType>Code</SubType>
319
307
  </ClInclude>
320
- <ClInclude Include="Utils\AccessibilityUtils.h" />
321
308
  <ClInclude Include="Utils\Helpers.h" />
322
309
  <ClInclude Include="Utils\KeyboardUtils.h" />
323
310
  <ClInclude Include="Utils\LocalBundleReader.h" />
@@ -331,9 +318,57 @@
331
318
  <ClInclude Include="Utils\UwpScriptStore.h" />
332
319
  <ClInclude Include="Utils\ValueUtils.h" />
333
320
  <ClInclude Include="Utils\XamlIslandUtils.h" />
321
+ <ClInclude Include="Utils\XamlUtils.h" />
322
+ <ClInclude Include="Views\DevMenu.h" />
323
+ <ClInclude Include="ReactPackageBuilder.h">
324
+ <DependentUpon>IReactPackageBuilder.idl</DependentUpon>
325
+ </ClInclude>
326
+ <ClInclude Include="IReactPropertyBag.h">
327
+ <DependentUpon>IReactPropertyBag.idl</DependentUpon>
328
+ <SubType>Code</SubType>
329
+ </ClInclude>
330
+ <ClInclude Include="RedBox.h" />
331
+ <ClInclude Include="ReactSupport.h" />
332
+ <ClInclude Include="TestHook.h" />
333
+ <ClInclude Include="QuirkSettings.h">
334
+ <DependentUpon>QuirkSettings.idl</DependentUpon>
335
+ <SubType>Code</SubType>
336
+ </ClInclude>
337
+ <ClInclude Include="ReactPointerEventArgs.h">
338
+ <DependentUpon>ReactPointerEventArgs.idl</DependentUpon>
339
+ <SubType>Code</SubType>
340
+ </ClInclude>
341
+ <ClInclude Include="XamlUIService.h">
342
+ <DependentUpon>XamlUIService.idl</DependentUpon>
343
+ <SubType>Code</SubType>
344
+ </ClInclude>
345
+ </ItemGroup>
346
+ <!-- Paper-only ClInclude -->
347
+ <ItemGroup Condition="'$(UseFabric)' != 'true'">
348
+ <ClInclude Include="ABIViewManager.h" />
349
+ <ClInclude Include="DevMenuControl.h">
350
+ <DependentUpon>DevMenuControl.xaml</DependentUpon>
351
+ <SubType>Code</SubType>
352
+ </ClInclude>
353
+ <ClInclude Include="GlyphViewManager.h" />
354
+ <ClInclude Include="LayoutService.h">
355
+ <DependentUpon>LayoutService.idl</DependentUpon>
356
+ <SubType>Code</SubType>
357
+ </ClInclude>
358
+ <ClInclude Include="Modules\NativeUIManager.h" />
359
+ <ClInclude Include="Modules\PaperUIManagerModule.h" />
360
+ <ClInclude Include="ReactApplication.h">
361
+ <DependentUpon>ReactApplication.idl</DependentUpon>
362
+ </ClInclude>
363
+ <ClInclude Include="ReactHost\ViewManagerProvider.h" />
364
+ <ClInclude Include="ReactRootView.h">
365
+ <DependentUpon>ReactRootView.idl</DependentUpon>
366
+ <SubType>Code</SubType>
367
+ </ClInclude>
368
+ <ClInclude Include="Utils\AccessibilityUtils.h" />
369
+ <ClInclude Include="ViewManagersProvider.h" />
334
370
  <ClInclude Include="Views\ActivityIndicatorViewManager.h" />
335
371
  <ClInclude Include="Views\ControlViewManager.h" />
336
- <ClInclude Include="Views\DevMenu.h" />
337
372
  <ClInclude Include="Views\DynamicAutomationPeer.h" />
338
373
  <ClInclude Include="Views\DynamicAutomationProperties.h" />
339
374
  <ClInclude Include="Views\DynamicValueProvider.h" />
@@ -384,55 +419,17 @@
384
419
  <ClInclude Include="Views\ViewViewManager.h" />
385
420
  <ClInclude Include="Views\VirtualTextViewManager.h" />
386
421
  <ClInclude Include="Views\XamlFeatures.h" />
387
- <ClInclude Include="XamlLoadState.h" />
388
- <ClInclude Include="LayoutService.h">
389
- <DependentUpon>LayoutService.idl</DependentUpon>
390
- <SubType>Code</SubType>
391
- </ClInclude>
392
- <ClInclude Include="XamlUIService.h">
393
- <DependentUpon>XamlUIService.idl</DependentUpon>
394
- <SubType>Code</SubType>
395
- </ClInclude>
396
- <ClInclude Include="ReactPackageBuilder.h">
397
- <DependentUpon>IReactPackageBuilder.idl</DependentUpon>
398
- </ClInclude>
399
- <ClInclude Include="IReactPropertyBag.h">
400
- <DependentUpon>IReactPropertyBag.idl</DependentUpon>
401
- <SubType>Code</SubType>
402
- </ClInclude>
403
- <ClInclude Include="ReactRootView.h">
404
- <DependentUpon>ReactRootView.idl</DependentUpon>
405
- <SubType>Code</SubType>
406
- </ClInclude>
407
- <ClInclude Include="RedBox.h" />
408
- <ClInclude Include="ReactSupport.h" />
409
- <ClInclude Include="TestHook.h" />
410
- <ClInclude Include="QuirkSettings.h">
411
- <DependentUpon>QuirkSettings.idl</DependentUpon>
412
- <SubType>Code</SubType>
413
- </ClInclude>
414
- <ClInclude Include="ViewManagersProvider.h" />
415
422
  <ClInclude Include="XamlHelper.h">
416
423
  <DependentUpon>XamlHelper.idl</DependentUpon>
417
424
  <SubType>Code</SubType>
418
425
  </ClInclude>
426
+ <ClInclude Include="XamlLoadState.h" />
419
427
  <ClInclude Include="XamlView.h" />
420
- <ClInclude Include="ReactPointerEventArgs.h">
421
- <DependentUpon>ReactPointerEventArgs.idl</DependentUpon>
422
- <SubType>Code</SubType>
423
- </ClInclude>
424
428
  </ItemGroup>
425
429
  <ItemGroup>
426
430
  <ClCompile Include="ABICxxModule.cpp" />
427
- <ClCompile Include="ABIViewManager.cpp" />
428
- <ClCompile Include="Base\CoreUIManagers.cpp" />
429
431
  <ClCompile Include="Utils\BatchingEventEmitter.cpp" />
430
432
  <ClCompile Include="CxxReactUWP\JSBigString.cpp" />
431
- <ClCompile Include="DevMenuControl.cpp">
432
- <DependentUpon>DevMenuControl.xaml</DependentUpon>
433
- <SubType>Code</SubType>
434
- </ClCompile>
435
- <ClCompile Include="GlyphViewManager.cpp" />
436
433
  <ClCompile Include="Modules\AccessibilityInfoModule.cpp" />
437
434
  <ClCompile Include="Modules\AlertModule.cpp" />
438
435
  <ClCompile Include="Modules\Animated\AdditionAnimatedNode.cpp" />
@@ -467,8 +464,6 @@
467
464
  <ClCompile Include="Modules\ImageViewManagerModule.cpp" />
468
465
  <ClCompile Include="Modules\LinkingManagerModule.cpp" />
469
466
  <ClCompile Include="Modules\LogBoxModule.cpp" />
470
- <ClCompile Include="Modules\NativeUIManager.cpp" />
471
- <ClCompile Include="Modules\PaperUIManagerModule.cpp" />
472
467
  <ClCompile Include="ReactPointerEventArgs.cpp">
473
468
  <DependentUpon>ReactPointerEventArgs.idl</DependentUpon>
474
469
  <SubType>Code</SubType>
@@ -476,11 +471,7 @@
476
471
  <ClCompile Include="Pch\pch.cpp">
477
472
  <PrecompiledHeader>Create</PrecompiledHeader>
478
473
  </ClCompile>
479
- <ClCompile Include="ReactApplication.cpp">
480
- <DependentUpon>ReactApplication.idl</DependentUpon>
481
- </ClCompile>
482
474
  <ClCompile Include="$(GeneratedFilesDir)module.g.cpp" />
483
- <ClCompile Include="Utils\AccessibilityUtils.cpp" />
484
475
  <ClCompile Include="Utils\KeyboardUtils.cpp" />
485
476
  <ClCompile Include="Utils\LocalBundleReader.cpp" />
486
477
  <ClCompile Include="Utils\ResourceBrushUtils.cpp" />
@@ -488,6 +479,37 @@
488
479
  <ClCompile Include="Utils\UwpScriptStore.cpp" />
489
480
  <ClCompile Include="Utils\ValueUtils.cpp" />
490
481
  <ClCompile Include="Utils\XamlIslandUtils.cpp" />
482
+ <ClCompile Include="ReactSupport.cpp" />
483
+ <ClCompile Include="TestHook.cpp" />
484
+ <ClCompile Include="XamlUIService.cpp">
485
+ <DependentUpon>XamlUIService.idl</DependentUpon>
486
+ <SubType>Code</SubType>
487
+ </ClCompile>
488
+ </ItemGroup>
489
+ <!-- Paper-only ClCompile -->
490
+ <ItemGroup Condition="'$(UseFabric)' != 'true'">
491
+ <ClCompile Include="ABIViewManager.cpp" />
492
+ <ClCompile Include="Base\CoreUIManagers.cpp" />
493
+ <ClCompile Include="DevMenuControl.cpp">
494
+ <DependentUpon>DevMenuControl.xaml</DependentUpon>
495
+ <SubType>Code</SubType>
496
+ </ClCompile>
497
+ <ClCompile Include="GlyphViewManager.cpp" />
498
+ <ClCompile Include="LayoutService.cpp">
499
+ <DependentUpon>LayoutService.idl</DependentUpon>
500
+ <SubType>Code</SubType>
501
+ </ClCompile>
502
+ <ClCompile Include="Modules\NativeUIManager.cpp" />
503
+ <ClCompile Include="Modules\PaperUIManagerModule.cpp" />
504
+ <ClCompile Include="ReactApplication.cpp">
505
+ <DependentUpon>ReactApplication.idl</DependentUpon>
506
+ </ClCompile>
507
+ <ClCompile Include="ReactRootView.cpp">
508
+ <DependentUpon>ReactRootView.idl</DependentUpon>
509
+ <SubType>Code</SubType>
510
+ </ClCompile>
511
+ <ClCompile Include="Utils\AccessibilityUtils.cpp" />
512
+ <ClCompile Include="ViewManagersProvider.cpp" />
491
513
  <ClCompile Include="Views\ActivityIndicatorViewManager.cpp" />
492
514
  <ClCompile Include="Views\ConfigureBundlerDlg.cpp" />
493
515
  <ClCompile Include="Views\ControlViewManager.cpp" />
@@ -536,53 +558,41 @@
536
558
  <ClCompile Include="Views\ViewViewManager.cpp" />
537
559
  <ClCompile Include="Views\VirtualTextViewManager.cpp" />
538
560
  <ClCompile Include="Views\XamlFeatures.cpp" />
539
- <ClCompile Include="XamlLoadState.cpp" />
540
- <ClCompile Include="XamlView.cpp" />
541
- <ClCompile Include="LayoutService.cpp">
542
- <DependentUpon>LayoutService.idl</DependentUpon>
543
- <SubType>Code</SubType>
544
- </ClCompile>
545
- <ClCompile Include="XamlUIService.cpp">
546
- <DependentUpon>XamlUIService.idl</DependentUpon>
547
- <SubType>Code</SubType>
548
- </ClCompile>
549
- <ClCompile Include="ReactRootView.cpp">
550
- <DependentUpon>ReactRootView.idl</DependentUpon>
551
- <SubType>Code</SubType>
552
- </ClCompile>
553
- <ClCompile Include="ReactSupport.cpp" />
554
- <ClCompile Include="TestHook.cpp" />
555
- <ClCompile Include="ViewManagersProvider.cpp" />
556
561
  <ClCompile Include="XamlHelper.cpp">
557
562
  <DependentUpon>XamlHelper.idl</DependentUpon>
558
563
  <SubType>Code</SubType>
559
564
  </ClCompile>
565
+ <ClCompile Include="XamlLoadState.cpp" />
566
+ <ClCompile Include="XamlView.cpp" />
560
567
  </ItemGroup>
561
568
  <ItemGroup>
562
569
  <Midl Include="DesktopWindowMessage.idl" />
570
+ <Midl Include="DocString.idl" />
571
+ <Midl Include="ReactPointerEventArgs.idl" />
572
+ <Midl Include="XamlUIService.idl">
573
+ <SubType>Designer</SubType>
574
+ </Midl>
575
+ </ItemGroup>
576
+ <!-- Paper-only Midl -->
577
+ <ItemGroup Condition="'$(UseFabric)' != 'true'">
563
578
  <Midl Include="DevMenuControl.idl">
564
579
  <DependentUpon>DevMenuControl.xaml</DependentUpon>
565
580
  <SubType>Code</SubType>
566
581
  </Midl>
567
- <Midl Include="DocString.idl" />
568
582
  <Midl Include="IViewManager.idl" />
569
583
  <Midl Include="IViewManagerCore.idl" />
570
- <Midl Include="ReactApplication.idl" />
571
- <Midl Include="Views\cppwinrt\AccessibilityAction.idl" />
572
- <Midl Include="Views\cppwinrt\Effects.idl" />
573
- <Midl Include="Views\cppwinrt\DynamicAutomationPeer.idl" />
574
- <Midl Include="Views\cppwinrt\ViewPanel.idl" />
575
584
  <Midl Include="LayoutService.idl">
576
585
  <SubType>Designer</SubType>
577
586
  </Midl>
578
- <Midl Include="XamlUIService.idl">
579
- <SubType>Designer</SubType>
580
- </Midl>
587
+ <Midl Include="ReactApplication.idl" />
581
588
  <Midl Include="ReactRootView.idl">
582
589
  <SubType>Designer</SubType>
583
590
  </Midl>
591
+ <Midl Include="Views\cppwinrt\AccessibilityAction.idl" />
592
+ <Midl Include="Views\cppwinrt\Effects.idl" />
593
+ <Midl Include="Views\cppwinrt\DynamicAutomationPeer.idl" />
594
+ <Midl Include="Views\cppwinrt\ViewPanel.idl" />
584
595
  <Midl Include="XamlHelper.idl" />
585
- <Midl Include="ReactPointerEventArgs.idl" />
586
596
  </ItemGroup>
587
597
  <ItemGroup>
588
598
  <None Include="microsoft.reactnative.def" />
@@ -621,7 +631,7 @@
621
631
  <Project>{a9d95a91-4db7-4f72-beb6-fe8a5c89bfbd}</Project>
622
632
  </ProjectReference>
623
633
  </ItemGroup>
624
- <ItemGroup>
634
+ <ItemGroup Condition="'$(UseFabric)' != 'true'">
625
635
  <Page Include="DevMenuControl.xaml">
626
636
  <SubType>Designer</SubType>
627
637
  </Page>
@@ -3,9 +3,11 @@
3
3
 
4
4
  #include "pch.h"
5
5
  #include "AccessibilityInfoModule.h"
6
+ #ifndef USE_FABRIC
6
7
  #include <UI.Xaml.Automation.Peers.h>
7
8
  #include <UI.Xaml.Controls.h>
8
9
  #include <XamlUtils.h>
10
+ #endif
9
11
  #include <uiautomationcore.h>
10
12
  #include <uiautomationcoreapi.h>
11
13
  #include <winrt/Windows.ApplicationModel.DataTransfer.h>
@@ -40,6 +42,7 @@ void AccessibilityInfo::setAccessibilityFocus(double /*reactTag*/) noexcept {
40
42
 
41
43
  void AccessibilityInfo::announceForAccessibility(std::wstring announcement) noexcept {
42
44
  m_context.UIDispatcher().Post([context = m_context, announcement = std::move(announcement)] {
45
+ #ifndef USE_FABRIC
43
46
  // Windows requires a specific element to announce from. Unfortunately the react-native API does not provide a tag
44
47
  // So we need to find something to raise the notification event from.
45
48
  xaml::UIElement element{nullptr};
@@ -67,6 +70,7 @@ void AccessibilityInfo::announceForAccessibility(std::wstring announcement) noex
67
70
  xaml::Automation::Peers::AutomationNotificationProcessing::ImportantMostRecent,
68
71
  hstr,
69
72
  hstr);
73
+ #endif
70
74
  });
71
75
  }
72
76
 
@@ -5,12 +5,15 @@
5
5
  #include "AlertModule.h"
6
6
  #include "Unicode.h"
7
7
 
8
+ #ifndef USE_FABRIC
8
9
  #include <UI.Xaml.Controls.Primitives.h>
9
10
  #include <UI.Xaml.Controls.h>
10
11
  #include <UI.Xaml.Media.h>
11
12
  #include <UI.Xaml.Shapes.h>
12
13
  #include <Utils/ValueUtils.h>
13
14
  #include <XamlUtils.h>
15
+ #endif
16
+
14
17
  #include <winrt/Windows.UI.ViewManagement.h>
15
18
  #include "Utils/Helpers.h"
16
19
 
@@ -36,6 +39,7 @@ void Alert::showAlert(
36
39
  });
37
40
  }
38
41
 
42
+ #ifndef USE_FABRIC
39
43
  void Alert::ProcessPendingAlertRequestsXaml() noexcept {
40
44
  const auto &pendingAlert = pendingAlerts.front();
41
45
  const auto &args = pendingAlert.args;
@@ -155,8 +159,7 @@ void Alert::ProcessPendingAlertRequestsXaml() noexcept {
155
159
  ProcessPendingAlertRequests();
156
160
  });
157
161
  }
158
-
159
- #ifdef USE_FABRIC
162
+ #else
160
163
  void Alert::ProcessPendingAlertRequestsMessageDialog() noexcept {
161
164
  const auto &pendingAlert = pendingAlerts.front();
162
165
  const auto &args = pendingAlert.args;
@@ -220,16 +223,18 @@ void Alert::ProcessPendingAlertRequests() noexcept {
220
223
  if (pendingAlerts.empty())
221
224
  return;
222
225
 
223
- if (xaml::TryGetCurrentApplication()) {
226
+ #ifndef USE_FABRIC
227
+ if (xaml::TryGetCurrentUwpXamlApplication()) {
224
228
  ProcessPendingAlertRequestsXaml();
225
229
  }
226
- #ifdef USE_FABRIC
230
+ #else
227
231
  else {
228
232
  // If we don't have xaml loaded, fallback to using MessageDialog
229
233
  ProcessPendingAlertRequestsMessageDialog();
230
234
  }
231
235
  #endif
232
236
  }
237
+
233
238
  Alert::Constants Alert::GetConstants() noexcept {
234
239
  return m_constants;
235
240
  }
@@ -50,7 +50,7 @@ comp::Compositor NativeAnimatedNodeManager::Compositor() const noexcept {
50
50
  compositionContext);
51
51
  }
52
52
  #endif
53
- #ifndef CORE_ABI
53
+ #if !defined(CORE_ABI) && !defined(USE_FABRIC)
54
54
  // TODO: Islands - need to get the XamlView associated with this animation in order to
55
55
  // use the compositor Microsoft::ReactNative::GetCompositor(xamlView)
56
56
  return Microsoft::ReactNative::GetCompositor();