@placetime/corptime-conference 1.0.8 → 1.0.10

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.8",
3
+ "version": "1.0.10",
4
4
  "description": "React Native SDK from Corptime-Conference",
5
5
  "main": "index.tsx",
6
6
  "license": "Apache-2.0",
@@ -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
  *
@@ -65,6 +70,15 @@ class LobbyScreen extends AbstractLobbyScreen<IProps> {
65
70
  super(props);
66
71
 
67
72
  this._onLogin = this._onLogin.bind(this);
73
+ this._onHardwareBackPress = this._onHardwareBackPress.bind(this);
74
+ }
75
+
76
+ override componentDidMount() {
77
+ this._hardwareBackPressSubscription = BackHandler.addEventListener('hardwareBackPress', this._onHardwareBackPress);
78
+ }
79
+
80
+ override componentWillUnmount() {
81
+ this._hardwareBackPressSubscription?.remove();
68
82
  }
69
83
 
70
84
  /**
@@ -122,6 +136,17 @@ class LobbyScreen extends AbstractLobbyScreen<IProps> {
122
136
  navigate(screen.lobby.chat);
123
137
  }
124
138
 
139
+ /**
140
+ * Callback to handle the hardware back button.
141
+ *
142
+ * @returns {boolean}
143
+ */
144
+ _onHardwareBackPress() {
145
+ this.props.dispatch(appNavigate(undefined));
146
+
147
+ return true;
148
+ }
149
+
125
150
  /**
126
151
  * Renders the joining (waiting) fragment of the screen.
127
152
  *
@@ -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: {