@abihealth/goapp-react-native 1.40.1 → 1.40.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.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.40.3](https://github.com/abiglobalhealth/react-native-sdk/compare/goapp-react-native-v1.40.2...goapp-react-native-v1.40.3) (2025-08-06)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* including accessibility role button ([#236](https://github.com/abiglobalhealth/react-native-sdk/issues/236)) ([992a4bc](https://github.com/abiglobalhealth/react-native-sdk/commit/992a4bc9510195cea37ead4493c2efcf93bf1fbf))
|
|
9
|
+
|
|
10
|
+
## [1.40.2](https://github.com/abiglobalhealth/react-native-sdk/compare/goapp-react-native-v1.40.1...goapp-react-native-v1.40.2) (2025-08-06)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* reverse button labels ([#234](https://github.com/abiglobalhealth/react-native-sdk/issues/234)) ([1e78b9a](https://github.com/abiglobalhealth/react-native-sdk/commit/1e78b9ab81ddb46f0c6bb9e9c8a6ec19ba57d83c))
|
|
16
|
+
|
|
3
17
|
## [1.40.1](https://github.com/abiglobalhealth/react-native-sdk/compare/goapp-react-native-v1.40.0...goapp-react-native-v1.40.1) (2025-08-06)
|
|
4
18
|
|
|
5
19
|
|
|
@@ -93,7 +93,7 @@ exports.Button = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
93
93
|
shadow && theme.shadows.soft,
|
|
94
94
|
style,
|
|
95
95
|
(_a = Button === null || Button === void 0 ? void 0 : Button[variant]) === null || _a === void 0 ? void 0 : _a.containerStyle
|
|
96
|
-
]} onPress={onPress} disabled={loading || props.disabled} accessibilityLabel={children} accessibilityState={{ disabled: loading || props.disabled }}>
|
|
96
|
+
]} onPress={onPress} disabled={loading || props.disabled} accessibilityLabel={children} accessibilityState={{ disabled: loading || props.disabled }} accessibilityRole="button">
|
|
97
97
|
{loading ? (<LoadingHeart_1.LoadingHeart />) : (<>
|
|
98
98
|
{icon}
|
|
99
99
|
{children && (<Text_1.Text style={[
|
|
@@ -27,9 +27,9 @@ var BtnControls = function (_a) {
|
|
|
27
27
|
var iconStyle = (_b = videoCallScreen === null || videoCallScreen === void 0 ? void 0 : videoCallScreen.controlButtons) === null || _b === void 0 ? void 0 : _b.iconStyle;
|
|
28
28
|
return (<react_native_1.View style={[styles.btnContainer, theme.shadows.soft, videoCallScreen === null || videoCallScreen === void 0 ? void 0 : videoCallScreen.buttonsContainerStyle]}>
|
|
29
29
|
<react_native_1.View style={styles.btnContent}>
|
|
30
|
-
<ui_1.VideoCallButton icon={muteLocalAudioStream ? <MicroOffIcon_1.default {...iconStyle}/> : <MicroOnIcon_1.default {...iconStyle}/>} name={'audiomute'} onPress={controlActions.localAudioStream} isMuted={muteLocalAudioStream} customStyle={(_c = videoCallScreen === null || videoCallScreen === void 0 ? void 0 : videoCallScreen.controlButtons) === null || _c === void 0 ? void 0 : _c.containerStyle} accessibilityLabel={muteLocalAudioStream ? t('accessibility.
|
|
31
|
-
<ui_1.VideoCallButton icon={muteLocalVideoStream ? <VideoOffIcon_1.default {...iconStyle}/> : <VideoOnIcon_1.default {...iconStyle}/>} name={'videomute'} onPress={controlActions.localVideoStream} isMuted={muteLocalVideoStream} customStyle={(_d = videoCallScreen === null || videoCallScreen === void 0 ? void 0 : videoCallScreen.controlButtons) === null || _d === void 0 ? void 0 : _d.containerStyle} accessibilityLabel={muteLocalVideoStream ? t('accessibility.
|
|
32
|
-
<ui_1.VideoCallButton disabled={!remoteUsers.length} icon={<SwitchCameraIcon_1.default {...iconStyle}/>} name={'switchCamera'} onPress={controlActions.switchCamera} customStyle={(_e = videoCallScreen === null || videoCallScreen === void 0 ? void 0 : videoCallScreen.controlButtons) === null || _e === void 0 ? void 0 : _e.containerStyle} accessibilityLabel={frontCamera ? t('accessibility.
|
|
30
|
+
<ui_1.VideoCallButton icon={muteLocalAudioStream ? <MicroOffIcon_1.default {...iconStyle}/> : <MicroOnIcon_1.default {...iconStyle}/>} name={'audiomute'} onPress={controlActions.localAudioStream} isMuted={muteLocalAudioStream} customStyle={(_c = videoCallScreen === null || videoCallScreen === void 0 ? void 0 : videoCallScreen.controlButtons) === null || _c === void 0 ? void 0 : _c.containerStyle} accessibilityLabel={muteLocalAudioStream ? t('accessibility.microphone_unmute') : t('accessibility.microphone_mute')}/>
|
|
31
|
+
<ui_1.VideoCallButton icon={muteLocalVideoStream ? <VideoOffIcon_1.default {...iconStyle}/> : <VideoOnIcon_1.default {...iconStyle}/>} name={'videomute'} onPress={controlActions.localVideoStream} isMuted={muteLocalVideoStream} customStyle={(_d = videoCallScreen === null || videoCallScreen === void 0 ? void 0 : videoCallScreen.controlButtons) === null || _d === void 0 ? void 0 : _d.containerStyle} accessibilityLabel={muteLocalVideoStream ? t('accessibility.camera_on') : t('accessibility.camera_off')}/>
|
|
32
|
+
<ui_1.VideoCallButton disabled={!remoteUsers.length} icon={<SwitchCameraIcon_1.default {...iconStyle}/>} name={'switchCamera'} onPress={controlActions.switchCamera} customStyle={(_e = videoCallScreen === null || videoCallScreen === void 0 ? void 0 : videoCallScreen.controlButtons) === null || _e === void 0 ? void 0 : _e.containerStyle} accessibilityLabel={frontCamera ? t('accessibility.camera_front') : t('accessibility.camera_back')}/>
|
|
33
33
|
{((_f = videoCallScreen === null || videoCallScreen === void 0 ? void 0 : videoCallScreen.EndCallButton) === null || _f === void 0 ? void 0 : _f.customComponent) ? (<videoCallScreen.EndCallButton.customComponent onPress={controlActions.endCall}/>) : (<ui_1.VideoCallButton customStyle={[styles.endCall, (_g = videoCallScreen === null || videoCallScreen === void 0 ? void 0 : videoCallScreen.EndCallButton) === null || _g === void 0 ? void 0 : _g.containerStyle]} icon={<HangUpIcon_1.default {...(_h = videoCallScreen === null || videoCallScreen === void 0 ? void 0 : videoCallScreen.EndCallButton) === null || _h === void 0 ? void 0 : _h.iconStyle}/>} name={'endCall'} onPress={controlActions.endCall} accessibilityLabel={t('accessibility.end_call')}/>)}
|
|
34
34
|
</react_native_1.View>
|
|
35
35
|
</react_native_1.View>);
|
|
@@ -25,7 +25,7 @@ var VideoCallButton = function (props) {
|
|
|
25
25
|
var theme = (0, useTheme_1.useTheme)();
|
|
26
26
|
var styles = getStyles(theme);
|
|
27
27
|
var _a = props.disabled, disabled = _a === void 0 ? false : _a, icon = props.icon, _b = props.isMuted, isMuted = _b === void 0 ? false : _b, _c = props.customStyle, customStyle = _c === void 0 ? {} : _c, accessibilityLabel = props.accessibilityLabel;
|
|
28
|
-
return (<react_native_1.TouchableOpacity style={styles.buttonPress} disabled={disabled} onPress={props.onPress} accessibilityLabel={accessibilityLabel}>
|
|
28
|
+
return (<react_native_1.TouchableOpacity style={styles.buttonPress} disabled={disabled} onPress={props.onPress} accessibilityLabel={accessibilityLabel} accessibilityRole="button" accessibilityState={{ disabled: disabled }}>
|
|
29
29
|
<react_native_1.View style={[styles.buttonControl, customStyle, theme.shadows.soft, isMuted ? { opacity: 0.3 } : {}]}>{icon}</react_native_1.View>
|
|
30
30
|
</react_native_1.TouchableOpacity>);
|
|
31
31
|
};
|