react-native-windows 0.0.0-canary.968 → 0.0.0-canary.969
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/Libraries/Components/View/View.windows.js +6 -0
- package/Libraries/Components/View/ViewAccessibility.d.ts +8 -0
- package/Libraries/Components/View/ViewPropTypes.windows.js +2 -0
- package/Libraries/NativeComponent/BaseViewConfig.windows.js +1 -0
- package/Microsoft.ReactNative/Fabric/Composition/CompositionDynamicAutomationProvider.cpp +6 -0
- package/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.cpp +6 -0
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/view/HostPlatformViewProps.cpp +9 -0
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/view/HostPlatformViewProps.h +1 -0
- package/PropertySheets/Generated/PackageVersion.g.props +2 -2
- package/package.json +1 -1
|
@@ -67,6 +67,7 @@ const View: component(
|
|
|
67
67
|
accessibilityLabel,
|
|
68
68
|
accessibilityLabelledBy,
|
|
69
69
|
accessibilityLevel, // Windows
|
|
70
|
+
accessibilityDescription, //Windows
|
|
70
71
|
accessibilityLiveRegion,
|
|
71
72
|
accessibilityPosInSet, // Windows
|
|
72
73
|
accessibilitySetSize, // Windows
|
|
@@ -78,6 +79,7 @@ const View: component(
|
|
|
78
79
|
'aria-expanded': ariaExpanded,
|
|
79
80
|
'aria-multiselectable': ariaMultiselectable, // Windows
|
|
80
81
|
'aria-required': ariaRequired, // Windows
|
|
82
|
+
'aria-description': ariaDescription, //Windows
|
|
81
83
|
'aria-hidden': ariaHidden,
|
|
82
84
|
'aria-label': ariaLabel,
|
|
83
85
|
'aria-labelledby': ariaLabelledBy,
|
|
@@ -250,6 +252,7 @@ const View: component(
|
|
|
250
252
|
}
|
|
251
253
|
accessibilityLabel={ariaLabel ?? accessibilityLabel}
|
|
252
254
|
accessibilityLevel={ariaLevel ?? accessibilityLevel}
|
|
255
|
+
accessibilityDescription={ariaDescription ?? accessibilityDescription}
|
|
253
256
|
accessibilityPosInSet={ariaPosinset ?? accessibilityPosInSet}
|
|
254
257
|
accessibilitySetSize={ariaSetsize ?? accessibilitySetSize}
|
|
255
258
|
focusable={_focusable}
|
|
@@ -303,6 +306,9 @@ const View: component(
|
|
|
303
306
|
}
|
|
304
307
|
accessibilityLabel={ariaLabel ?? accessibilityLabel}
|
|
305
308
|
accessibilityLevel={ariaLevel ?? accessibilityLevel}
|
|
309
|
+
accessibilityDescription={
|
|
310
|
+
ariaDescription ?? accessibilityDescription
|
|
311
|
+
}
|
|
306
312
|
accessibilityPosInSet={ariaPosinset ?? accessibilityPosInSet}
|
|
307
313
|
accessibilitySetSize={ariaSetsize ?? accessibilitySetSize}
|
|
308
314
|
focusable={_focusable}
|
|
@@ -315,6 +315,14 @@ export interface AccessibilityPropsWindows {
|
|
|
315
315
|
* Access keys are used in keyboard navigation to allow quick navigation to UI in an application.
|
|
316
316
|
*/
|
|
317
317
|
accessibilityAccessKey?: string; //Windows
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* accessibilityDescription provides more detailed information specific to the element (i.e. last edit date, full location for a file)
|
|
321
|
+
* while accessibilityHint provides information on what will happen when they perform an action.
|
|
322
|
+
*
|
|
323
|
+
*/
|
|
324
|
+
accessibilityDescription?: string; // Windows
|
|
325
|
+
'aria-description'?: string; // Windows
|
|
318
326
|
}
|
|
319
327
|
|
|
320
328
|
export interface AccessibilityPropsAndroid {
|
|
@@ -454,6 +454,8 @@ type ViewPropsWindows = $ReadOnly<{|
|
|
|
454
454
|
'aria-posinset'?: ?number,
|
|
455
455
|
accessibilitySetSize?: ?number,
|
|
456
456
|
'aria-setsize'?: ?number,
|
|
457
|
+
accessibilityDescription?: ?string,
|
|
458
|
+
'aria-description'?: ?string,
|
|
457
459
|
|
|
458
460
|
/**
|
|
459
461
|
* Specifies if the control should show System focus visuals
|
|
@@ -385,6 +385,7 @@ const validAttributesForNonEventProps = {
|
|
|
385
385
|
accessibilityAnnotation: true, // [Windows]
|
|
386
386
|
accessibilityItemType: true, // [Windows]
|
|
387
387
|
accessibilityAccessKey: true, // [Windows]
|
|
388
|
+
accessibilityDescription: true, // [Windows]
|
|
388
389
|
disabled: true, // [Windows]
|
|
389
390
|
focusable: true, // [Windows]
|
|
390
391
|
keyDownEvents: true, // [Windows]
|
|
@@ -588,6 +588,12 @@ HRESULT __stdcall CompositionDynamicAutomationProvider::GetPropertyValue(PROPERT
|
|
|
588
588
|
pRetVal->bstrVal = SysAllocString(itemtype.c_str());
|
|
589
589
|
break;
|
|
590
590
|
}
|
|
591
|
+
case UIA_FullDescriptionPropertyId: {
|
|
592
|
+
pRetVal->vt = VT_BSTR;
|
|
593
|
+
auto desc = ::Microsoft::Common::Unicode::Utf8ToUtf16(props->accessibilityDescription.value_or(""));
|
|
594
|
+
pRetVal->bstrVal = SysAllocString(desc.c_str());
|
|
595
|
+
break;
|
|
596
|
+
}
|
|
591
597
|
}
|
|
592
598
|
return hr;
|
|
593
599
|
}
|
|
@@ -819,6 +819,12 @@ void ComponentView::updateAccessibilityProps(
|
|
|
819
819
|
oldViewProps.accessibilityItemType,
|
|
820
820
|
newViewProps.accessibilityItemType);
|
|
821
821
|
|
|
822
|
+
winrt::Microsoft::ReactNative::implementation::UpdateUiaProperty(
|
|
823
|
+
EnsureUiaProvider(),
|
|
824
|
+
UIA_FullDescriptionPropertyId,
|
|
825
|
+
oldViewProps.accessibilityDescription,
|
|
826
|
+
newViewProps.accessibilityDescription);
|
|
827
|
+
|
|
822
828
|
if ((oldViewProps.accessibilityState.has_value() && oldViewProps.accessibilityState->selected.has_value()) !=
|
|
823
829
|
((newViewProps.accessibilityState.has_value() && newViewProps.accessibilityState->selected.has_value()))) {
|
|
824
830
|
auto compProvider =
|
|
@@ -56,6 +56,14 @@ HostPlatformViewProps::HostPlatformViewProps(
|
|
|
56
56
|
ReactNativeFeatureFlags::enableCppPropsIteratorSetter()
|
|
57
57
|
? sourceProps.accessibilityAccessKey
|
|
58
58
|
: convertRawProp(context, rawProps, "accessibilityAccessKey", sourceProps.accessibilityAccessKey, {})),
|
|
59
|
+
accessibilityDescription(
|
|
60
|
+
ReactNativeFeatureFlags::enableCppPropsIteratorSetter() ? sourceProps.accessibilityDescription
|
|
61
|
+
: convertRawProp(
|
|
62
|
+
context,
|
|
63
|
+
rawProps,
|
|
64
|
+
"accessibilityDescription",
|
|
65
|
+
sourceProps.accessibilityDescription,
|
|
66
|
+
{})),
|
|
59
67
|
accessibilityLiveRegion(
|
|
60
68
|
ReactNativeFeatureFlags::enableCppPropsIteratorSetter() ? sourceProps.accessibilityLiveRegion
|
|
61
69
|
: convertRawProp(
|
|
@@ -104,6 +112,7 @@ void HostPlatformViewProps::setProp(
|
|
|
104
112
|
RAW_SET_PROP_SWITCH_CASE_BASIC(accessibilityLevel);
|
|
105
113
|
RAW_SET_PROP_SWITCH_CASE_BASIC(accessibilityItemType);
|
|
106
114
|
RAW_SET_PROP_SWITCH_CASE_BASIC(accessibilityAccessKey);
|
|
115
|
+
RAW_SET_PROP_SWITCH_CASE_BASIC(accessibilityDescription);
|
|
107
116
|
RAW_SET_PROP_SWITCH_CASE_BASIC(accessibilityLiveRegion);
|
|
108
117
|
RAW_SET_PROP_SWITCH_CASE_BASIC(keyDownEvents);
|
|
109
118
|
RAW_SET_PROP_SWITCH_CASE_BASIC(keyUpEvents);
|
package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/view/HostPlatformViewProps.h
CHANGED
|
@@ -32,6 +32,7 @@ class HostPlatformViewProps : public BaseViewProps {
|
|
|
32
32
|
std::optional<AccessibilityAnnotation> accessibilityAnnotation{};
|
|
33
33
|
std::optional<std::string> accessibilityItemType{};
|
|
34
34
|
std::optional<std::string> accessibilityAccessKey{};
|
|
35
|
+
std::optional<std::string> accessibilityDescription{};
|
|
35
36
|
|
|
36
37
|
// std::optional<std::string> overflowAnchor{};
|
|
37
38
|
std::optional<std::string> tooltip{};
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
-->
|
|
11
11
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
12
12
|
<PropertyGroup>
|
|
13
|
-
<ReactNativeWindowsVersion>0.0.0-canary.
|
|
13
|
+
<ReactNativeWindowsVersion>0.0.0-canary.969</ReactNativeWindowsVersion>
|
|
14
14
|
<ReactNativeWindowsMajor>0</ReactNativeWindowsMajor>
|
|
15
15
|
<ReactNativeWindowsMinor>0</ReactNativeWindowsMinor>
|
|
16
16
|
<ReactNativeWindowsPatch>0</ReactNativeWindowsPatch>
|
|
17
17
|
<ReactNativeWindowsCanary>true</ReactNativeWindowsCanary>
|
|
18
|
-
<ReactNativeWindowsCommitId>
|
|
18
|
+
<ReactNativeWindowsCommitId>3dea19c7227caa33420336b996c6efddd1201564</ReactNativeWindowsCommitId>
|
|
19
19
|
</PropertyGroup>
|
|
20
20
|
</Project>
|