@placetime/corptime-conference 1.0.7 → 1.0.9

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/lang/main-ru.json CHANGED
@@ -356,6 +356,7 @@
356
356
  "micTimeoutError": "Не удалось запустить источник звука. Произошел тайм-аут!",
357
357
  "micUnknownError": "Неизвестная ошибка использования микрофона.",
358
358
  "moderationAudioLabel": "Разрешить участникам самостоятельно включать звук",
359
+ "moderationDesktopLabel": "Разрешить участникам, не являющимся модераторами, делиться своим экраном.",
359
360
  "moderationVideoLabel": "Разрешить участникам запускать свое видео",
360
361
  "muteEveryoneDialog": "Вы уверены, что хотите отключить микрофоны у всех? Вы не сможете включить их, но они могут включить себя в любой момент.",
361
362
  "muteEveryoneDialogModerationOn": "Участники могут отправить запрос на выступление в любое время.",
@@ -368,6 +369,7 @@
368
369
  "muteEveryoneSelf": "себя",
369
370
  "muteEveryoneStartMuted": "Теперь у всех микрофоны выключены",
370
371
  "muteEveryoneTitle": "Заглушить всех?",
372
+ "muteEveryonesDesktopDialog": "Участники могут делиться своим экраном в любое время.",
371
373
  "muteEveryonesVideoDialog": "Участники могут включить свое видео в любое время.",
372
374
  "muteEveryonesVideoDialogModerationOn": "Участники могут отправить запрос на включение своего видео в любое время.",
373
375
  "muteEveryonesDesktopTitle": "Остановить демонстрацию экрана у всех",
@@ -851,6 +853,7 @@
851
853
  "desktopModeration": "Начать демонстрацию экрана",
852
854
  "invite": "Пригласить",
853
855
  "lowerAllHands": "Опустите все руки",
856
+ "lowerHand": "Опустить руку",
854
857
  "moreModerationActions": "Дополнительные параметры модерации",
855
858
  "moreModerationControls": "Дополнительные элементы управления модерацией",
856
859
  "moreParticipantOptions": "Дополнительные параметры участников",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@placetime/corptime-conference",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "React Native SDK from Corptime-Conference",
5
5
  "main": "index.tsx",
6
6
  "license": "Apache-2.0",
@@ -476,7 +476,7 @@ export function _mapStateToProps(state: IReduxState) {
476
476
  _participantId: participantId,
477
477
  _participantName: localParticipant?.name,
478
478
  _passwordJoinFailed: passwordJoinFailed,
479
- _renderPassword: !iAmSipGateway && !disableLobbyPassword && !lobbyWaitingForHost,
479
+ _renderPassword: !iAmSipGateway && !lobbyWaitingForHost,
480
480
  showCopyUrlButton,
481
481
  roomName,
482
482
  };
@@ -30,12 +30,13 @@ class LobbyChatScreen extends
30
30
 
31
31
  return (
32
32
  <JitsiScreen
33
+ useBottomSheet = { true }
33
34
  hasBottomTextInput = { true }
34
35
  hasExtraHeaderHeight = { true }
35
36
  style = { styles.lobbyChatWrapper }>
36
37
  {/* @ts-ignore */}
37
38
  <MessageContainer messages = { _lobbyChatMessages } />
38
- <ChatInputBar onSend = { this._onSendMessage } />
39
+ <ChatInputBar onSend = { this._onSendMessage } useBottomSheetInput = { true } />
39
40
  </JitsiScreen>
40
41
  );
41
42
  }
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
- import { Text, TextStyle, View, ViewStyle } from 'react-native';
2
+ import { BackHandler, Text, TextStyle, View, ViewStyle } from 'react-native';
3
3
  import { connect } from 'react-redux';
4
+ import { appNavigate } from '../../../app/actions.native';
4
5
 
5
6
  import { IReduxState } from '../../../app/types';
6
7
  import { login } from '../../../authentication/actions.any';
@@ -55,6 +56,10 @@ interface IProps extends AbstractProps {
55
56
  * Implements a waiting screen that represents the participant being in the lobby.
56
57
  */
57
58
  class LobbyScreen extends AbstractLobbyScreen<IProps> {
59
+ /**
60
+ * Initializes hardwareBackPress subscription.
61
+ */
62
+ _hardwareBackPressSubscription: any;
58
63
  /**
59
64
  * Initializes a new LobbyScreen instance.
60
65
  *
@@ -67,6 +72,14 @@ class LobbyScreen extends AbstractLobbyScreen<IProps> {
67
72
  this._onLogin = this._onLogin.bind(this);
68
73
  }
69
74
 
75
+ override componentDidMount() {
76
+ this._hardwareBackPressSubscription = BackHandler.addEventListener('hardwareBackPress', this._onHardwareBackPress);
77
+ }
78
+
79
+ override componentWillUnmount() {
80
+ this._hardwareBackPressSubscription?.remove();
81
+ }
82
+
70
83
  /**
71
84
  * Implements {@code PureComponent#render}.
72
85
  *
@@ -122,6 +135,17 @@ class LobbyScreen extends AbstractLobbyScreen<IProps> {
122
135
  navigate(screen.lobby.chat);
123
136
  }
124
137
 
138
+ /**
139
+ * Callback to handle the hardware back button.
140
+ *
141
+ * @returns {boolean}
142
+ */
143
+ _onHardwareBackPress() {
144
+ this.props.dispatch(appNavigate(undefined));
145
+
146
+ return true;
147
+ }
148
+
125
149
  /**
126
150
  * Renders the joining (waiting) fragment of the screen.
127
151
  *
@@ -109,11 +109,13 @@ export default {
109
109
  participantDetailsContainer: {
110
110
  display: 'flex',
111
111
  flexDirection: 'column',
112
- width: '73%'
112
+ marginRight: BaseTheme.spacing[2],
113
+ flex: 1
114
+ // width: '73%'
113
115
  },
114
116
 
115
117
  participantDetailsContainerRaisedHand: {
116
- width: '65%'
118
+ // width: '65%'
117
119
  },
118
120
 
119
121
  participantNameContainer: {
@@ -142,7 +144,9 @@ export default {
142
144
  display: 'flex',
143
145
  flexDirection: 'row',
144
146
  marginLeft: 'auto',
145
- width: '15%'
147
+ marginRight: BaseTheme.spacing[1],
148
+ flexShrink: 0
149
+ // width: '15%'
146
150
  },
147
151
 
148
152
  participantStateVideo: {
@@ -155,7 +159,8 @@ export default {
155
159
  height: BaseTheme.spacing[4],
156
160
  width: BaseTheme.spacing[4],
157
161
  marginLeft: 'auto',
158
- marginRight: BaseTheme.spacing[2]
162
+ marginRight: BaseTheme.spacing[2],
163
+ flexShrink: 0
159
164
  },
160
165
 
161
166
  raisedHandIcon: {