@office-iss/react-native-win32 0.72.2 → 0.72.3
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 +22 -1
- package/CHANGELOG.md +14 -5
- package/Libraries/Components/Button.win32.js +7 -0
- package/Libraries/Components/Pressable/Pressable.win32.js +6 -0
- package/Libraries/Components/View/View.win32.js +7 -0
- package/Libraries/Components/View/ViewAccessibility.d.ts +2 -0
- package/Libraries/Components/View/ViewAccessibility.win32.js +2 -0
- package/Libraries/Components/View/ViewPropTypes.win32.js +2 -1
- package/Libraries/Image/Image.win32.js +5 -0
- package/Libraries/Image/assetPaths.js +2 -2
- package/package.json +1 -1
- package/src/Libraries/Components/View/ViewAccessibility.d.ts +2 -0
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,28 @@
|
|
|
2
2
|
"name": "@office-iss/react-native-win32",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "Mon,
|
|
5
|
+
"date": "Mon, 28 Aug 2023 15:14:00 GMT",
|
|
6
|
+
"tag": "@office-iss/react-native-win32_v0.72.3",
|
|
7
|
+
"version": "0.72.3",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "krsiler@microsoft.com",
|
|
12
|
+
"package": "@office-iss/react-native-win32",
|
|
13
|
+
"commit": "e1ba8c787d9d100f4919e96ab5e39d8a21aa1600",
|
|
14
|
+
"comment": "fix a11yState and add support for aria-required and -multiselectable"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "30809111+acoates-ms@users.noreply.github.com",
|
|
18
|
+
"package": "@office-iss/react-native-win32",
|
|
19
|
+
"commit": "89c50c302edadaa79f458f3e7252971f70d7dbb1",
|
|
20
|
+
"comment": "Remove flow usage from saveAssetPlugin codeflow"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"date": "Mon, 14 Aug 2023 15:18:19 GMT",
|
|
6
27
|
"tag": "@office-iss/react-native-win32_v0.72.2",
|
|
7
28
|
"version": "0.72.2",
|
|
8
29
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,18 +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, 28 Aug 2023 15:14:00 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## 0.72.
|
|
7
|
+
## 0.72.3
|
|
8
8
|
|
|
9
|
-
Mon,
|
|
9
|
+
Mon, 28 Aug 2023 15:14:00 GMT
|
|
10
10
|
|
|
11
11
|
### Patches
|
|
12
12
|
|
|
13
|
-
- add
|
|
14
|
-
-
|
|
13
|
+
- fix a11yState and add support for aria-required and -multiselectable (krsiler@microsoft.com)
|
|
14
|
+
- Remove flow usage from saveAssetPlugin codeflow (30809111+acoates-ms@users.noreply.github.com)
|
|
15
15
|
|
|
16
|
+
## 0.72.2
|
|
17
|
+
|
|
18
|
+
Mon, 14 Aug 2023 15:18:19 GMT
|
|
19
|
+
|
|
20
|
+
### Patches
|
|
21
|
+
|
|
22
|
+
- add isDefaultButton check to win32 (email not defined)
|
|
23
|
+
- Add saveAssetPlugin to fix long path assets (30809111+acoates-ms@users.noreply.github.com)
|
|
24
|
+
|
|
16
25
|
## 0.72.1
|
|
17
26
|
|
|
18
27
|
Wed, 19 Jul 2023 18:43:52 GMT
|
|
@@ -163,6 +163,8 @@ type ButtonProps = $ReadOnly<{|
|
|
|
163
163
|
'aria-disabled'?: ?boolean,
|
|
164
164
|
'aria-expanded'?: ?boolean,
|
|
165
165
|
'aria-selected'?: ?boolean,
|
|
166
|
+
'aria-multiselectable'?: ?boolean, // Win32
|
|
167
|
+
'aria-required'?: ?boolean, // Win32
|
|
166
168
|
|
|
167
169
|
/**
|
|
168
170
|
* [Android] Controlling if a view fires accessibility events and if it is reported to accessibility services.
|
|
@@ -293,6 +295,8 @@ class Button extends React.Component<ButtonProps> {
|
|
|
293
295
|
'aria-disabled': ariaDisabled,
|
|
294
296
|
'aria-expanded': ariaExpanded,
|
|
295
297
|
'aria-label': ariaLabel,
|
|
298
|
+
'aria-multiselectable': ariaMultiselectable, // Win32
|
|
299
|
+
'aria-required': ariaRequired, // Win32
|
|
296
300
|
'aria-selected': ariaSelected,
|
|
297
301
|
importantForAccessibility,
|
|
298
302
|
color,
|
|
@@ -327,6 +331,9 @@ class Button extends React.Component<ButtonProps> {
|
|
|
327
331
|
checked: ariaChecked ?? accessibilityState?.checked,
|
|
328
332
|
disabled: ariaDisabled ?? accessibilityState?.disabled,
|
|
329
333
|
expanded: ariaExpanded ?? accessibilityState?.expanded,
|
|
334
|
+
multiselectable:
|
|
335
|
+
ariaMultiselectable ?? accessibilityState?.multiselectable, // Win32
|
|
336
|
+
required: ariaRequired ?? accessibilityState?.required, // Win32
|
|
330
337
|
selected: ariaSelected ?? accessibilityState?.selected,
|
|
331
338
|
};
|
|
332
339
|
|
|
@@ -74,6 +74,8 @@ type Props = $ReadOnly<{|
|
|
|
74
74
|
'aria-disabled'?: ?boolean,
|
|
75
75
|
'aria-expanded'?: ?boolean,
|
|
76
76
|
'aria-selected'?: ?boolean,
|
|
77
|
+
'aria-multiselectable'?: ?boolean, // Win32
|
|
78
|
+
'aria-required'?: ?boolean, // Win32
|
|
77
79
|
/**
|
|
78
80
|
* A value indicating whether the accessibility elements contained within
|
|
79
81
|
* this accessibility element are hidden.
|
|
@@ -257,6 +259,8 @@ function Pressable(props: Props, forwardedRef): React.Node {
|
|
|
257
259
|
'aria-disabled': ariaDisabled,
|
|
258
260
|
'aria-expanded': ariaExpanded,
|
|
259
261
|
'aria-label': ariaLabel,
|
|
262
|
+
'aria-multiselectable': ariaMultiselectable, // Win32
|
|
263
|
+
'aria-required': ariaRequired, // Win32
|
|
260
264
|
'aria-selected': ariaSelected,
|
|
261
265
|
cancelable,
|
|
262
266
|
children,
|
|
@@ -297,6 +301,8 @@ function Pressable(props: Props, forwardedRef): React.Node {
|
|
|
297
301
|
checked: ariaChecked ?? accessibilityState?.checked,
|
|
298
302
|
disabled: ariaDisabled ?? accessibilityState?.disabled,
|
|
299
303
|
expanded: ariaExpanded ?? accessibilityState?.expanded,
|
|
304
|
+
multiselectable: ariaMultiselectable ?? accessibilityState?.multiselectable, // Win32
|
|
305
|
+
required: ariaRequired ?? accessibilityState?.required, // Win32
|
|
300
306
|
selected: ariaSelected ?? accessibilityState?.selected,
|
|
301
307
|
};
|
|
302
308
|
|
|
@@ -50,6 +50,8 @@ const View: React.AbstractComponent<
|
|
|
50
50
|
'aria-label': ariaLabel,
|
|
51
51
|
'aria-labelledby': ariaLabelledBy,
|
|
52
52
|
'aria-live': ariaLive,
|
|
53
|
+
'aria-multiselectable': ariaMultiselectable, // Win32
|
|
54
|
+
'aria-required': ariaRequired, // Win32
|
|
53
55
|
'aria-selected': ariaSelected,
|
|
54
56
|
'aria-valuemax': ariaValueMax,
|
|
55
57
|
'aria-valuemin': ariaValueMin,
|
|
@@ -76,6 +78,8 @@ const View: React.AbstractComponent<
|
|
|
76
78
|
ariaChecked != null ||
|
|
77
79
|
ariaDisabled != null ||
|
|
78
80
|
ariaExpanded != null ||
|
|
81
|
+
ariaMultiselectable != null ||
|
|
82
|
+
ariaRequired != null ||
|
|
79
83
|
ariaSelected != null
|
|
80
84
|
) {
|
|
81
85
|
_accessibilityState = {
|
|
@@ -83,6 +87,9 @@ const View: React.AbstractComponent<
|
|
|
83
87
|
checked: ariaChecked ?? accessibilityState?.checked,
|
|
84
88
|
disabled: ariaDisabled ?? accessibilityState?.disabled,
|
|
85
89
|
expanded: ariaExpanded ?? accessibilityState?.expanded,
|
|
90
|
+
multiselectable:
|
|
91
|
+
ariaMultiselectable ?? accessibilityState?.multiselectable, // Win32
|
|
92
|
+
required: ariaRequired ?? accessibilityState?.required, // Win32
|
|
86
93
|
selected: ariaSelected ?? accessibilityState?.selected,
|
|
87
94
|
};
|
|
88
95
|
}
|
|
@@ -57,6 +57,8 @@ export interface AccessibilityProps
|
|
|
57
57
|
'aria-checked'?: boolean | 'mixed' | undefined;
|
|
58
58
|
'aria-disabled'?: boolean | undefined;
|
|
59
59
|
'aria-expanded'?: boolean | undefined;
|
|
60
|
+
'aria-multiselectable'?: boolean | undefined; // Win32
|
|
61
|
+
'aria-required'?: boolean | undefined; // Win32
|
|
60
62
|
'aria-selected'?: boolean | undefined;
|
|
61
63
|
|
|
62
64
|
/**
|
|
@@ -467,7 +467,8 @@ type WindowsViewProps = $ReadOnly<{|
|
|
|
467
467
|
|
|
468
468
|
accessibilityPosInSet?: ?number,
|
|
469
469
|
accessibilitySetSize?: ?number,
|
|
470
|
-
|
|
470
|
+
'aria-multiselectable'?: ?boolean,
|
|
471
|
+
'aria-required'?: ?boolean,
|
|
471
472
|
/**
|
|
472
473
|
* Specifies if the control should show System focus visuals
|
|
473
474
|
*/
|
|
@@ -173,6 +173,8 @@ const BaseImage = (props: ImagePropsType, forwardedRef) => {
|
|
|
173
173
|
'aria-checked': ariaChecked,
|
|
174
174
|
'aria-disabled': ariaDisabled,
|
|
175
175
|
'aria-expanded': ariaExpanded,
|
|
176
|
+
'aria-multiselectable': ariaMultiselectable, // Win32
|
|
177
|
+
'aria-required': ariaRequired, // Win32
|
|
176
178
|
'aria-selected': ariaSelected,
|
|
177
179
|
height,
|
|
178
180
|
src,
|
|
@@ -185,6 +187,9 @@ const BaseImage = (props: ImagePropsType, forwardedRef) => {
|
|
|
185
187
|
checked: ariaChecked ?? props.accessibilityState?.checked,
|
|
186
188
|
disabled: ariaDisabled ?? props.accessibilityState?.disabled,
|
|
187
189
|
expanded: ariaExpanded ?? props.accessibilityState?.expanded,
|
|
190
|
+
multiselectable:
|
|
191
|
+
ariaMultiselectable ?? props.accessibilityState?.multiselectable, // Win32
|
|
192
|
+
required: ariaRequired ?? props.accessibilityState?.required, // Win32
|
|
188
193
|
selected: ariaSelected ?? props.accessibilityState?.selected,
|
|
189
194
|
};
|
|
190
195
|
const accessibilityLabel = props['aria-label'] ?? props.accessibilityLabel;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* Dont use flow here, since this file is used by saveAssetPlugin.js which will run without flow transform
|
|
6
6
|
* @format
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
// https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation
|
|
13
13
|
// Assets in nested node_modules (common when using pnpm) - end up creating very long paths
|
|
14
14
|
// Using this function we shorten longer paths to prevent paths from hitting the path limit
|
|
15
|
-
function ensureShortPath(str
|
|
15
|
+
function ensureShortPath(str) {
|
|
16
16
|
if (str.length < 40) return str;
|
|
17
17
|
|
|
18
18
|
const assetsPrefix = 'assets/';
|
package/package.json
CHANGED
|
@@ -57,6 +57,8 @@ export interface AccessibilityProps
|
|
|
57
57
|
'aria-checked'?: boolean | 'mixed' | undefined;
|
|
58
58
|
'aria-disabled'?: boolean | undefined;
|
|
59
59
|
'aria-expanded'?: boolean | undefined;
|
|
60
|
+
'aria-multiselectable'?: boolean | undefined; // Win32
|
|
61
|
+
'aria-required'?: boolean | undefined; // Win32
|
|
60
62
|
'aria-selected'?: boolean | undefined;
|
|
61
63
|
|
|
62
64
|
/**
|