@office-iss/react-native-win32 0.0.0-canary.251 → 0.0.0-canary.253

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.
package/.flowconfig CHANGED
@@ -153,4 +153,4 @@ untyped-import
153
153
  untyped-type-import
154
154
 
155
155
  [version]
156
- ^0.236.0
156
+ ^0.237.1
package/CHANGELOG.json CHANGED
@@ -2,7 +2,73 @@
2
2
  "name": "@office-iss/react-native-win32",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 04 Jun 2024 05:16:14 GMT",
5
+ "date": "Sat, 08 Jun 2024 05:15:58 GMT",
6
+ "version": "0.0.0-canary.253",
7
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.253",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "34109996+chiaramooney@users.noreply.github.com",
12
+ "package": "@office-iss/react-native-win32",
13
+ "commit": "d42a78eeeb8b25ea0b4c054c48ee0891bc16d8b8",
14
+ "comment": "Integrate 5/31"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@office-iss/react-native-win32",
19
+ "comment": "Bump @rnw-scripts/eslint-config to v1.2.22",
20
+ "commit": "not available"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@office-iss/react-native-win32",
25
+ "comment": "Bump @rnw-scripts/jest-out-of-tree-snapshot-resolver to v1.1.26",
26
+ "commit": "not available"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@office-iss/react-native-win32",
31
+ "comment": "Bump @rnw-scripts/just-task to v2.3.39",
32
+ "commit": "not available"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@office-iss/react-native-win32",
37
+ "comment": "Bump react-native-platform-override to v1.9.40",
38
+ "commit": "not available"
39
+ }
40
+ ]
41
+ }
42
+ },
43
+ {
44
+ "date": "Wed, 05 Jun 2024 05:18:09 GMT",
45
+ "version": "0.0.0-canary.252",
46
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.252",
47
+ "comments": {
48
+ "prerelease": [
49
+ {
50
+ "author": "email not defined",
51
+ "package": "@office-iss/react-native-win32",
52
+ "commit": "ee76145dbcf05a84555c99cc693b564d11503ba3",
53
+ "comment": "Use prettier-plugin-hermes-parser to match upstream settings"
54
+ },
55
+ {
56
+ "author": "beachball",
57
+ "package": "@office-iss/react-native-win32",
58
+ "comment": "Bump @rnw-scripts/just-task to v2.3.38",
59
+ "commit": "not available"
60
+ },
61
+ {
62
+ "author": "beachball",
63
+ "package": "@office-iss/react-native-win32",
64
+ "comment": "Bump react-native-platform-override to v1.9.39",
65
+ "commit": "not available"
66
+ }
67
+ ]
68
+ }
69
+ },
70
+ {
71
+ "date": "Tue, 04 Jun 2024 05:18:34 GMT",
6
72
  "version": "0.0.0-canary.251",
7
73
  "tag": "@office-iss/react-native-win32_v0.0.0-canary.251",
8
74
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,21 +1,43 @@
1
1
  # Change Log - @office-iss/react-native-win32
2
2
 
3
- This log was last generated on Tue, 04 Jun 2024 05:16:14 GMT and should not be manually modified.
3
+ This log was last generated on Sat, 08 Jun 2024 05:15:58 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## 0.0.0-canary.251
7
+ ## 0.0.0-canary.253
8
8
 
9
- Tue, 04 Jun 2024 05:16:14 GMT
9
+ Sat, 08 Jun 2024 05:15:58 GMT
10
10
 
11
11
  ### Changes
12
12
 
13
- - Integrate 5/25 (34109996+chiaramooney@users.noreply.github.com)
14
- - Bump @rnw-scripts/eslint-config to v1.2.21
15
- - Bump @rnw-scripts/jest-out-of-tree-snapshot-resolver to v1.1.25
16
- - Bump @rnw-scripts/just-task to v2.3.37
17
- - Bump react-native-platform-override to v1.9.38
13
+ - Integrate 5/31 (34109996+chiaramooney@users.noreply.github.com)
14
+ - Bump @rnw-scripts/eslint-config to v1.2.22
15
+ - Bump @rnw-scripts/jest-out-of-tree-snapshot-resolver to v1.1.26
16
+ - Bump @rnw-scripts/just-task to v2.3.39
17
+ - Bump react-native-platform-override to v1.9.40
18
18
 
19
+ ## 0.0.0-canary.252
20
+
21
+ Wed, 05 Jun 2024 05:18:09 GMT
22
+
23
+ ### Changes
24
+
25
+ - Use prettier-plugin-hermes-parser to match upstream settings (email not defined)
26
+ - Bump @rnw-scripts/just-task to v2.3.38
27
+ - Bump react-native-platform-override to v1.9.39
28
+
29
+ ## 0.0.0-canary.251
30
+
31
+ Tue, 04 Jun 2024 05:18:34 GMT
32
+
33
+ ### Changes
34
+
35
+ - Integrate 5/25 (34109996+chiaramooney@users.noreply.github.com)
36
+ - Bump @rnw-scripts/eslint-config to v1.2.21
37
+ - Bump @rnw-scripts/jest-out-of-tree-snapshot-resolver to v1.1.25
38
+ - Bump @rnw-scripts/just-task to v2.3.37
39
+ - Bump react-native-platform-override to v1.9.38
40
+
19
41
  ## 0.0.0-canary.250
20
42
 
21
43
  Sat, 01 Jun 2024 05:21:30 GMT
@@ -315,6 +315,8 @@ const sequence = function (
315
315
  current++;
316
316
 
317
317
  if (current === animations.length) {
318
+ // if the start is called, even without a reset, it should start from the beginning
319
+ current = 0;
318
320
  callback && callback(result);
319
321
  return;
320
322
  }
@@ -119,7 +119,7 @@ type Props = $ReadOnly<{|
119
119
  |}>;
120
120
 
121
121
  type State = {|
122
- statusBarBackgroundColor: ColorValue,
122
+ drawerOpened: boolean,
123
123
  |};
124
124
 
125
125
  /**
@@ -168,7 +168,9 @@ class DrawerLayoutAndroid extends React.Component<Props, State> {
168
168
  React.ElementRef<typeof AndroidDrawerLayoutNativeComponent>,
169
169
  >();
170
170
 
171
- state: State = {statusBarBackgroundColor: null};
171
+ state: State = {
172
+ drawerOpened: false,
173
+ };
172
174
 
173
175
  render(): React.Node {
174
176
  const {
@@ -189,6 +191,7 @@ class DrawerLayoutAndroid extends React.Component<Props, State> {
189
191
  backgroundColor: drawerBackgroundColor,
190
192
  },
191
193
  ]}
194
+ pointerEvents={this.state.drawerOpened ? 'auto' : 'none'}
192
195
  collapsable={false}>
193
196
  {renderNavigationView()}
194
197
  {drawStatusBar && <View style={styles.drawerStatusBar} />}
@@ -245,12 +248,18 @@ class DrawerLayoutAndroid extends React.Component<Props, State> {
245
248
  };
246
249
 
247
250
  _onDrawerOpen = () => {
251
+ this.setState({
252
+ drawerOpened: true,
253
+ });
248
254
  if (this.props.onDrawerOpen) {
249
255
  this.props.onDrawerOpen();
250
256
  }
251
257
  };
252
258
 
253
259
  _onDrawerClose = () => {
260
+ this.setState({
261
+ drawerOpened: false,
262
+ });
254
263
  if (this.props.onDrawerClose) {
255
264
  this.props.onDrawerClose();
256
265
  }
@@ -342,7 +342,9 @@ class TouchableHighlight extends React.Component<Props, State> {
342
342
  nextFocusRight={this.props.nextFocusRight}
343
343
  nextFocusUp={this.props.nextFocusUp}
344
344
  focusable={
345
- this.props.focusable !== false && this.props.onPress !== undefined
345
+ this.props.focusable !== false &&
346
+ this.props.onPress !== undefined &&
347
+ !this.props.disabled
346
348
  }
347
349
  nativeID={this.props.id ?? this.props.nativeID}
348
350
  testID={this.props.testID}
@@ -287,7 +287,9 @@ class TouchableOpacity extends React.Component<Props, State> {
287
287
  hasTVPreferredFocus={this.props.hasTVPreferredFocus}
288
288
  hitSlop={this.props.hitSlop}
289
289
  focusable={
290
- this.props.focusable !== false && this.props.onPress !== undefined
290
+ this.props.focusable !== false &&
291
+ this.props.onPress !== undefined &&
292
+ !this.props.disabled
291
293
  }
292
294
  ref={this.props.hostRef}
293
295
  {...eventHandlersWithoutBlurAndFocus}>
@@ -208,7 +208,10 @@ module.exports = function TouchableWithoutFeedback(props: Props): React.Node {
208
208
  disabled: props.disabled,
209
209
  }
210
210
  : _accessibilityState,
211
- focusable: props.focusable !== false && props.onPress !== undefined,
211
+ focusable:
212
+ props.focusable !== false &&
213
+ props.onPress !== undefined &&
214
+ !props.disabled,
212
215
 
213
216
  accessibilityElementsHidden:
214
217
  props['aria-hidden'] ?? props.accessibilityElementsHidden,
@@ -17,7 +17,7 @@ const version: $ReadOnly<{
17
17
  major: 0,
18
18
  minor: 75,
19
19
  patch: 0,
20
- prerelease: 'nightly-20240525-840c31c3a',
20
+ prerelease: 'nightly-20240531-c046198cc',
21
21
  };
22
22
 
23
23
  module.exports = {version};
@@ -63,17 +63,12 @@ if (
63
63
  // mechanism to pass feature flags from RN to React in OSS.
64
64
  global.RN$enableMicrotasksInReact = true;
65
65
 
66
- polyfillGlobal('queueMicrotask', () => {
67
- const nativeQueueMicrotask =
66
+ polyfillGlobal(
67
+ 'queueMicrotask',
68
+ () =>
68
69
  require('../../src/private/webapis/microtasks/specs/NativeMicrotasks')
69
- .default?.queueMicrotask;
70
- if (nativeQueueMicrotask) {
71
- return nativeQueueMicrotask;
72
- } else {
73
- // For backwards-compatibility
74
- return global.HermesInternal?.enqueueJob;
75
- }
76
- });
70
+ .default.queueMicrotask,
71
+ );
77
72
 
78
73
  // We shim the immediate APIs via `queueMicrotask` to maintain the backward
79
74
  // compatibility.
@@ -88,7 +88,7 @@ const backgroundForLevel = (level: LogLevel) =>
88
88
  default: 'transparent',
89
89
  pressed: LogBoxStyle.getFatalDarkColor(),
90
90
  },
91
- }[level]);
91
+ })[level];
92
92
 
93
93
  function LogBoxInspectorHeaderButton(
94
94
  props: $ReadOnly<{|
package/overrides.json CHANGED
@@ -7,13 +7,13 @@
7
7
  "**/__snapshots__/**",
8
8
  "src-win/rntypes/**"
9
9
  ],
10
- "baseVersion": "0.75.0-nightly-20240525-840c31c3a",
10
+ "baseVersion": "0.75.0-nightly-20240531-c046198cc",
11
11
  "overrides": [
12
12
  {
13
13
  "type": "derived",
14
14
  "file": ".flowconfig",
15
15
  "baseFile": ".flowconfig",
16
- "baseHash": "bd274caf8faae09b1f0513a4086c07b778072e78"
16
+ "baseHash": "90a91757cbe47cee770a082dc1effe1ed8908744"
17
17
  },
18
18
  {
19
19
  "type": "derived",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@office-iss/react-native-win32",
3
- "version": "0.0.0-canary.251",
3
+ "version": "0.0.0-canary.253",
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": "14.0.0-alpha.2",
31
31
  "@react-native-community/cli-platform-ios": "14.0.0-alpha.2",
32
32
  "@react-native/assets": "1.0.0",
33
- "@react-native/assets-registry": "0.75.0-nightly-20240522-95de14dc5",
34
- "@react-native/codegen": "0.75.0-nightly-20240522-95de14dc5",
35
- "@react-native/community-cli-plugin": "0.75.0-nightly-20240522-95de14dc5",
36
- "@react-native/gradle-plugin": "0.75.0-nightly-20240522-95de14dc5",
37
- "@react-native/js-polyfills": "0.75.0-nightly-20240522-95de14dc5",
38
- "@react-native/normalize-colors": "0.75.0-nightly-20240522-95de14dc5",
39
- "@react-native/virtualized-lists": "0.75.0-nightly-20240522-95de14dc5",
33
+ "@react-native/assets-registry": "0.75.0-nightly-20240531-c046198cc",
34
+ "@react-native/codegen": "0.75.0-nightly-20240531-c046198cc",
35
+ "@react-native/community-cli-plugin": "0.75.0-nightly-20240531-c046198cc",
36
+ "@react-native/gradle-plugin": "0.75.0-nightly-20240531-c046198cc",
37
+ "@react-native/js-polyfills": "0.75.0-nightly-20240531-c046198cc",
38
+ "@react-native/normalize-colors": "0.75.0-nightly-20240531-c046198cc",
39
+ "@react-native/virtualized-lists": "0.75.0-nightly-20240531-c046198cc",
40
40
  "abort-controller": "^3.0.0",
41
41
  "anser": "^1.4.9",
42
42
  "ansi-regex": "^5.0.0",
@@ -45,6 +45,7 @@
45
45
  "chalk": "^4.0.0",
46
46
  "event-target-shim": "^5.0.1",
47
47
  "flow-enums-runtime": "^0.0.6",
48
+ "glob": "^7.1.1",
48
49
  "invariant": "^2.2.4",
49
50
  "jest-environment-node": "^29.6.3",
50
51
  "jsc-android": "^250231.0.0",
@@ -70,11 +71,11 @@
70
71
  "devDependencies": {
71
72
  "@babel/core": "^7.20.0",
72
73
  "@babel/eslint-parser": "^7.20.0",
73
- "@react-native/metro-config": "0.75.0-nightly-20240522-95de14dc5",
74
+ "@react-native/metro-config": "0.75.0-nightly-20240531-c046198cc",
74
75
  "@rnw-scripts/babel-react-native-config": "0.0.0",
75
- "@rnw-scripts/eslint-config": "1.2.21",
76
- "@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.25",
77
- "@rnw-scripts/just-task": "2.3.37",
76
+ "@rnw-scripts/eslint-config": "1.2.22",
77
+ "@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.26",
78
+ "@rnw-scripts/just-task": "2.3.39",
78
79
  "@rnw-scripts/metro-dev-config": "0.0.0",
79
80
  "@rnx-kit/jest-preset": "^0.1.0",
80
81
  "@types/node": "^18.0.0",
@@ -86,14 +87,14 @@
86
87
  "just-scripts": "^1.3.3",
87
88
  "prettier": "2.8.8",
88
89
  "react": "18.3.1",
89
- "react-native": "0.75.0-nightly-20240525-840c31c3a",
90
- "react-native-platform-override": "^1.9.38",
90
+ "react-native": "0.75.0-nightly-20240531-c046198cc",
91
+ "react-native-platform-override": "^1.9.40",
91
92
  "typescript": "5.0.4"
92
93
  },
93
94
  "peerDependencies": {
94
95
  "@types/react": "^18.2.6",
95
96
  "react": "^18.2.0",
96
- "react-native": "0.75.0-nightly-20240522-95de14dc5"
97
+ "react-native": "0.75.0-nightly-20240531-c046198cc"
97
98
  },
98
99
  "beachball": {
99
100
  "defaultNpmTag": "canary",
@@ -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<<63e7a8952026600cb58367e9c70fb68d>>
7
+ * @generated SignedSource<<1cf3f0841a0523baddea551747c425ca>>
8
8
  * @flow strict-local
9
9
  */
10
10
 
@@ -42,7 +42,7 @@ export type ReactNativeFeatureFlags = {
42
42
  ...ReactNativeFeatureFlagsJsOnly,
43
43
  commonTestFlag: Getter<boolean>,
44
44
  allowCollapsableChildren: Getter<boolean>,
45
- androidEnablePendingFabricTransactions: Getter<boolean>,
45
+ allowRecursiveCommitsWithSynchronousMountOnAndroid: Getter<boolean>,
46
46
  batchRenderingUpdatesInEventLoop: Getter<boolean>,
47
47
  destroyFabricSurfacesInReactInstanceManager: Getter<boolean>,
48
48
  enableBackgroundExecutor: Getter<boolean>,
@@ -53,8 +53,8 @@ export type ReactNativeFeatureFlags = {
53
53
  enableUIConsistency: Getter<boolean>,
54
54
  fixStoppedSurfaceRemoveDeleteTreeUIFrameCallbackLeak: Getter<boolean>,
55
55
  forceBatchingMountItemsOnAndroid: Getter<boolean>,
56
- inspectorEnableCxxInspectorPackagerConnection: Getter<boolean>,
57
- inspectorEnableModernCDPRegistry: Getter<boolean>,
56
+ fuseboxEnabledDebug: Getter<boolean>,
57
+ fuseboxEnabledRelease: Getter<boolean>,
58
58
  lazyAnimationCallbacks: Getter<boolean>,
59
59
  preventDoubleTextMeasure: Getter<boolean>,
60
60
  setAndroidLayoutDirection: Getter<boolean>,
@@ -112,9 +112,9 @@ export const commonTestFlag: Getter<boolean> = createNativeFlagGetter('commonTes
112
112
  */
113
113
  export const allowCollapsableChildren: Getter<boolean> = createNativeFlagGetter('allowCollapsableChildren', true);
114
114
  /**
115
- * To be used with batchRenderingUpdatesInEventLoop. When enbled, the Android mounting layer will concatenate pending transactions to ensure they're applied atomatically
115
+ * Adds support for recursively processing commits that mount synchronously (Android only).
116
116
  */
117
- export const androidEnablePendingFabricTransactions: Getter<boolean> = createNativeFlagGetter('androidEnablePendingFabricTransactions', false);
117
+ export const allowRecursiveCommitsWithSynchronousMountOnAndroid: Getter<boolean> = createNativeFlagGetter('allowRecursiveCommitsWithSynchronousMountOnAndroid', false);
118
118
  /**
119
119
  * When enabled, the RuntimeScheduler processing the event loop will batch all rendering updates and dispatch them together at the end of each iteration of the loop.
120
120
  */
@@ -156,13 +156,13 @@ export const fixStoppedSurfaceRemoveDeleteTreeUIFrameCallbackLeak: Getter<boolea
156
156
  */
157
157
  export const forceBatchingMountItemsOnAndroid: Getter<boolean> = createNativeFlagGetter('forceBatchingMountItemsOnAndroid', false);
158
158
  /**
159
- * Flag determining if the C++ implementation of InspectorPackagerConnection should be used instead of the per-platform one. This flag is global and should not be changed across React Host lifetimes.
159
+ * Flag determining if the React Native DevTools (Fusebox) CDP backend should be enabled in debug builds. This flag is global and should not be changed across React Host lifetimes.
160
160
  */
161
- export const inspectorEnableCxxInspectorPackagerConnection: Getter<boolean> = createNativeFlagGetter('inspectorEnableCxxInspectorPackagerConnection', false);
161
+ export const fuseboxEnabledDebug: Getter<boolean> = createNativeFlagGetter('fuseboxEnabledDebug', false);
162
162
  /**
163
- * Flag determining if the modern CDP backend should be enabled. This flag is global and should not be changed across React Host lifetimes.
163
+ * Flag determining if the React Native DevTools (Fusebox) CDP backend should be enabled in release builds. This flag is global and should not be changed across React Host lifetimes.
164
164
  */
165
- export const inspectorEnableModernCDPRegistry: Getter<boolean> = createNativeFlagGetter('inspectorEnableModernCDPRegistry', false);
165
+ export const fuseboxEnabledRelease: Getter<boolean> = createNativeFlagGetter('fuseboxEnabledRelease', false);
166
166
  /**
167
167
  * Only enqueue Choreographer calls if there is an ongoing animation, instead of enqueueing every frame.
168
168
  */
@@ -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<<c892b2d381564962b505e389ed78e9f2>>
7
+ * @generated SignedSource<<613d748b087fde71cc07a7cd5acf888e>>
8
8
  * @flow strict-local
9
9
  */
10
10
 
@@ -25,7 +25,7 @@ import * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboMod
25
25
  export interface Spec extends TurboModule {
26
26
  +commonTestFlag?: () => boolean;
27
27
  +allowCollapsableChildren?: () => boolean;
28
- +androidEnablePendingFabricTransactions?: () => boolean;
28
+ +allowRecursiveCommitsWithSynchronousMountOnAndroid?: () => boolean;
29
29
  +batchRenderingUpdatesInEventLoop?: () => boolean;
30
30
  +destroyFabricSurfacesInReactInstanceManager?: () => boolean;
31
31
  +enableBackgroundExecutor?: () => boolean;
@@ -36,8 +36,8 @@ export interface Spec extends TurboModule {
36
36
  +enableUIConsistency?: () => boolean;
37
37
  +fixStoppedSurfaceRemoveDeleteTreeUIFrameCallbackLeak?: () => boolean;
38
38
  +forceBatchingMountItemsOnAndroid?: () => boolean;
39
- +inspectorEnableCxxInspectorPackagerConnection?: () => boolean;
40
- +inspectorEnableModernCDPRegistry?: () => boolean;
39
+ +fuseboxEnabledDebug?: () => boolean;
40
+ +fuseboxEnabledRelease?: () => boolean;
41
41
  +lazyAnimationCallbacks?: () => boolean;
42
42
  +preventDoubleTextMeasure?: () => boolean;
43
43
  +setAndroidLayoutDirection?: () => boolean;
@@ -16,4 +16,6 @@ export interface Spec extends TurboModule {
16
16
  +queueMicrotask: (callback: () => mixed) => void;
17
17
  }
18
18
 
19
- export default (TurboModuleRegistry.get<Spec>('NativeMicrotasksCxx'): ?Spec);
19
+ export default (TurboModuleRegistry.getEnforcing<Spec>(
20
+ 'NativeMicrotasksCxx',
21
+ ): Spec);