@office-iss/react-native-win32 0.71.14 → 0.71.16
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 +21 -4
- package/Libraries/Components/Pressable/Pressable.win32.js +6 -0
- package/Libraries/Components/TextInput/TextInput.win32.js +7 -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 -0
- 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": "
|
|
5
|
+
"date": "Mon, 11 Sep 2023 15:13:15 GMT",
|
|
6
|
+
"tag": "@office-iss/react-native-win32_v0.71.16",
|
|
7
|
+
"version": "0.71.16",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "30809111+acoates-ms@users.noreply.github.com",
|
|
12
|
+
"package": "@office-iss/react-native-win32",
|
|
13
|
+
"commit": "18112893dd511de823af08cc36b01b818cb305f1",
|
|
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:29 GMT",
|
|
21
|
+
"tag": "@office-iss/react-native-win32_v0.71.15",
|
|
22
|
+
"version": "0.71.15",
|
|
23
|
+
"comments": {
|
|
24
|
+
"patch": [
|
|
25
|
+
{
|
|
26
|
+
"author": "krsiler@microsoft.com",
|
|
27
|
+
"package": "@office-iss/react-native-win32",
|
|
28
|
+
"commit": "3183aace3dc9e1a687df06c6c86792d96619c285",
|
|
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": "acc90938f92e73823f2137ae2d8d958c8983f310",
|
|
35
|
+
"comment": "Remove flow usage from saveAssetPlugin codeflow"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"date": "Fri, 11 Aug 2023 00:26:16 GMT",
|
|
6
42
|
"tag": "@office-iss/react-native-win32_v0.71.14",
|
|
7
43
|
"version": "0.71.14",
|
|
8
44
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,34 @@
|
|
|
1
1
|
# Change Log - @office-iss/react-native-win32
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Mon, 11 Sep 2023 15:13:15 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## 0.71.
|
|
7
|
+
## 0.71.16
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Mon, 11 Sep 2023 15:13:15 GMT
|
|
10
10
|
|
|
11
11
|
### Patches
|
|
12
12
|
|
|
13
|
-
-
|
|
13
|
+
- Webpack assets do not prefix paths with /, which causes a lost char in asset path (30809111+acoates-ms@users.noreply.github.com)
|
|
14
14
|
|
|
15
|
+
## 0.71.15
|
|
16
|
+
|
|
17
|
+
Mon, 28 Aug 2023 15:14:29 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.71.14
|
|
25
|
+
|
|
26
|
+
Fri, 11 Aug 2023 00:26:16 GMT
|
|
27
|
+
|
|
28
|
+
### Patches
|
|
29
|
+
|
|
30
|
+
- Add saveAssetPlugin to fix long path assets (30809111+acoates-ms@users.noreply.github.com)
|
|
31
|
+
|
|
15
32
|
## 0.71.13
|
|
16
33
|
|
|
17
34
|
Fri, 04 Aug 2023 23:49:15 GMT
|
|
@@ -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
|
|
|
@@ -1101,6 +1101,8 @@ function InternalTextInput(props: Props): React.Node {
|
|
|
1101
1101
|
'aria-disabled': ariaDisabled,
|
|
1102
1102
|
'aria-expanded': ariaExpanded,
|
|
1103
1103
|
'aria-selected': ariaSelected,
|
|
1104
|
+
'aria-multiselectable': ariaMultiselectable, // Win32
|
|
1105
|
+
'aria-required': ariaRequired, // Win32
|
|
1104
1106
|
accessibilityState,
|
|
1105
1107
|
id,
|
|
1106
1108
|
tabIndex,
|
|
@@ -1491,6 +1493,8 @@ function InternalTextInput(props: Props): React.Node {
|
|
|
1491
1493
|
ariaChecked != null ||
|
|
1492
1494
|
ariaDisabled != null ||
|
|
1493
1495
|
ariaExpanded != null ||
|
|
1496
|
+
ariaMultiselectable != null ||
|
|
1497
|
+
ariaRequired != null ||
|
|
1494
1498
|
ariaSelected != null
|
|
1495
1499
|
) {
|
|
1496
1500
|
_accessibilityState = {
|
|
@@ -1498,6 +1502,9 @@ function InternalTextInput(props: Props): React.Node {
|
|
|
1498
1502
|
checked: ariaChecked ?? accessibilityState?.checked,
|
|
1499
1503
|
disabled: ariaDisabled ?? accessibilityState?.disabled,
|
|
1500
1504
|
expanded: ariaExpanded ?? accessibilityState?.expanded,
|
|
1505
|
+
multiselectable:
|
|
1506
|
+
ariaMultiselectable ?? accessibilityState?.multiselectable, // Win32
|
|
1507
|
+
required: ariaRequired ?? accessibilityState?.required, // Win32
|
|
1501
1508
|
selected: ariaSelected ?? accessibilityState?.selected,
|
|
1502
1509
|
};
|
|
1503
1510
|
}
|
|
@@ -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,6 +467,8 @@ type WindowsViewProps = $ReadOnly<{|
|
|
|
467
467
|
|
|
468
468
|
accessibilityPosInSet?: ?number,
|
|
469
469
|
accessibilitySetSize?: ?number,
|
|
470
|
+
'aria-multiselectable'?: ?boolean,
|
|
471
|
+
'aria-required'?: ?boolean,
|
|
470
472
|
|
|
471
473
|
/**
|
|
472
474
|
* Specifies if the control should show System focus visuals
|
|
@@ -170,6 +170,8 @@ const BaseImage = (props: ImagePropsType, forwardedRef) => {
|
|
|
170
170
|
'aria-checked': ariaChecked,
|
|
171
171
|
'aria-disabled': ariaDisabled,
|
|
172
172
|
'aria-expanded': ariaExpanded,
|
|
173
|
+
'aria-multiselectable': ariaMultiselectable, // Win32
|
|
174
|
+
'aria-required': ariaRequired, // Win32
|
|
173
175
|
'aria-selected': ariaSelected,
|
|
174
176
|
height,
|
|
175
177
|
src,
|
|
@@ -182,6 +184,9 @@ const BaseImage = (props: ImagePropsType, forwardedRef) => {
|
|
|
182
184
|
checked: ariaChecked ?? props.accessibilityState?.checked,
|
|
183
185
|
disabled: ariaDisabled ?? props.accessibilityState?.disabled,
|
|
184
186
|
expanded: ariaExpanded ?? props.accessibilityState?.expanded,
|
|
187
|
+
multiselectable:
|
|
188
|
+
ariaMultiselectable ?? props.accessibilityState?.multiselectable, // Win32
|
|
189
|
+
required: ariaRequired ?? props.accessibilityState?.required, // Win32
|
|
185
190
|
selected: ariaSelected ?? props.accessibilityState?.selected,
|
|
186
191
|
};
|
|
187
192
|
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
|
/**
|