@office-iss/react-native-win32 0.0.0-canary.265 → 0.0.0-canary.267

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 (54) hide show
  1. package/.flowconfig +1 -1
  2. package/CHANGELOG.json +15011 -14981
  3. package/CHANGELOG.md +20 -4
  4. package/Libraries/Animated/animations/Animation.js +4 -1
  5. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js +3 -1
  6. package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +17 -0
  7. package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js +1 -0
  8. package/Libraries/Components/Touchable/BoundingDimensions.js +11 -3
  9. package/Libraries/Components/Touchable/Position.js +7 -2
  10. package/Libraries/Components/Touchable/Touchable.js +4 -0
  11. package/Libraries/Components/Touchable/Touchable.win32.js +4 -0
  12. package/Libraries/Components/View/ReactNativeStyleAttributes.js +1 -1
  13. package/Libraries/Core/ReactNativeVersion.js +1 -1
  14. package/Libraries/Core/setUpReactDevTools.js +33 -7
  15. package/Libraries/Inspector/NetworkOverlay.js +4 -0
  16. package/Libraries/Inspector/ReactDevToolsOverlay.js +8 -13
  17. package/Libraries/Interaction/TouchHistoryMath.js +22 -19
  18. package/Libraries/LogBox/Data/LogBoxData.js +2 -2
  19. package/Libraries/NativeComponent/BaseViewConfig.android.js +1 -1
  20. package/Libraries/NativeComponent/BaseViewConfig.ios.js +1 -1
  21. package/Libraries/NativeComponent/BaseViewConfig.win32.js +1 -1
  22. package/Libraries/Network/XHRInterceptor.js +63 -14
  23. package/Libraries/Renderer/shims/ReactNativeTypes.js +2 -1
  24. package/Libraries/StyleSheet/StyleSheetTypes.js +1 -1
  25. package/Libraries/WebSocket/WebSocketEvent.js +4 -1
  26. package/Libraries/WebSocket/WebSocketInterceptor.js +31 -13
  27. package/index.js +4 -0
  28. package/index.win32.js +4 -0
  29. package/overrides.json +12 -12
  30. package/package.json +14 -14
  31. package/src/private/devmenu/DevMenu.d.ts +20 -0
  32. package/src/private/devmenu/DevMenu.js +31 -0
  33. package/src/private/featureflags/ReactNativeFeatureFlags.js +22 -11
  34. package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +4 -3
  35. package/src/private/reactdevtools/ReactDevToolsSettingsManager.android.js +20 -0
  36. package/src/private/reactdevtools/ReactDevToolsSettingsManager.ios.js +30 -0
  37. package/src/private/reactdevtools/ReactDevToolsSettingsManager.win32.js +20 -0
  38. package/src/private/specs/components/AndroidHorizontalScrollContentViewNativeComponent.js +1 -0
  39. package/src/private/specs/modules/{NativeDevToolsSettingsManager.js → NativeReactDevToolsSettingsManager.js} +3 -5
  40. package/src/private/webapis/performance/EventTiming.js +1 -1
  41. package/src/private/webapis/performance/Performance.js +3 -21
  42. package/src/private/webapis/performance/PerformanceObserver.js +68 -155
  43. package/src/private/webapis/performance/Utilities.js +25 -0
  44. package/src/private/webapis/performance/specs/NativePerformanceObserver.js +24 -16
  45. package/src/private/webapis/performance/specs/__mocks__/NativePerformance.js +11 -9
  46. package/src/private/webapis/performance/specs/__mocks__/NativePerformanceObserver.js +85 -58
  47. package/types/experimental.d.ts +1 -1
  48. package/types/index.d.ts +1 -1
  49. package/types/public/ReactNativeTypes.d.ts +0 -4
  50. package/Libraries/DevToolsSettings/DevToolsSettingsManager.android.js +0 -35
  51. package/Libraries/DevToolsSettings/DevToolsSettingsManager.d.ts +0 -20
  52. package/Libraries/DevToolsSettings/DevToolsSettingsManager.ios.js +0 -49
  53. package/Libraries/DevToolsSettings/DevToolsSettingsManager.win32.js +0 -35
  54. package/Libraries/DevToolsSettings/NativeDevToolsSettingsManager.js +0 -13
@@ -5,20 +5,57 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  * @format
8
+ * @flow strict-local
8
9
  */
9
10
 
10
11
  'use strict';
11
12
 
12
13
  const XMLHttpRequest = require('./XMLHttpRequest');
14
+ // $FlowFixMe[method-unbinding]
13
15
  const originalXHROpen = XMLHttpRequest.prototype.open;
16
+ // $FlowFixMe[method-unbinding]
14
17
  const originalXHRSend = XMLHttpRequest.prototype.send;
18
+ // $FlowFixMe[method-unbinding]
15
19
  const originalXHRSetRequestHeader = XMLHttpRequest.prototype.setRequestHeader;
16
20
 
17
- let openCallback;
18
- let sendCallback;
19
- let requestHeaderCallback;
20
- let headerReceivedCallback;
21
- let responseCallback;
21
+ type XHRInterceptorOpenCallback = (
22
+ method: string,
23
+ url: string,
24
+ request: XMLHttpRequest,
25
+ ) => void;
26
+
27
+ type XHRInterceptorSendCallback = (
28
+ data: string,
29
+ request: XMLHttpRequest,
30
+ ) => void;
31
+
32
+ type XHRInterceptorRequestHeaderCallback = (
33
+ header: string,
34
+ value: string,
35
+ request: XMLHttpRequest,
36
+ ) => void;
37
+
38
+ type XHRInterceptorHeaderReceivedCallback = (
39
+ responseContentType: string | void,
40
+ responseSize: number | void,
41
+ allHeaders: string,
42
+ request: XMLHttpRequest,
43
+ ) => void;
44
+
45
+ type XHRInterceptorResponseCallback = (
46
+ status: number,
47
+ timeout: number,
48
+ response: string,
49
+ responseURL: string,
50
+ responseType: string,
51
+ request: XMLHttpRequest,
52
+ ) => void;
53
+
54
+ let openCallback: XHRInterceptorOpenCallback | null;
55
+ let sendCallback: XHRInterceptorSendCallback | null;
56
+ let requestHeaderCallback: XHRInterceptorRequestHeaderCallback | null;
57
+ let headerReceivedCallback: XHRInterceptorHeaderReceivedCallback | null;
58
+ let responseCallback: XHRInterceptorResponseCallback | null;
22
59
 
23
60
  let isInterceptorEnabled = false;
24
61
 
@@ -33,39 +70,39 @@ const XHRInterceptor = {
33
70
  /**
34
71
  * Invoked before XMLHttpRequest.open(...) is called.
35
72
  */
36
- setOpenCallback(callback) {
73
+ setOpenCallback(callback: XHRInterceptorOpenCallback) {
37
74
  openCallback = callback;
38
75
  },
39
76
 
40
77
  /**
41
78
  * Invoked before XMLHttpRequest.send(...) is called.
42
79
  */
43
- setSendCallback(callback) {
80
+ setSendCallback(callback: XHRInterceptorSendCallback) {
44
81
  sendCallback = callback;
45
82
  },
46
83
 
47
84
  /**
48
85
  * Invoked after xhr's readyState becomes xhr.HEADERS_RECEIVED.
49
86
  */
50
- setHeaderReceivedCallback(callback) {
87
+ setHeaderReceivedCallback(callback: XHRInterceptorHeaderReceivedCallback) {
51
88
  headerReceivedCallback = callback;
52
89
  },
53
90
 
54
91
  /**
55
92
  * Invoked after xhr's readyState becomes xhr.DONE.
56
93
  */
57
- setResponseCallback(callback) {
94
+ setResponseCallback(callback: XHRInterceptorResponseCallback) {
58
95
  responseCallback = callback;
59
96
  },
60
97
 
61
98
  /**
62
99
  * Invoked before XMLHttpRequest.setRequestHeader(...) is called.
63
100
  */
64
- setRequestHeaderCallback(callback) {
101
+ setRequestHeaderCallback(callback: XHRInterceptorRequestHeaderCallback) {
65
102
  requestHeaderCallback = callback;
66
103
  },
67
104
 
68
- isInterceptorEnabled() {
105
+ isInterceptorEnabled(): boolean {
69
106
  return isInterceptorEnabled;
70
107
  },
71
108
 
@@ -75,7 +112,9 @@ const XHRInterceptor = {
75
112
  }
76
113
  // Override `open` method for all XHR requests to intercept the request
77
114
  // method and url, then pass them through the `openCallback`.
78
- XMLHttpRequest.prototype.open = function (method, url) {
115
+ // $FlowFixMe[cannot-write]
116
+ // $FlowFixMe[missing-this-annot]
117
+ XMLHttpRequest.prototype.open = function (method: string, url: string) {
79
118
  if (openCallback) {
80
119
  openCallback(method, url, this);
81
120
  }
@@ -84,7 +123,12 @@ const XHRInterceptor = {
84
123
 
85
124
  // Override `setRequestHeader` method for all XHR requests to intercept
86
125
  // the request headers, then pass them through the `requestHeaderCallback`.
87
- XMLHttpRequest.prototype.setRequestHeader = function (header, value) {
126
+ // $FlowFixMe[cannot-write]
127
+ // $FlowFixMe[missing-this-annot]
128
+ XMLHttpRequest.prototype.setRequestHeader = function (
129
+ header: string,
130
+ value: string,
131
+ ) {
88
132
  if (requestHeaderCallback) {
89
133
  requestHeaderCallback(header, value, this);
90
134
  }
@@ -93,7 +137,9 @@ const XHRInterceptor = {
93
137
 
94
138
  // Override `send` method of all XHR requests to intercept the data sent,
95
139
  // register listeners to intercept the response, and invoke the callbacks.
96
- XMLHttpRequest.prototype.send = function (data) {
140
+ // $FlowFixMe[cannot-write]
141
+ // $FlowFixMe[missing-this-annot]
142
+ XMLHttpRequest.prototype.send = function (data: string) {
97
143
  if (sendCallback) {
98
144
  sendCallback(data, this);
99
145
  }
@@ -151,8 +197,11 @@ const XHRInterceptor = {
151
197
  return;
152
198
  }
153
199
  isInterceptorEnabled = false;
200
+ // $FlowFixMe[cannot-write]
154
201
  XMLHttpRequest.prototype.send = originalXHRSend;
202
+ // $FlowFixMe[cannot-write]
155
203
  XMLHttpRequest.prototype.open = originalXHROpen;
204
+ // $FlowFixMe[cannot-write]
156
205
  XMLHttpRequest.prototype.setRequestHeader = originalXHRSetRequestHeader;
157
206
  responseCallback = null;
158
207
  openCallback = null;
@@ -7,7 +7,7 @@
7
7
  * @noformat
8
8
  * @nolint
9
9
  * @flow strict
10
- * @generated SignedSource<<3eb929731c259569c7af3b6479e486fe>>
10
+ * @generated SignedSource<<b803401b6dd721b9caffdac1f8b6fd1c>>
11
11
  */
12
12
 
13
13
  import type {
@@ -180,6 +180,7 @@ export type TouchedViewDataAtPoint = $ReadOnly<{
180
180
  width: number,
181
181
  height: number,
182
182
  }>,
183
+ closestPublicInstance?: PublicInstance,
183
184
  ...InspectorData,
184
185
  }>;
185
186
 
@@ -794,7 +794,7 @@ export type ____ViewStyle_InternalCore = $ReadOnly<{
794
794
  cursor?: CursorValue,
795
795
  boxShadow?: $ReadOnlyArray<BoxShadowValue> | string,
796
796
  filter?: $ReadOnlyArray<FilterFunction> | string,
797
- experimental_mixBlendMode?: ____BlendMode_Internal,
797
+ mixBlendMode?: ____BlendMode_Internal,
798
798
  experimental_backgroundImage?: $ReadOnlyArray<GradientValue> | string,
799
799
  isolation?: 'auto' | 'isolate',
800
800
  }>;
@@ -5,6 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  * @format
8
+ * @flow strict-local
8
9
  */
9
10
 
10
11
  'use strict';
@@ -18,7 +19,9 @@
18
19
  * In case of "message", the `data` property contains the incoming data.
19
20
  */
20
21
  class WebSocketEvent {
21
- constructor(type, eventInitDict) {
22
+ type: string;
23
+
24
+ constructor(type: string, eventInitDict: $FlowFixMe) {
22
25
  this.type = type.toString();
23
26
  Object.assign(this, eventInitDict);
24
27
  }
@@ -5,6 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  * @format
8
+ * @flow strict-local
8
9
  */
9
10
 
10
11
  import NativeEventEmitter from '../EventEmitter/NativeEventEmitter';
@@ -40,53 +41,53 @@ const WebSocketInterceptor = {
40
41
  /**
41
42
  * Invoked when RCTWebSocketModule.close(...) is called.
42
43
  */
43
- setCloseCallback(callback) {
44
+ setCloseCallback(callback: $FlowFixMe) {
44
45
  closeCallback = callback;
45
46
  },
46
47
 
47
48
  /**
48
49
  * Invoked when RCTWebSocketModule.send(...) or sendBinary(...) is called.
49
50
  */
50
- setSendCallback(callback) {
51
+ setSendCallback(callback: $FlowFixMe) {
51
52
  sendCallback = callback;
52
53
  },
53
54
 
54
55
  /**
55
56
  * Invoked when RCTWebSocketModule.connect(...) is called.
56
57
  */
57
- setConnectCallback(callback) {
58
+ setConnectCallback(callback: $FlowFixMe) {
58
59
  connectCallback = callback;
59
60
  },
60
61
 
61
62
  /**
62
63
  * Invoked when event "websocketOpen" happens.
63
64
  */
64
- setOnOpenCallback(callback) {
65
+ setOnOpenCallback(callback: $FlowFixMe) {
65
66
  onOpenCallback = callback;
66
67
  },
67
68
 
68
69
  /**
69
70
  * Invoked when event "websocketMessage" happens.
70
71
  */
71
- setOnMessageCallback(callback) {
72
+ setOnMessageCallback(callback: $FlowFixMe) {
72
73
  onMessageCallback = callback;
73
74
  },
74
75
 
75
76
  /**
76
77
  * Invoked when event "websocketFailed" happens.
77
78
  */
78
- setOnErrorCallback(callback) {
79
+ setOnErrorCallback(callback: $FlowFixMe) {
79
80
  onErrorCallback = callback;
80
81
  },
81
82
 
82
83
  /**
83
84
  * Invoked when event "websocketClosed" happens.
84
85
  */
85
- setOnCloseCallback(callback) {
86
+ setOnCloseCallback(callback: $FlowFixMe) {
86
87
  onCloseCallback = callback;
87
88
  },
88
89
 
89
- isInterceptorEnabled() {
90
+ isInterceptorEnabled(): boolean {
90
91
  return isInterceptorEnabled;
91
92
  },
92
93
 
@@ -100,6 +101,7 @@ const WebSocketInterceptor = {
100
101
  */
101
102
  _registerEvents() {
102
103
  subscriptions = [
104
+ // $FlowFixMe[incompatible-type]
103
105
  eventEmitter.addListener('websocketMessage', ev => {
104
106
  if (onMessageCallback) {
105
107
  onMessageCallback(
@@ -110,16 +112,19 @@ const WebSocketInterceptor = {
110
112
  );
111
113
  }
112
114
  }),
115
+ // $FlowFixMe[incompatible-type]
113
116
  eventEmitter.addListener('websocketOpen', ev => {
114
117
  if (onOpenCallback) {
115
118
  onOpenCallback(ev.id);
116
119
  }
117
120
  }),
121
+ // $FlowFixMe[incompatible-type]
118
122
  eventEmitter.addListener('websocketClosed', ev => {
119
123
  if (onCloseCallback) {
120
124
  onCloseCallback(ev.id, {code: ev.code, reason: ev.reason});
121
125
  }
122
126
  }),
127
+ // $FlowFixMe[incompatible-type]
123
128
  eventEmitter.addListener('websocketFailed', ev => {
124
129
  if (onErrorCallback) {
125
130
  onErrorCallback(ev.id, {message: ev.message});
@@ -132,6 +137,7 @@ const WebSocketInterceptor = {
132
137
  if (isInterceptorEnabled) {
133
138
  return;
134
139
  }
140
+ // $FlowFixMe[underconstrained-implicit-instantiation]
135
141
  eventEmitter = new NativeEventEmitter(
136
142
  // T88715063: NativeEventEmitter only used this parameter on iOS. Now it uses it on all platforms, so this code was modified automatically to preserve its behavior
137
143
  // If you want to use the native module on other platforms, please remove this condition and test its behavior
@@ -142,11 +148,13 @@ const WebSocketInterceptor = {
142
148
  // Override `connect` method for all RCTWebSocketModule requests
143
149
  // to intercept the request url, protocols, options and socketId,
144
150
  // then pass them through the `connectCallback`.
151
+ // $FlowFixMe[cannot-write]
152
+ // $FlowFixMe[missing-this-annot]
145
153
  NativeWebSocketModule.connect = function (
146
- url,
147
- protocols,
148
- options,
149
- socketId,
154
+ url: string,
155
+ protocols: Array<string> | null,
156
+ options: $FlowFixMe,
157
+ socketId: number,
150
158
  ) {
151
159
  if (connectCallback) {
152
160
  connectCallback(url, protocols, options, socketId);
@@ -156,6 +164,8 @@ const WebSocketInterceptor = {
156
164
 
157
165
  // Override `send` method for all RCTWebSocketModule requests to intercept
158
166
  // the data sent, then pass them through the `sendCallback`.
167
+ // $FlowFixMe[cannot-write]
168
+ // $FlowFixMe[missing-this-annot]
159
169
  NativeWebSocketModule.send = function (data, socketId) {
160
170
  if (sendCallback) {
161
171
  sendCallback(data, socketId);
@@ -165,6 +175,8 @@ const WebSocketInterceptor = {
165
175
 
166
176
  // Override `sendBinary` method for all RCTWebSocketModule requests to
167
177
  // intercept the data sent, then pass them through the `sendCallback`.
178
+ // $FlowFixMe[cannot-write]
179
+ // $FlowFixMe[missing-this-annot]
168
180
  NativeWebSocketModule.sendBinary = function (data, socketId) {
169
181
  if (sendCallback) {
170
182
  sendCallback(WebSocketInterceptor._arrayBufferToString(data), socketId);
@@ -174,6 +186,8 @@ const WebSocketInterceptor = {
174
186
 
175
187
  // Override `close` method for all RCTWebSocketModule requests to intercept
176
188
  // the close information, then pass them through the `closeCallback`.
189
+ // $FlowFixMe[cannot-write]
190
+ // $FlowFixMe[missing-this-annot]
177
191
  NativeWebSocketModule.close = function () {
178
192
  if (closeCallback) {
179
193
  if (arguments.length === 3) {
@@ -188,7 +202,7 @@ const WebSocketInterceptor = {
188
202
  isInterceptorEnabled = true;
189
203
  },
190
204
 
191
- _arrayBufferToString(data) {
205
+ _arrayBufferToString(data: string): ArrayBuffer | string {
192
206
  const value = base64.toByteArray(data).buffer;
193
207
  if (value === undefined || value === null) {
194
208
  return '(no value)';
@@ -209,9 +223,13 @@ const WebSocketInterceptor = {
209
223
  return;
210
224
  }
211
225
  isInterceptorEnabled = false;
226
+ // $FlowFixMe[cannot-write]
212
227
  NativeWebSocketModule.send = originalRCTWebSocketSend;
228
+ // $FlowFixMe[cannot-write]
213
229
  NativeWebSocketModule.sendBinary = originalRCTWebSocketSendBinary;
230
+ // $FlowFixMe[cannot-write]
214
231
  NativeWebSocketModule.close = originalRCTWebSocketClose;
232
+ // $FlowFixMe[cannot-write]
215
233
  NativeWebSocketModule.connect = originalRCTWebSocketConnect;
216
234
 
217
235
  connectCallback = null;
package/index.js CHANGED
@@ -85,6 +85,7 @@ import typeof UTFSequence from './Libraries/UTFSequence';
85
85
  import typeof * as Appearance from './Libraries/Utilities/Appearance';
86
86
  import typeof BackHandler from './Libraries/Utilities/BackHandler';
87
87
  import typeof DeviceInfo from './Libraries/Utilities/DeviceInfo';
88
+ import typeof DevMenu from './src/private/devmenu/DevMenu';
88
89
  import typeof DevSettings from './Libraries/Utilities/DevSettings';
89
90
  import typeof Dimensions from './Libraries/Utilities/Dimensions';
90
91
  import typeof PixelRatio from './Libraries/Utilities/PixelRatio';
@@ -238,6 +239,9 @@ module.exports = {
238
239
  get DeviceInfo(): DeviceInfo {
239
240
  return require('./Libraries/Utilities/DeviceInfo');
240
241
  },
242
+ get DevMenu(): DevMenu {
243
+ return require('./src/private/devmenu/DevMenu');
244
+ },
241
245
  get DevSettings(): DevSettings {
242
246
  return require('./Libraries/Utilities/DevSettings');
243
247
  },
package/index.win32.js CHANGED
@@ -85,6 +85,7 @@ import typeof UTFSequence from './Libraries/UTFSequence';
85
85
  import typeof * as Appearance from './Libraries/Utilities/Appearance';
86
86
  import typeof BackHandler from './Libraries/Utilities/BackHandler';
87
87
  import typeof DeviceInfo from './Libraries/Utilities/DeviceInfo';
88
+ import typeof DevMenu from './src/private/devmenu/DevMenu';
88
89
  import typeof DevSettings from './Libraries/Utilities/DevSettings';
89
90
  import typeof Dimensions from './Libraries/Utilities/Dimensions';
90
91
  import typeof PixelRatio from './Libraries/Utilities/PixelRatio';
@@ -240,6 +241,9 @@ module.exports = {
240
241
  get DeviceInfo(): DeviceInfo {
241
242
  return require('./Libraries/Utilities/DeviceInfo');
242
243
  },
244
+ get DevMenu(): DevMenu {
245
+ return require('./src/private/devmenu/DevMenu');
246
+ },
243
247
  get DevSettings(): DevSettings {
244
248
  return require('./Libraries/Utilities/DevSettings');
245
249
  },
package/overrides.json CHANGED
@@ -7,19 +7,19 @@
7
7
  "**/__snapshots__/**",
8
8
  "src-win/rntypes/**"
9
9
  ],
10
- "baseVersion": "0.77.0-nightly-20240921-1747f57c6",
10
+ "baseVersion": "0.77.0-nightly-20241001-223e98cc4",
11
11
  "overrides": [
12
12
  {
13
13
  "type": "derived",
14
14
  "file": ".flowconfig",
15
15
  "baseFile": ".flowconfig",
16
- "baseHash": "3fbaf9dcd4027fa382894d06f330d0c68ceff9fb"
16
+ "baseHash": "0ef50a705dc56608e4a8bd11d3b0d3daedfc0012"
17
17
  },
18
18
  {
19
19
  "type": "derived",
20
20
  "file": "src-win/index.win32.js",
21
21
  "baseFile": "packages/react-native/index.js",
22
- "baseHash": "da5d9e79c8c14c56ba00f73c8514c06e6fffe8ed"
22
+ "baseHash": "70b04f859a60e3752e6937b9fc294ffee30e6366"
23
23
  },
24
24
  {
25
25
  "type": "platform",
@@ -74,7 +74,7 @@
74
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": "09f143fc3f2ee80463764e1c2b3f23107d501a4c",
77
+ "baseHash": "b9a6866d03ca389af38734ffed24199505b05402",
78
78
  "issue": 4378
79
79
  },
80
80
  {
@@ -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": "27e19d3bf49ff28629fdad544aad04939c2ce030",
139
+ "baseHash": "b06bb9da5282d7559f283a7d535797a0417808a6",
140
140
  "issue": 0
141
141
  },
142
142
  {
@@ -224,12 +224,6 @@
224
224
  "baseHash": "453c4da8036736aefbd950bb7c90603859933f4e",
225
225
  "issue": 5170
226
226
  },
227
- {
228
- "type": "copy",
229
- "file": "src-win/Libraries/DevToolsSettings/DevToolsSettingsManager.win32.js",
230
- "baseFile": "packages/react-native/Libraries/DevToolsSettings/DevToolsSettingsManager.android.js",
231
- "baseHash": "1c9eb481e8ed077fa650e3ea34837e2a31310366"
232
- },
233
227
  {
234
228
  "type": "platform",
235
229
  "file": "src-win/Libraries/Image/assetPaths.js"
@@ -337,7 +331,7 @@
337
331
  "type": "derived",
338
332
  "file": "src-win/Libraries/NativeComponent/BaseViewConfig.win32.js",
339
333
  "baseFile": "packages/react-native/Libraries/NativeComponent/BaseViewConfig.ios.js",
340
- "baseHash": "0b4642542c2865c5cd3d542a82b295a1aca21c1a"
334
+ "baseHash": "af602af3c3acc6521f5535f2fe14bfe08cf1b5e9"
341
335
  },
342
336
  {
343
337
  "type": "copy",
@@ -529,6 +523,12 @@
529
523
  "file": "src-win/src/private/specs/modules/NativePlatformConstantsWin.js",
530
524
  "baseFile": "packages/react-native/src/private/specs/modules/NativePlatformConstantsAndroid.js",
531
525
  "baseHash": "fa0f34a2de33b641bd63863629087644796d8b59"
526
+ },
527
+ {
528
+ "type": "copy",
529
+ "file": "src-win/src/private/reactdevtools/ReactDevToolsSettingsManager.win32.js",
530
+ "baseFile": "packages/react-native/src/private/reactdevtools/ReactDevToolsSettingsManager.android.js",
531
+ "baseHash": "df41b76dc3d2df9455fae588748261d7b0a22d01"
532
532
  }
533
533
  ]
534
534
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@office-iss/react-native-win32",
3
- "version": "0.0.0-canary.265",
3
+ "version": "0.0.0-canary.267",
4
4
  "description": "Implementation of react native on top of Office's Win32 platform.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,17 +26,17 @@
26
26
  "dependencies": {
27
27
  "@babel/runtime": "^7.0.0",
28
28
  "@jest/create-cache-key-function": "^29.6.3",
29
- "@react-native-community/cli": "14.0.0",
30
- "@react-native-community/cli-platform-android": "14.0.0",
31
- "@react-native-community/cli-platform-ios": "14.0.0",
29
+ "@react-native-community/cli": "15.0.0-alpha.2",
30
+ "@react-native-community/cli-platform-android": "15.0.0-alpha.2",
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.77.0-nightly-20240921-1747f57c6",
34
- "@react-native/codegen": "0.77.0-nightly-20240921-1747f57c6",
35
- "@react-native/community-cli-plugin": "0.77.0-nightly-20240921-1747f57c6",
36
- "@react-native/gradle-plugin": "0.77.0-nightly-20240921-1747f57c6",
37
- "@react-native/js-polyfills": "0.77.0-nightly-20240921-1747f57c6",
38
- "@react-native/normalize-colors": "0.77.0-nightly-20240921-1747f57c6",
39
- "@react-native/virtualized-lists": "0.77.0-nightly-20240921-1747f57c6",
33
+ "@react-native/assets-registry": "0.77.0-nightly-20241001-223e98cc4",
34
+ "@react-native/codegen": "0.77.0-nightly-20241001-223e98cc4",
35
+ "@react-native/community-cli-plugin": "0.77.0-nightly-20241001-223e98cc4",
36
+ "@react-native/gradle-plugin": "0.77.0-nightly-20241001-223e98cc4",
37
+ "@react-native/js-polyfills": "0.77.0-nightly-20241001-223e98cc4",
38
+ "@react-native/normalize-colors": "0.77.0-nightly-20241001-223e98cc4",
39
+ "@react-native/virtualized-lists": "0.77.0-nightly-20241001-223e98cc4",
40
40
  "abort-controller": "^3.0.0",
41
41
  "anser": "^1.4.9",
42
42
  "ansi-regex": "^5.0.0",
@@ -60,7 +60,7 @@
60
60
  "pretty-format": "^29.7.0",
61
61
  "promise": "^8.3.0",
62
62
  "react-clone-referenced-element": "^1.0.1",
63
- "react-devtools-core": "^5.3.1",
63
+ "react-devtools-core": "^6.0.0",
64
64
  "react-refresh": "^0.14.0",
65
65
  "react-shallow-renderer": "^16.15.0",
66
66
  "regenerator-runtime": "^0.13.2",
@@ -90,14 +90,14 @@
90
90
  "just-scripts": "^1.3.3",
91
91
  "prettier": "2.8.8",
92
92
  "react": "19.0.0-rc-fb9a90fa48-20240614",
93
- "react-native": "0.77.0-nightly-20240921-1747f57c6",
93
+ "react-native": "0.77.0-nightly-20241001-223e98cc4",
94
94
  "react-native-platform-override": "^1.9.48",
95
95
  "typescript": "5.0.4"
96
96
  },
97
97
  "peerDependencies": {
98
98
  "@types/react": "^18.2.6",
99
99
  "react": "^19.0.0-rc-fb9a90fa48-20240614",
100
- "react-native": "0.77.0-nightly-20240921-1747f57c6"
100
+ "react-native": "0.77.0-nightly-20241001-223e98cc4"
101
101
  },
102
102
  "beachball": {
103
103
  "defaultNpmTag": "canary",
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @format
8
+ */
9
+
10
+ /**
11
+ * The DevMenu module exposes methods for interacting with the Dev Menu in development.
12
+ */
13
+ export interface DevMenuStatic {
14
+ /**
15
+ * Show the Dev Menu.
16
+ */
17
+ show(): void;
18
+ }
19
+
20
+ export const DevMenu: DevMenuStatic;
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow strict-local
8
+ * @format
9
+ */
10
+
11
+ import NativeDevMenu from '../specs/modules/NativeDevMenu';
12
+
13
+ /**
14
+ * The DevMenu module exposes methods for interacting with the Dev Menu in development.
15
+ */
16
+ type DevMenuStatic = {
17
+ /**
18
+ * Show the Dev Menu.
19
+ */
20
+ show(): void,
21
+ };
22
+
23
+ const DevMenu: DevMenuStatic = {
24
+ show(): void {
25
+ if (__DEV__) {
26
+ NativeDevMenu.show?.();
27
+ }
28
+ },
29
+ };
30
+
31
+ module.exports = DevMenu;