@agilemotion/oui-react-js 1.6.6 → 1.6.8

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.
@@ -6,7 +6,7 @@
6
6
  .chat-time {
7
7
  display: flex !important;
8
8
  align-items: center !important;
9
- padding: 0 !important;
9
+ padding: 0 8px !important;
10
10
  }
11
11
 
12
12
  .chats-file-upload {
@@ -212,20 +212,24 @@
212
212
  overflow-wrap: break-word;
213
213
  }
214
214
 
215
- .mychat {
215
+ .mychat, .mychat-deleted {
216
216
  position: relative;
217
217
  flex-direction: column;
218
218
  margin-left: auto;
219
219
  width: fit-content;
220
220
  margin-right: 7%;
221
221
  background-color: #D7D7E9;
222
- padding: 0.1px 10px;
222
+ padding: 0.1px 0 10px 0;
223
223
  margin-top: 5px;
224
224
  margin-bottom: 5px;
225
225
  border-radius: 15px;
226
226
  max-width: 100%;
227
227
  }
228
228
 
229
+ .mychat-deleted {
230
+ padding: 0.1px 8px 0.1px 8px;
231
+ }
232
+
229
233
  .mychat > span {
230
234
  font-size: 10px !important;
231
235
  font-weight: 500;
@@ -256,7 +260,7 @@
256
260
  .peerchat > .peer {
257
261
  margin-left: 10px;
258
262
  background-color: #eadfd5;
259
- padding: 0.1px 10px;
263
+ padding: 4px 10px;
260
264
  margin-top: 5px;
261
265
  border-radius: 15px;
262
266
  }
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _colors = require("material-ui/styles/colors");
8
+ const styles = {
9
+ title: {
10
+ minWidth: 320,
11
+ maxWidth: 500,
12
+ height: 'auto',
13
+ fontSize: '30px'
14
+ },
15
+ textCenter: {
16
+ textAlign: "center"
17
+ },
18
+ inputAdornmentIcon: {
19
+ color: '#AAAAAA',
20
+ marginTop: '-24px'
21
+ },
22
+ paper: {
23
+ padding: 20,
24
+ overflow: 'auto'
25
+ },
26
+ buttonsDiv: {
27
+ textAlign: 'center',
28
+ padding: 10
29
+ },
30
+ flatButton: {
31
+ color: _colors.grey400
32
+ },
33
+ checkRemember: {
34
+ style: {
35
+ float: 'left',
36
+ maxWidth: 180,
37
+ paddingTop: 5
38
+ },
39
+ labelStyle: {
40
+ color: _colors.grey500
41
+ },
42
+ iconStyle: {
43
+ color: _colors.grey500,
44
+ borderColor: _colors.grey500,
45
+ fill: _colors.grey500
46
+ }
47
+ },
48
+ loginBtn: {
49
+ float: 'right',
50
+ background: '#01476C'
51
+ },
52
+ btn: {
53
+ background: '#01476C',
54
+ color: _colors.white,
55
+ padding: 7,
56
+ borderRadius: 2,
57
+ margin: 2,
58
+ fontSize: 13
59
+ },
60
+ btnFacebook: {
61
+ background: '#01476C'
62
+ },
63
+ btnGoogle: {
64
+ background: '#e14441'
65
+ },
66
+ btnSpan: {
67
+ marginLeft: 5
68
+ }
69
+ };
70
+ var _default = exports.default = styles;
package/dist/js/Media.js CHANGED
@@ -28,7 +28,7 @@ class Media {
28
28
  _Observable.default.fireEvent(_VCEventType.VCEventType.JOIN_MEETING_PERMIT, event);
29
29
  } else {
30
30
  _SocketManager.default.emitEvent(_SocketRequest.default.REQUEST_TO_JOIN_MEETING, {
31
- userId: sessionStorage.getItem('username'),
31
+ userId: _ApplicationManager.default.getUserDetails().username,
32
32
  hostId: calendarEvent.host.username,
33
33
  askToJoin: calendarEvent.askToJoin,
34
34
  meetingId: calendarEvent.id
@@ -55,25 +55,25 @@ class Media {
55
55
  joinMeeting = (calendarEvent, settings, userFullName) => {
56
56
  let result = {};
57
57
  return new Promise((resolve, reject) => {
58
- if (!_SocketManager.default.getProfile()) {
58
+ if (!_ApplicationManager.default.getUserDetails().profile) {
59
59
  reject(new Error('No user profile'));
60
60
  } else {
61
61
  try {
62
62
  _SocketManager.default.emitEvent(_SocketRequest.default.JOIN_MEETING, {
63
63
  meetingId: calendarEvent.id,
64
64
  userFullName: userFullName,
65
- userId: sessionStorage.getItem('username'),
65
+ userId: _ApplicationManager.default.getUserDetails().username,
66
66
  avatarId: sessionStorage.getItem('userAvataId'),
67
- isHost: sessionStorage.getItem('username') === calendarEvent.host.username,
67
+ isHost: _ApplicationManager.default.getUserDetails().username === calendarEvent.host.username,
68
68
  settings: settings,
69
- profile: _SocketManager.default.getProfile()
69
+ profile: _ApplicationManager.default.getUserDetails().profile
70
70
  }).then(response => {
71
71
  result.status = response.status;
72
72
  if (response.status === 'SUCCESS') {
73
73
  result.rtpCapabilities = response.data.rtpCapabilities;
74
74
  result.shareScreenProducerData = response.data.shareScreenProducerData;
75
75
  result.participants = response.data.usersInRoom;
76
- if (sessionStorage.getItem('username') === calendarEvent.host.username) {
76
+ if (_ApplicationManager.default.getUserDetails().username === calendarEvent.host.username) {
77
77
  _SocketManager.default.emitEvent(_SocketRequest.default.GET_LOBBY, {
78
78
  meetingId: calendarEvent.id
79
79
  }).then(getLobbyResponse => {
@@ -20,7 +20,6 @@ const login = (url, username, password, callback, errorCallback) => {
20
20
  sessionStorage.setItem("refreshToken", response.refreshToken);
21
21
  sessionStorage.setItem("idToken", response.idToken);
22
22
  sessionStorage.setItem("lastLogin", new Date().getTime());
23
- sessionStorage.setItem("username", username);
24
23
  callback(true);
25
24
  }
26
25
  }, e => {
@@ -59,7 +58,6 @@ const resetPassword = (url, code, username, password, callback, errorCallback) =
59
58
  exports.resetPassword = resetPassword;
60
59
  const changePassword = (url, username, password, sessionId, challengeParamenters, callback, errorCallback) => {
61
60
  (0, _RestUtils.sendRequest)(`${url}?newPassword=${password}&username=${username}&sessionId=${sessionId}&challengeParamenters=${challengeParamenters}`, response => {
62
- sessionStorage.setItem("username", username);
63
61
  sessionStorage.setItem("accessToken", response.accessToken);
64
62
  sessionStorage.setItem("refreshToken", response.refreshToken);
65
63
  sessionStorage.setItem("idToken", response.idToken);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agilemotion/oui-react-js",
3
- "version": "1.6.6",
3
+ "version": "1.6.8",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -34,6 +34,8 @@
34
34
  "install": "^0.13.0",
35
35
  "jquery": "^3.6.0",
36
36
  "js-base64": "^3.6.0",
37
+ "linkify-react": "^4.1.3",
38
+ "linkifyjs": "^4.1.3",
37
39
  "mammoth": "^1.8.0",
38
40
  "material-ui": "^0.20.2",
39
41
  "mediasoup-client": "^3.7.14",