@office-iss/react-native-win32 0.71.14 → 0.71.15

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 CHANGED
@@ -2,7 +2,28 @@
2
2
  "name": "@office-iss/react-native-win32",
3
3
  "entries": [
4
4
  {
5
- "date": "Fri, 11 Aug 2023 00:25:54 GMT",
5
+ "date": "Mon, 28 Aug 2023 15:14:00 GMT",
6
+ "tag": "@office-iss/react-native-win32_v0.71.15",
7
+ "version": "0.71.15",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "krsiler@microsoft.com",
12
+ "package": "@office-iss/react-native-win32",
13
+ "commit": "3183aace3dc9e1a687df06c6c86792d96619c285",
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": "acc90938f92e73823f2137ae2d8d958c8983f310",
20
+ "comment": "Remove flow usage from saveAssetPlugin codeflow"
21
+ }
22
+ ]
23
+ }
24
+ },
25
+ {
26
+ "date": "Fri, 11 Aug 2023 00:26:16 GMT",
6
27
  "tag": "@office-iss/react-native-win32_v0.71.14",
7
28
  "version": "0.71.14",
8
29
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,17 +1,26 @@
1
1
  # Change Log - @office-iss/react-native-win32
2
2
 
3
- This log was last generated on Fri, 11 Aug 2023 00:25:54 GMT and should not be manually modified.
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.71.14
7
+ ## 0.71.15
8
8
 
9
- Fri, 11 Aug 2023 00:25:54 GMT
9
+ Mon, 28 Aug 2023 15:14:00 GMT
10
10
 
11
11
  ### Patches
12
12
 
13
- - Add saveAssetPlugin to fix long path assets (30809111+acoates-ms@users.noreply.github.com)
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)
14
15
 
16
+ ## 0.71.14
17
+
18
+ Fri, 11 Aug 2023 00:26:16 GMT
19
+
20
+ ### Patches
21
+
22
+ - Add saveAssetPlugin to fix long path assets (30809111+acoates-ms@users.noreply.github.com)
23
+
15
24
  ## 0.71.13
16
25
 
17
26
  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
  /**
@@ -152,6 +152,8 @@ export type AccessibilityState = {
152
152
  checked?: ?boolean | 'mixed',
153
153
  busy?: boolean,
154
154
  expanded?: boolean,
155
+ multiselectable?: boolean, // Win32
156
+ required?: boolean, // Win32
155
157
  ...
156
158
  };
157
159
 
@@ -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
- * @flow strict-local
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: string): string {
15
+ function ensureShortPath(str) {
16
16
  if (str.length < 40) return str;
17
17
 
18
18
  const assetsPrefix = 'assets/';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@office-iss/react-native-win32",
3
- "version": "0.71.14",
3
+ "version": "0.71.15",
4
4
  "description": "Implementation of react native on top of Office's Win32 platform.",
5
5
  "license": "MIT",
6
6
  "main": "./index.win32.js",
@@ -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
  /**