react-native-windows 0.75.6 → 0.75.7
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/Libraries/Components/AccessibilityInfo/AccessibilityInfo.windows.js +15 -15
- package/Libraries/Components/Button.windows.js +18 -18
- package/Libraries/Components/Flyout/FlyoutNativeComponent.js +5 -1
- package/Libraries/Components/TextInput/TextInput.windows.js +14 -10
- package/Libraries/Components/Touchable/Touchable.windows.js +2 -2
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.windows.js +5 -3
- package/Libraries/Text/Text.windows.js +2 -2
- package/Libraries/Utilities/Platform.windows.js +4 -4
- package/PropertySheets/Generated/PackageVersion.g.props +3 -3
- package/just-task.js +1 -1
- package/package.json +3 -4
- package/templates/cpp-app/template.config.js +8 -3
- package/templates/cpp-lib/template.config.js +8 -3
- package/templates/templateUtils.js +2 -3
|
@@ -55,21 +55,21 @@ const EventNames: Map<
|
|
|
55
55
|
['accessibilityServiceChanged', 'accessibilityServiceDidChange'],
|
|
56
56
|
])
|
|
57
57
|
: Platform.OS === 'windows'
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
58
|
+
? new Map([
|
|
59
|
+
['change', 'TOUCH_EXPLORATION_EVENT'],
|
|
60
|
+
['reduceMotionChanged', 'REDUCE_MOTION_EVENT'],
|
|
61
|
+
['screenReaderChanged', 'TOUCH_EXPLORATION_EVENT'],
|
|
62
|
+
])
|
|
63
|
+
: new Map([
|
|
64
|
+
['announcementFinished', 'announcementFinished'],
|
|
65
|
+
['boldTextChanged', 'boldTextChanged'],
|
|
66
|
+
['change', 'screenReaderChanged'],
|
|
67
|
+
['grayscaleChanged', 'grayscaleChanged'],
|
|
68
|
+
['invertColorsChanged', 'invertColorsChanged'],
|
|
69
|
+
['reduceMotionChanged', 'reduceMotionChanged'],
|
|
70
|
+
['reduceTransparencyChanged', 'reduceTransparencyChanged'],
|
|
71
|
+
['screenReaderChanged', 'screenReaderChanged'],
|
|
72
|
+
]);
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
75
|
* Sometimes it's useful to know whether or not the device has a screen reader
|
|
@@ -407,10 +407,10 @@ const Button: React.AbstractComponent<
|
|
|
407
407
|
color
|
|
408
408
|
? {borderRadius: 3}
|
|
409
409
|
: pressed
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
410
|
+
? [buttonStyles, styles.buttonPressed]
|
|
411
|
+
: hover
|
|
412
|
+
? [buttonStyles, styles.buttonHover]
|
|
413
|
+
: buttonStyles
|
|
414
414
|
}
|
|
415
415
|
onMouseEnter={() => {
|
|
416
416
|
if (!disabled) setHover(true);
|
|
@@ -445,20 +445,20 @@ const Button: React.AbstractComponent<
|
|
|
445
445
|
color
|
|
446
446
|
? textStyles
|
|
447
447
|
: pressed
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
448
|
+
? [
|
|
449
|
+
textStyles,
|
|
450
|
+
{
|
|
451
|
+
color: PlatformColor('ButtonForegroundPressed'),
|
|
452
|
+
},
|
|
453
|
+
]
|
|
454
|
+
: hover
|
|
455
|
+
? [
|
|
456
|
+
textStyles,
|
|
457
|
+
{
|
|
458
|
+
color: PlatformColor('ButtonForegroundPointerOver'),
|
|
459
|
+
},
|
|
460
|
+
]
|
|
461
|
+
: textStyles
|
|
462
462
|
}
|
|
463
463
|
disabled={disabled}>
|
|
464
464
|
{formattedTitle}
|
|
@@ -7,7 +7,11 @@
|
|
|
7
7
|
|
|
8
8
|
import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTypes';
|
|
9
9
|
import type {HostComponent} from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';
|
|
10
|
-
import type {
|
|
10
|
+
import type {
|
|
11
|
+
DirectEventHandler,
|
|
12
|
+
Double,
|
|
13
|
+
Int32,
|
|
14
|
+
} from 'react-native/Libraries/Types/CodegenTypes';
|
|
11
15
|
|
|
12
16
|
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
13
17
|
|
|
@@ -1207,8 +1207,8 @@ function InternalTextInput(props: Props): React.Node {
|
|
|
1207
1207
|
typeof props.value === 'string'
|
|
1208
1208
|
? props.value
|
|
1209
1209
|
: typeof props.defaultValue === 'string'
|
|
1210
|
-
|
|
1211
|
-
|
|
1210
|
+
? props.defaultValue
|
|
1211
|
+
: '';
|
|
1212
1212
|
|
|
1213
1213
|
// This is necessary in case native updates the text and JS decides
|
|
1214
1214
|
// that the update should be ignored and we should stick with the value
|
|
@@ -1313,8 +1313,12 @@ function InternalTextInput(props: Props): React.Node {
|
|
|
1313
1313
|
}
|
|
1314
1314
|
},
|
|
1315
1315
|
isFocused(): boolean {
|
|
1316
|
-
const currentlyFocusedInput =
|
|
1317
|
-
|
|
1316
|
+
const currentlyFocusedInput =
|
|
1317
|
+
TextInputState.currentlyFocusedInput();
|
|
1318
|
+
return (
|
|
1319
|
+
currentlyFocusedInput !== null &&
|
|
1320
|
+
currentlyFocusedInput === inputRef.current
|
|
1321
|
+
);
|
|
1318
1322
|
},
|
|
1319
1323
|
getNativeRef(): ?React.ElementRef<HostComponent<mixed>> {
|
|
1320
1324
|
return inputRef.current;
|
|
@@ -1872,12 +1876,12 @@ const ExportedForwardRef: React.AbstractComponent<
|
|
|
1872
1876
|
textContentType != null
|
|
1873
1877
|
? textContentType
|
|
1874
1878
|
: Platform.OS === 'ios' &&
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1879
|
+
autoComplete &&
|
|
1880
|
+
autoComplete in autoCompleteWebToTextContentTypeMap
|
|
1881
|
+
? // $FlowFixMe[invalid-computed-prop]
|
|
1882
|
+
// $FlowFixMe[prop-missing]
|
|
1883
|
+
autoCompleteWebToTextContentTypeMap[autoComplete]
|
|
1884
|
+
: textContentType
|
|
1881
1885
|
}
|
|
1882
1886
|
{...restProps}
|
|
1883
1887
|
forwardedRef={forwardedRef}
|
|
@@ -131,7 +131,10 @@ const PASSTHROUGH_PROPS = [
|
|
|
131
131
|
const TouchableWithoutFeedback: React.AbstractComponent<
|
|
132
132
|
Props,
|
|
133
133
|
React.ElementRef<typeof Animated.View>,
|
|
134
|
-
> = React.forwardRef(function TouchableWithoutFeedback(
|
|
134
|
+
> = React.forwardRef(function TouchableWithoutFeedback(
|
|
135
|
+
props: Props,
|
|
136
|
+
ref,
|
|
137
|
+
): React.Node {
|
|
135
138
|
const {
|
|
136
139
|
disabled,
|
|
137
140
|
rejectResponderTermination,
|
|
@@ -153,7 +156,6 @@ const TouchableWithoutFeedback: React.AbstractComponent<
|
|
|
153
156
|
onMouseLeave, // [Windows]
|
|
154
157
|
} = props;
|
|
155
158
|
|
|
156
|
-
|
|
157
159
|
const pressabilityConfig = useMemo(
|
|
158
160
|
() => ({
|
|
159
161
|
cancelable: !rejectResponderTermination,
|
|
@@ -262,4 +264,4 @@ const TouchableWithoutFeedback: React.AbstractComponent<
|
|
|
262
264
|
return React.cloneElement(element, {...elementProps, ref}, ...children);
|
|
263
265
|
});
|
|
264
266
|
|
|
265
|
-
module.exports = TouchableWithoutFeedback;
|
|
267
|
+
module.exports = TouchableWithoutFeedback;
|
|
@@ -294,7 +294,7 @@ const Text: React.AbstractComponent<
|
|
|
294
294
|
style={processedStyle}
|
|
295
295
|
/>
|
|
296
296
|
);
|
|
297
|
-
|
|
297
|
+
// [Windows] Following else statement forked due to PR #5740
|
|
298
298
|
} else {
|
|
299
299
|
let styleProps: ViewStyleProp = (style: any);
|
|
300
300
|
if (
|
|
@@ -441,4 +441,4 @@ const verticalAlignToTextAlignVerticalMap = {
|
|
|
441
441
|
middle: 'center',
|
|
442
442
|
};
|
|
443
443
|
|
|
444
|
-
module.exports = Text;
|
|
444
|
+
module.exports = Text;
|
|
@@ -70,10 +70,10 @@ const Platform: PlatformType = {
|
|
|
70
70
|
? // $FlowFixMe[incompatible-return]
|
|
71
71
|
spec.windows
|
|
72
72
|
: 'native' in spec
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
? // $FlowFixMe[incompatible-return]
|
|
74
|
+
spec.native
|
|
75
|
+
: // $FlowFixMe[incompatible-return]
|
|
76
|
+
spec.default,
|
|
77
77
|
};
|
|
78
78
|
|
|
79
79
|
module.exports = Platform;
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
-->
|
|
11
11
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
12
12
|
<PropertyGroup>
|
|
13
|
-
<ReactNativeWindowsVersion>0.75.
|
|
13
|
+
<ReactNativeWindowsVersion>0.75.7</ReactNativeWindowsVersion>
|
|
14
14
|
<ReactNativeWindowsMajor>0</ReactNativeWindowsMajor>
|
|
15
15
|
<ReactNativeWindowsMinor>75</ReactNativeWindowsMinor>
|
|
16
|
-
<ReactNativeWindowsPatch>
|
|
16
|
+
<ReactNativeWindowsPatch>7</ReactNativeWindowsPatch>
|
|
17
17
|
<ReactNativeWindowsCanary>false</ReactNativeWindowsCanary>
|
|
18
|
-
<ReactNativeWindowsCommitId>
|
|
18
|
+
<ReactNativeWindowsCommitId>b4bb6c6d999fceeaf2316b86283310e8f6dbca28</ReactNativeWindowsCommitId>
|
|
19
19
|
</PropertyGroup>
|
|
20
20
|
</Project>
|
package/just-task.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-windows",
|
|
3
|
-
"version": "0.75.
|
|
3
|
+
"version": "0.75.7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@react-native-community/cli": "14.1.0",
|
|
27
27
|
"@react-native-community/cli-platform-android": "14.1.0",
|
|
28
28
|
"@react-native-community/cli-platform-ios": "14.1.0",
|
|
29
|
-
"@react-native-windows/cli": "0.75.
|
|
29
|
+
"@react-native-windows/cli": "0.75.5",
|
|
30
30
|
"@react-native/assets": "1.0.0",
|
|
31
31
|
"@react-native/assets-registry": "0.75.3",
|
|
32
32
|
"@react-native/codegen": "0.75.3",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"yargs": "^17.6.2"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@react-native-windows/codegen": "0.75.
|
|
70
|
+
"@react-native-windows/codegen": "0.75.3",
|
|
71
71
|
"@react-native/metro-config": "0.75.3",
|
|
72
72
|
"@rnw-scripts/babel-react-native-config": "0.0.0",
|
|
73
73
|
"@rnw-scripts/eslint-config": "1.2.23",
|
|
@@ -78,7 +78,6 @@
|
|
|
78
78
|
"@types/node": "^18.0.0",
|
|
79
79
|
"@types/react": "^18.2.6",
|
|
80
80
|
"eslint": "^8.19.0",
|
|
81
|
-
"eslint-plugin-prettier": "^4.2.1",
|
|
82
81
|
"flow-bin": "^0.217.2",
|
|
83
82
|
"jscodeshift": "^0.14.0",
|
|
84
83
|
"just-scripts": "^1.3.3",
|
|
@@ -21,7 +21,10 @@ async function preInstall(config = {}, options = {}) {}
|
|
|
21
21
|
|
|
22
22
|
async function getFileMappings(config = {}, options = {}) {
|
|
23
23
|
const projectRoot = config?.root ?? process.cwd();
|
|
24
|
-
const {rnwPath, rnwVersion, devMode, isCanary} = templateUtils.getRnwInfo(
|
|
24
|
+
const {rnwPath, rnwVersion, devMode, isCanary} = templateUtils.getRnwInfo(
|
|
25
|
+
config,
|
|
26
|
+
options,
|
|
27
|
+
);
|
|
25
28
|
|
|
26
29
|
const projectName =
|
|
27
30
|
config?.project?.windows?.project?.projectName ?? options?.name ?? 'MyApp';
|
|
@@ -49,7 +52,9 @@ async function getFileMappings(config = {}, options = {}) {
|
|
|
49
52
|
namespaceCpp: namespaceCpp,
|
|
50
53
|
|
|
51
54
|
rnwVersion: rnwVersion,
|
|
52
|
-
rnwPathFromProjectRoot: path
|
|
55
|
+
rnwPathFromProjectRoot: path
|
|
56
|
+
.relative(projectRoot, rnwPath)
|
|
57
|
+
.replace(/\//g, '\\'),
|
|
53
58
|
|
|
54
59
|
mainComponentName,
|
|
55
60
|
|
|
@@ -67,7 +72,7 @@ async function getFileMappings(config = {}, options = {}) {
|
|
|
67
72
|
devMode,
|
|
68
73
|
|
|
69
74
|
useNuGets: !devMode, // default is to use published NuGets except in devMode, change to true here if you want to test devMode and nugets simultaneously
|
|
70
|
-
addReactNativePublicAdoFeed: isCanary,
|
|
75
|
+
addReactNativePublicAdoFeed: true || isCanary, // Temporary true for all new projects until code-signing is restored, see issue #14030
|
|
71
76
|
|
|
72
77
|
cppNugetPackages,
|
|
73
78
|
};
|
|
@@ -76,7 +76,10 @@ async function getFileMappings(config = {}, options = {}) {
|
|
|
76
76
|
);
|
|
77
77
|
|
|
78
78
|
const projectRoot = libConfig.root ?? process.cwd();
|
|
79
|
-
const {rnwPath, rnwVersion, devMode, isCanary} = templateUtils.getRnwInfo(
|
|
79
|
+
const {rnwPath, rnwVersion, devMode, isCanary} = templateUtils.getRnwInfo(
|
|
80
|
+
libConfig,
|
|
81
|
+
libOptions,
|
|
82
|
+
);
|
|
80
83
|
|
|
81
84
|
const projectName =
|
|
82
85
|
libConfig?.project?.windows?.projects[0]?.projectName ??
|
|
@@ -102,7 +105,9 @@ async function getFileMappings(config = {}, options = {}) {
|
|
|
102
105
|
namespaceCpp: namespaceCpp,
|
|
103
106
|
|
|
104
107
|
rnwVersion: rnwVersion,
|
|
105
|
-
rnwPathFromProjectRoot: path
|
|
108
|
+
rnwPathFromProjectRoot: path
|
|
109
|
+
.relative(projectRoot, rnwPath)
|
|
110
|
+
.replace(/\//g, '\\'),
|
|
106
111
|
|
|
107
112
|
// Visual Studio is very picky about the casing of the guids for projects, project references and the solution
|
|
108
113
|
// https://www.bing.com/search?q=visual+studio+project+guid+casing&cvid=311a5ad7f9fc41089507b24600d23ee7&FORM=ANAB01&PC=U531
|
|
@@ -115,7 +120,7 @@ async function getFileMappings(config = {}, options = {}) {
|
|
|
115
120
|
devMode,
|
|
116
121
|
|
|
117
122
|
useNuGets: !devMode, // default is to use published NuGets except in devMode, change to true here if you want to test devMode and nugets simultaneously
|
|
118
|
-
addReactNativePublicAdoFeed: isCanary,
|
|
123
|
+
addReactNativePublicAdoFeed: true || isCanary, // Temporary true for all new projects until code-signing is restored, see issue #14030
|
|
119
124
|
|
|
120
125
|
cppNugetPackages,
|
|
121
126
|
};
|
|
@@ -112,9 +112,8 @@ async function runNpmInstall(config = {}, options = {}) {
|
|
|
112
112
|
|
|
113
113
|
async function updateProjectPackageJson(config = {}, options = {}, props = {}) {
|
|
114
114
|
const projectRoot = config?.root ?? process.cwd();
|
|
115
|
-
const projectPackage =
|
|
116
|
-
projectRoot
|
|
117
|
-
);
|
|
115
|
+
const projectPackage =
|
|
116
|
+
await pkgUtils.WritableNpmPackage.fromPath(projectRoot);
|
|
118
117
|
|
|
119
118
|
if (!projectPackage) {
|
|
120
119
|
throw new Error(
|