@office-iss/react-native-win32 0.76.0-preview.3 → 0.76.0-preview.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/.eslintignore +1 -0
- package/CHANGELOG.json +31 -1
- package/CHANGELOG.md +20 -4
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.win32.js +15 -15
- package/Libraries/Components/TextInput/TextInput.win32.js +17 -12
- package/Libraries/Components/Touchable/Touchable.win32.js +2 -2
- package/Libraries/Components/View/ViewWin32.js +3 -3
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Text/Text.win32.js +11 -7
- package/Libraries/Utilities/Platform.win32.js +4 -4
- package/just-task.js +1 -1
- package/overrides.json +1 -1
- package/package.json +11 -11
package/.eslintignore
CHANGED
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, 04 Nov 2024 16:28:21 GMT",
|
|
6
|
+
"version": "0.76.0-preview.5",
|
|
7
|
+
"tag": "@office-iss/react-native-win32_v0.76.0-preview.5",
|
|
8
|
+
"comments": {
|
|
9
|
+
"prerelease": [
|
|
10
|
+
{
|
|
11
|
+
"author": "tatianakapos@microsoft.com",
|
|
12
|
+
"package": "@office-iss/react-native-win32",
|
|
13
|
+
"commit": "80dbd3740b4183dc8c898a89923f784f13996c35",
|
|
14
|
+
"comment": "integrate RN 0.76.0 and fix babel.config"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Mon, 28 Oct 2024 15:29:51 GMT",
|
|
21
|
+
"version": "0.76.0-preview.4",
|
|
22
|
+
"tag": "@office-iss/react-native-win32_v0.76.0-preview.4",
|
|
23
|
+
"comments": {
|
|
24
|
+
"prerelease": [
|
|
25
|
+
{
|
|
26
|
+
"author": "jthysell@microsoft.com",
|
|
27
|
+
"package": "@office-iss/react-native-win32",
|
|
28
|
+
"commit": "3aa853272cbdc109f14e38511c0cae9f8243872f",
|
|
29
|
+
"comment": "Fix repo linting with prettier"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"date": "Mon, 21 Oct 2024 15:36:46 GMT",
|
|
6
36
|
"version": "0.76.0-preview.3",
|
|
7
37
|
"tag": "@office-iss/react-native-win32_v0.76.0-preview.3",
|
|
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, 04 Nov 2024 16:28:21 GMT and should not be manually modified. -->
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## 0.76.0-preview.
|
|
7
|
+
## 0.76.0-preview.5
|
|
8
8
|
|
|
9
|
-
Mon,
|
|
9
|
+
Mon, 04 Nov 2024 16:28:21 GMT
|
|
10
10
|
|
|
11
11
|
### Changes
|
|
12
12
|
|
|
13
|
-
- integrate 0.76.0
|
|
13
|
+
- integrate RN 0.76.0 and fix babel.config (tatianakapos@microsoft.com)
|
|
14
14
|
|
|
15
|
+
## 0.76.0-preview.4
|
|
16
|
+
|
|
17
|
+
Mon, 28 Oct 2024 15:29:51 GMT
|
|
18
|
+
|
|
19
|
+
### Changes
|
|
20
|
+
|
|
21
|
+
- Fix repo linting with prettier (jthysell@microsoft.com)
|
|
22
|
+
|
|
23
|
+
## 0.76.0-preview.3
|
|
24
|
+
|
|
25
|
+
Mon, 21 Oct 2024 15:36:46 GMT
|
|
26
|
+
|
|
27
|
+
### Changes
|
|
28
|
+
|
|
29
|
+
- integrate 0.76.0-rc.6 (tatianakapos@microsoft.com)
|
|
30
|
+
|
|
15
31
|
## 0.76.0-preview.2
|
|
16
32
|
|
|
17
33
|
Fri, 11 Oct 2024 20:17:22 GMT
|
|
@@ -56,21 +56,21 @@ const EventNames: Map<
|
|
|
56
56
|
['accessibilityServiceChanged', 'accessibilityServiceDidChange'],
|
|
57
57
|
])
|
|
58
58
|
: Platform.OS === 'win32'
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
59
|
+
? new Map([
|
|
60
|
+
['change', 'TOUCH_EXPLORATION_EVENT'],
|
|
61
|
+
['reduceMotionChanged', 'REDUCE_MOTION_EVENT'],
|
|
62
|
+
['screenReaderChanged', 'TOUCH_EXPLORATION_EVENT'],
|
|
63
|
+
])
|
|
64
|
+
: new Map([
|
|
65
|
+
['announcementFinished', 'announcementFinished'],
|
|
66
|
+
['boldTextChanged', 'boldTextChanged'],
|
|
67
|
+
['change', 'screenReaderChanged'],
|
|
68
|
+
['grayscaleChanged', 'grayscaleChanged'],
|
|
69
|
+
['invertColorsChanged', 'invertColorsChanged'],
|
|
70
|
+
['reduceMotionChanged', 'reduceMotionChanged'],
|
|
71
|
+
['reduceTransparencyChanged', 'reduceTransparencyChanged'],
|
|
72
|
+
['screenReaderChanged', 'screenReaderChanged'],
|
|
73
|
+
]);
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
76
|
* Sometimes it's useful to know whether or not the device has a screen reader
|
|
@@ -1328,14 +1328,15 @@ function InternalTextInput(props: Props): React.Node {
|
|
|
1328
1328
|
typeof props.value === 'string'
|
|
1329
1329
|
? props.value
|
|
1330
1330
|
: typeof props.defaultValue === 'string'
|
|
1331
|
-
|
|
1332
|
-
|
|
1331
|
+
? props.defaultValue
|
|
1332
|
+
: '';
|
|
1333
1333
|
|
|
1334
1334
|
const viewCommands =
|
|
1335
|
-
WindowsTextInputCommands ||
|
|
1335
|
+
WindowsTextInputCommands ||
|
|
1336
|
+
AndroidTextInputCommands || // [Windows]
|
|
1336
1337
|
(props.multiline === true
|
|
1337
1338
|
? RCTMultilineTextInputNativeCommands
|
|
1338
|
-
: RCTSinglelineTextInputNativeCommands)
|
|
1339
|
+
: RCTSinglelineTextInputNativeCommands);
|
|
1339
1340
|
|
|
1340
1341
|
const [mostRecentEventCount, setMostRecentEventCount] = useState<number>(0);
|
|
1341
1342
|
const useTextInputStateSynchronization =
|
|
@@ -1409,8 +1410,12 @@ function InternalTextInput(props: Props): React.Node {
|
|
|
1409
1410
|
}
|
|
1410
1411
|
},
|
|
1411
1412
|
isFocused(): boolean {
|
|
1412
|
-
const currentlyFocusedInput =
|
|
1413
|
-
|
|
1413
|
+
const currentlyFocusedInput =
|
|
1414
|
+
TextInputState.currentlyFocusedInput();
|
|
1415
|
+
return (
|
|
1416
|
+
currentlyFocusedInput !== null &&
|
|
1417
|
+
currentlyFocusedInput === inputRef.current
|
|
1418
|
+
);
|
|
1414
1419
|
},
|
|
1415
1420
|
getNativeRef(): ?React.ElementRef<HostComponent<mixed>> {
|
|
1416
1421
|
return inputRef.current;
|
|
@@ -1954,12 +1959,12 @@ const ExportedForwardRef: React.AbstractComponent<
|
|
|
1954
1959
|
textContentType != null
|
|
1955
1960
|
? textContentType
|
|
1956
1961
|
: Platform.OS === 'ios' &&
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1962
|
+
autoComplete &&
|
|
1963
|
+
autoComplete in autoCompleteWebToTextContentTypeMap
|
|
1964
|
+
? // $FlowFixMe[invalid-computed-prop]
|
|
1965
|
+
// $FlowFixMe[prop-missing]
|
|
1966
|
+
autoCompleteWebToTextContentTypeMap[autoComplete]
|
|
1967
|
+
: textContentType
|
|
1963
1968
|
}
|
|
1964
1969
|
{...restProps}
|
|
1965
1970
|
forwardedRef={forwardedRef}
|
|
@@ -113,9 +113,9 @@ const ViewWin32: React.AbstractComponent<
|
|
|
113
113
|
? // $FlowFixMe[exponential-spread]
|
|
114
114
|
{accessibilityDescribedBy: describedByTarget}
|
|
115
115
|
: // $FlowFixMe[exponential-spread]
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
116
|
+
typeof accessibilityDescribedBy === 'string'
|
|
117
|
+
? {accessibilityDescribedBy}
|
|
118
|
+
: {})}
|
|
119
119
|
{...(typeof accessibilityControls === 'string'
|
|
120
120
|
? {accessibilityControls}
|
|
121
121
|
: {})}
|
|
@@ -88,10 +88,13 @@ const Text: React.AbstractComponent<TextProps, TextForwardRef> =
|
|
|
88
88
|
) => {
|
|
89
89
|
const _accessibilityLabel = ariaLabel ?? accessibilityLabel;
|
|
90
90
|
const _accessibilityControls = ariaControls ?? accessibilityControls; // Win32
|
|
91
|
-
const _accessibilityDescribedBy =
|
|
92
|
-
|
|
91
|
+
const _accessibilityDescribedBy =
|
|
92
|
+
ariaDescribedBy ?? accessibilityDescribedBy; // Win32
|
|
93
|
+
const _accessibilityDescription =
|
|
94
|
+
ariaDescription ?? accessibilityDescription; // Win32
|
|
93
95
|
const _accessibilityLevel = ariaLevel ?? accessibilityLevel; // Win32
|
|
94
|
-
const _accessibilityPositionInSet =
|
|
96
|
+
const _accessibilityPositionInSet =
|
|
97
|
+
ariaPosinset ?? accessibilityPositionInSet; // Win32
|
|
95
98
|
const _accessibilitySetSize = ariaSetsize ?? accessibilitySetSize; // Win32
|
|
96
99
|
|
|
97
100
|
let _accessibilityState: ?TextProps['accessibilityState'] =
|
|
@@ -109,7 +112,8 @@ const Text: React.AbstractComponent<TextProps, TextForwardRef> =
|
|
|
109
112
|
checked: ariaChecked ?? _accessibilityState.checked,
|
|
110
113
|
disabled: ariaDisabled ?? _accessibilityState.disabled,
|
|
111
114
|
expanded: ariaExpanded ?? _accessibilityState.expanded,
|
|
112
|
-
multiselectable:
|
|
115
|
+
multiselectable:
|
|
116
|
+
ariaMultiselectable ?? accessibilityState?.multiselectable, // Win32
|
|
113
117
|
required: ariaRequired ?? accessibilityState?.required, // Win32
|
|
114
118
|
selected: ariaSelected ?? _accessibilityState.selected,
|
|
115
119
|
};
|
|
@@ -119,8 +123,8 @@ const Text: React.AbstractComponent<TextProps, TextForwardRef> =
|
|
|
119
123
|
checked: ariaChecked,
|
|
120
124
|
disabled: ariaDisabled,
|
|
121
125
|
expanded: ariaExpanded,
|
|
122
|
-
multiselectable: ariaMultiselectable,
|
|
123
|
-
required: ariaRequired,
|
|
126
|
+
multiselectable: ariaMultiselectable, // Win32,
|
|
127
|
+
required: ariaRequired, // Win32
|
|
124
128
|
selected: ariaSelected,
|
|
125
129
|
};
|
|
126
130
|
}
|
|
@@ -374,7 +378,7 @@ const Text: React.AbstractComponent<TextProps, TextForwardRef> =
|
|
|
374
378
|
return (
|
|
375
379
|
<TextAncestor.Provider value={true}>{nativeText}</TextAncestor.Provider>
|
|
376
380
|
);
|
|
377
|
-
}
|
|
381
|
+
},
|
|
378
382
|
);
|
|
379
383
|
|
|
380
384
|
Text.displayName = 'Text';
|
|
@@ -72,10 +72,10 @@ const Platform: PlatformType = {
|
|
|
72
72
|
? // $FlowFixMe[incompatible-return]
|
|
73
73
|
spec.win32
|
|
74
74
|
: 'native' in spec
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
? // $FlowFixMe[incompatible-return]
|
|
76
|
+
spec.native
|
|
77
|
+
: // $FlowFixMe[incompatible-return]
|
|
78
|
+
spec.default,
|
|
79
79
|
};
|
|
80
80
|
|
|
81
81
|
module.exports = Platform;
|
package/just-task.js
CHANGED
package/overrides.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@office-iss/react-native-win32",
|
|
3
|
-
"version": "0.76.0-preview.
|
|
3
|
+
"version": "0.76.0-preview.5",
|
|
4
4
|
"description": "Implementation of react native on top of Office's Win32 platform.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"@react-native-community/cli-platform-android": "15.0.0-alpha.2",
|
|
31
31
|
"@react-native-community/cli-platform-ios": "15.0.0-alpha.2",
|
|
32
32
|
"@react-native/assets": "1.0.0",
|
|
33
|
-
"@react-native/assets-registry": "0.76.0
|
|
34
|
-
"@react-native/codegen": "0.76.0
|
|
35
|
-
"@react-native/community-cli-plugin": "0.76.0
|
|
36
|
-
"@react-native/gradle-plugin": "0.76.0
|
|
37
|
-
"@react-native/js-polyfills": "0.76.0
|
|
38
|
-
"@react-native/normalize-colors": "0.76.0
|
|
39
|
-
"@react-native/virtualized-lists": "0.76.0
|
|
33
|
+
"@react-native/assets-registry": "0.76.0",
|
|
34
|
+
"@react-native/codegen": "0.76.0",
|
|
35
|
+
"@react-native/community-cli-plugin": "0.76.0",
|
|
36
|
+
"@react-native/gradle-plugin": "0.76.0",
|
|
37
|
+
"@react-native/js-polyfills": "0.76.0",
|
|
38
|
+
"@react-native/normalize-colors": "0.76.0",
|
|
39
|
+
"@react-native/virtualized-lists": "0.76.0",
|
|
40
40
|
"abort-controller": "^3.0.0",
|
|
41
41
|
"anser": "^1.4.9",
|
|
42
42
|
"ansi-regex": "^5.0.0",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@babel/core": "^7.25.2",
|
|
76
76
|
"@babel/eslint-parser": "^7.25.1",
|
|
77
|
-
"@react-native/metro-config": "0.76.0
|
|
77
|
+
"@react-native/metro-config": "0.76.0",
|
|
78
78
|
"@rnw-scripts/babel-react-native-config": "0.0.0",
|
|
79
79
|
"@rnw-scripts/eslint-config": "1.2.27",
|
|
80
80
|
"@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.31",
|
|
@@ -90,14 +90,14 @@
|
|
|
90
90
|
"just-scripts": "^1.3.3",
|
|
91
91
|
"prettier": "2.8.8",
|
|
92
92
|
"react": "18.3.1",
|
|
93
|
-
"react-native": "0.76.0
|
|
93
|
+
"react-native": "0.76.0",
|
|
94
94
|
"react-native-platform-override": "^1.9.46",
|
|
95
95
|
"typescript": "5.0.4"
|
|
96
96
|
},
|
|
97
97
|
"peerDependencies": {
|
|
98
98
|
"@types/react": "^18.2.6",
|
|
99
99
|
"react": "^18.2.0",
|
|
100
|
-
"react-native": "0.76.0
|
|
100
|
+
"react-native": "^0.76.0"
|
|
101
101
|
},
|
|
102
102
|
"beachball": {
|
|
103
103
|
"defaultNpmTag": "preview",
|