agora-appbuilder-core 4.0.0-beta.92 → 4.0.0-beta.94

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agora-appbuilder-core",
3
- "version": "4.0.0-beta.92",
3
+ "version": "4.0.0-beta.94",
4
4
  "description": "React Native template for RTE app builder",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -71,8 +71,8 @@ export interface DefaultContentInterface {
71
71
  streamType: 'high' | 'low';
72
72
  type: 'rtc';
73
73
  permissionStatus?: PermissionState;
74
- localAudioForceDisabled?: boolean;
75
- localVideoForceDisabled?: boolean;
74
+ audioForceDisabled?: boolean;
75
+ videoForceDisabled?: boolean;
76
76
  //applicable only to the screenshare
77
77
  parentUid?: UidType;
78
78
  //uikit and core
@@ -15,7 +15,7 @@ export default function LocalMuteAudio(
15
15
  [localUid]: {
16
16
  ...state.defaultContent[localUid],
17
17
  audio: action.value[0],
18
- localAudioForceDisabled:
18
+ audioForceDisabled:
19
19
  action?.value?.length === 2 ? action.value[1] : false,
20
20
  },
21
21
  },
@@ -15,7 +15,7 @@ export default function LocalMuteVideo(
15
15
  [localUid]: {
16
16
  ...state.defaultContent[localUid],
17
17
  video: action.value[0],
18
- localVideoForceDisabled:
18
+ videoForceDisabled:
19
19
  action?.value?.length === 2 ? action.value[1] : false,
20
20
  },
21
21
  },
@@ -191,7 +191,7 @@ function LocalAudioMute(props: LocalAudioMuteProps) {
191
191
  $config.EVENT_MODE &&
192
192
  $config.RAISE_HAND &&
193
193
  !isHost) ||
194
- local.audioBtnDisabled
194
+ local?.audioForceDisabled
195
195
  ) {
196
196
  iconButtonProps.iconProps = {
197
197
  ...iconButtonProps.iconProps,
@@ -199,7 +199,7 @@ function LocalAudioMute(props: LocalAudioMuteProps) {
199
199
  tintColor: $config.SEMANTIC_NEUTRAL,
200
200
  };
201
201
  iconButtonProps.toolTipMessage =
202
- showToolTip && !local.audioBtnDisabled
202
+ showToolTip && !local?.audioForceDisabled
203
203
  ? lstooltip(isHandRaised(local.uid))
204
204
  : '';
205
205
  iconButtonProps.disabled = true;
@@ -204,7 +204,7 @@ function LocalVideoMute(props: LocalVideoMuteProps) {
204
204
  $config.EVENT_MODE &&
205
205
  $config.RAISE_HAND &&
206
206
  !isHost) ||
207
- local.videoBtnDisabled
207
+ local?.videoForceDisabled
208
208
  ) {
209
209
  iconButtonProps.iconProps = {
210
210
  ...iconButtonProps.iconProps,
@@ -212,7 +212,7 @@ function LocalVideoMute(props: LocalVideoMuteProps) {
212
212
  tintColor: $config.SEMANTIC_NEUTRAL,
213
213
  };
214
214
  iconButtonProps.toolTipMessage =
215
- showToolTip && !local.videoBtnDisabled
215
+ showToolTip && !local?.videoForceDisabled
216
216
  ? lstooltip(isHandRaised(local.uid))
217
217
  : '';
218
218
  iconButtonProps.disabled = true;