@office-iss/react-native-win32 0.0.0-canary.249 → 0.0.0-canary.250

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/CHANGELOG.json CHANGED
@@ -2,7 +2,46 @@
2
2
  "name": "@office-iss/react-native-win32",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 30 May 2024 05:15:53 GMT",
5
+ "date": "Sat, 01 Jun 2024 05:19:18 GMT",
6
+ "version": "0.0.0-canary.250",
7
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.250",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "34109996+chiaramooney@users.noreply.github.com",
12
+ "package": "@office-iss/react-native-win32",
13
+ "commit": "c0976782a5e566800ad95b4d90e76cef7d3ff044",
14
+ "comment": "Integrate 5/14"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@office-iss/react-native-win32",
19
+ "comment": "Bump @rnw-scripts/eslint-config to v1.2.20",
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.24",
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.36",
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.37",
38
+ "commit": "not available"
39
+ }
40
+ ]
41
+ }
42
+ },
43
+ {
44
+ "date": "Thu, 30 May 2024 05:18:25 GMT",
6
45
  "version": "0.0.0-canary.249",
7
46
  "tag": "@office-iss/react-native-win32_v0.0.0-canary.249",
8
47
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,21 +1,33 @@
1
1
  # Change Log - @office-iss/react-native-win32
2
2
 
3
- This log was last generated on Thu, 30 May 2024 05:15:53 GMT and should not be manually modified.
3
+ This log was last generated on Sat, 01 Jun 2024 05:19:18 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## 0.0.0-canary.249
7
+ ## 0.0.0-canary.250
8
8
 
9
- Thu, 30 May 2024 05:15:53 GMT
9
+ Sat, 01 Jun 2024 05:19:18 GMT
10
10
 
11
11
  ### Changes
12
12
 
13
- - RN Integration 05/11 (1422161+marlenecota@users.noreply.github.com)
14
- - Bump @rnw-scripts/eslint-config to v1.2.19
15
- - Bump @rnw-scripts/jest-out-of-tree-snapshot-resolver to v1.1.23
16
- - Bump @rnw-scripts/just-task to v2.3.35
17
- - Bump react-native-platform-override to v1.9.36
13
+ - Integrate 5/14 (34109996+chiaramooney@users.noreply.github.com)
14
+ - Bump @rnw-scripts/eslint-config to v1.2.20
15
+ - Bump @rnw-scripts/jest-out-of-tree-snapshot-resolver to v1.1.24
16
+ - Bump @rnw-scripts/just-task to v2.3.36
17
+ - Bump react-native-platform-override to v1.9.37
18
18
 
19
+ ## 0.0.0-canary.249
20
+
21
+ Thu, 30 May 2024 05:18:25 GMT
22
+
23
+ ### Changes
24
+
25
+ - RN Integration 05/11 (1422161+marlenecota@users.noreply.github.com)
26
+ - Bump @rnw-scripts/eslint-config to v1.2.19
27
+ - Bump @rnw-scripts/jest-out-of-tree-snapshot-resolver to v1.1.23
28
+ - Bump @rnw-scripts/just-task to v2.3.35
29
+ - Bump react-native-platform-override to v1.9.36
30
+
19
31
  ## 0.0.0-canary.248
20
32
 
21
33
  Thu, 23 May 2024 05:17:48 GMT
@@ -163,29 +163,9 @@ function createStackEntry(props: any): any {
163
163
  /**
164
164
  * Component to control the app status bar.
165
165
  *
166
- * ### Usage with Navigator
167
- *
168
166
  * It is possible to have multiple `StatusBar` components mounted at the same
169
167
  * time. The props will be merged in the order the `StatusBar` components were
170
- * mounted. One use case is to specify status bar styles per route using `Navigator`.
171
- *
172
- * ```
173
- * <View>
174
- * <StatusBar
175
- * backgroundColor="blue"
176
- * barStyle="light-content"
177
- * />
178
- * <Navigator
179
- * initialRoute={{statusBarHidden: true}}
180
- * renderScene={(route, navigator) =>
181
- * <View>
182
- * <StatusBar hidden={route.statusBarHidden} />
183
- * ...
184
- * </View>
185
- * }
186
- * />
187
- * </View>
188
- * ```
168
+ * mounted.
189
169
  *
190
170
  * ### Imperative API
191
171
  *
@@ -17,7 +17,7 @@ const version: $ReadOnly<{
17
17
  major: 0,
18
18
  minor: 75,
19
19
  patch: 0,
20
- prerelease: 'nightly-20240511-3f17c8b5f',
20
+ prerelease: 'nightly-20240518-93c079b92',
21
21
  };
22
22
 
23
23
  module.exports = {version};
@@ -19,11 +19,13 @@ if (NativePerformance) {
19
19
  } else {
20
20
  if (!global.performance) {
21
21
  // $FlowExpectedError[cannot-write]
22
- global.performance = ({
23
- now: function () {
22
+ global.performance = {
23
+ mark: () => {},
24
+ measure: () => {},
25
+ now: () => {
24
26
  const performanceNow = global.nativePerformanceNow || Date.now;
25
27
  return performanceNow();
26
28
  },
27
- }: {now?: () => number});
29
+ };
28
30
  }
29
31
  }
@@ -14,6 +14,7 @@ const ReactNativeStyleAttributes = require('../Components/View/ReactNativeStyleA
14
14
  const resolveAssetSource = require('../Image/resolveAssetSource');
15
15
  const processColor = require('../StyleSheet/processColor').default;
16
16
  const processColorArray = require('../StyleSheet/processColorArray');
17
+ const processFilter = require('../StyleSheet/processFilter').default;
17
18
  const insetsDiffer = require('../Utilities/differ/insetsDiffer');
18
19
  const matricesDiffer = require('../Utilities/differ/matricesDiffer');
19
20
  const pointsDiffer = require('../Utilities/differ/pointsDiffer');
@@ -188,6 +189,8 @@ function getProcessorForType(typeName: string): ?(nextProp: any) => any {
188
189
  return processColor;
189
190
  case 'ColorArray':
190
191
  return processColorArray;
192
+ case 'Filter':
193
+ return processFilter;
191
194
  case 'ImageSource':
192
195
  return resolveAssetSource;
193
196
  }
@@ -68,8 +68,11 @@ const _getKeyAndValueFromCSSTransform: (
68
68
  | $TEMPORARY$string<'translateX'>
69
69
  | $TEMPORARY$string<'translateY'>,
70
70
  args: string,
71
- ) => {key: string, value?: number[] | number | string} = (key, args) => {
72
- const argsWithUnitsRegex = new RegExp(/([+-]?\d+(\.\d+)?)([a-zA-Z]+)?/g);
71
+ ) => {key: string, value?: Array<string | number> | number | string} = (
72
+ key,
73
+ args,
74
+ ) => {
75
+ const argsWithUnitsRegex = new RegExp(/([+-]?\d+(\.\d+)?)([a-zA-Z]+|%)?/g);
73
76
 
74
77
  switch (key) {
75
78
  case 'matrix':
@@ -88,7 +91,11 @@ const _getKeyAndValueFromCSSTransform: (
88
91
  missingUnitOfMeasurement = true;
89
92
  }
90
93
 
91
- parsedArgs.push(value);
94
+ if (unitOfMeasurement === '%') {
95
+ parsedArgs.push(`${value}%`);
96
+ } else {
97
+ parsedArgs.push(value);
98
+ }
92
99
  }
93
100
 
94
101
  if (__DEV__) {
@@ -256,6 +263,14 @@ function _validateTransform(
256
263
  break;
257
264
  case 'translateX':
258
265
  case 'translateY':
266
+ invariant(
267
+ typeof value === 'number' ||
268
+ (typeof value === 'string' && value.endsWith('%')),
269
+ 'Transform with key of "%s" must be number or a percentage. Passed value: %s.',
270
+ key,
271
+ stringifySafe(transformation),
272
+ );
273
+ break;
259
274
  case 'scale':
260
275
  case 'scaleX':
261
276
  case 'scaleY':
package/overrides.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "**/__snapshots__/**",
8
8
  "src-win/rntypes/**"
9
9
  ],
10
- "baseVersion": "0.75.0-nightly-20240511-3f17c8b5f",
10
+ "baseVersion": "0.75.0-nightly-20240518-93c079b92",
11
11
  "overrides": [
12
12
  {
13
13
  "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.249",
3
+ "version": "0.0.0-canary.250",
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-20240511-3f17c8b5f",
34
- "@react-native/codegen": "0.75.0-nightly-20240511-3f17c8b5f",
35
- "@react-native/community-cli-plugin": "0.75.0-nightly-20240511-3f17c8b5f",
36
- "@react-native/gradle-plugin": "0.75.0-nightly-20240511-3f17c8b5f",
37
- "@react-native/js-polyfills": "0.75.0-nightly-20240511-3f17c8b5f",
38
- "@react-native/normalize-colors": "0.75.0-nightly-20240511-3f17c8b5f",
39
- "@react-native/virtualized-lists": "0.75.0-nightly-20240511-3f17c8b5f",
33
+ "@react-native/assets-registry": "0.75.0-nightly-20240518-93c079b92",
34
+ "@react-native/codegen": "0.75.0-nightly-20240518-93c079b92",
35
+ "@react-native/community-cli-plugin": "0.75.0-nightly-20240518-93c079b92",
36
+ "@react-native/gradle-plugin": "0.75.0-nightly-20240518-93c079b92",
37
+ "@react-native/js-polyfills": "0.75.0-nightly-20240518-93c079b92",
38
+ "@react-native/normalize-colors": "0.75.0-nightly-20240518-93c079b92",
39
+ "@react-native/virtualized-lists": "0.75.0-nightly-20240518-93c079b92",
40
40
  "abort-controller": "^3.0.0",
41
41
  "anser": "^1.4.9",
42
42
  "ansi-regex": "^5.0.0",
@@ -70,11 +70,11 @@
70
70
  "devDependencies": {
71
71
  "@babel/core": "^7.20.0",
72
72
  "@babel/eslint-parser": "^7.20.0",
73
- "@react-native/metro-config": "0.75.0-nightly-20240511-3f17c8b5f",
73
+ "@react-native/metro-config": "0.75.0-nightly-20240518-93c079b92",
74
74
  "@rnw-scripts/babel-react-native-config": "0.0.0",
75
- "@rnw-scripts/eslint-config": "1.2.19",
76
- "@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.23",
77
- "@rnw-scripts/just-task": "2.3.35",
75
+ "@rnw-scripts/eslint-config": "1.2.20",
76
+ "@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.24",
77
+ "@rnw-scripts/just-task": "2.3.36",
78
78
  "@rnw-scripts/metro-dev-config": "0.0.0",
79
79
  "@rnx-kit/jest-preset": "^0.1.0",
80
80
  "@types/node": "^18.0.0",
@@ -86,14 +86,14 @@
86
86
  "just-scripts": "^1.3.3",
87
87
  "prettier": "2.8.8",
88
88
  "react": "18.3.1",
89
- "react-native": "0.75.0-nightly-20240511-3f17c8b5f",
90
- "react-native-platform-override": "^1.9.36",
89
+ "react-native": "0.75.0-nightly-20240518-93c079b92",
90
+ "react-native-platform-override": "^1.9.37",
91
91
  "typescript": "5.0.4"
92
92
  },
93
93
  "peerDependencies": {
94
94
  "@types/react": "^18.2.6",
95
95
  "react": "^18.2.0",
96
- "react-native": "0.75.0-nightly-20240511-3f17c8b5f"
96
+ "react-native": "0.75.0-nightly-20240518-93c079b92"
97
97
  },
98
98
  "beachball": {
99
99
  "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<<953d2d7e7adb016bf30c2be62ee0d89a>>
7
+ * @generated SignedSource<<20c3c50d2124fbfc7bbe434c940ce3bf>>
8
8
  * @flow strict-local
9
9
  */
10
10
 
@@ -51,11 +51,13 @@ export type ReactNativeFeatureFlags = {
51
51
  enableMicrotasks: Getter<boolean>,
52
52
  enableSynchronousStateUpdates: Getter<boolean>,
53
53
  enableUIConsistency: Getter<boolean>,
54
+ fixStoppedSurfaceRemoveDeleteTreeUIFrameCallbackLeak: Getter<boolean>,
54
55
  forceBatchingMountItemsOnAndroid: Getter<boolean>,
55
56
  inspectorEnableCxxInspectorPackagerConnection: Getter<boolean>,
56
57
  inspectorEnableModernCDPRegistry: Getter<boolean>,
57
58
  lazyAnimationCallbacks: Getter<boolean>,
58
59
  preventDoubleTextMeasure: Getter<boolean>,
60
+ setAndroidLayoutDirection: Getter<boolean>,
59
61
  useModernRuntimeScheduler: Getter<boolean>,
60
62
  useNativeViewConfigsInBridgelessMode: Getter<boolean>,
61
63
  useStateAlignmentMechanism: Getter<boolean>,
@@ -145,6 +147,10 @@ export const enableSynchronousStateUpdates: Getter<boolean> = createNativeFlagGe
145
147
  * Ensures that JavaScript always has a consistent view of the state of the UI (e.g.: commits done in other threads are not immediately propagated to JS during its execution).
146
148
  */
147
149
  export const enableUIConsistency: Getter<boolean> = createNativeFlagGetter('enableUIConsistency', false);
150
+ /**
151
+ * Fixes a leak in SurfaceMountingManager.mRemoveDeleteTreeUIFrameCallback
152
+ */
153
+ export const fixStoppedSurfaceRemoveDeleteTreeUIFrameCallbackLeak: Getter<boolean> = createNativeFlagGetter('fixStoppedSurfaceRemoveDeleteTreeUIFrameCallbackLeak', false);
148
154
  /**
149
155
  * Forces the mounting layer on Android to always batch mount items instead of dispatching them immediately. This might fix some crashes related to synchronous state updates, where some views dispatch state updates during mount.
150
156
  */
@@ -165,6 +171,10 @@ export const lazyAnimationCallbacks: Getter<boolean> = createNativeFlagGetter('l
165
171
  * When enabled, ParagraphShadowNode will no longer call measure twice.
166
172
  */
167
173
  export const preventDoubleTextMeasure: Getter<boolean> = createNativeFlagGetter('preventDoubleTextMeasure', false);
174
+ /**
175
+ * Propagate layout direction to Android views.
176
+ */
177
+ export const setAndroidLayoutDirection: Getter<boolean> = createNativeFlagGetter('setAndroidLayoutDirection', false);
168
178
  /**
169
179
  * When enabled, it uses the modern fork of RuntimeScheduler that allows scheduling tasks with priorities from any thread.
170
180
  */
@@ -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<<446991ce24c5765399940bfda55c0e5c>>
7
+ * @generated SignedSource<<c892b2d381564962b505e389ed78e9f2>>
8
8
  * @flow strict-local
9
9
  */
10
10
 
@@ -34,11 +34,13 @@ export interface Spec extends TurboModule {
34
34
  +enableMicrotasks?: () => boolean;
35
35
  +enableSynchronousStateUpdates?: () => boolean;
36
36
  +enableUIConsistency?: () => boolean;
37
+ +fixStoppedSurfaceRemoveDeleteTreeUIFrameCallbackLeak?: () => boolean;
37
38
  +forceBatchingMountItemsOnAndroid?: () => boolean;
38
39
  +inspectorEnableCxxInspectorPackagerConnection?: () => boolean;
39
40
  +inspectorEnableModernCDPRegistry?: () => boolean;
40
41
  +lazyAnimationCallbacks?: () => boolean;
41
42
  +preventDoubleTextMeasure?: () => boolean;
43
+ +setAndroidLayoutDirection?: () => boolean;
42
44
  +useModernRuntimeScheduler?: () => boolean;
43
45
  +useNativeViewConfigsInBridgelessMode?: () => boolean;
44
46
  +useStateAlignmentMechanism?: () => boolean;
@@ -1,13 +0,0 @@
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
8
- * @format
9
- */
10
-
11
- export * from '../../../src/private/specs/modules/NativeAnimationsDebugModule';
12
- import NativeAnimationsDebugModule from '../../../src/private/specs/modules/NativeAnimationsDebugModule';
13
- export default NativeAnimationsDebugModule;
@@ -1,20 +0,0 @@
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
8
- * @format
9
- */
10
-
11
- import type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';
12
-
13
- import * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';
14
-
15
- export interface Spec extends TurboModule {
16
- +startRecordingFps: () => void;
17
- +stopRecordingFps: (animationStopTimeMs: number) => void;
18
- }
19
-
20
- export default (TurboModuleRegistry.get<Spec>('AnimationsDebugModule'): ?Spec);