@office-iss/react-native-win32 0.0.0-canary.250 → 0.0.0-canary.251
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 +40 -1
- package/CHANGELOG.md +20 -8
- package/Libraries/Components/Pressable/Pressable.js +13 -6
- package/Libraries/Components/Pressable/Pressable.win32.js +13 -6
- package/Libraries/Components/ScrollView/ScrollView.js +7 -3
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Inspector/ElementProperties.js +1 -1
- package/Libraries/JSInspector/NetworkAgent.js +1 -1
- package/overrides.json +2 -2
- package/package.json +15 -15
- package/src/private/featureflags/ReactNativeFeatureFlags.js +2 -2
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,46 @@
|
|
|
2
2
|
"name": "@office-iss/react-native-win32",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Tue, 04 Jun 2024 05:16:14 GMT",
|
|
6
|
+
"version": "0.0.0-canary.251",
|
|
7
|
+
"tag": "@office-iss/react-native-win32_v0.0.0-canary.251",
|
|
8
|
+
"comments": {
|
|
9
|
+
"prerelease": [
|
|
10
|
+
{
|
|
11
|
+
"author": "34109996+chiaramooney@users.noreply.github.com",
|
|
12
|
+
"package": "@office-iss/react-native-win32",
|
|
13
|
+
"commit": "1d9616305b90f5165ab84bfb04072add2bd30b34",
|
|
14
|
+
"comment": "Integrate 5/25"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@office-iss/react-native-win32",
|
|
19
|
+
"comment": "Bump @rnw-scripts/eslint-config to v1.2.21",
|
|
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.25",
|
|
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.37",
|
|
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.38",
|
|
38
|
+
"commit": "not available"
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"date": "Sat, 01 Jun 2024 05:21:30 GMT",
|
|
6
45
|
"version": "0.0.0-canary.250",
|
|
7
46
|
"tag": "@office-iss/react-native-win32_v0.0.0-canary.250",
|
|
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
|
|
3
|
+
This log was last generated on Tue, 04 Jun 2024 05:16:14 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## 0.0.0-canary.
|
|
7
|
+
## 0.0.0-canary.251
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Tue, 04 Jun 2024 05:16:14 GMT
|
|
10
10
|
|
|
11
11
|
### Changes
|
|
12
12
|
|
|
13
|
-
- Integrate 5/
|
|
14
|
-
- Bump @rnw-scripts/eslint-config to v1.2.
|
|
15
|
-
- Bump @rnw-scripts/jest-out-of-tree-snapshot-resolver to v1.1.
|
|
16
|
-
- Bump @rnw-scripts/just-task to v2.3.
|
|
17
|
-
- Bump react-native-platform-override to v1.9.
|
|
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
|
|
18
18
|
|
|
19
|
+
## 0.0.0-canary.250
|
|
20
|
+
|
|
21
|
+
Sat, 01 Jun 2024 05:21:30 GMT
|
|
22
|
+
|
|
23
|
+
### Changes
|
|
24
|
+
|
|
25
|
+
- Integrate 5/14 (34109996+chiaramooney@users.noreply.github.com)
|
|
26
|
+
- Bump @rnw-scripts/eslint-config to v1.2.20
|
|
27
|
+
- Bump @rnw-scripts/jest-out-of-tree-snapshot-resolver to v1.1.24
|
|
28
|
+
- Bump @rnw-scripts/just-task to v2.3.36
|
|
29
|
+
- Bump react-native-platform-override to v1.9.37
|
|
30
|
+
|
|
19
31
|
## 0.0.0-canary.249
|
|
20
32
|
|
|
21
33
|
Thu, 30 May 2024 05:18:25 GMT
|
|
@@ -195,13 +195,16 @@ type Props = $ReadOnly<{|
|
|
|
195
195
|
'aria-label'?: ?string,
|
|
196
196
|
|}>;
|
|
197
197
|
|
|
198
|
+
type Instance = React.ElementRef<typeof View>;
|
|
199
|
+
|
|
198
200
|
/**
|
|
199
201
|
* Component used to build display components that should respond to whether the
|
|
200
202
|
* component is currently pressed or not.
|
|
201
203
|
*/
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
204
|
+
function Pressable(
|
|
205
|
+
props: Props,
|
|
206
|
+
forwardedRef: React.RefSetter<Instance>,
|
|
207
|
+
): React.Node {
|
|
205
208
|
const {
|
|
206
209
|
accessible,
|
|
207
210
|
accessibilityState,
|
|
@@ -235,13 +238,16 @@ function Pressable(props: Props, forwardedRef): React.Node {
|
|
|
235
238
|
...restProps
|
|
236
239
|
} = props;
|
|
237
240
|
|
|
238
|
-
const viewRef = useRef<
|
|
241
|
+
const viewRef = useRef<Instance | null>(null);
|
|
239
242
|
const mergedRef = useMergeRefs(forwardedRef, viewRef);
|
|
240
243
|
|
|
241
244
|
const android_rippleConfig = useAndroidRippleForView(android_ripple, viewRef);
|
|
242
245
|
|
|
243
246
|
const [pressed, setPressed] = usePressState(testOnly_pressed === true);
|
|
244
247
|
|
|
248
|
+
const shouldUpdatePressed =
|
|
249
|
+
typeof children === 'function' || typeof style === 'function';
|
|
250
|
+
|
|
245
251
|
let _accessibilityState = {
|
|
246
252
|
busy: ariaBusy ?? accessibilityState?.busy,
|
|
247
253
|
checked: ariaChecked ?? accessibilityState?.checked,
|
|
@@ -297,7 +303,7 @@ function Pressable(props: Props, forwardedRef): React.Node {
|
|
|
297
303
|
if (android_rippleConfig != null) {
|
|
298
304
|
android_rippleConfig.onPressIn(event);
|
|
299
305
|
}
|
|
300
|
-
setPressed(true);
|
|
306
|
+
shouldUpdatePressed && setPressed(true);
|
|
301
307
|
if (onPressIn != null) {
|
|
302
308
|
onPressIn(event);
|
|
303
309
|
}
|
|
@@ -307,7 +313,7 @@ function Pressable(props: Props, forwardedRef): React.Node {
|
|
|
307
313
|
if (android_rippleConfig != null) {
|
|
308
314
|
android_rippleConfig.onPressOut(event);
|
|
309
315
|
}
|
|
310
|
-
setPressed(false);
|
|
316
|
+
shouldUpdatePressed && setPressed(false);
|
|
311
317
|
if (onPressOut != null) {
|
|
312
318
|
onPressOut(event);
|
|
313
319
|
}
|
|
@@ -330,6 +336,7 @@ function Pressable(props: Props, forwardedRef): React.Node {
|
|
|
330
336
|
onPressOut,
|
|
331
337
|
pressRetentionOffset,
|
|
332
338
|
setPressed,
|
|
339
|
+
shouldUpdatePressed,
|
|
333
340
|
unstable_pressDelay,
|
|
334
341
|
],
|
|
335
342
|
);
|
|
@@ -242,13 +242,16 @@ type Props = $ReadOnly<{|
|
|
|
242
242
|
'aria-label'?: ?string,
|
|
243
243
|
|}>;
|
|
244
244
|
|
|
245
|
+
type Instance = React.ElementRef<typeof View>;
|
|
246
|
+
|
|
245
247
|
/**
|
|
246
248
|
* Component used to build display components that should respond to whether the
|
|
247
249
|
* component is currently pressed or not.
|
|
248
250
|
*/
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
251
|
+
function Pressable(
|
|
252
|
+
props: Props,
|
|
253
|
+
forwardedRef: React.RefSetter<Instance>,
|
|
254
|
+
): React.Node {
|
|
252
255
|
const {
|
|
253
256
|
accessible,
|
|
254
257
|
accessibilityState,
|
|
@@ -290,13 +293,16 @@ function Pressable(props: Props, forwardedRef): React.Node {
|
|
|
290
293
|
...restProps
|
|
291
294
|
} = props;
|
|
292
295
|
|
|
293
|
-
const viewRef = useRef<
|
|
296
|
+
const viewRef = useRef<Instance | null>(null);
|
|
294
297
|
const mergedRef = useMergeRefs(forwardedRef, viewRef);
|
|
295
298
|
|
|
296
299
|
const android_rippleConfig = useAndroidRippleForView(android_ripple, viewRef);
|
|
297
300
|
|
|
298
301
|
const [pressed, setPressed] = usePressState(testOnly_pressed === true);
|
|
299
302
|
|
|
303
|
+
const shouldUpdatePressed =
|
|
304
|
+
typeof children === 'function' || typeof style === 'function';
|
|
305
|
+
|
|
300
306
|
let _accessibilityState = {
|
|
301
307
|
busy: ariaBusy ?? accessibilityState?.busy,
|
|
302
308
|
checked: ariaChecked ?? accessibilityState?.checked,
|
|
@@ -354,7 +360,7 @@ function Pressable(props: Props, forwardedRef): React.Node {
|
|
|
354
360
|
if (android_rippleConfig != null) {
|
|
355
361
|
android_rippleConfig.onPressIn(event);
|
|
356
362
|
}
|
|
357
|
-
setPressed(true);
|
|
363
|
+
shouldUpdatePressed && setPressed(true);
|
|
358
364
|
if (onPressIn != null) {
|
|
359
365
|
onPressIn(event);
|
|
360
366
|
}
|
|
@@ -364,7 +370,7 @@ function Pressable(props: Props, forwardedRef): React.Node {
|
|
|
364
370
|
if (android_rippleConfig != null) {
|
|
365
371
|
android_rippleConfig.onPressOut(event);
|
|
366
372
|
}
|
|
367
|
-
setPressed(false);
|
|
373
|
+
shouldUpdatePressed && setPressed(false);
|
|
368
374
|
if (onPressOut != null) {
|
|
369
375
|
onPressOut(event);
|
|
370
376
|
}
|
|
@@ -399,6 +405,7 @@ function Pressable(props: Props, forwardedRef): React.Node {
|
|
|
399
405
|
// Windows]
|
|
400
406
|
pressRetentionOffset,
|
|
401
407
|
setPressed,
|
|
408
|
+
shouldUpdatePressed,
|
|
402
409
|
unstable_pressDelay,
|
|
403
410
|
],
|
|
404
411
|
);
|
|
@@ -963,9 +963,13 @@ class ScrollView extends React.Component<Props, State> {
|
|
|
963
963
|
let subscription: ?EventSubscription;
|
|
964
964
|
|
|
965
965
|
this.setState(
|
|
966
|
-
({onScrollEmitter}) =>
|
|
967
|
-
|
|
968
|
-
|
|
966
|
+
({onScrollEmitter}) => {
|
|
967
|
+
if (onScrollEmitter) {
|
|
968
|
+
return null;
|
|
969
|
+
} else {
|
|
970
|
+
return {onScrollEmitter: new EventEmitter()};
|
|
971
|
+
}
|
|
972
|
+
},
|
|
969
973
|
() => {
|
|
970
974
|
// If `subscription` is null, that means it was removed before we got
|
|
971
975
|
// here so do nothing.
|
|
@@ -71,7 +71,7 @@ class ElementProperties extends React.Component<Props> {
|
|
|
71
71
|
<View style={styles.col}>
|
|
72
72
|
<StyleInspector style={style} />
|
|
73
73
|
</View>
|
|
74
|
-
|
|
74
|
+
<BoxInspector style={style} frame={this.props.frame} />
|
|
75
75
|
</View>
|
|
76
76
|
</View>
|
|
77
77
|
</TouchableWithoutFeedback>
|
|
@@ -232,7 +232,7 @@ class Interceptor {
|
|
|
232
232
|
const event: LoadingFinishedEvent = {
|
|
233
233
|
requestId: String(id),
|
|
234
234
|
timestamp: JSInspector.getTimestamp(),
|
|
235
|
-
encodedDataLength
|
|
235
|
+
encodedDataLength,
|
|
236
236
|
};
|
|
237
237
|
this._agent.sendEvent('loadingFinished', event);
|
|
238
238
|
}
|
package/overrides.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"**/__snapshots__/**",
|
|
8
8
|
"src-win/rntypes/**"
|
|
9
9
|
],
|
|
10
|
-
"baseVersion": "0.75.0-nightly-
|
|
10
|
+
"baseVersion": "0.75.0-nightly-20240525-840c31c3a",
|
|
11
11
|
"overrides": [
|
|
12
12
|
{
|
|
13
13
|
"type": "derived",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"type": "patch",
|
|
93
93
|
"file": "src-win/Libraries/Components/Pressable/Pressable.win32.js",
|
|
94
94
|
"baseFile": "packages/react-native/Libraries/Components/Pressable/Pressable.js",
|
|
95
|
-
"baseHash": "
|
|
95
|
+
"baseHash": "77ec40a2f6a75280b170fe839813d8712c90fbfb",
|
|
96
96
|
"issue": 6240
|
|
97
97
|
},
|
|
98
98
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@office-iss/react-native-win32",
|
|
3
|
-
"version": "0.0.0-canary.
|
|
3
|
+
"version": "0.0.0-canary.251",
|
|
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-
|
|
34
|
-
"@react-native/codegen": "0.75.0-nightly-
|
|
35
|
-
"@react-native/community-cli-plugin": "0.75.0-nightly-
|
|
36
|
-
"@react-native/gradle-plugin": "0.75.0-nightly-
|
|
37
|
-
"@react-native/js-polyfills": "0.75.0-nightly-
|
|
38
|
-
"@react-native/normalize-colors": "0.75.0-nightly-
|
|
39
|
-
"@react-native/virtualized-lists": "0.75.0-nightly-
|
|
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",
|
|
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-
|
|
73
|
+
"@react-native/metro-config": "0.75.0-nightly-20240522-95de14dc5",
|
|
74
74
|
"@rnw-scripts/babel-react-native-config": "0.0.0",
|
|
75
|
-
"@rnw-scripts/eslint-config": "1.2.
|
|
76
|
-
"@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.
|
|
77
|
-
"@rnw-scripts/just-task": "2.3.
|
|
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",
|
|
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-
|
|
90
|
-
"react-native-platform-override": "^1.9.
|
|
89
|
+
"react-native": "0.75.0-nightly-20240525-840c31c3a",
|
|
90
|
+
"react-native-platform-override": "^1.9.38",
|
|
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-
|
|
96
|
+
"react-native": "0.75.0-nightly-20240522-95de14dc5"
|
|
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<<
|
|
7
|
+
* @generated SignedSource<<63e7a8952026600cb58367e9c70fb68d>>
|
|
8
8
|
* @flow strict-local
|
|
9
9
|
*/
|
|
10
10
|
|
|
@@ -170,7 +170,7 @@ export const lazyAnimationCallbacks: Getter<boolean> = createNativeFlagGetter('l
|
|
|
170
170
|
/**
|
|
171
171
|
* When enabled, ParagraphShadowNode will no longer call measure twice.
|
|
172
172
|
*/
|
|
173
|
-
export const preventDoubleTextMeasure: Getter<boolean> = createNativeFlagGetter('preventDoubleTextMeasure',
|
|
173
|
+
export const preventDoubleTextMeasure: Getter<boolean> = createNativeFlagGetter('preventDoubleTextMeasure', true);
|
|
174
174
|
/**
|
|
175
175
|
* Propagate layout direction to Android views.
|
|
176
176
|
*/
|