@office-iss/react-native-win32 0.72.3 → 0.72.5
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 +21 -5
- 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/Image/resolveAssetSource.win32.js +6 -7
- package/Libraries/ReactNative/AppContainer.js +32 -9
- package/Libraries/StyleSheet/StyleSheetTypes.d.ts +1 -0
- package/overrides.json +2 -2
- 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": "
|
|
5
|
+
"date": "Wed, 27 Sep 2023 21:02:07 GMT",
|
|
6
|
+
"tag": "@office-iss/react-native-win32_v0.72.5",
|
|
7
|
+
"version": "0.72.5",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "30809111+acoates-ms@users.noreply.github.com",
|
|
12
|
+
"package": "@office-iss/react-native-win32",
|
|
13
|
+
"commit": "117602962a0c8314c21805380f8cd097827deed1",
|
|
14
|
+
"comment": "Bump react-native dependency to 0.72.5"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Mon, 11 Sep 2023 15:14:55 GMT",
|
|
21
|
+
"tag": "@office-iss/react-native-win32_v0.72.4",
|
|
22
|
+
"version": "0.72.4",
|
|
23
|
+
"comments": {
|
|
24
|
+
"patch": [
|
|
25
|
+
{
|
|
26
|
+
"author": "30809111+acoates-ms@users.noreply.github.com",
|
|
27
|
+
"package": "@office-iss/react-native-win32",
|
|
28
|
+
"commit": "7564111bec1b57cfc4aecc22dea06c895804be99",
|
|
29
|
+
"comment": "Webpack assets do not prefix paths with /, which causes a lost char in asset path"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"date": "Mon, 28 Aug 2023 15:14:10 GMT",
|
|
6
36
|
"tag": "@office-iss/react-native-win32_v0.72.3",
|
|
7
37
|
"version": "0.72.3",
|
|
8
38
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,18 +1,34 @@
|
|
|
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 Wed, 27 Sep 2023 21:02:07 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## 0.72.
|
|
7
|
+
## 0.72.5
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Wed, 27 Sep 2023 21:02:07 GMT
|
|
10
10
|
|
|
11
11
|
### Patches
|
|
12
12
|
|
|
13
|
-
-
|
|
14
|
-
- Remove flow usage from saveAssetPlugin codeflow (30809111+acoates-ms@users.noreply.github.com)
|
|
13
|
+
- Bump react-native dependency to 0.72.5 (30809111+acoates-ms@users.noreply.github.com)
|
|
15
14
|
|
|
15
|
+
## 0.72.4
|
|
16
|
+
|
|
17
|
+
Mon, 11 Sep 2023 15:14:55 GMT
|
|
18
|
+
|
|
19
|
+
### Patches
|
|
20
|
+
|
|
21
|
+
- Webpack assets do not prefix paths with /, which causes a lost char in asset path (30809111+acoates-ms@users.noreply.github.com)
|
|
22
|
+
|
|
23
|
+
## 0.72.3
|
|
24
|
+
|
|
25
|
+
Mon, 28 Aug 2023 15:14:10 GMT
|
|
26
|
+
|
|
27
|
+
### Patches
|
|
28
|
+
|
|
29
|
+
- fix a11yState and add support for aria-required and -multiselectable (krsiler@microsoft.com)
|
|
30
|
+
- Remove flow usage from saveAssetPlugin codeflow (30809111+acoates-ms@users.noreply.github.com)
|
|
31
|
+
|
|
16
32
|
## 0.72.2
|
|
17
33
|
|
|
18
34
|
Mon, 14 Aug 2023 15:18:19 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
|
|
|
@@ -90,10 +90,13 @@ class AssetResolverLateScaleResolution {
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
_getBasePath(local: boolean) {
|
|
93
|
+
let basePath = this._resolver.asset.httpServerLocation;
|
|
94
|
+
if (basePath[0] === '/') {
|
|
95
|
+
basePath = basePath.substr(1);
|
|
96
|
+
}
|
|
97
|
+
|
|
93
98
|
if (local) {
|
|
94
|
-
const safePath =
|
|
95
|
-
.substr(1)
|
|
96
|
-
.replace(/\.\.\//g, '_');
|
|
99
|
+
const safePath = basePath.replace(/\.\.\//g, '_');
|
|
97
100
|
// If this asset was created with the newer saveAssetPlugin, then we should shorten the path
|
|
98
101
|
// This conditional is added to allow back compat of older bundles which might have been created without the saveAssetPlugin
|
|
99
102
|
if (this._resolver.asset.__useShortPath) {
|
|
@@ -102,10 +105,6 @@ class AssetResolverLateScaleResolution {
|
|
|
102
105
|
return safePath;
|
|
103
106
|
}
|
|
104
107
|
|
|
105
|
-
let basePath = this._resolver.asset.httpServerLocation;
|
|
106
|
-
if (basePath[0] === '/') {
|
|
107
|
-
basePath = basePath.substr(1);
|
|
108
|
-
}
|
|
109
108
|
return basePath;
|
|
110
109
|
}
|
|
111
110
|
|
|
@@ -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",
|
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.5",
|
|
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
|
},
|