@office-iss/react-native-win32 0.68.1 → 0.68.2
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 +16 -1
- package/CHANGELOG.md +14 -6
- package/Libraries/Components/View/View.win32.js +32 -0
- package/package.json +1 -1
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,22 @@
|
|
|
2
2
|
"name": "@office-iss/react-native-win32",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "Mon,
|
|
5
|
+
"date": "Mon, 25 Jul 2022 15:10:16 GMT",
|
|
6
|
+
"tag": "@office-iss/react-native-win32_v0.68.2",
|
|
7
|
+
"version": "0.68.2",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "tatianakapos@microsoft.com",
|
|
12
|
+
"package": "@office-iss/react-native-win32",
|
|
13
|
+
"commit": "d0bd7fe9bf9784d08828a95bb628cd3dc2f09283",
|
|
14
|
+
"comment": "Implement no-hide-accessibility"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Mon, 27 Jun 2022 15:08:16 GMT",
|
|
6
21
|
"tag": "@office-iss/react-native-win32_v0.68.1",
|
|
7
22
|
"version": "0.68.1",
|
|
8
23
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,19 +1,27 @@
|
|
|
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, 25 Jul 2022 15:10:16 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## 0.68.
|
|
7
|
+
## 0.68.2
|
|
8
8
|
|
|
9
|
-
Mon,
|
|
9
|
+
Mon, 25 Jul 2022 15:10:16 GMT
|
|
10
10
|
|
|
11
11
|
### Patches
|
|
12
12
|
|
|
13
|
-
-
|
|
14
|
-
- Add ListItem as an accessibilityRole type and add a List, ListItem, ControllerFor test example (patboyd@microsoft.com)
|
|
15
|
-
- Bump @react-native-windows/virtualized-list to v0.68.1
|
|
13
|
+
- Implement no-hide-accessibility (tatianakapos@microsoft.com)
|
|
16
14
|
|
|
15
|
+
## 0.68.1
|
|
16
|
+
|
|
17
|
+
Mon, 27 Jun 2022 15:08:16 GMT
|
|
18
|
+
|
|
19
|
+
### Patches
|
|
20
|
+
|
|
21
|
+
- Promote 0.68 to legacy (34109996+chiaramooney@users.noreply.github.com)
|
|
22
|
+
- Add ListItem as an accessibilityRole type and add a List, ListItem, ControllerFor test example (patboyd@microsoft.com)
|
|
23
|
+
- Bump @react-native-windows/virtualized-list to v0.68.1
|
|
24
|
+
|
|
17
25
|
## 0.68.0
|
|
18
26
|
|
|
19
27
|
Mon, 04 Apr 2022 15:12:10 GMT
|
|
@@ -75,6 +75,26 @@ const View: React.AbstractComponent<
|
|
|
75
75
|
props.onKeyUpCapture && props.onKeyUpCapture(event);
|
|
76
76
|
};
|
|
77
77
|
|
|
78
|
+
// [Windows
|
|
79
|
+
const childrenWithImportantForAccessibility = (children) => {
|
|
80
|
+
return React.Children.map(children, (child) => {
|
|
81
|
+
if (React.isValidElement(child)) {
|
|
82
|
+
if (child.props.children) {
|
|
83
|
+
return React.cloneElement(child, {
|
|
84
|
+
accessible: false,
|
|
85
|
+
children: childrenWithImportantForAccessibility(
|
|
86
|
+
child.props.children,
|
|
87
|
+
),
|
|
88
|
+
});
|
|
89
|
+
} else {
|
|
90
|
+
return React.cloneElement(child, {accessible: false});
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
return child;
|
|
94
|
+
});
|
|
95
|
+
};
|
|
96
|
+
// Windows]
|
|
97
|
+
|
|
78
98
|
return (
|
|
79
99
|
// [Windows
|
|
80
100
|
// In core this is a TextAncestor.Provider value={false} See
|
|
@@ -94,6 +114,18 @@ const View: React.AbstractComponent<
|
|
|
94
114
|
onKeyDownCapture={_keyDownCapture}
|
|
95
115
|
onKeyUp={_keyUp}
|
|
96
116
|
onKeyUpCapture={_keyUpCapture}
|
|
117
|
+
// [Windows
|
|
118
|
+
accessible={
|
|
119
|
+
props.importantForAccessibility === 'no-hide-descendants'
|
|
120
|
+
? false
|
|
121
|
+
: props.accessible
|
|
122
|
+
}
|
|
123
|
+
children={
|
|
124
|
+
props.importantForAccessibility === 'no-hide-descendants'
|
|
125
|
+
? childrenWithImportantForAccessibility(props.children)
|
|
126
|
+
: props.children
|
|
127
|
+
}
|
|
128
|
+
// Windows]
|
|
97
129
|
/>
|
|
98
130
|
);
|
|
99
131
|
}}
|