@office-iss/react-native-win32 0.73.0 → 0.73.1
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 +22 -1
- package/CHANGELOG.md +17 -8
- package/Libraries/Components/TextInput/TextInputState.win32.js +12 -9
- package/Libraries/Components/Touchable/TouchableBounce.js +4 -0
- package/Libraries/Components/Touchable/TouchableHighlight.js +1 -0
- package/Libraries/Components/Touchable/TouchableNativeFeedback.js +4 -0
- package/Libraries/Components/Touchable/TouchableOpacity.js +4 -0
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +4 -0
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/promiseRejectionTrackingOptions.js +5 -0
- package/babel.config.js +2 -2
- package/overrides.json +2 -2
- package/package.json +15 -15
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,28 @@
|
|
|
2
2
|
"name": "@office-iss/react-native-win32",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "Fri,
|
|
5
|
+
"date": "Fri, 09 Feb 2024 17:12:13 GMT",
|
|
6
|
+
"version": "0.73.1",
|
|
7
|
+
"tag": "@office-iss/react-native-win32_v0.73.1",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "30809111+acoates-ms@users.noreply.github.com",
|
|
12
|
+
"package": "@office-iss/react-native-win32",
|
|
13
|
+
"commit": "226072f2a745dcfb7823be136f8b04076b7e1b4d",
|
|
14
|
+
"comment": "[Win32] view.focus sometimes skips setting focus"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "30809111+acoates-ms@users.noreply.github.com",
|
|
18
|
+
"package": "@office-iss/react-native-win32",
|
|
19
|
+
"commit": "8f4160298ca131e01fb8c1bd6900394735a32c58",
|
|
20
|
+
"comment": "Update to react-native 0.73.4"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"date": "Fri, 08 Dec 2023 00:26:14 GMT",
|
|
6
27
|
"version": "0.73.0",
|
|
7
28
|
"tag": "@office-iss/react-native-win32_v0.73.0",
|
|
8
29
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,21 +1,30 @@
|
|
|
1
1
|
# Change Log - @office-iss/react-native-win32
|
|
2
2
|
|
|
3
|
-
This log was last generated on Fri,
|
|
3
|
+
This log was last generated on Fri, 09 Feb 2024 17:12:13 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## 0.73.
|
|
7
|
+
## 0.73.1
|
|
8
8
|
|
|
9
|
-
Fri,
|
|
9
|
+
Fri, 09 Feb 2024 17:12:13 GMT
|
|
10
10
|
|
|
11
11
|
### Patches
|
|
12
12
|
|
|
13
|
-
-
|
|
14
|
-
|
|
15
|
-
### Changes
|
|
16
|
-
|
|
17
|
-
- integrate rc8 (tatianakapos@microsoft.com)
|
|
13
|
+
- [Win32] view.focus sometimes skips setting focus (30809111+acoates-ms@users.noreply.github.com)
|
|
14
|
+
- Update to react-native 0.73.4 (30809111+acoates-ms@users.noreply.github.com)
|
|
18
15
|
|
|
16
|
+
## 0.73.0
|
|
17
|
+
|
|
18
|
+
Fri, 08 Dec 2023 00:26:14 GMT
|
|
19
|
+
|
|
20
|
+
### Patches
|
|
21
|
+
|
|
22
|
+
- Promote 0.73 to latest (tatianakapos@microsoft.com)
|
|
23
|
+
|
|
24
|
+
### Changes
|
|
25
|
+
|
|
26
|
+
- integrate rc8 (tatianakapos@microsoft.com)
|
|
27
|
+
|
|
19
28
|
## 0.73.0-preview.6
|
|
20
29
|
|
|
21
30
|
Mon, 04 Dec 2023 16:15:07 GMT
|
|
@@ -21,8 +21,7 @@ import type {
|
|
|
21
21
|
|
|
22
22
|
import {Commands as AndroidTextInputCommands} from '../../Components/TextInput/AndroidTextInputNativeComponent';
|
|
23
23
|
import {Commands as iOSTextInputCommands} from '../../Components/TextInput/RCTSingelineTextInputNativeComponent';
|
|
24
|
-
|
|
25
|
-
import {UIManager} from 'react-native';
|
|
24
|
+
import {Commands as Win32TextInputCommands} from '../../Components/TextInput/Win32TextInputNativeComponent';
|
|
26
25
|
|
|
27
26
|
const {findNodeHandle} = require('../../ReactNative/RendererProxy');
|
|
28
27
|
const Platform = require('../../Utilities/Platform');
|
|
@@ -106,7 +105,16 @@ function focusTextInput(textField: ?ComponentRef) {
|
|
|
106
105
|
return;
|
|
107
106
|
}
|
|
108
107
|
|
|
109
|
-
|
|
108
|
+
// [Win32
|
|
109
|
+
if (Platform.OS === 'win32' && textField != null) {
|
|
110
|
+
// On Windows, we cannot test if the currentlyFocusedInputRef equals the
|
|
111
|
+
// target ref because the call to focus on the target ref may occur before
|
|
112
|
+
// an onBlur event for the target ref has been dispatched to JS but after
|
|
113
|
+
// the target ref has lost native focus.
|
|
114
|
+
focusInput(textField);
|
|
115
|
+
Win32TextInputCommands.focus(textField);
|
|
116
|
+
// Win32]
|
|
117
|
+
} else if (textField != null) {
|
|
110
118
|
const fieldCanBeFocused =
|
|
111
119
|
currentlyFocusedInputRef !== textField &&
|
|
112
120
|
// $FlowFixMe - `currentProps` is missing in `NativeMethods`
|
|
@@ -126,11 +134,6 @@ function focusTextInput(textField: ?ComponentRef) {
|
|
|
126
134
|
} else if (Platform.OS === 'android') {
|
|
127
135
|
AndroidTextInputCommands.focus(textField);
|
|
128
136
|
}
|
|
129
|
-
// [Win32
|
|
130
|
-
else if (Platform.OS === 'win32') {
|
|
131
|
-
UIManager.focus(findNodeHandle(textField));
|
|
132
|
-
}
|
|
133
|
-
// Win32]
|
|
134
137
|
}
|
|
135
138
|
}
|
|
136
139
|
|
|
@@ -164,7 +167,7 @@ function blurTextInput(textField: ?ComponentRef) {
|
|
|
164
167
|
}
|
|
165
168
|
// [Win32
|
|
166
169
|
else if (Platform.OS === 'win32') {
|
|
167
|
-
|
|
170
|
+
Win32TextInputCommands.blur(textField);
|
|
168
171
|
}
|
|
169
172
|
// Win32]
|
|
170
173
|
}
|
|
@@ -203,6 +203,10 @@ class TouchableBounce extends React.Component<Props, State> {
|
|
|
203
203
|
this.state.pressability.configure(this._createPressabilityConfig());
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
+
componentDidMount(): mixed {
|
|
207
|
+
this.state.pressability.configure(this._createPressabilityConfig());
|
|
208
|
+
}
|
|
209
|
+
|
|
206
210
|
componentWillUnmount(): void {
|
|
207
211
|
this.state.pressability.reset();
|
|
208
212
|
}
|
|
@@ -363,6 +363,7 @@ class TouchableHighlight extends React.Component<Props, State> {
|
|
|
363
363
|
|
|
364
364
|
componentDidMount(): void {
|
|
365
365
|
this._isMounted = true;
|
|
366
|
+
this.state.pressability.configure(this._createPressabilityConfig());
|
|
366
367
|
}
|
|
367
368
|
|
|
368
369
|
componentDidUpdate(prevProps: Props, prevState: State) {
|
|
@@ -339,6 +339,10 @@ class TouchableNativeFeedback extends React.Component<Props, State> {
|
|
|
339
339
|
this.state.pressability.configure(this._createPressabilityConfig());
|
|
340
340
|
}
|
|
341
341
|
|
|
342
|
+
componentDidMount(): mixed {
|
|
343
|
+
this.state.pressability.configure(this._createPressabilityConfig());
|
|
344
|
+
}
|
|
345
|
+
|
|
342
346
|
componentWillUnmount(): void {
|
|
343
347
|
this.state.pressability.reset();
|
|
344
348
|
}
|
|
@@ -314,6 +314,10 @@ class TouchableOpacity extends React.Component<Props, State> {
|
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
|
|
317
|
+
componentDidMount(): void {
|
|
318
|
+
this.state.pressability.configure(this._createPressabilityConfig());
|
|
319
|
+
}
|
|
320
|
+
|
|
317
321
|
componentWillUnmount(): void {
|
|
318
322
|
this.state.pressability.reset();
|
|
319
323
|
}
|
|
@@ -189,6 +189,10 @@ class TouchableWithoutFeedback extends React.Component<Props, State> {
|
|
|
189
189
|
this.state.pressability.configure(createPressabilityConfig(this.props));
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
+
componentDidMount(): mixed {
|
|
193
|
+
this.state.pressability.configure(createPressabilityConfig(this.props));
|
|
194
|
+
}
|
|
195
|
+
|
|
192
196
|
componentWillUnmount(): void {
|
|
193
197
|
this.state.pressability.reset();
|
|
194
198
|
}
|
|
@@ -34,6 +34,11 @@ let rejectionTrackingOptions: $NonMaybeType<Parameters<enable>[0]> = {
|
|
|
34
34
|
? rejection
|
|
35
35
|
: JSON.stringify((rejection: $FlowFixMe));
|
|
36
36
|
}
|
|
37
|
+
// It could although this object is not a standard error, it still has stack information to unwind
|
|
38
|
+
// $FlowFixMe ignore types just check if stack is there
|
|
39
|
+
if (rejection.stack && typeof rejection.stack === 'string') {
|
|
40
|
+
stack = rejection.stack;
|
|
41
|
+
}
|
|
37
42
|
}
|
|
38
43
|
|
|
39
44
|
const warning = `Possible unhandled promise rejection (id: ${id}):\n${
|
package/babel.config.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
|
|
3
|
-
};
|
|
2
|
+
presets: ["module:@rnw-scripts/babel-react-native-config"],
|
|
3
|
+
};
|
package/overrides.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"**/__snapshots__/**",
|
|
8
8
|
"src/rntypes/**"
|
|
9
9
|
],
|
|
10
|
-
"baseVersion": "0.73.
|
|
10
|
+
"baseVersion": "0.73.4",
|
|
11
11
|
"overrides": [
|
|
12
12
|
{
|
|
13
13
|
"type": "derived",
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
"type": "derived",
|
|
160
160
|
"file": "src/Libraries/Components/Touchable/TouchableNativeFeedback.win32.js",
|
|
161
161
|
"baseFile": "packages/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.js",
|
|
162
|
-
"baseHash": "
|
|
162
|
+
"baseHash": "62e575c73930d12ae9b878c6913bb2c3751d935e"
|
|
163
163
|
},
|
|
164
164
|
{
|
|
165
165
|
"type": "platform",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@office-iss/react-native-win32",
|
|
3
|
-
"version": "0.73.
|
|
3
|
+
"version": "0.73.1",
|
|
4
4
|
"description": "Implementation of react native on top of Office's Win32 platform.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,23 +26,23 @@
|
|
|
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": "12.
|
|
30
|
-
"@react-native-community/cli-platform-android": "12.
|
|
31
|
-
"@react-native-community/cli-platform-ios": "12.
|
|
32
|
-
"@react-native/assets": "
|
|
33
|
-
"@react-native/
|
|
34
|
-
"@react-native/
|
|
35
|
-
"@react-native/
|
|
36
|
-
"@react-native/
|
|
37
|
-
"@react-native/js-polyfills": "^0.73.1",
|
|
29
|
+
"@react-native-community/cli": "12.3.2",
|
|
30
|
+
"@react-native-community/cli-platform-android": "12.3.2",
|
|
31
|
+
"@react-native-community/cli-platform-ios": "12.3.2",
|
|
32
|
+
"@react-native/assets-registry": "0.73.1",
|
|
33
|
+
"@react-native/codegen": "0.73.3",
|
|
34
|
+
"@react-native/community-cli-plugin": "0.73.16",
|
|
35
|
+
"@react-native/gradle-plugin": "0.73.4",
|
|
36
|
+
"@react-native/js-polyfills": "0.73.1",
|
|
38
37
|
"@react-native/metro-config": "^0.73.0",
|
|
39
|
-
"@react-native/normalize-colors": "
|
|
40
|
-
"@react-native/virtualized-lists": "
|
|
38
|
+
"@react-native/normalize-colors": "0.73.2",
|
|
39
|
+
"@react-native/virtualized-lists": "0.73.4",
|
|
41
40
|
"abort-controller": "^3.0.0",
|
|
42
41
|
"anser": "^1.4.9",
|
|
43
42
|
"ansi-regex": "^5.0.0",
|
|
44
43
|
"art": "^0.10.0",
|
|
45
44
|
"base64-js": "^1.5.1",
|
|
45
|
+
"chalk": "^4.0.0",
|
|
46
46
|
"deprecated-react-native-prop-types": "^5.0.0",
|
|
47
47
|
"event-target-shim": "^5.0.1",
|
|
48
48
|
"flow-enums-runtime": "^0.0.6",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"jest-environment-node": "^29.6.3",
|
|
51
51
|
"jsc-android": "^250231.0.0",
|
|
52
52
|
"memoize-one": "^5.0.0",
|
|
53
|
-
"metro-runtime": "^0.80.
|
|
54
|
-
"metro-source-map": "^0.80.
|
|
53
|
+
"metro-runtime": "^0.80.3",
|
|
54
|
+
"metro-source-map": "^0.80.3",
|
|
55
55
|
"mkdirp": "^0.5.1",
|
|
56
56
|
"nullthrows": "^1.1.1",
|
|
57
57
|
"pretty-format": "^26.5.2",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"just-scripts": "^1.3.3",
|
|
86
86
|
"prettier": "^2.4.1",
|
|
87
87
|
"react": "18.2.0",
|
|
88
|
-
"react-native": "0.73.
|
|
88
|
+
"react-native": "0.73.4",
|
|
89
89
|
"react-native-platform-override": "^1.9.16",
|
|
90
90
|
"typescript": "^4.9.5"
|
|
91
91
|
},
|