@office-iss/react-native-win32 0.72.4 → 0.72.6
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 +31 -1
- package/CHANGELOG.md +20 -4
- package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +1 -0
- package/Libraries/Components/ScrollView/ScrollViewNativeComponentType.js +1 -0
- package/Libraries/Components/ScrollView/ScrollViewViewConfig.js +1 -0
- package/Libraries/Components/TextInput/TextInput.d.ts +15 -0
- package/Libraries/Components/TextInput/TextInput.js +8 -3
- package/Libraries/Components/TextInput/TextInput.win32.js +6 -3
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Network/RCTNetworking.win32.js +10 -16
- package/Libraries/ReactNative/AppContainer.js +32 -9
- package/Libraries/StyleSheet/StyleSheetTypes.d.ts +1 -0
- package/overrides.json +5 -5
- package/package.json +9 -9
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,37 @@
|
|
|
2
2
|
"name": "@office-iss/react-native-win32",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "Mon,
|
|
5
|
+
"date": "Mon, 09 Oct 2023 15:13:04 GMT",
|
|
6
|
+
"tag": "@office-iss/react-native-win32_v0.72.6",
|
|
7
|
+
"version": "0.72.6",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "julio.rocha@microsoft.com",
|
|
12
|
+
"package": "@office-iss/react-native-win32",
|
|
13
|
+
"commit": "2255827c0902a9740b9e029ce22f02fb445093e1",
|
|
14
|
+
"comment": "Have RCTNetworking.win32 fork RCTNetworking.ios (#12199)"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Wed, 27 Sep 2023 21:02:34 GMT",
|
|
21
|
+
"tag": "@office-iss/react-native-win32_v0.72.5",
|
|
22
|
+
"version": "0.72.5",
|
|
23
|
+
"comments": {
|
|
24
|
+
"patch": [
|
|
25
|
+
{
|
|
26
|
+
"author": "30809111+acoates-ms@users.noreply.github.com",
|
|
27
|
+
"package": "@office-iss/react-native-win32",
|
|
28
|
+
"commit": "117602962a0c8314c21805380f8cd097827deed1",
|
|
29
|
+
"comment": "Bump react-native dependency to 0.72.5"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"date": "Mon, 11 Sep 2023 15:14:55 GMT",
|
|
6
36
|
"tag": "@office-iss/react-native-win32_v0.72.4",
|
|
7
37
|
"version": "0.72.4",
|
|
8
38
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,33 @@
|
|
|
1
1
|
# Change Log - @office-iss/react-native-win32
|
|
2
2
|
|
|
3
|
-
This log was last generated on Mon,
|
|
3
|
+
This log was last generated on Mon, 09 Oct 2023 15:13:04 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## 0.72.
|
|
7
|
+
## 0.72.6
|
|
8
8
|
|
|
9
|
-
Mon,
|
|
9
|
+
Mon, 09 Oct 2023 15:13:04 GMT
|
|
10
10
|
|
|
11
11
|
### Patches
|
|
12
12
|
|
|
13
|
-
-
|
|
13
|
+
- Have RCTNetworking.win32 fork RCTNetworking.ios (#12199) (julio.rocha@microsoft.com)
|
|
14
14
|
|
|
15
|
+
## 0.72.5
|
|
16
|
+
|
|
17
|
+
Wed, 27 Sep 2023 21:02:34 GMT
|
|
18
|
+
|
|
19
|
+
### Patches
|
|
20
|
+
|
|
21
|
+
- Bump react-native dependency to 0.72.5 (30809111+acoates-ms@users.noreply.github.com)
|
|
22
|
+
|
|
23
|
+
## 0.72.4
|
|
24
|
+
|
|
25
|
+
Mon, 11 Sep 2023 15:14:55 GMT
|
|
26
|
+
|
|
27
|
+
### Patches
|
|
28
|
+
|
|
29
|
+
- Webpack assets do not prefix paths with /, which causes a lost char in asset path (30809111+acoates-ms@users.noreply.github.com)
|
|
30
|
+
|
|
15
31
|
## 0.72.3
|
|
16
32
|
|
|
17
33
|
Mon, 28 Aug 2023 15:14:10 GMT
|
|
@@ -41,6 +41,7 @@ export type ScrollViewNativeProps = $ReadOnly<{
|
|
|
41
41
|
endFillColor?: ?ColorValue,
|
|
42
42
|
fadingEdgeLength?: ?number,
|
|
43
43
|
indicatorStyle?: ?('default' | 'black' | 'white'),
|
|
44
|
+
isInvertedVirtualizedList?: ?boolean,
|
|
44
45
|
keyboardDismissMode?: ?('none' | 'on-drag' | 'interactive'),
|
|
45
46
|
maintainVisibleContentPosition?: ?$ReadOnly<{
|
|
46
47
|
minIndexForVisible: number,
|
|
@@ -70,6 +70,15 @@ export type ReturnKeyTypeOptions =
|
|
|
70
70
|
| ReturnKeyTypeAndroid
|
|
71
71
|
| ReturnKeyTypeIOS;
|
|
72
72
|
|
|
73
|
+
export type EnterKeyHintTypeAndroid = 'previous';
|
|
74
|
+
export type EnterKeyHintTypeIOS = 'enter';
|
|
75
|
+
export type EnterKeyHintType = 'done' | 'go' | 'next' | 'search' | 'send';
|
|
76
|
+
|
|
77
|
+
export type EnterKeyHintTypeOptions =
|
|
78
|
+
| EnterKeyHintType
|
|
79
|
+
| EnterKeyHintTypeAndroid
|
|
80
|
+
| EnterKeyHintTypeIOS;
|
|
81
|
+
|
|
73
82
|
type DataDetectorTypes =
|
|
74
83
|
| 'phoneNumber'
|
|
75
84
|
| 'link'
|
|
@@ -779,6 +788,12 @@ export interface TextInputProps
|
|
|
779
788
|
*/
|
|
780
789
|
returnKeyType?: ReturnKeyTypeOptions | undefined;
|
|
781
790
|
|
|
791
|
+
/**
|
|
792
|
+
* Determines what text should be shown to the return key on virtual keyboards.
|
|
793
|
+
* Has precedence over the returnKeyType prop.
|
|
794
|
+
*/
|
|
795
|
+
enterKeyHint?: EnterKeyHintTypeOptions | undefined;
|
|
796
|
+
|
|
782
797
|
/**
|
|
783
798
|
* If true, the text input obscures the text entered so that sensitive text like passwords stay secure.
|
|
784
799
|
* The default value is false.
|
|
@@ -223,13 +223,16 @@ export type TextContentType =
|
|
|
223
223
|
| 'oneTimeCode';
|
|
224
224
|
|
|
225
225
|
export type enterKeyHintType =
|
|
226
|
-
|
|
226
|
+
// Cross Platform
|
|
227
227
|
| 'done'
|
|
228
228
|
| 'go'
|
|
229
229
|
| 'next'
|
|
230
|
-
| 'previous'
|
|
231
230
|
| 'search'
|
|
232
|
-
| 'send'
|
|
231
|
+
| 'send'
|
|
232
|
+
// Android-only
|
|
233
|
+
| 'previous'
|
|
234
|
+
// iOS-only
|
|
235
|
+
| 'enter';
|
|
233
236
|
|
|
234
237
|
type PasswordRules = string;
|
|
235
238
|
|
|
@@ -1344,6 +1347,7 @@ function InternalTextInput(props: Props): React.Node {
|
|
|
1344
1347
|
|
|
1345
1348
|
const config = React.useMemo(
|
|
1346
1349
|
() => ({
|
|
1350
|
+
hitSlop: props.hitSlop,
|
|
1347
1351
|
onPress: (event: PressEvent) => {
|
|
1348
1352
|
if (props.editable !== false) {
|
|
1349
1353
|
if (inputRef.current != null) {
|
|
@@ -1358,6 +1362,7 @@ function InternalTextInput(props: Props): React.Node {
|
|
|
1358
1362
|
}),
|
|
1359
1363
|
[
|
|
1360
1364
|
props.editable,
|
|
1365
|
+
props.hitSlop,
|
|
1361
1366
|
props.onPressIn,
|
|
1362
1367
|
props.onPressOut,
|
|
1363
1368
|
props.rejectResponderTermination,
|
|
@@ -207,13 +207,16 @@ export type TextContentType =
|
|
|
207
207
|
| 'oneTimeCode';
|
|
208
208
|
|
|
209
209
|
export type enterKeyHintType =
|
|
210
|
-
|
|
210
|
+
// Cross Platform
|
|
211
211
|
| 'done'
|
|
212
212
|
| 'go'
|
|
213
213
|
| 'next'
|
|
214
|
-
| 'previous'
|
|
215
214
|
| 'search'
|
|
216
|
-
| 'send'
|
|
215
|
+
| 'send'
|
|
216
|
+
// Android-only
|
|
217
|
+
| 'previous'
|
|
218
|
+
// iOS-only
|
|
219
|
+
| 'enter';
|
|
217
220
|
|
|
218
221
|
type PasswordRules = string;
|
|
219
222
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c)
|
|
3
|
-
*
|
|
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.
|
|
4
6
|
*
|
|
5
7
|
* @flow strict-local
|
|
6
8
|
* @format
|
|
@@ -9,11 +11,10 @@
|
|
|
9
11
|
'use strict';
|
|
10
12
|
|
|
11
13
|
import RCTDeviceEventEmitter from '../EventEmitter/RCTDeviceEventEmitter';
|
|
12
|
-
const RCTNetworkingNative =
|
|
13
|
-
require('../BatchedBridge/NativeModules').Networking; // [Windows]
|
|
14
|
-
import {type NativeResponseType} from './XMLHttpRequest';
|
|
15
|
-
import convertRequestBody, {type RequestBody} from './convertRequestBody';
|
|
16
14
|
import {type EventSubscription} from '../vendor/emitter/EventEmitter';
|
|
15
|
+
import convertRequestBody, {type RequestBody} from './convertRequestBody';
|
|
16
|
+
import NativeNetworkingIOS from './NativeNetworkingIOS';
|
|
17
|
+
import {type NativeResponseType} from './XMLHttpRequest';
|
|
17
18
|
|
|
18
19
|
type RCTNetworkingEventDefinitions = $ReadOnly<{
|
|
19
20
|
didSendNetworkData: [
|
|
@@ -61,11 +62,6 @@ type RCTNetworkingEventDefinitions = $ReadOnly<{
|
|
|
61
62
|
],
|
|
62
63
|
}>;
|
|
63
64
|
|
|
64
|
-
let _requestId = 1;
|
|
65
|
-
function generateRequestId(): number {
|
|
66
|
-
return _requestId++;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
65
|
const RCTNetworking = {
|
|
70
66
|
addListener<K: $Keys<RCTNetworkingEventDefinitions>>(
|
|
71
67
|
eventType: K,
|
|
@@ -88,13 +84,11 @@ const RCTNetworking = {
|
|
|
88
84
|
callback: (requestId: number) => void,
|
|
89
85
|
withCredentials: boolean,
|
|
90
86
|
) {
|
|
91
|
-
const requestId = generateRequestId();
|
|
92
87
|
const body = convertRequestBody(data);
|
|
93
|
-
|
|
88
|
+
NativeNetworkingIOS.sendRequest(
|
|
94
89
|
{
|
|
95
90
|
method,
|
|
96
91
|
url,
|
|
97
|
-
requestId,
|
|
98
92
|
data: {...body, trackingName},
|
|
99
93
|
headers,
|
|
100
94
|
responseType,
|
|
@@ -107,11 +101,11 @@ const RCTNetworking = {
|
|
|
107
101
|
},
|
|
108
102
|
|
|
109
103
|
abortRequest(requestId: number) {
|
|
110
|
-
|
|
104
|
+
NativeNetworkingIOS.abortRequest(requestId);
|
|
111
105
|
},
|
|
112
106
|
|
|
113
107
|
clearCookies(callback: (result: boolean) => void) {
|
|
114
|
-
|
|
108
|
+
NativeNetworkingIOS.clearCookies(callback);
|
|
115
109
|
},
|
|
116
110
|
};
|
|
117
111
|
|
|
@@ -17,6 +17,8 @@ import {type EventSubscription} from '../vendor/emitter/EventEmitter';
|
|
|
17
17
|
import {RootTagContext, createRootTag} from './RootTag';
|
|
18
18
|
import * as React from 'react';
|
|
19
19
|
|
|
20
|
+
const reactDevToolsHook = window.__REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
21
|
+
|
|
20
22
|
type Props = $ReadOnly<{|
|
|
21
23
|
children?: React.Node,
|
|
22
24
|
fabric?: boolean,
|
|
@@ -47,9 +49,21 @@ class AppContainer extends React.Component<Props, State> {
|
|
|
47
49
|
};
|
|
48
50
|
_mainRef: ?React.ElementRef<typeof View>;
|
|
49
51
|
_subscription: ?EventSubscription = null;
|
|
52
|
+
_reactDevToolsAgentListener: ?() => void = null;
|
|
50
53
|
|
|
51
54
|
static getDerivedStateFromError: any = undefined;
|
|
52
55
|
|
|
56
|
+
mountReactDevToolsOverlays(): void {
|
|
57
|
+
const DevtoolsOverlay = require('../Inspector/DevtoolsOverlay').default;
|
|
58
|
+
const devtoolsOverlay = <DevtoolsOverlay inspectedView={this._mainRef} />;
|
|
59
|
+
|
|
60
|
+
const TraceUpdateOverlay =
|
|
61
|
+
require('../Components/TraceUpdateOverlay/TraceUpdateOverlay').default;
|
|
62
|
+
const traceUpdateOverlay = <TraceUpdateOverlay />;
|
|
63
|
+
|
|
64
|
+
this.setState({devtoolsOverlay, traceUpdateOverlay});
|
|
65
|
+
}
|
|
66
|
+
|
|
53
67
|
componentDidMount(): void {
|
|
54
68
|
if (__DEV__) {
|
|
55
69
|
if (!this.props.internal_excludeInspector) {
|
|
@@ -71,16 +85,21 @@ class AppContainer extends React.Component<Props, State> {
|
|
|
71
85
|
this.setState({inspector});
|
|
72
86
|
},
|
|
73
87
|
);
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
88
|
+
|
|
89
|
+
if (reactDevToolsHook != null) {
|
|
90
|
+
if (reactDevToolsHook.reactDevtoolsAgent) {
|
|
91
|
+
// In case if this is not the first AppContainer rendered and React DevTools are already attached
|
|
92
|
+
this.mountReactDevToolsOverlays();
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
this._reactDevToolsAgentListener = () =>
|
|
97
|
+
this.mountReactDevToolsOverlays();
|
|
98
|
+
|
|
99
|
+
reactDevToolsHook.on(
|
|
100
|
+
'react-devtools',
|
|
101
|
+
this._reactDevToolsAgentListener,
|
|
79
102
|
);
|
|
80
|
-
const TraceUpdateOverlay =
|
|
81
|
-
require('../Components/TraceUpdateOverlay/TraceUpdateOverlay').default;
|
|
82
|
-
const traceUpdateOverlay = <TraceUpdateOverlay />;
|
|
83
|
-
this.setState({devtoolsOverlay, traceUpdateOverlay});
|
|
84
103
|
}
|
|
85
104
|
}
|
|
86
105
|
}
|
|
@@ -90,6 +109,10 @@ class AppContainer extends React.Component<Props, State> {
|
|
|
90
109
|
if (this._subscription != null) {
|
|
91
110
|
this._subscription.remove();
|
|
92
111
|
}
|
|
112
|
+
|
|
113
|
+
if (reactDevToolsHook != null && this._reactDevToolsAgentListener != null) {
|
|
114
|
+
reactDevToolsHook.off('react-devtools', this._reactDevToolsAgentListener);
|
|
115
|
+
}
|
|
93
116
|
}
|
|
94
117
|
|
|
95
118
|
render(): React.Node {
|
package/overrides.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"**/__snapshots__/**",
|
|
8
8
|
"src/rntypes/**"
|
|
9
9
|
],
|
|
10
|
-
"baseVersion": "0.72.
|
|
10
|
+
"baseVersion": "0.72.5",
|
|
11
11
|
"overrides": [
|
|
12
12
|
{
|
|
13
13
|
"type": "derived",
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"type": "derived",
|
|
124
124
|
"file": "src/Libraries/Components/TextInput/TextInput.win32.js",
|
|
125
125
|
"baseFile": "packages/react-native/Libraries/Components/TextInput/TextInput.js",
|
|
126
|
-
"baseHash": "
|
|
126
|
+
"baseHash": "90f4b32a3efe6ed28d47946ab9d0f9737dbe0174"
|
|
127
127
|
},
|
|
128
128
|
{
|
|
129
129
|
"type": "patch",
|
|
@@ -343,10 +343,10 @@
|
|
|
343
343
|
"baseHash": "daeb879969c322e67efcb9595d6bb171b9dad6d8"
|
|
344
344
|
},
|
|
345
345
|
{
|
|
346
|
-
"type": "
|
|
346
|
+
"type": "copy",
|
|
347
347
|
"file": "src/Libraries/Network/RCTNetworking.win32.js",
|
|
348
|
-
"baseFile": "packages/react-native/Libraries/Network/RCTNetworking.
|
|
349
|
-
"baseHash": "
|
|
348
|
+
"baseFile": "packages/react-native/Libraries/Network/RCTNetworking.ios.js",
|
|
349
|
+
"baseHash": "39fc8e1003b0f6345ec4fea060f455d06939a321",
|
|
350
350
|
"issue": 4318
|
|
351
351
|
},
|
|
352
352
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@office-iss/react-native-win32",
|
|
3
|
-
"version": "0.72.
|
|
3
|
+
"version": "0.72.6",
|
|
4
4
|
"description": "Implementation of react native on top of Office's Win32 platform.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,16 +26,16 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@babel/runtime": "^7.0.0",
|
|
28
28
|
"@jest/create-cache-key-function": "^29.2.1",
|
|
29
|
-
"@react-native-community/cli": "11.3.
|
|
30
|
-
"@react-native-community/cli-platform-android": "11.3.
|
|
31
|
-
"@react-native-community/cli-platform-ios": "11.3.
|
|
29
|
+
"@react-native-community/cli": "11.3.7",
|
|
30
|
+
"@react-native-community/cli-platform-android": "11.3.7",
|
|
31
|
+
"@react-native-community/cli-platform-ios": "11.3.7",
|
|
32
32
|
"@react-native/assets": "1.0.0",
|
|
33
33
|
"@react-native/assets-registry": "^0.72.0",
|
|
34
|
-
"@react-native/codegen": "^0.72.
|
|
34
|
+
"@react-native/codegen": "^0.72.7",
|
|
35
35
|
"@react-native/gradle-plugin": "^0.72.11",
|
|
36
36
|
"@react-native/js-polyfills": "^0.72.1",
|
|
37
37
|
"@react-native/normalize-colors": "^0.72.0",
|
|
38
|
-
"@react-native/virtualized-lists": "^0.72.
|
|
38
|
+
"@react-native/virtualized-lists": "^0.72.8",
|
|
39
39
|
"abort-controller": "^3.0.0",
|
|
40
40
|
"anser": "^1.4.9",
|
|
41
41
|
"art": "^0.10.0",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"jest-environment-node": "^29.2.1",
|
|
48
48
|
"jsc-android": "^250231.0.0",
|
|
49
49
|
"memoize-one": "^5.0.0",
|
|
50
|
-
"metro-runtime": "0.76.
|
|
51
|
-
"metro-source-map": "0.76.
|
|
50
|
+
"metro-runtime": "0.76.8",
|
|
51
|
+
"metro-source-map": "0.76.8",
|
|
52
52
|
"mkdirp": "^0.5.1",
|
|
53
53
|
"nullthrows": "^1.1.1",
|
|
54
54
|
"pretty-format": "^26.5.2",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"just-scripts": "^1.3.3",
|
|
84
84
|
"prettier": "^2.4.1",
|
|
85
85
|
"react": "18.2.0",
|
|
86
|
-
"react-native": "0.72.
|
|
86
|
+
"react-native": "0.72.5",
|
|
87
87
|
"react-native-platform-override": "^1.9.4",
|
|
88
88
|
"typescript": "^4.9.5"
|
|
89
89
|
},
|