@office-iss/react-native-win32 0.0.0-canary.287 → 0.0.0-canary.288

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 (148) hide show
  1. package/.flowconfig +4 -1
  2. package/CHANGELOG.json +42 -1
  3. package/CHANGELOG.md +15 -4
  4. package/Libraries/Alert/RCTAlertManager.js.flow +18 -0
  5. package/Libraries/Animated/Animated.js +8 -37
  6. package/Libraries/Animated/Animated.js.flow +15 -0
  7. package/Libraries/Animated/AnimatedExports.js +47 -0
  8. package/Libraries/Animated/AnimatedExports.js.flow +48 -0
  9. package/Libraries/Animated/useAnimatedValue.js +1 -3
  10. package/Libraries/Blob/URLSearchParams.js.flow +23 -0
  11. package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +1 -1
  12. package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.win32.js +1 -1
  13. package/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.js.flow +20 -0
  14. package/Libraries/Components/ActivityIndicator/ActivityIndicator.js +8 -8
  15. package/Libraries/Components/Button.js +2 -2
  16. package/Libraries/Components/Button.win32.js +2 -2
  17. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +14 -100
  18. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js +64 -4
  19. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidTypes.js +138 -0
  20. package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +7 -4
  21. package/Libraries/Components/LayoutConformance/LayoutConformance.js +6 -4
  22. package/Libraries/Components/LayoutConformance/LayoutConformanceNativeComponent.js +1 -1
  23. package/Libraries/Components/Pressable/Pressable.js +18 -63
  24. package/Libraries/Components/Pressable/Pressable.win32.js +19 -65
  25. package/Libraries/Components/Pressable/useAndroidRippleForView.js +2 -2
  26. package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js +4 -46
  27. package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.js +10 -4
  28. package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidTypes.js +54 -0
  29. package/Libraries/Components/RefreshControl/RefreshControl.js +10 -7
  30. package/Libraries/Components/RefreshControl/__mocks__/RefreshControlMock.js +2 -1
  31. package/Libraries/Components/SafeAreaView/SafeAreaView.js +1 -1
  32. package/Libraries/Components/SafeAreaView/SafeAreaView.win32.js +1 -1
  33. package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +2 -4
  34. package/Libraries/Components/ScrollView/ScrollContentViewNativeComponent.js +2 -4
  35. package/Libraries/Components/ScrollView/ScrollView.js +43 -59
  36. package/Libraries/Components/ScrollView/ScrollViewCommands.js +1 -1
  37. package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +2 -4
  38. package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +6 -7
  39. package/Libraries/Components/StatusBar/StatusBar.js +33 -22
  40. package/Libraries/Components/Switch/Switch.js +70 -41
  41. package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +2 -4
  42. package/Libraries/Components/TextInput/RCTMultilineTextInputNativeComponent.js +2 -4
  43. package/Libraries/Components/TextInput/RCTSingelineTextInputNativeComponent.js +2 -4
  44. package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +1 -0
  45. package/Libraries/Components/TextInput/TextInput.flow.js +10 -12
  46. package/Libraries/Components/TextInput/TextInput.js +22 -28
  47. package/Libraries/Components/TextInput/TextInput.win32.js +22 -28
  48. package/Libraries/Components/TextInput/TextInputState.js +2 -18
  49. package/Libraries/Components/TextInput/TextInputState.win32.js +2 -18
  50. package/Libraries/Components/TextInput/Win32TextInputNativeComponent.js +1 -1
  51. package/Libraries/Components/Touchable/Touchable.js +7 -7
  52. package/Libraries/Components/Touchable/Touchable.win32.js +7 -7
  53. package/Libraries/Components/Touchable/TouchableBounce.js +1 -1
  54. package/Libraries/Components/Touchable/TouchableHighlight.js +35 -14
  55. package/Libraries/Components/Touchable/TouchableNativeFeedback.js +95 -47
  56. package/Libraries/Components/Touchable/TouchableNativeFeedback.win32.js +248 -43
  57. package/Libraries/Components/Touchable/TouchableOpacity.js +52 -10
  58. package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +112 -59
  59. package/Libraries/Components/View/View.js +1 -1
  60. package/Libraries/Components/View/View.win32.js +1 -1
  61. package/Libraries/Components/View/ViewNativeComponent.js +2 -4
  62. package/Libraries/Components/View/ViewPropTypes.js +15 -12
  63. package/Libraries/Components/View/ViewPropTypes.win32.js +74 -71
  64. package/Libraries/Core/ReactNativeVersion.js +1 -1
  65. package/Libraries/Core/setUpReactDevTools.js +2 -0
  66. package/Libraries/Debugging/DebuggingOverlayRegistry.js +10 -7
  67. package/Libraries/Image/Image.android.js +1 -1
  68. package/Libraries/Image/Image.js.flow +27 -0
  69. package/Libraries/Image/ImageBackground.js +1 -1
  70. package/Libraries/Image/ImageProps.js +97 -30
  71. package/Libraries/Image/ImageTypes.flow.js +16 -6
  72. package/Libraries/Image/ImageViewNativeComponent.js +3 -5
  73. package/Libraries/Image/TextInlineImageNativeComponent.js +2 -4
  74. package/Libraries/Interaction/InteractionManager.js +9 -1
  75. package/Libraries/Interaction/PanResponder.js +11 -11
  76. package/Libraries/Interaction/TaskQueue.js +2 -2
  77. package/Libraries/Lists/FlatList.js +8 -7
  78. package/Libraries/LogBox/LogBox.js +1 -1
  79. package/Libraries/NativeComponent/BaseViewConfig.js.flow +14 -0
  80. package/Libraries/NativeComponent/NativeComponentRegistry.js +1 -1
  81. package/Libraries/Network/RCTNetworking.js.flow +44 -0
  82. package/Libraries/Network/XMLHttpRequest_new.js +3 -0
  83. package/Libraries/Network/XMLHttpRequest_old.js +3 -0
  84. package/Libraries/Pressability/HoverState.js +1 -0
  85. package/Libraries/Pressability/HoverState.win32.js +1 -0
  86. package/Libraries/Pressability/Pressability.js +2 -2
  87. package/Libraries/Pressability/Pressability.win32.js +3 -3
  88. package/Libraries/ReactNative/FabricUIManager.js +5 -3
  89. package/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricHostComponent.js +7 -5
  90. package/Libraries/ReactNative/RendererImplementation.js +3 -5
  91. package/Libraries/ReactNative/requireNativeComponent.js +1 -1
  92. package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +12 -0
  93. package/Libraries/Renderer/shims/ReactNativeTypes.js +39 -91
  94. package/Libraries/StyleSheet/PlatformColorValueTypes.js.flow +22 -0
  95. package/Libraries/Text/Text.d.ts +1 -1
  96. package/Libraries/Text/Text.js +3 -1
  97. package/Libraries/Text/Text.win32.js +3 -1
  98. package/Libraries/Text/TextNativeComponent.js +1 -1
  99. package/Libraries/Text/TextNativeComponent.win32.js +1 -1
  100. package/Libraries/Text/TextProps.js +124 -84
  101. package/Libraries/Text/TextProps.win32.js +124 -84
  102. package/Libraries/Types/CoreEventTypes.js +1 -1
  103. package/Libraries/Types/CoreEventTypes.win32.js +1 -1
  104. package/Libraries/Types/ReactDevToolsTypes.js +4 -8
  105. package/Libraries/Utilities/BackHandler.js.flow +25 -0
  106. package/Libraries/Utilities/DevSettings.js +14 -0
  107. package/Libraries/Utilities/Dimensions.js +5 -0
  108. package/Libraries/Utilities/Dimensions.win32.js +5 -0
  109. package/{flow/Position.js → Libraries/Utilities/Platform.js.flow} +3 -6
  110. package/Libraries/Utilities/PlatformTypes.js +97 -7
  111. package/Libraries/Utilities/codegenNativeComponent.js +1 -1
  112. package/Libraries/__flowtests__/ReactNativeTypes-flowtest.js +2 -4
  113. package/index.win32.js +3 -4
  114. package/overrides.json +24 -24
  115. package/package.json +15 -15
  116. package/src/private/components/HScrollViewNativeComponents.js +1 -1
  117. package/src/private/components/VScrollViewNativeComponents.js +1 -1
  118. package/src/private/featureflags/ReactNativeFeatureFlags.js +11 -6
  119. package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +3 -2
  120. package/src/private/inspector/getInspectorDataForViewAtPoint.js +2 -4
  121. package/src/private/setup/setUpDOM.js +36 -1
  122. package/src/private/specs_DEPRECATED/components/ActivityIndicatorViewNativeComponent.js +1 -1
  123. package/src/private/specs_DEPRECATED/components/AndroidDrawerLayoutNativeComponent.js +1 -1
  124. package/src/private/specs_DEPRECATED/components/AndroidHorizontalScrollContentViewNativeComponent.js +1 -1
  125. package/src/private/specs_DEPRECATED/components/AndroidSwipeRefreshLayoutNativeComponent.js +1 -1
  126. package/src/private/specs_DEPRECATED/components/AndroidSwitchNativeComponent.js +1 -1
  127. package/src/private/specs_DEPRECATED/components/DebuggingOverlayNativeComponent.js +1 -1
  128. package/src/private/specs_DEPRECATED/components/ProgressBarAndroidNativeComponent.js +1 -1
  129. package/src/private/specs_DEPRECATED/components/PullToRefreshViewNativeComponent.js +1 -1
  130. package/src/private/specs_DEPRECATED/components/RCTInputAccessoryViewNativeComponent.js +1 -1
  131. package/src/private/specs_DEPRECATED/components/RCTModalHostViewNativeComponent.js +1 -1
  132. package/src/private/specs_DEPRECATED/components/RCTSafeAreaViewNativeComponent.js +1 -1
  133. package/src/private/specs_DEPRECATED/components/SwitchNativeComponent.js +1 -1
  134. package/src/private/specs_DEPRECATED/components/UnimplementedNativeViewNativeComponent.js +1 -1
  135. package/src/private/types/HostComponent.js +16 -0
  136. package/src/private/types/HostInstance.js +50 -0
  137. package/src/private/webapis/dom/nodes/ReactNativeDocument.js +1 -0
  138. package/src/private/webapis/dom/nodes/ReactNativeElement.js +40 -32
  139. package/src/private/webapis/dom/nodes/ReadOnlyCharacterData.js +1 -1
  140. package/src/private/webapis/dom/nodes/ReadOnlyElement.js +1 -1
  141. package/src/private/webapis/dom/nodes/ReadOnlyNode.js +1 -1
  142. package/src/private/webapis/intersectionobserver/IntersectionObserver.js +4 -4
  143. package/src/private/webapis/mutationobserver/MutationObserver.js +9 -9
  144. package/src/private/webapis/performance/PerformanceObserver.js +6 -6
  145. package/src/types/globals.d.ts +628 -0
  146. package/src-win/Libraries/Text/Text.d.ts +1 -1
  147. package/types/index.d.ts +2 -53
  148. package/types/modules/globals.d.ts +0 -599
@@ -14,8 +14,22 @@ import NativeEventEmitter from '../EventEmitter/NativeEventEmitter';
14
14
  import NativeDevSettings from '../NativeModules/specs/NativeDevSettings';
15
15
  import Platform from '../Utilities/Platform';
16
16
 
17
+ /**
18
+ * The DevSettings module exposes methods for customizing settings for developers in development.
19
+ */
17
20
  let DevSettings: {
21
+ /**
22
+ * Adds a custom menu item to the developer menu.
23
+ *
24
+ * @param title - The title of the menu item. Is internally used as id and should therefore be unique.
25
+ * @param handler - The callback invoked when pressing the menu item.
26
+ */
18
27
  addMenuItem(title: string, handler: () => mixed): void,
28
+ /**
29
+ * Reload the application.
30
+ *
31
+ * @param reason
32
+ */
19
33
  reload(reason?: string): void,
20
34
  onFastRefresh(): void,
21
35
  } = {
@@ -19,6 +19,11 @@ import NativeDeviceInfo, {
19
19
  } from './NativeDeviceInfo';
20
20
  import invariant from 'invariant';
21
21
 
22
+ export type {DisplayMetrics, DisplayMetricsAndroid};
23
+
24
+ /** @deprecated Use DisplayMetrics */
25
+ export type ScaledSize = DisplayMetrics;
26
+
22
27
  const eventEmitter = new EventEmitter<{
23
28
  change: [DimensionsPayload],
24
29
  }>();
@@ -17,6 +17,11 @@ import NativeDeviceInfo, {
17
17
  } from './NativeDeviceInfo';
18
18
  import invariant from 'invariant';
19
19
 
20
+ export type {DisplayMetrics, DisplayMetricsAndroid};
21
+
22
+ /** @deprecated Use DisplayMetrics */
23
+ export type ScaledSize = DisplayMetrics;
24
+
20
25
  const eventEmitter = new EventEmitter<{
21
26
  change: [DimensionsPayload],
22
27
  }>();
@@ -5,12 +5,9 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  * @flow strict
8
- * @nolint
9
8
  * @format
10
9
  */
11
10
 
12
- declare class Position {
13
- coords: Coordinates;
14
- timestamp: number;
15
- mocked: boolean;
16
- }
11
+ import type {Platform} from './PlatformTypes';
12
+
13
+ declare export default Platform;
@@ -8,14 +8,18 @@
8
8
  * @format
9
9
  */
10
10
 
11
+ export type PlatformOSType =
12
+ | 'ios'
13
+ | 'android'
14
+ | 'macos'
15
+ | 'windows'
16
+ | 'win32' // [Windows]
17
+ | 'web'
18
+ | 'native';
19
+
11
20
  export type PlatformSelectSpec<T> = {
12
21
  default?: T,
13
- native?: T,
14
- ios?: T,
15
- android?: T,
16
- win32?: T,
17
- windows?: T,
18
- ...
22
+ [PlatformOSType]: T,
19
23
  };
20
24
 
21
25
  type IOSPlatform = {
@@ -90,6 +94,66 @@ type AndroidPlatform = {
90
94
  select: <T>(spec: PlatformSelectSpec<T>) => T,
91
95
  };
92
96
 
97
+ type WindowsPlatform = {
98
+ __constants: null,
99
+ OS: 'windows',
100
+ // $FlowFixMe[unsafe-getters-setters]
101
+ get Version(): number,
102
+ // $FlowFixMe[unsafe-getters-setters]
103
+ get constants(): {
104
+ // [Windows]
105
+ isTesting: boolean,
106
+ isDisableAnimations?: boolean,
107
+ reactNativeVersion: {
108
+ major: number,
109
+ minor: number,
110
+ patch: number,
111
+ prerelease: ?string,
112
+ },
113
+ reactNativeWindowsVersion: {
114
+ major: number,
115
+ minor: number,
116
+ patch: number,
117
+ },
118
+ osVersion: number,
119
+ },
120
+ // $FlowFixMe[unsafe-getters-setters]
121
+ get isTesting(): boolean,
122
+ // $FlowFixMe[unsafe-getters-setters]
123
+ get isDisableAnimations(): boolean,
124
+ // $FlowFixMe[unsafe-getters-setters]
125
+ get isTV(): boolean,
126
+ select: <T>(spec: PlatformSelectSpec<T>) => T,
127
+ };
128
+
129
+ type MacOSPlatform = {
130
+ __constants: null,
131
+ OS: 'macos',
132
+ // $FlowFixMe[unsafe-getters-setters]
133
+ get Version(): string,
134
+ // $FlowFixMe[unsafe-getters-setters]
135
+ get constants(): {
136
+ isTesting: boolean,
137
+ osVersion: string,
138
+ reactNativeVersion: {
139
+ major: number,
140
+ minor: number,
141
+ patch: number,
142
+ prerelease: ?number,
143
+ },
144
+ systemName: string,
145
+ },
146
+ // $FlowFixMe[unsafe-getters-setters]
147
+ get isTV(): boolean,
148
+ // $FlowFixMe[unsafe-getters-setters]
149
+ get isVision(): boolean,
150
+ // $FlowFixMe[unsafe-getters-setters]
151
+ get isTesting(): boolean,
152
+ // $FlowFixMe[unsafe-getters-setters]
153
+ get isDisableAnimations(): boolean,
154
+ select: <T>(spec: PlatformSelectSpec<T>) => T,
155
+ };
156
+
93
157
  type Win32Platform = {
94
158
  __constants: null,
95
159
  // $FlowFixMe[cannot-resolve-name]
@@ -123,4 +187,30 @@ type Win32Platform = {
123
187
  select: <T>(spec: PlatformSelectSpec<T>) => T,
124
188
  };
125
189
 
126
- export type Platform = IOSPlatform | AndroidPlatform | Win32Platform;
190
+ type WebPlatform = {
191
+ OS: 'web',
192
+ // $FlowFixMe[unsafe-getters-setters]
193
+ get constants(): {
194
+ reactNativeVersion: {
195
+ major: number,
196
+ minor: number,
197
+ patch: number,
198
+ prerelease: ?string,
199
+ },
200
+ },
201
+ // $FlowFixMe[unsafe-getters-setters]
202
+ get isTV(): boolean,
203
+ // $FlowFixMe[unsafe-getters-setters]
204
+ get isTesting(): boolean,
205
+ // $FlowFixMe[unsafe-getters-setters]
206
+ get isDisableAnimations(): boolean,
207
+ select: <T>(spec: PlatformSelectSpec<T>) => T,
208
+ };
209
+
210
+ export type Platform =
211
+ | IOSPlatform
212
+ | AndroidPlatform
213
+ | WindowsPlatform
214
+ | Win32Platform // [Windows]
215
+ | MacOSPlatform
216
+ | WebPlatform;
@@ -10,7 +10,7 @@
10
10
 
11
11
  // TODO: move this file to shims/ReactNative (requires React update and sync)
12
12
 
13
- import type {HostComponent} from '../../Libraries/Renderer/shims/ReactNativeTypes';
13
+ import type {HostComponent} from '../../src/private/types/HostComponent';
14
14
 
15
15
  import requireNativeComponent from '../../Libraries/ReactNative/requireNativeComponent';
16
16
  import UIManager from '../ReactNative/UIManager';
@@ -8,10 +8,8 @@
8
8
  * @format
9
9
  */
10
10
 
11
- import type {
12
- HostComponent,
13
- HostInstance,
14
- } from '../Renderer/shims/ReactNativeTypes';
11
+ import type {HostComponent} from '../../src/private/types/HostComponent';
12
+ import type {HostInstance} from '../../src/private/types/HostInstance';
15
13
 
16
14
  import * as React from 'react';
17
15
 
package/index.win32.js CHANGED
@@ -75,10 +75,8 @@ import typeof I18nManager from './Libraries/ReactNative/I18nManager';
75
75
  import typeof {RootTagContext} from './Libraries/ReactNative/RootTag';
76
76
  import typeof UIManager from './Libraries/ReactNative/UIManager';
77
77
  import typeof ReactNative from './Libraries/Renderer/shims/ReactNative';
78
- import type {
79
- HostComponent,
80
- HostInstance,
81
- } from './Libraries/Renderer/shims/ReactNativeTypes';
78
+ import type {HostComponent} from './src/private/types/HostComponent';
79
+ import type {HostInstance} from './src/private/types/HostInstance';
82
80
  import typeof Settings from './Libraries/Settings/Settings';
83
81
  import typeof Share from './Libraries/Share/Share';
84
82
  import typeof {PlatformColor} from './Libraries/StyleSheet/PlatformColorValueTypes';
@@ -234,6 +232,7 @@ module.exports = {
234
232
  // Include any types exported in the Animated module together with its default export, so
235
233
  // you can references types such as Animated.Numeric
236
234
  get Animated(): {...$Diff<AnimatedModule, {default: any}>, ...Animated} {
235
+ // $FlowFixMe[incompatible-variance]: Ignoring variance issue with Color property
237
236
  // $FlowExpectedError[prop-missing]: we only return the default export, all other exports are types
238
237
  return require('./Libraries/Animated/Animated').default;
239
238
  },
package/overrides.json CHANGED
@@ -7,13 +7,13 @@
7
7
  "**/__snapshots__/**",
8
8
  "src-win/rntypes/**"
9
9
  ],
10
- "baseVersion": "0.79.0-nightly-20250220-41b597c73",
10
+ "baseVersion": "0.79.0-nightly-20250303-cee63397b",
11
11
  "overrides": [
12
12
  {
13
13
  "type": "derived",
14
14
  "file": ".flowconfig",
15
15
  "baseFile": ".flowconfig",
16
- "baseHash": "bbd5e6a4e1714c0737ae334c59130213ff0ece37"
16
+ "baseHash": "23e4ec639f146691148b6736f4e84478ae2a5416"
17
17
  },
18
18
  {
19
19
  "type": "derived",
@@ -41,7 +41,7 @@
41
41
  "type": "derived",
42
42
  "file": "src-win/Libraries/Components/AccessibilityInfo/AccessibilityInfo.win32.js",
43
43
  "baseFile": "packages/react-native/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js",
44
- "baseHash": "e91ae4454ae1301d97a60755ecc863bf738542e3"
44
+ "baseHash": "fa025a1dabfb8c73f72cab48393ef1720273690d"
45
45
  },
46
46
  {
47
47
  "type": "copy",
@@ -60,7 +60,7 @@
60
60
  "type": "derived",
61
61
  "file": "src-win/Libraries/Components/Button.win32.js",
62
62
  "baseFile": "packages/react-native/Libraries/Components/Button.js",
63
- "baseHash": "b714b539fc713630886ddabb3f0bcad4f13eb591"
63
+ "baseHash": "c61bda5775588b9dd85622f691b89e6b3e3a9fc8"
64
64
  },
65
65
  {
66
66
  "type": "platform",
@@ -71,10 +71,10 @@
71
71
  "file": "src-win/Libraries/Components/Button/ButtonWin32.tsx"
72
72
  },
73
73
  {
74
- "type": "patch",
74
+ "type": "copy",
75
75
  "file": "src-win/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js",
76
76
  "baseFile": "packages/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js",
77
- "baseHash": "8d67db83e2c43a20a5081375eb3fc4f5b8afdea1",
77
+ "baseHash": "8909ad50924f46afa7cabb15cf9cf4ade7021a90",
78
78
  "issue": 14290
79
79
  },
80
80
  {
@@ -85,21 +85,21 @@
85
85
  "type": "patch",
86
86
  "file": "src-win/Libraries/Components/Pressable/Pressable.win32.js",
87
87
  "baseFile": "packages/react-native/Libraries/Components/Pressable/Pressable.js",
88
- "baseHash": "0241c2ca83e3701e7516aa899f160ec9c1cacbfb",
88
+ "baseHash": "d213d6885bf028350b8f4c79bdcb847289317d86",
89
89
  "issue": 6240
90
90
  },
91
91
  {
92
92
  "type": "patch",
93
93
  "file": "src-win/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.js",
94
94
  "baseFile": "packages/react-native/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.js",
95
- "baseHash": "c785bfee2b2fe3d1ffee7fc38e5669b0b4dfb533",
95
+ "baseHash": "454f8b04bd6203c70b48aa6ec26e1c05dee42124",
96
96
  "issue": 0
97
97
  },
98
98
  {
99
99
  "type": "copy",
100
100
  "file": "src-win/Libraries/Components/SafeAreaView/SafeAreaView.win32.js",
101
101
  "baseFile": "packages/react-native/Libraries/Components/SafeAreaView/SafeAreaView.js",
102
- "baseHash": "e1372371cf14c8abd4fb5f2328513596f6553497"
102
+ "baseHash": "e4f9975b0a2ff7c67327dd0c4a580edfd98412c1"
103
103
  },
104
104
  {
105
105
  "type": "platform",
@@ -109,13 +109,13 @@
109
109
  "type": "derived",
110
110
  "file": "src-win/Libraries/Components/TextInput/TextInput.win32.js",
111
111
  "baseFile": "packages/react-native/Libraries/Components/TextInput/TextInput.js",
112
- "baseHash": "bbd21bfeb34988fa7e5e50dff9817b9e14d2bd11"
112
+ "baseHash": "eb047724db45395fe5d6487e269a00a198807eb8"
113
113
  },
114
114
  {
115
115
  "type": "patch",
116
116
  "file": "src-win/Libraries/Components/TextInput/TextInputState.win32.js",
117
117
  "baseFile": "packages/react-native/Libraries/Components/TextInput/TextInputState.js",
118
- "baseHash": "0814cb4b219fd3c6947e492c617fd6832ef113d2"
118
+ "baseHash": "5603046411826837d1f8003f2d6784221bdef674"
119
119
  },
120
120
  {
121
121
  "type": "platform",
@@ -136,7 +136,7 @@
136
136
  "type": "patch",
137
137
  "file": "src-win/Libraries/Components/Touchable/Touchable.win32.js",
138
138
  "baseFile": "packages/react-native/Libraries/Components/Touchable/Touchable.js",
139
- "baseHash": "81688929fae255e49fe08bdb491ca0304204ffb2",
139
+ "baseHash": "5e13ce3ef1cfeb38a1a9695c3013617527c21175",
140
140
  "issue": 0
141
141
  },
142
142
  {
@@ -149,7 +149,7 @@
149
149
  "type": "derived",
150
150
  "file": "src-win/Libraries/Components/Touchable/TouchableNativeFeedback.win32.js",
151
151
  "baseFile": "packages/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.js",
152
- "baseHash": "bf4f87d88a7f118db00ee42b73e1fd0c6dcd17f7"
152
+ "baseHash": "c64be122b6011941423d60bc1aa03f5dab8fd7b1"
153
153
  },
154
154
  {
155
155
  "type": "platform",
@@ -173,7 +173,7 @@
173
173
  "type": "patch",
174
174
  "file": "src-win/Libraries/Components/View/View.win32.js",
175
175
  "baseFile": "packages/react-native/Libraries/Components/View/View.js",
176
- "baseHash": "0ab4937047f1469a6e8b5095d1112d0c4892af3d"
176
+ "baseHash": "5721d3baf49a611a12939b03840ef73b6974db26"
177
177
  },
178
178
  {
179
179
  "type": "derived",
@@ -197,7 +197,7 @@
197
197
  "type": "patch",
198
198
  "file": "src-win/Libraries/Components/View/ViewPropTypes.win32.js",
199
199
  "baseFile": "packages/react-native/Libraries/Components/View/ViewPropTypes.js",
200
- "baseHash": "be0e93a4b26b0d42b7b058b88478fda11e54775c",
200
+ "baseHash": "dbab30f1cad27a647149a61e1d63f7b81e6aed2e",
201
201
  "issue": 6240
202
202
  },
203
203
  {
@@ -348,14 +348,14 @@
348
348
  "type": "patch",
349
349
  "file": "src-win/Libraries/Pressability/HoverState.win32.js",
350
350
  "baseFile": "packages/react-native/Libraries/Pressability/HoverState.js",
351
- "baseHash": "8a97880597ea72d61464d07d1a082582320e7234",
351
+ "baseHash": "b3f46661c71f0196a239a059635dcebe8c7c7928",
352
352
  "issue": 6240
353
353
  },
354
354
  {
355
355
  "type": "patch",
356
356
  "file": "src-win/Libraries/Pressability/Pressability.win32.js",
357
357
  "baseFile": "packages/react-native/Libraries/Pressability/Pressability.js",
358
- "baseHash": "3134555d257392ef1a8ce66600e8a714bb01323b",
358
+ "baseHash": "97027444d74f5a2f03a966753c23f86145f3fc0b",
359
359
  "issue": 6240
360
360
  },
361
361
  {
@@ -408,32 +408,32 @@
408
408
  "type": "derived",
409
409
  "file": "src-win/Libraries/Text/Text.d.ts",
410
410
  "baseFile": "packages/react-native/Libraries/Text/Text.d.ts",
411
- "baseHash": "21dab7f71254c429d592827ab313f77c18baeda1"
411
+ "baseHash": "26bf1ec0ad4cae2049298d3ec95b387fa2fe854b"
412
412
  },
413
413
  {
414
414
  "type": "derived",
415
415
  "file": "src-win/Libraries/Text/Text.win32.js",
416
416
  "baseFile": "packages/react-native/Libraries/Text/Text.js",
417
- "baseHash": "9a5bc1a6cd62cb91f04f1017f2cb31a6733807df"
417
+ "baseHash": "3e4c3fe47759433ac3604a33fef65c7578556b29"
418
418
  },
419
419
  {
420
420
  "type": "derived",
421
421
  "file": "src-win/Libraries/Text/TextNativeComponent.win32.js",
422
422
  "baseFile": "packages/react-native/Libraries/Text/TextNativeComponent.js",
423
- "baseHash": "d9c832f0e2ca119b4b8773f59f707a6418fa7b5f",
423
+ "baseHash": "aad3be91ad4e326d5da431a57f9461b7420700e1",
424
424
  "issue": 7074
425
425
  },
426
426
  {
427
427
  "type": "derived",
428
428
  "file": "src-win/Libraries/Text/TextProps.win32.js",
429
429
  "baseFile": "packages/react-native/Libraries/Text/TextProps.js",
430
- "baseHash": "d448bcd43908efac636a89fe9e034d1c996c25c9"
430
+ "baseHash": "fadd5d092aa22ca59d2c33b0ac0191fe90f4f123"
431
431
  },
432
432
  {
433
433
  "type": "patch",
434
434
  "file": "src-win/Libraries/Types/CoreEventTypes.win32.js",
435
435
  "baseFile": "packages/react-native/Libraries/Types/CoreEventTypes.js",
436
- "baseHash": "38acf41281b75a0aaa0288628142fe77033a0e95",
436
+ "baseHash": "038c14d702490acd25dab824b1b10f5db42eece8",
437
437
  "issue": 6240
438
438
  },
439
439
  {
@@ -453,7 +453,7 @@
453
453
  "type": "derived",
454
454
  "file": "src-win/Libraries/Utilities/Dimensions.win32.js",
455
455
  "baseFile": "packages/react-native/Libraries/Utilities/Dimensions.js",
456
- "baseHash": "bac146d616013f6da06bba9f6c0f52633e4a0737"
456
+ "baseHash": "1c9f7f698bba91e98afb5cc8ec3511a30343f3bd"
457
457
  },
458
458
  {
459
459
  "type": "platform",
@@ -479,7 +479,7 @@
479
479
  "type": "patch",
480
480
  "file": "src-win/Libraries/Utilities/PlatformTypes.js",
481
481
  "baseFile": "packages/react-native/Libraries/Utilities/PlatformTypes.js",
482
- "baseHash": "0a7fce66d820af1b612a861a564b6f035256843d",
482
+ "baseHash": "95e01d9774ac3afdcdacdc049e9c647dbec3055d",
483
483
  "issue": 14686
484
484
  },
485
485
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@office-iss/react-native-win32",
3
- "version": "0.0.0-canary.287",
3
+ "version": "0.0.0-canary.288",
4
4
  "description": "Implementation of react native on top of Office's Win32 platform.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,13 +30,13 @@
30
30
  "@react-native-community/cli-platform-android": "15.0.0-alpha.2",
31
31
  "@react-native-community/cli-platform-ios": "15.0.0-alpha.2",
32
32
  "@react-native/assets": "1.0.0",
33
- "@react-native/assets-registry": "0.79.0-nightly-20250220-41b597c73",
34
- "@react-native/codegen": "0.79.0-nightly-20250220-41b597c73",
35
- "@react-native/community-cli-plugin": "0.79.0-nightly-20250220-41b597c73",
36
- "@react-native/gradle-plugin": "0.79.0-nightly-20250220-41b597c73",
37
- "@react-native/js-polyfills": "0.79.0-nightly-20250220-41b597c73",
38
- "@react-native/normalize-colors": "0.79.0-nightly-20250220-41b597c73",
39
- "@react-native/virtualized-lists": "0.79.0-nightly-20250220-41b597c73",
33
+ "@react-native/assets-registry": "0.79.0-nightly-20250303-cee63397b",
34
+ "@react-native/codegen": "0.79.0-nightly-20250303-cee63397b",
35
+ "@react-native/community-cli-plugin": "0.79.0-nightly-20250303-cee63397b",
36
+ "@react-native/gradle-plugin": "0.79.0-nightly-20250303-cee63397b",
37
+ "@react-native/js-polyfills": "0.79.0-nightly-20250303-cee63397b",
38
+ "@react-native/normalize-colors": "0.79.0-nightly-20250303-cee63397b",
39
+ "@react-native/virtualized-lists": "0.79.0-nightly-20250303-cee63397b",
40
40
  "abort-controller": "^3.0.0",
41
41
  "anser": "^1.4.9",
42
42
  "ansi-regex": "^5.0.0",
@@ -72,11 +72,11 @@
72
72
  "devDependencies": {
73
73
  "@babel/core": "^7.25.2",
74
74
  "@babel/eslint-parser": "^7.25.1",
75
- "@react-native/metro-config": "0.79.0-nightly-20250220-41b597c73",
75
+ "@react-native/metro-config": "0.79.0-nightly-20250303-cee63397b",
76
76
  "@rnw-scripts/babel-react-native-config": "0.0.0",
77
- "@rnw-scripts/eslint-config": "1.2.35",
78
- "@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.39",
79
- "@rnw-scripts/just-task": "2.3.52",
77
+ "@rnw-scripts/eslint-config": "1.2.36",
78
+ "@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.40",
79
+ "@rnw-scripts/just-task": "2.3.53",
80
80
  "@rnw-scripts/metro-dev-config": "0.0.0",
81
81
  "@rnx-kit/jest-preset": "^0.1.17",
82
82
  "@types/node": "^18.0.0",
@@ -88,14 +88,14 @@
88
88
  "just-scripts": "^1.3.3",
89
89
  "prettier": "2.8.8",
90
90
  "react": "19.0.0",
91
- "react-native": "0.79.0-nightly-20250220-41b597c73",
92
- "react-native-platform-override": "^1.9.54",
91
+ "react-native": "0.79.0-nightly-20250303-cee63397b",
92
+ "react-native-platform-override": "^1.9.55",
93
93
  "typescript": "5.0.4"
94
94
  },
95
95
  "peerDependencies": {
96
96
  "@types/react": "^19.0.0",
97
97
  "react": "^19.0.0",
98
- "react-native": "0.79.0-nightly-20250220-41b597c73"
98
+ "react-native": "0.79.0-nightly-20250303-cee63397b"
99
99
  },
100
100
  "beachball": {
101
101
  "defaultNpmTag": "canary",
@@ -11,7 +11,7 @@
11
11
 
12
12
  import type {ScrollViewNativeProps} from '../../../Libraries/Components/ScrollView/ScrollViewNativeComponentType';
13
13
  import type {ViewProps} from '../../../Libraries/Components/View/ViewPropTypes';
14
- import type {HostComponent} from '../../../Libraries/Renderer/shims/ReactNativeTypes';
14
+ import type {HostComponent} from '../types/HostComponent';
15
15
 
16
16
  import AndroidHorizontalScrollViewNativeComponent from '../../../Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent';
17
17
  import ScrollContentViewNativeComponent from '../../../Libraries/Components/ScrollView/ScrollContentViewNativeComponent';
@@ -11,7 +11,7 @@
11
11
 
12
12
  import type {ScrollViewNativeProps} from '../../../Libraries/Components/ScrollView/ScrollViewNativeComponentType';
13
13
  import type {ViewProps} from '../../../Libraries/Components/View/ViewPropTypes';
14
- import type {HostComponent} from '../../../Libraries/Renderer/shims/ReactNativeTypes';
14
+ import type {HostComponent} from '../types/HostComponent';
15
15
 
16
16
  import ScrollContentViewNativeComponent from '../../../Libraries/Components/ScrollView/ScrollContentViewNativeComponent';
17
17
  import ScrollViewNativeComponent from '../../../Libraries/Components/ScrollView/ScrollViewNativeComponent';
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<4bdedb6bbe2199cb99e72e86bfffe372>>
7
+ * @generated SignedSource<<3e68d888bf4d8ac71b63571a639d265b>>
8
8
  * @flow strict
9
9
  */
10
10
 
@@ -55,7 +55,6 @@ export type ReactNativeFeatureFlags = $ReadOnly<{
55
55
  enableBridgelessArchitecture: Getter<boolean>,
56
56
  enableCppPropsIteratorSetter: Getter<boolean>,
57
57
  enableEagerRootViewAttachment: Getter<boolean>,
58
- enableEventEmitterRetentionDuringGesturesOnAndroid: Getter<boolean>,
59
58
  enableFabricLogs: Getter<boolean>,
60
59
  enableFabricRenderer: Getter<boolean>,
61
60
  enableIOSViewClipToPaddingBox: Getter<boolean>,
@@ -82,6 +81,8 @@ export type ReactNativeFeatureFlags = $ReadOnly<{
82
81
  fuseboxEnabledRelease: Getter<boolean>,
83
82
  fuseboxNetworkInspectionEnabled: Getter<boolean>,
84
83
  lazyAnimationCallbacks: Getter<boolean>,
84
+ removeTurboModuleManagerDelegateMutex: Getter<boolean>,
85
+ throwExceptionInsteadOfDeadlockOnTurboModuleSetupDuringSyncRenderIOS: Getter<boolean>,
85
86
  traceTurboModulePromiseRejectionsOnAndroid: Getter<boolean>,
86
87
  useAlwaysAvailableJSErrorHandling: Getter<boolean>,
87
88
  useEditTextStockAndroidFocusBehavior: Getter<boolean>,
@@ -196,10 +197,6 @@ export const enableCppPropsIteratorSetter: Getter<boolean> = createNativeFlagGet
196
197
  * Feature flag to configure eager attachment of the root view/initialisation of the JS code.
197
198
  */
198
199
  export const enableEagerRootViewAttachment: Getter<boolean> = createNativeFlagGetter('enableEagerRootViewAttachment', false);
199
- /**
200
- * Enables the retention of EventEmitterWrapper on Android till the touch gesture is over to fix a bug on pressable (#44610)
201
- */
202
- export const enableEventEmitterRetentionDuringGesturesOnAndroid: Getter<boolean> = createNativeFlagGetter('enableEventEmitterRetentionDuringGesturesOnAndroid', false);
203
200
  /**
204
201
  * This feature flag enables logs for Fabric.
205
202
  */
@@ -304,6 +301,14 @@ export const fuseboxNetworkInspectionEnabled: Getter<boolean> = createNativeFlag
304
301
  * Only enqueue Choreographer calls if there is an ongoing animation, instead of enqueueing every frame.
305
302
  */
306
303
  export const lazyAnimationCallbacks: Getter<boolean> = createNativeFlagGetter('lazyAnimationCallbacks', false);
304
+ /**
305
+ * When enabled, mutex _turboModuleManagerDelegateMutex in RCTTurboModuleManager will not be used
306
+ */
307
+ export const removeTurboModuleManagerDelegateMutex: Getter<boolean> = createNativeFlagGetter('removeTurboModuleManagerDelegateMutex', false);
308
+ /**
309
+ * Throw an exception instead of deadlocking when a TurboModule that requires main queue setup is initialized during a synchronous render on iOS.
310
+ */
311
+ export const throwExceptionInsteadOfDeadlockOnTurboModuleSetupDuringSyncRenderIOS: Getter<boolean> = createNativeFlagGetter('throwExceptionInsteadOfDeadlockOnTurboModuleSetupDuringSyncRenderIOS', false);
307
312
  /**
308
313
  * Enables storing js caller stack when creating promise in native module. This is useful in case of Promise rejection and tracing the cause.
309
314
  */
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<06a03507366a38dfc43868e94d75fcf1>>
7
+ * @generated SignedSource<<0d611c17d522627c59a68d083eb6b6dc>>
8
8
  * @flow strict
9
9
  */
10
10
 
@@ -30,7 +30,6 @@ export interface Spec extends TurboModule {
30
30
  +enableBridgelessArchitecture?: () => boolean;
31
31
  +enableCppPropsIteratorSetter?: () => boolean;
32
32
  +enableEagerRootViewAttachment?: () => boolean;
33
- +enableEventEmitterRetentionDuringGesturesOnAndroid?: () => boolean;
34
33
  +enableFabricLogs?: () => boolean;
35
34
  +enableFabricRenderer?: () => boolean;
36
35
  +enableIOSViewClipToPaddingBox?: () => boolean;
@@ -57,6 +56,8 @@ export interface Spec extends TurboModule {
57
56
  +fuseboxEnabledRelease?: () => boolean;
58
57
  +fuseboxNetworkInspectionEnabled?: () => boolean;
59
58
  +lazyAnimationCallbacks?: () => boolean;
59
+ +removeTurboModuleManagerDelegateMutex?: () => boolean;
60
+ +throwExceptionInsteadOfDeadlockOnTurboModuleSetupDuringSyncRenderIOS?: () => boolean;
60
61
  +traceTurboModulePromiseRejectionsOnAndroid?: () => boolean;
61
62
  +useAlwaysAvailableJSErrorHandling?: () => boolean;
62
63
  +useEditTextStockAndroidFocusBehavior?: () => boolean;
@@ -8,10 +8,8 @@
8
8
  * @flow
9
9
  */
10
10
 
11
- import type {
12
- HostInstance,
13
- TouchedViewDataAtPoint,
14
- } from '../../../Libraries/Renderer/shims/ReactNativeTypes';
11
+ import type {TouchedViewDataAtPoint} from '../../../Libraries/Renderer/shims/ReactNativeTypes';
12
+ import type {HostInstance} from '../types/HostInstance';
15
13
 
16
14
  const invariant = require('invariant');
17
15
 
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @flow strict
7
+ * @flow strict-local
8
8
  * @format
9
9
  */
10
10
 
@@ -29,6 +29,11 @@ export default function setUpDOM() {
29
29
  () => require('../webapis/geometry/DOMRectReadOnly').default,
30
30
  );
31
31
 
32
+ polyfillGlobal(
33
+ 'DOMRectList',
34
+ () => require('../webapis/geometry/DOMRectList').default,
35
+ );
36
+
32
37
  polyfillGlobal(
33
38
  'HTMLCollection',
34
39
  () => require('../webapis/dom/oldstylecollections/HTMLCollection').default,
@@ -38,4 +43,34 @@ export default function setUpDOM() {
38
43
  'NodeList',
39
44
  () => require('../webapis/dom/oldstylecollections/NodeList').default,
40
45
  );
46
+
47
+ polyfillGlobal(
48
+ 'Node',
49
+ () => require('../webapis/dom/nodes/ReadOnlyNode').default,
50
+ );
51
+
52
+ polyfillGlobal(
53
+ 'Document',
54
+ () => require('../webapis/dom/nodes/ReactNativeDocument').default,
55
+ );
56
+
57
+ polyfillGlobal(
58
+ 'CharacterData',
59
+ () => require('../webapis/dom/nodes/ReadOnlyCharacterData').default,
60
+ );
61
+
62
+ polyfillGlobal(
63
+ 'Text',
64
+ () => require('../webapis/dom/nodes/ReadOnlyText').default,
65
+ );
66
+
67
+ polyfillGlobal(
68
+ 'Element',
69
+ () => require('../webapis/dom/nodes/ReadOnlyElement').default,
70
+ );
71
+
72
+ polyfillGlobal(
73
+ 'HTMLElement',
74
+ () => require('../webapis/dom/nodes/ReactNativeElement').default,
75
+ );
41
76
  }