react-native-windows 0.76.1 → 0.76.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 (118) hide show
  1. package/Libraries/Components/View/View.windows.js +76 -52
  2. package/Libraries/Core/ReactNativeVersion.js +1 -1
  3. package/Libraries/Core/setUpErrorHandling.js +1 -7
  4. package/Libraries/LogBox/Data/LogBoxData.js +2 -2
  5. package/Libraries/Modal/Modal.windows.js +352 -0
  6. package/Libraries/ReactNative/AppRegistry.js +3 -3
  7. package/Libraries/Text/Text.windows.js +1 -1
  8. package/Microsoft.ReactNative/CompositionComponentView.idl +2 -1
  9. package/Microsoft.ReactNative/Fabric/AbiComponentDescriptor.cpp +4 -1
  10. package/Microsoft.ReactNative/Fabric/AbiViewComponentDescriptor.cpp +1 -1
  11. package/Microsoft.ReactNative/Fabric/AbiViewProps.cpp +7 -0
  12. package/Microsoft.ReactNative/Fabric/AbiViewProps.h +2 -0
  13. package/Microsoft.ReactNative/Fabric/ComponentView.cpp +45 -50
  14. package/Microsoft.ReactNative/Fabric/ComponentView.h +14 -22
  15. package/Microsoft.ReactNative/Fabric/Composition/BorderPrimitive.cpp +943 -0
  16. package/Microsoft.ReactNative/Fabric/Composition/BorderPrimitive.h +80 -0
  17. package/Microsoft.ReactNative/Fabric/Composition/CompositionDynamicAutomationProvider.cpp +26 -3
  18. package/Microsoft.ReactNative/Fabric/Composition/CompositionEventHandler.cpp +187 -6
  19. package/Microsoft.ReactNative/Fabric/Composition/CompositionEventHandler.h +10 -1
  20. package/Microsoft.ReactNative/Fabric/Composition/CompositionRootAutomationProvider.cpp +8 -32
  21. package/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.cpp +336 -929
  22. package/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.h +32 -29
  23. package/Microsoft.ReactNative/Fabric/Composition/ContentIslandComponentView.cpp +9 -2
  24. package/Microsoft.ReactNative/Fabric/Composition/ContentIslandComponentView.h +2 -1
  25. package/Microsoft.ReactNative/Fabric/Composition/DebuggingOverlayComponentView.cpp +1 -1
  26. package/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewComponentView.cpp +181 -123
  27. package/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewComponentView.h +16 -8
  28. package/Microsoft.ReactNative/Fabric/Composition/ReactCompositionViewComponentBuilder.cpp +99 -37
  29. package/Microsoft.ReactNative/Fabric/Composition/ReactCompositionViewComponentBuilder.h +25 -3
  30. package/Microsoft.ReactNative/Fabric/Composition/ReactNativeIsland.cpp +63 -2
  31. package/Microsoft.ReactNative/Fabric/Composition/ReactNativeIsland.h +12 -0
  32. package/Microsoft.ReactNative/Fabric/Composition/RootComponentView.cpp +51 -3
  33. package/Microsoft.ReactNative/Fabric/Composition/RootComponentView.h +3 -0
  34. package/Microsoft.ReactNative/Fabric/Composition/ScrollViewComponentView.cpp +18 -8
  35. package/Microsoft.ReactNative/Fabric/Composition/ScrollViewComponentView.h +3 -0
  36. package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.cpp +54 -5
  37. package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.h +8 -0
  38. package/Microsoft.ReactNative/Fabric/Composition/Theme.cpp +9 -3
  39. package/Microsoft.ReactNative/Fabric/Composition/UiaHelpers.cpp +11 -0
  40. package/Microsoft.ReactNative/Fabric/Composition/UiaHelpers.h +2 -0
  41. package/Microsoft.ReactNative/Fabric/Composition/UnimplementedNativeViewComponentView.cpp +1 -1
  42. package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/view/HostPlatformViewTraitsInitializer.h +1 -5
  43. package/Microsoft.ReactNative/IReactCompositionViewComponentBuilder.idl +26 -0
  44. package/Microsoft.ReactNative/IReactViewComponentBuilder.idl +1 -1
  45. package/Microsoft.ReactNative/ReactNativeIsland.idl +3 -2
  46. package/Microsoft.ReactNative/ViewProps.idl +2 -0
  47. package/Microsoft.ReactNative.Cxx/ComponentView.Experimental.interop.h +14 -0
  48. package/PropertySheets/Generated/PackageVersion.g.props +3 -3
  49. package/Shared/Shared.vcxitems +3 -0
  50. package/Shared/Shared.vcxitems.filters +1 -0
  51. package/codegen/NativeAccessibilityInfoSpec.g.h +1 -0
  52. package/codegen/NativeAccessibilityManagerSpec.g.h +1 -0
  53. package/codegen/NativeActionSheetManagerSpec.g.h +1 -0
  54. package/codegen/NativeAlertManagerSpec.g.h +1 -0
  55. package/codegen/NativeAnimatedModuleSpec.g.h +1 -0
  56. package/codegen/NativeAnimatedTurboModuleSpec.g.h +1 -0
  57. package/codegen/NativeAppStateSpec.g.h +1 -0
  58. package/codegen/NativeAppThemeSpec.g.h +1 -0
  59. package/codegen/NativeAppearanceSpec.g.h +1 -0
  60. package/codegen/NativeBlobModuleSpec.g.h +1 -0
  61. package/codegen/NativeBugReportingSpec.g.h +1 -0
  62. package/codegen/NativeClipboardSpec.g.h +1 -0
  63. package/codegen/NativeDOMSpec.g.h +1 -0
  64. package/codegen/NativeDevLoadingViewSpec.g.h +1 -0
  65. package/codegen/NativeDevMenuSpec.g.h +1 -0
  66. package/codegen/NativeDevSettingsSpec.g.h +1 -0
  67. package/codegen/NativeDevToolsSettingsManagerSpec.g.h +1 -0
  68. package/codegen/NativeDeviceEventManagerSpec.g.h +1 -0
  69. package/codegen/NativeDeviceInfoSpec.g.h +1 -0
  70. package/codegen/NativeDialogManagerAndroidSpec.g.h +1 -0
  71. package/codegen/NativeDialogManagerWindowsSpec.g.h +1 -0
  72. package/codegen/NativeExceptionsManagerSpec.g.h +1 -0
  73. package/codegen/NativeFileReaderModuleSpec.g.h +1 -0
  74. package/codegen/NativeFrameRateLoggerSpec.g.h +1 -0
  75. package/codegen/NativeHeadlessJsTaskSupportSpec.g.h +1 -0
  76. package/codegen/NativeI18nManagerSpec.g.h +1 -0
  77. package/codegen/NativeIdleCallbacksSpec.g.h +1 -0
  78. package/codegen/NativeImageEditorSpec.g.h +1 -0
  79. package/codegen/NativeImageLoaderAndroidSpec.g.h +1 -0
  80. package/codegen/NativeImageLoaderIOSSpec.g.h +1 -0
  81. package/codegen/NativeImageStoreAndroidSpec.g.h +1 -0
  82. package/codegen/NativeImageStoreIOSSpec.g.h +1 -0
  83. package/codegen/NativeIntentAndroidSpec.g.h +1 -0
  84. package/codegen/NativeIntersectionObserverSpec.g.h +1 -0
  85. package/codegen/NativeJSCHeapCaptureSpec.g.h +1 -0
  86. package/codegen/NativeJSCSamplingProfilerSpec.g.h +1 -0
  87. package/codegen/NativeKeyboardObserverSpec.g.h +1 -0
  88. package/codegen/NativeLinkingManagerSpec.g.h +1 -0
  89. package/codegen/NativeLogBoxSpec.g.h +1 -0
  90. package/codegen/NativeMicrotasksSpec.g.h +1 -0
  91. package/codegen/NativeModalManagerSpec.g.h +1 -0
  92. package/codegen/NativeMutationObserverSpec.g.h +1 -0
  93. package/codegen/NativeNetworkingAndroidSpec.g.h +1 -0
  94. package/codegen/NativeNetworkingIOSSpec.g.h +1 -0
  95. package/codegen/NativePerformanceObserverSpec.g.h +1 -0
  96. package/codegen/NativePerformanceSpec.g.h +1 -0
  97. package/codegen/NativePermissionsAndroidSpec.g.h +1 -0
  98. package/codegen/NativePlatformConstantsAndroidSpec.g.h +1 -0
  99. package/codegen/NativePlatformConstantsIOSSpec.g.h +1 -0
  100. package/codegen/NativePlatformConstantsWindowsSpec.g.h +1 -0
  101. package/codegen/NativePushNotificationManagerIOSSpec.g.h +1 -0
  102. package/codegen/NativeReactNativeFeatureFlagsSpec.g.h +1 -0
  103. package/codegen/NativeRedBoxSpec.g.h +1 -0
  104. package/codegen/NativeSampleTurboModuleSpec.g.h +1 -0
  105. package/codegen/NativeSegmentFetcherSpec.g.h +1 -0
  106. package/codegen/NativeSettingsManagerSpec.g.h +1 -0
  107. package/codegen/NativeShareModuleSpec.g.h +1 -0
  108. package/codegen/NativeSoundManagerSpec.g.h +1 -0
  109. package/codegen/NativeSourceCodeSpec.g.h +1 -0
  110. package/codegen/NativeStatusBarManagerAndroidSpec.g.h +1 -0
  111. package/codegen/NativeStatusBarManagerIOSSpec.g.h +1 -0
  112. package/codegen/NativeTimingSpec.g.h +1 -0
  113. package/codegen/NativeToastAndroidSpec.g.h +1 -0
  114. package/codegen/NativeUIManagerSpec.g.h +1 -0
  115. package/codegen/NativeVibrationSpec.g.h +1 -0
  116. package/codegen/NativeWebSocketModuleSpec.g.h +1 -0
  117. package/package.json +12 -12
  118. package/types/modules/Codegen.d.ts +6 -0
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
@@ -7,6 +7,7 @@
7
7
  * by the TurboModule JS spec.
8
8
  */
9
9
  #pragma once
10
+ // clang-format off
10
11
 
11
12
  #include <NativeModules.h>
12
13
  #include <tuple>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-windows",
3
- "version": "0.76.1",
3
+ "version": "0.76.3",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,15 +26,15 @@
26
26
  "@react-native-community/cli": "15.0.0-alpha.2",
27
27
  "@react-native-community/cli-platform-android": "15.0.0-alpha.2",
28
28
  "@react-native-community/cli-platform-ios": "15.0.0-alpha.2",
29
- "@react-native-windows/cli": "0.76.0",
29
+ "@react-native-windows/cli": "0.76.1",
30
30
  "@react-native/assets": "1.0.0",
31
- "@react-native/assets-registry": "0.76.0",
32
- "@react-native/codegen": "0.76.0",
33
- "@react-native/community-cli-plugin": "0.76.0",
34
- "@react-native/gradle-plugin": "0.76.0",
35
- "@react-native/js-polyfills": "0.76.0",
36
- "@react-native/normalize-colors": "0.76.0",
37
- "@react-native/virtualized-lists": "0.76.0",
31
+ "@react-native/assets-registry": "0.76.2",
32
+ "@react-native/codegen": "0.76.2",
33
+ "@react-native/community-cli-plugin": "0.76.2",
34
+ "@react-native/gradle-plugin": "0.76.2",
35
+ "@react-native/js-polyfills": "0.76.2",
36
+ "@react-native/normalize-colors": "0.76.2",
37
+ "@react-native/virtualized-lists": "0.76.2",
38
38
  "abort-controller": "^3.0.0",
39
39
  "anser": "^1.4.9",
40
40
  "ansi-regex": "^5.0.0",
@@ -69,8 +69,8 @@
69
69
  "yargs": "^17.6.2"
70
70
  },
71
71
  "devDependencies": {
72
- "@react-native/metro-config": "0.76.0",
73
- "@react-native-windows/codegen": "0.76.0",
72
+ "@react-native-windows/codegen": "0.76.1",
73
+ "@react-native/metro-config": "0.76.2",
74
74
  "@rnw-scripts/babel-react-native-config": "0.0.0",
75
75
  "@rnw-scripts/eslint-config": "1.2.27",
76
76
  "@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.31",
@@ -85,7 +85,7 @@
85
85
  "just-scripts": "^1.3.3",
86
86
  "prettier": "2.8.8",
87
87
  "react": "18.3.1",
88
- "react-native": "0.76.0",
88
+ "react-native": "0.76.2",
89
89
  "react-native-platform-override": "^1.9.46",
90
90
  "react-refresh": "^0.14.0",
91
91
  "typescript": "5.0.4"
@@ -41,6 +41,7 @@ declare module 'react-native/Libraries/Utilities/codegenNativeComponent' {
41
41
 
42
42
  declare module 'react-native/Libraries/Types/CodegenTypes' {
43
43
  import type {NativeSyntheticEvent} from 'react-native';
44
+ import type {EventSubscription} from 'react-native/Libraries/vendor/emitter/EventEmitter';
44
45
 
45
46
  // Event types
46
47
  // We're not using the PaperName, it is only used to codegen view config settings
@@ -59,6 +60,7 @@ declare module 'react-native/Libraries/Types/CodegenTypes' {
59
60
  export type Float = number;
60
61
  export type Int32 = number;
61
62
  export type UnsafeObject = object;
63
+ export type UnsafeMixed = unknown;
62
64
 
63
65
  type DefaultTypes = number | boolean | string | ReadonlyArray<string>;
64
66
  // Default handling, ignore the unused value
@@ -71,4 +73,8 @@ declare module 'react-native/Libraries/Types/CodegenTypes' {
71
73
  Type extends DefaultTypes,
72
74
  Value extends Type | string | undefined | null,
73
75
  > = Type | undefined | null;
76
+
77
+ export type EventEmitter<T> = (
78
+ handler: (arg: T) => void | Promise<void>,
79
+ ) => EventSubscription;
74
80
  }