react-native-windows 0.0.0-canary.708 → 0.0.0-canary.710

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 (46) hide show
  1. package/Microsoft.ReactNative/CompositionContext.idl +31 -8
  2. package/Microsoft.ReactNative/Fabric/Composition/CompositionContextHelper.cpp +495 -182
  3. package/Microsoft.ReactNative/Fabric/Composition/CompositionContextHelper.h +37 -5
  4. package/Microsoft.ReactNative/Fabric/Composition/CompositionContextHelper_emptyimpl.cpp +48 -9
  5. package/Microsoft.ReactNative/Fabric/Composition/CompositionHelpers.h +34 -8
  6. package/Microsoft.ReactNative/Fabric/Composition/CompositionHwndHost.cpp +3 -2
  7. package/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.cpp +16 -17
  8. package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.cpp +1 -0
  9. package/Microsoft.ReactNative/Modules/Animated/NativeAnimatedNodeManager.cpp +1 -2
  10. package/Microsoft.ReactNative/Modules/Animated/PropsAnimatedNode.cpp +3 -4
  11. package/Microsoft.ReactNative/Modules/DeviceInfoModule.cpp +2 -0
  12. package/Mso/src/dispatchQueue/uiScheduler_winrt.cpp +121 -44
  13. package/PropertySheets/External/Microsoft.ReactNative.Composition.Common.props +12 -0
  14. package/PropertySheets/External/Microsoft.ReactNative.Composition.CppApp.props +24 -0
  15. package/PropertySheets/External/Microsoft.ReactNative.Composition.CppApp.targets +20 -0
  16. package/PropertySheets/External/Microsoft.ReactNative.Composition.Package.props +14 -0
  17. package/PropertySheets/External/Microsoft.ReactNative.Composition.Package.targets +18 -0
  18. package/PropertySheets/External/Microsoft.ReactNative.WindowsSdk.Default.props +1 -1
  19. package/PropertySheets/Generated/PackageVersion.g.props +2 -2
  20. package/package.json +2 -2
  21. package/templates/cpp-app/metro.config.js +51 -0
  22. package/templates/cpp-app/template.config.js +118 -0
  23. package/templates/cpp-app/windows/ExperimentalFeatures.props +12 -0
  24. package/templates/cpp-app/windows/MyApp/MyApp.cpp +284 -0
  25. package/templates/cpp-app/windows/MyApp/MyApp.h +3 -0
  26. package/templates/cpp-app/windows/MyApp/MyApp.ico +0 -0
  27. package/templates/cpp-app/windows/MyApp/MyApp.rc +0 -0
  28. package/templates/cpp-app/windows/MyApp/MyApp.vcxproj +142 -0
  29. package/templates/cpp-app/windows/MyApp/MyApp.vcxproj.filters +55 -0
  30. package/templates/cpp-app/windows/MyApp/_gitignore +1 -0
  31. package/templates/cpp-app/windows/MyApp/pch.cpp +1 -0
  32. package/templates/cpp-app/windows/MyApp/pch.h +35 -0
  33. package/templates/cpp-app/windows/MyApp/resource.h +18 -0
  34. package/templates/cpp-app/windows/MyApp/small.ico +0 -0
  35. package/templates/cpp-app/windows/MyApp/targetver.h +8 -0
  36. package/templates/cpp-app/windows/MyApp.Package/Images/LockScreenLogo.scale-200.png +0 -0
  37. package/templates/cpp-app/windows/MyApp.Package/Images/SplashScreen.scale-200.png +0 -0
  38. package/templates/cpp-app/windows/MyApp.Package/Images/Square150x150Logo.scale-200.png +0 -0
  39. package/templates/cpp-app/windows/MyApp.Package/Images/Square44x44Logo.scale-200.png +0 -0
  40. package/templates/cpp-app/windows/MyApp.Package/Images/Square44x44Logo.targetsize-24_altform-unplated.png +0 -0
  41. package/templates/cpp-app/windows/MyApp.Package/Images/StoreLogo.png +0 -0
  42. package/templates/cpp-app/windows/MyApp.Package/Images/Wide310x150Logo.scale-200.png +0 -0
  43. package/templates/cpp-app/windows/MyApp.Package/MyApp.Package.wapproj +78 -0
  44. package/templates/cpp-app/windows/MyApp.Package/Package.appxmanifest +49 -0
  45. package/templates/cpp-app/windows/MyApp.sln +176 -0
  46. package/templates/cpp-app/windows/_gitignore +41 -0
@@ -11,21 +11,44 @@ namespace Microsoft.ReactNative.Composition
11
11
  [default_interface]
12
12
  [experimental]
13
13
  DOC_STRING("A helper static class for to create a @ICompositionContext based on Windows.Composition Visuals. And to access the underlying Windows.Composition objects from the abstraction.")
14
- static runtimeclass CompositionContextHelper
14
+ static runtimeclass WindowsCompositionContextHelper
15
15
  {
16
16
  DOC_STRING(
17
17
  "Creates a @ICompositionContext from a Compositor")
18
- static ICompositionContext CreateContext(COMP_NAMESPACE.Compositor compositor);
18
+ static ICompositionContext CreateContext(Windows.UI.Composition.Compositor compositor);
19
19
 
20
20
  DOC_STRING(
21
21
  "Creates a @IVisual from a Visual")
22
- static IVisual CreateVisual(COMP_NAMESPACE.Visual visual);
22
+ static IVisual CreateVisual(Windows.UI.Composition.Visual visual);
23
23
 
24
- static COMP_NAMESPACE.Compositor InnerCompositor(ICompositionContext context);
25
- static COMP_NAMESPACE.Visual InnerVisual(IVisual visual);
26
- static COMP_NAMESPACE.DropShadow InnerDropShadow(IDropShadow shadow);
27
- static COMP_NAMESPACE.CompositionBrush InnerBrush(IBrush brush);
28
- static COMP_NAMESPACE.ICompositionSurface InnerSurface(IDrawingSurfaceBrush surface);
24
+ static Windows.UI.Composition.Compositor InnerCompositor(ICompositionContext context);
25
+ static Windows.UI.Composition.Visual InnerVisual(IVisual visual);
26
+ static Windows.UI.Composition.DropShadow InnerDropShadow(IDropShadow shadow);
27
+ static Windows.UI.Composition.CompositionBrush InnerBrush(IBrush brush);
28
+ static Windows.UI.Composition.ICompositionSurface InnerSurface(IDrawingSurfaceBrush surface);
29
29
  }
30
30
 
31
+ #ifdef USE_WINUI3
32
+ [webhosthidden]
33
+ [default_interface]
34
+ [experimental]
35
+ DOC_STRING("A helper static class for to create a @ICompositionContext based on Microsoft.Composition Visuals. And to access the underlying Microsoft.Composition objects from the abstraction.")
36
+ static runtimeclass MicrosoftCompositionContextHelper
37
+ {
38
+ DOC_STRING(
39
+ "Creates a @ICompositionContext from a Compositor")
40
+ static ICompositionContext CreateContext(Microsoft.UI.Composition.Compositor compositor);
41
+
42
+ DOC_STRING(
43
+ "Creates a @IVisual from a Visual")
44
+ static IVisual CreateVisual(Microsoft.UI.Composition.Visual visual);
45
+
46
+ static Microsoft.UI.Composition.Compositor InnerCompositor(ICompositionContext context);
47
+ static Microsoft.UI.Composition.Visual InnerVisual(IVisual visual);
48
+ static Microsoft.UI.Composition.DropShadow InnerDropShadow(IDropShadow shadow);
49
+ static Microsoft.UI.Composition.CompositionBrush InnerBrush(IBrush brush);
50
+ static Microsoft.UI.Composition.ICompositionSurface InnerSurface(IDrawingSurfaceBrush surface);
51
+ }
52
+ #endif
53
+
31
54
  } // namespace Microsoft.ReactNative.Composition