@office-iss/react-native-win32 0.72.2 → 0.72.4
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 +37 -1
- package/CHANGELOG.md +22 -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/Libraries/Image/resolveAssetSource.win32.js +6 -7
- package/package.json +1 -1
- package/src/Libraries/Components/View/ViewAccessibility.d.ts +2 -0
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,43 @@
|
|
|
2
2
|
"name": "@office-iss/react-native-win32",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "Mon,
|
|
5
|
+
"date": "Mon, 11 Sep 2023 15:13:59 GMT",
|
|
6
|
+
"tag": "@office-iss/react-native-win32_v0.72.4",
|
|
7
|
+
"version": "0.72.4",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "30809111+acoates-ms@users.noreply.github.com",
|
|
12
|
+
"package": "@office-iss/react-native-win32",
|
|
13
|
+
"commit": "7564111bec1b57cfc4aecc22dea06c895804be99",
|
|
14
|
+
"comment": "Webpack assets do not prefix paths with /, which causes a lost char in asset path"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Mon, 28 Aug 2023 15:14:10 GMT",
|
|
21
|
+
"tag": "@office-iss/react-native-win32_v0.72.3",
|
|
22
|
+
"version": "0.72.3",
|
|
23
|
+
"comments": {
|
|
24
|
+
"patch": [
|
|
25
|
+
{
|
|
26
|
+
"author": "krsiler@microsoft.com",
|
|
27
|
+
"package": "@office-iss/react-native-win32",
|
|
28
|
+
"commit": "e1ba8c787d9d100f4919e96ab5e39d8a21aa1600",
|
|
29
|
+
"comment": "fix a11yState and add support for aria-required and -multiselectable"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"author": "30809111+acoates-ms@users.noreply.github.com",
|
|
33
|
+
"package": "@office-iss/react-native-win32",
|
|
34
|
+
"commit": "89c50c302edadaa79f458f3e7252971f70d7dbb1",
|
|
35
|
+
"comment": "Remove flow usage from saveAssetPlugin codeflow"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"date": "Mon, 14 Aug 2023 15:18:19 GMT",
|
|
6
42
|
"tag": "@office-iss/react-native-win32_v0.72.2",
|
|
7
43
|
"version": "0.72.2",
|
|
8
44
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,18 +1,35 @@
|
|
|
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, 11 Sep 2023 15:13:59 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## 0.72.
|
|
7
|
+
## 0.72.4
|
|
8
8
|
|
|
9
|
-
Mon,
|
|
9
|
+
Mon, 11 Sep 2023 15:13:59 GMT
|
|
10
10
|
|
|
11
11
|
### Patches
|
|
12
12
|
|
|
13
|
-
-
|
|
14
|
-
- Add saveAssetPlugin to fix long path assets (30809111+acoates-ms@users.noreply.github.com)
|
|
13
|
+
- Webpack assets do not prefix paths with /, which causes a lost char in asset path (30809111+acoates-ms@users.noreply.github.com)
|
|
15
14
|
|
|
15
|
+
## 0.72.3
|
|
16
|
+
|
|
17
|
+
Mon, 28 Aug 2023 15:14:10 GMT
|
|
18
|
+
|
|
19
|
+
### Patches
|
|
20
|
+
|
|
21
|
+
- fix a11yState and add support for aria-required and -multiselectable (krsiler@microsoft.com)
|
|
22
|
+
- Remove flow usage from saveAssetPlugin codeflow (30809111+acoates-ms@users.noreply.github.com)
|
|
23
|
+
|
|
24
|
+
## 0.72.2
|
|
25
|
+
|
|
26
|
+
Mon, 14 Aug 2023 15:18:19 GMT
|
|
27
|
+
|
|
28
|
+
### Patches
|
|
29
|
+
|
|
30
|
+
- add isDefaultButton check to win32 (email not defined)
|
|
31
|
+
- Add saveAssetPlugin to fix long path assets (30809111+acoates-ms@users.noreply.github.com)
|
|
32
|
+
|
|
16
33
|
## 0.72.1
|
|
17
34
|
|
|
18
35
|
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/';
|
|
@@ -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
|
|
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
|
/**
|