@office-iss/react-native-win32 0.81.0-preview.5 → 0.81.0
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 +3 -0
- package/CHANGELOG.json +37 -1
- package/CHANGELOG.md +23 -6
- package/Libraries/Components/Switch/Switch.js +1 -1
- package/Libraries/Components/TextInput/TextInput.js +6 -1
- package/Libraries/Components/TextInput/TextInput.win32.js +5 -0
- package/Libraries/Components/View/View.js +5 -1
- package/Libraries/Core/ReactNativeVersion.js +2 -2
- package/flow/HermesInternalType.js +114 -0
- package/flow/Stringish.js +14 -0
- package/flow/bom.js.flow +489 -0
- package/flow/console.js +49 -0
- package/flow/cssom.js.flow +575 -0
- package/flow/dom.js.flow +6289 -0
- package/flow/global.js +88 -0
- package/flow/streams.js.flow +140 -0
- package/overrides.json +3 -3
- package/package.json +14 -14
- package/src/private/featureflags/ReactNativeFeatureFlags.js +16 -1
- package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +4 -1
- package/src/private/specs_DEPRECATED/components/SwitchNativeComponent.js +1 -0
package/.flowconfig
CHANGED
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,43 @@
|
|
|
2
2
|
"name": "@office-iss/react-native-win32",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Sat, 20 Dec 2025 12:01:47 GMT",
|
|
6
|
+
"version": "0.81.0",
|
|
7
|
+
"tag": "@office-iss/react-native-win32_v0.81.0",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "66076509+vineethkuttan@users.noreply.github.com",
|
|
12
|
+
"package": "@office-iss/react-native-win32",
|
|
13
|
+
"commit": "81863d6ae455c6d92f9ec8db6c9c4fe350a1c5b5",
|
|
14
|
+
"comment": "Promote 0.81 to latest"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@office-iss/react-native-win32",
|
|
19
|
+
"comment": "Bump react-native-platform-override to v0.81.0",
|
|
20
|
+
"commit": "not available"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"date": "Mon, 15 Dec 2025 16:33:06 GMT",
|
|
27
|
+
"version": "0.81.0-preview.6",
|
|
28
|
+
"tag": "@office-iss/react-native-win32_v0.81.0-preview.6",
|
|
29
|
+
"comments": {
|
|
30
|
+
"prerelease": [
|
|
31
|
+
{
|
|
32
|
+
"author": "66076509+vineethkuttan@users.noreply.github.com",
|
|
33
|
+
"package": "@office-iss/react-native-win32",
|
|
34
|
+
"commit": "eba0afc668e103f80fbcc4a5408636dde1e0bbd3",
|
|
35
|
+
"comment": "Integrate 81.5"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"date": "Wed, 10 Dec 2025 18:44:29 GMT",
|
|
6
42
|
"version": "0.81.0-preview.5",
|
|
7
43
|
"tag": "@office-iss/react-native-win32_v0.81.0-preview.5",
|
|
8
44
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,18 +1,35 @@
|
|
|
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 Sat, 20 Dec 2025 12:01:47 GMT and should not be manually modified. -->
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## 0.81.0
|
|
7
|
+
## 0.81.0
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Sat, 20 Dec 2025 12:01:47 GMT
|
|
10
10
|
|
|
11
|
-
###
|
|
11
|
+
### Patches
|
|
12
12
|
|
|
13
|
-
-
|
|
14
|
-
- Bump react-native-platform-override to v0.81.0
|
|
13
|
+
- Promote 0.81 to latest (66076509+vineethkuttan@users.noreply.github.com)
|
|
14
|
+
- Bump react-native-platform-override to v0.81.0
|
|
15
15
|
|
|
16
|
+
## 0.81.0-preview.6
|
|
17
|
+
|
|
18
|
+
Mon, 15 Dec 2025 16:33:06 GMT
|
|
19
|
+
|
|
20
|
+
### Changes
|
|
21
|
+
|
|
22
|
+
- Integrate 81.5 (66076509+vineethkuttan@users.noreply.github.com)
|
|
23
|
+
|
|
24
|
+
## 0.81.0-preview.5
|
|
25
|
+
|
|
26
|
+
Wed, 10 Dec 2025 18:44:29 GMT
|
|
27
|
+
|
|
28
|
+
### Changes
|
|
29
|
+
|
|
30
|
+
- Fix NPM dist tags and make some NPM private (vmorozov@microsoft.com)
|
|
31
|
+
- Bump react-native-platform-override to v0.81.0-preview.10
|
|
32
|
+
|
|
16
33
|
## 0.81.0-preview.3
|
|
17
34
|
|
|
18
35
|
Sat, 06 Dec 2025 16:30:52 GMT
|
|
@@ -618,6 +618,9 @@ function InternalTextInput(props: TextInputProps): React.Node {
|
|
|
618
618
|
// so omitting onBlur and onFocus pressability handlers here.
|
|
619
619
|
const {onBlur, onFocus, ...eventHandlers} = usePressability(config);
|
|
620
620
|
|
|
621
|
+
const _accessibilityLabel =
|
|
622
|
+
props?.['aria-label'] ?? props?.accessibilityLabel;
|
|
623
|
+
|
|
621
624
|
let _accessibilityState;
|
|
622
625
|
if (
|
|
623
626
|
accessibilityState != null ||
|
|
@@ -681,6 +684,7 @@ function InternalTextInput(props: TextInputProps): React.Node {
|
|
|
681
684
|
{...otherProps}
|
|
682
685
|
{...eventHandlers}
|
|
683
686
|
acceptDragAndDropTypes={props.experimental_acceptDragAndDropTypes}
|
|
687
|
+
accessibilityLabel={_accessibilityLabel}
|
|
684
688
|
accessibilityState={_accessibilityState}
|
|
685
689
|
accessible={accessible}
|
|
686
690
|
submitBehavior={submitBehavior}
|
|
@@ -744,8 +748,9 @@ function InternalTextInput(props: TextInputProps): React.Node {
|
|
|
744
748
|
{...otherProps}
|
|
745
749
|
{...colorProps}
|
|
746
750
|
{...eventHandlers}
|
|
747
|
-
|
|
751
|
+
accessibilityLabel={_accessibilityLabel}
|
|
748
752
|
accessibilityLabelledBy={_accessibilityLabelledBy}
|
|
753
|
+
accessibilityState={_accessibilityState}
|
|
749
754
|
accessible={accessible}
|
|
750
755
|
acceptDragAndDropTypes={props.experimental_acceptDragAndDropTypes}
|
|
751
756
|
autoCapitalize={autoCapitalize}
|
|
@@ -721,6 +721,9 @@ function InternalTextInput(props: TextInputProps): React.Node {
|
|
|
721
721
|
props.onKeyUpCapture && props.onKeyUpCapture(event);
|
|
722
722
|
};
|
|
723
723
|
|
|
724
|
+
const _accessibilityLabel =
|
|
725
|
+
props?.['aria-label'] ?? props?.accessibilityLabel;
|
|
726
|
+
|
|
724
727
|
let _accessibilityState;
|
|
725
728
|
if (
|
|
726
729
|
accessibilityState != null ||
|
|
@@ -789,6 +792,7 @@ function InternalTextInput(props: TextInputProps): React.Node {
|
|
|
789
792
|
{...otherProps}
|
|
790
793
|
{...eventHandlers}
|
|
791
794
|
acceptDragAndDropTypes={props.experimental_acceptDragAndDropTypes}
|
|
795
|
+
accessibilityLabel={_accessibilityLabel}
|
|
792
796
|
accessibilityErrorMessage={accessibilityErrorMessage}
|
|
793
797
|
accessibilityState={_accessibilityState}
|
|
794
798
|
accessible={accessible}
|
|
@@ -853,6 +857,7 @@ function InternalTextInput(props: TextInputProps): React.Node {
|
|
|
853
857
|
{...otherProps}
|
|
854
858
|
{...colorProps}
|
|
855
859
|
{...eventHandlers}
|
|
860
|
+
accessibilityLabel={_accessibilityLabel}
|
|
856
861
|
accessibilityErrorMessage={accessibilityErrorMessage}
|
|
857
862
|
accessibilityState={_accessibilityState}
|
|
858
863
|
accessibilityLabelledBy={_accessibilityLabelledBy}
|
|
@@ -23,7 +23,7 @@ import {use} from 'react';
|
|
|
23
23
|
*
|
|
24
24
|
* @see https://reactnative.dev/docs/view
|
|
25
25
|
*/
|
|
26
|
-
|
|
26
|
+
component View(
|
|
27
27
|
ref?: React.RefSetter<React.ElementRef<typeof ViewNativeComponent>>,
|
|
28
28
|
...props: ViewProps
|
|
29
29
|
) {
|
|
@@ -213,3 +213,7 @@ export default component View(
|
|
|
213
213
|
}
|
|
214
214
|
return actualView;
|
|
215
215
|
}
|
|
216
|
+
|
|
217
|
+
View.displayName = 'View';
|
|
218
|
+
|
|
219
|
+
export default View;
|
|
@@ -0,0 +1,114 @@
|
|
|
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
|
+
// Declarations for functionality exposed by the Hermes VM.
|
|
12
|
+
//
|
|
13
|
+
// For backwards-compatibility, code that uses such functionality must also
|
|
14
|
+
// check explicitly at run-time whether the object(s) and method(s) exist, and
|
|
15
|
+
// fail safely if not.
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* HermesInternalType is an object containing functions used to interact with
|
|
19
|
+
* the VM in a way that is not standardized by the JS spec.
|
|
20
|
+
* There are limited guarantees about these functions, and they should not be
|
|
21
|
+
* widely used. Consult with the Hermes team before using any of these.
|
|
22
|
+
* There may be other visible properties on this object; however, those are
|
|
23
|
+
* only exposed for testing purposes: do not use them.
|
|
24
|
+
*/
|
|
25
|
+
declare type $HermesInternalType = {
|
|
26
|
+
// All members are optional because they may not exist when OTA'd to older
|
|
27
|
+
// VMs.
|
|
28
|
+
|
|
29
|
+
+getNumGCs?: () => number,
|
|
30
|
+
+getGCTime?: () => number,
|
|
31
|
+
+getNativeCallTime?: () => number,
|
|
32
|
+
+getNativeCallCount?: () => number,
|
|
33
|
+
+getGCCPUTime?: () => number,
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Hermes can embed an "epilogue" to the bytecode file with arbitrary bytes.
|
|
37
|
+
* At most one epilogue will exist per bytecode module (which can be
|
|
38
|
+
* different than a JS module).
|
|
39
|
+
* Calling this function will return all such epilogues and convert the
|
|
40
|
+
* bytes to numbers in the range of 0-255.
|
|
41
|
+
*/
|
|
42
|
+
+getEpilogues?: () => Array<Array<number>>,
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Query the VM for various statistics about performance.
|
|
46
|
+
* There are no guarantees about what keys exist in it, but they can be
|
|
47
|
+
* printed for informational purposes.
|
|
48
|
+
* @return An object that maps strings to various types of performance
|
|
49
|
+
* statistics.
|
|
50
|
+
*/
|
|
51
|
+
+getInstrumentedStats?: () => {[string]: number | string, ...},
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Query the VM for any sort of runtime properties that it wants to report.
|
|
55
|
+
* There are no guarantees about what keys exist in it, but they can be
|
|
56
|
+
* printed for informational purposes.
|
|
57
|
+
* @return An object that maps strings to various types of runtime properties.
|
|
58
|
+
*/
|
|
59
|
+
+getRuntimeProperties?: () => {
|
|
60
|
+
'OSS Release Version': string,
|
|
61
|
+
Build: string,
|
|
62
|
+
[string]: mixed,
|
|
63
|
+
},
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Tell Hermes that at this point the surface has transitioned from TTI to
|
|
67
|
+
* post-TTI. The VM can change some of its internal behavior to optimize for
|
|
68
|
+
* post-TTI scenarios.
|
|
69
|
+
* This can be called several times but will have no effect after the first
|
|
70
|
+
* call.
|
|
71
|
+
*/
|
|
72
|
+
+ttiReached?: () => void,
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Tell Hermes that at this point the surface has transitioned from TTRC to
|
|
76
|
+
* post-TTRC. The VM can change some of its internal behavior to optimize for
|
|
77
|
+
* post-TTRC scenarios.
|
|
78
|
+
* This can be called several times but will have no effect after the first
|
|
79
|
+
* call.
|
|
80
|
+
*/
|
|
81
|
+
+ttrcReached?: () => void,
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Query the VM to see whether or not it enabled Promise.
|
|
85
|
+
*/
|
|
86
|
+
+hasPromise?: () => boolean,
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Enable promise rejection tracking with the given options.
|
|
90
|
+
* The API mirrored the `promise` npm package, therefore it's typed same as
|
|
91
|
+
* the `enable` function of module `promise/setimmediate/rejection-tracking`
|
|
92
|
+
* declared in ./flow-typed/npm/promise_v8.x.x.js.
|
|
93
|
+
*/
|
|
94
|
+
+enablePromiseRejectionTracker?: (
|
|
95
|
+
options: ?{
|
|
96
|
+
whitelist?: ?Array<mixed>,
|
|
97
|
+
allRejections?: ?boolean,
|
|
98
|
+
onUnhandled?: ?(number, mixed) => void,
|
|
99
|
+
onHandled?: ?(number, mixed) => void,
|
|
100
|
+
},
|
|
101
|
+
) => void,
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Query the VM to see whether or not it use the engine Job queue.
|
|
105
|
+
*/
|
|
106
|
+
+useEngineQueue?: () => boolean,
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Enqueue a JavaScript callback function as a Job into the engine Job queue.
|
|
110
|
+
*/
|
|
111
|
+
+enqueueJob?: <TArguments: Array<mixed>>(
|
|
112
|
+
jobCallback: (...args: TArguments) => mixed,
|
|
113
|
+
) => void,
|
|
114
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
// This type allows Facebook to internally Override
|
|
12
|
+
// this type to allow our internationalization type which
|
|
13
|
+
// is a string at runtime but Flow doesn't know that.
|
|
14
|
+
declare type Stringish = string;
|