sceyt-chat-react-uikit 1.6.3 → 1.6.4
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/components/Message/MessageBody/index.d.ts +2 -1
- package/index.js +117 -115
- package/index.modern.js +117 -115
- package/package.json +1 -1
package/index.modern.js
CHANGED
|
@@ -7822,7 +7822,7 @@ var downloadFile = function downloadFile(attachment, download, done, progressCal
|
|
|
7822
7822
|
}();
|
|
7823
7823
|
if (_temp && _temp.then) return _temp.then(function () {});
|
|
7824
7824
|
}, function (e) {
|
|
7825
|
-
log.
|
|
7825
|
+
log.error('error on download... ', e);
|
|
7826
7826
|
if (done) {
|
|
7827
7827
|
done(attachment.id || '', true);
|
|
7828
7828
|
}
|
|
@@ -11413,7 +11413,7 @@ var MessageTextFormat = function MessageTextFormat(_ref2) {
|
|
|
11413
11413
|
}, "" + text.slice(attributeOffset, attributeOffset + attribute.length))), index === combinedAttributesList.length - 1 ? secondPart : '');
|
|
11414
11414
|
}
|
|
11415
11415
|
} catch (e) {
|
|
11416
|
-
log.
|
|
11416
|
+
log.error('Error on format message text, message: ', message, 'error: ', e);
|
|
11417
11417
|
}
|
|
11418
11418
|
});
|
|
11419
11419
|
} else {
|
|
@@ -11424,7 +11424,7 @@ var MessageTextFormat = function MessageTextFormat(_ref2) {
|
|
|
11424
11424
|
}
|
|
11425
11425
|
return messageText.length > 1 ? asSampleText ? messageText.join('') : messageText : text;
|
|
11426
11426
|
} catch (e) {
|
|
11427
|
-
log.
|
|
11427
|
+
log.error(' failed to format message .>>> ', e);
|
|
11428
11428
|
log.info('message: ', message);
|
|
11429
11429
|
return text;
|
|
11430
11430
|
}
|
|
@@ -11621,7 +11621,7 @@ function watchForEvents() {
|
|
|
11621
11621
|
});
|
|
11622
11622
|
};
|
|
11623
11623
|
channelListener.onTotalUnreadCountUpdated = function (unreadChannels, totalUnread, channel, channelUnreadCount, channelUnreadMentions, channelUnreadReactions) {
|
|
11624
|
-
if (shouldSkip(channel)) return;
|
|
11624
|
+
if (channel && shouldSkip(channel)) return;
|
|
11625
11625
|
emitter({
|
|
11626
11626
|
type: CHANNEL_EVENT_TYPES.UNREAD_MESSAGES_INFO,
|
|
11627
11627
|
args: {
|
|
@@ -12721,7 +12721,7 @@ function watchForEvents() {
|
|
|
12721
12721
|
case 421:
|
|
12722
12722
|
return _context.abrupt("break", 423);
|
|
12723
12723
|
case 422:
|
|
12724
|
-
|
|
12724
|
+
log.warn('UNHANDLED EVENT FROM REDUX-SAGA EVENT-CHANNEL');
|
|
12725
12725
|
case 423:
|
|
12726
12726
|
case "end":
|
|
12727
12727
|
return _context.stop();
|
|
@@ -13015,7 +13015,7 @@ function createChannel(action) {
|
|
|
13015
13015
|
case 53:
|
|
13016
13016
|
_context.prev = 53;
|
|
13017
13017
|
_context.t0 = _context["catch"](0);
|
|
13018
|
-
log.
|
|
13018
|
+
log.error(_context.t0, 'Error on create channel');
|
|
13019
13019
|
case 56:
|
|
13020
13020
|
case "end":
|
|
13021
13021
|
return _context.stop();
|
|
@@ -13102,7 +13102,7 @@ function getChannels(action) {
|
|
|
13102
13102
|
channelMessageMap[channel.id] = messages[0];
|
|
13103
13103
|
resolve(true);
|
|
13104
13104
|
})["catch"](function (e) {
|
|
13105
|
-
log.
|
|
13105
|
+
log.error(e, 'Error on getMessagesById');
|
|
13106
13106
|
resolve(true);
|
|
13107
13107
|
});
|
|
13108
13108
|
}));
|
|
@@ -13150,7 +13150,7 @@ function getChannels(action) {
|
|
|
13150
13150
|
allChannelsQueryBuilder = new SceytChatClient.ChannelListQueryBuilder();
|
|
13151
13151
|
allChannelsQueryBuilder.order('lastMessage');
|
|
13152
13152
|
if (channelTypesFilter !== null && channelTypesFilter !== void 0 && channelTypesFilter.length) {
|
|
13153
|
-
|
|
13153
|
+
allChannelsQueryBuilder.types(channelTypesFilter);
|
|
13154
13154
|
}
|
|
13155
13155
|
allChannelsQueryBuilder.limit(50);
|
|
13156
13156
|
_context2.next = 65;
|
|
@@ -13181,7 +13181,7 @@ function getChannels(action) {
|
|
|
13181
13181
|
case 79:
|
|
13182
13182
|
_context2.prev = 79;
|
|
13183
13183
|
_context2.t1 = _context2["catch"](70);
|
|
13184
|
-
log.
|
|
13184
|
+
log.error(_context2.t1, 'Error on get all channels');
|
|
13185
13185
|
case 82:
|
|
13186
13186
|
i++;
|
|
13187
13187
|
_context2.next = 68;
|
|
@@ -13192,7 +13192,7 @@ function getChannels(action) {
|
|
|
13192
13192
|
case 87:
|
|
13193
13193
|
_context2.prev = 87;
|
|
13194
13194
|
_context2.t2 = _context2["catch"](0);
|
|
13195
|
-
log.
|
|
13195
|
+
log.error(_context2.t2, 'Error on get channels');
|
|
13196
13196
|
case 91:
|
|
13197
13197
|
case "end":
|
|
13198
13198
|
return _context2.stop();
|
|
@@ -13309,7 +13309,7 @@ function searchChannels(action) {
|
|
|
13309
13309
|
case 44:
|
|
13310
13310
|
_context3.prev = 44;
|
|
13311
13311
|
_context3.t0 = _context3["catch"](0);
|
|
13312
|
-
log.
|
|
13312
|
+
log.error(_context3.t0, 'Error on get channels');
|
|
13313
13313
|
case 48:
|
|
13314
13314
|
case "end":
|
|
13315
13315
|
return _context3.stop();
|
|
@@ -13369,7 +13369,7 @@ function getChannelsForForward() {
|
|
|
13369
13369
|
case 29:
|
|
13370
13370
|
_context4.prev = 29;
|
|
13371
13371
|
_context4.t0 = _context4["catch"](0);
|
|
13372
|
-
log.
|
|
13372
|
+
log.error(_context4.t0, 'Error on get for forward channels');
|
|
13373
13373
|
case 33:
|
|
13374
13374
|
case "end":
|
|
13375
13375
|
return _context4.stop();
|
|
@@ -13485,7 +13485,7 @@ function searchChannelsForForward(action) {
|
|
|
13485
13485
|
case 43:
|
|
13486
13486
|
_context5.prev = 43;
|
|
13487
13487
|
_context5.t0 = _context5["catch"](0);
|
|
13488
|
-
log.
|
|
13488
|
+
log.error(_context5.t0, 'Error on get channels');
|
|
13489
13489
|
case 47:
|
|
13490
13490
|
case "end":
|
|
13491
13491
|
return _context5.stop();
|
|
@@ -13535,7 +13535,7 @@ function channelsLoadMore(action) {
|
|
|
13535
13535
|
channelMessageMap[channel.id] = messages[0];
|
|
13536
13536
|
resolve(true);
|
|
13537
13537
|
})["catch"](function (e) {
|
|
13538
|
-
log.
|
|
13538
|
+
log.error(e, 'Error on getMessagesById');
|
|
13539
13539
|
resolve(true);
|
|
13540
13540
|
});
|
|
13541
13541
|
}));
|
|
@@ -13566,7 +13566,7 @@ function channelsLoadMore(action) {
|
|
|
13566
13566
|
case 28:
|
|
13567
13567
|
_context6.prev = 28;
|
|
13568
13568
|
_context6.t0 = _context6["catch"](0);
|
|
13569
|
-
log.
|
|
13569
|
+
log.error(_context6.t0, 'Error in load more channels');
|
|
13570
13570
|
case 31:
|
|
13571
13571
|
case "end":
|
|
13572
13572
|
return _context6.stop();
|
|
@@ -13617,7 +13617,7 @@ function channelsForForwardLoadMore(action) {
|
|
|
13617
13617
|
case 24:
|
|
13618
13618
|
_context7.prev = 24;
|
|
13619
13619
|
_context7.t0 = _context7["catch"](0);
|
|
13620
|
-
log.
|
|
13620
|
+
log.error(_context7.t0, 'Error in load more channels for forward');
|
|
13621
13621
|
case 27:
|
|
13622
13622
|
case "end":
|
|
13623
13623
|
return _context7.stop();
|
|
@@ -13691,7 +13691,7 @@ function markMessagesRead(action) {
|
|
|
13691
13691
|
case 26:
|
|
13692
13692
|
_context8.prev = 26;
|
|
13693
13693
|
_context8.t0 = _context8["catch"](5);
|
|
13694
|
-
log.
|
|
13694
|
+
log.error(_context8.t0, 'Error on mark messages read');
|
|
13695
13695
|
case 29:
|
|
13696
13696
|
case "end":
|
|
13697
13697
|
return _context8.stop();
|
|
@@ -13729,7 +13729,7 @@ function markMessagesDelivered(action) {
|
|
|
13729
13729
|
case 13:
|
|
13730
13730
|
_context9.prev = 13;
|
|
13731
13731
|
_context9.t0 = _context9["catch"](2);
|
|
13732
|
-
log.
|
|
13732
|
+
log.error(_context9.t0, 'Error on mark messages delivered');
|
|
13733
13733
|
case 16:
|
|
13734
13734
|
case "end":
|
|
13735
13735
|
return _context9.stop();
|
|
@@ -13811,7 +13811,7 @@ function switchChannel(action) {
|
|
|
13811
13811
|
case 44:
|
|
13812
13812
|
_context10.prev = 44;
|
|
13813
13813
|
_context10.t0 = _context10["catch"](0);
|
|
13814
|
-
log.
|
|
13814
|
+
log.error('error in switch channel', _context10.t0);
|
|
13815
13815
|
case 47:
|
|
13816
13816
|
case "end":
|
|
13817
13817
|
return _context10.stop();
|
|
@@ -13852,7 +13852,7 @@ function notificationsTurnOff(action) {
|
|
|
13852
13852
|
case 16:
|
|
13853
13853
|
_context11.prev = 16;
|
|
13854
13854
|
_context11.t0 = _context11["catch"](7);
|
|
13855
|
-
log.
|
|
13855
|
+
log.error('ERROR turn off notifications', _context11.t0.message);
|
|
13856
13856
|
case 19:
|
|
13857
13857
|
case "end":
|
|
13858
13858
|
return _context11.stop();
|
|
@@ -13892,7 +13892,7 @@ function notificationsTurnOn() {
|
|
|
13892
13892
|
case 15:
|
|
13893
13893
|
_context12.prev = 15;
|
|
13894
13894
|
_context12.t0 = _context12["catch"](6);
|
|
13895
|
-
log.
|
|
13895
|
+
log.error('ERROR turn on notifications: ', _context12.t0.message);
|
|
13896
13896
|
case 18:
|
|
13897
13897
|
case "end":
|
|
13898
13898
|
return _context12.stop();
|
|
@@ -13930,7 +13930,7 @@ function markChannelAsRead(action) {
|
|
|
13930
13930
|
case 14:
|
|
13931
13931
|
_context13.prev = 14;
|
|
13932
13932
|
_context13.t0 = _context13["catch"](0);
|
|
13933
|
-
log.
|
|
13933
|
+
log.error(_context13.t0, 'Error in set channel unread');
|
|
13934
13934
|
case 17:
|
|
13935
13935
|
case "end":
|
|
13936
13936
|
return _context13.stop();
|
|
@@ -13967,7 +13967,7 @@ function markChannelAsUnRead(action) {
|
|
|
13967
13967
|
case 13:
|
|
13968
13968
|
_context14.prev = 13;
|
|
13969
13969
|
_context14.t0 = _context14["catch"](0);
|
|
13970
|
-
log.
|
|
13970
|
+
log.error(_context14.t0, 'Error in set channel unread');
|
|
13971
13971
|
case 16:
|
|
13972
13972
|
case "end":
|
|
13973
13973
|
return _context14.stop();
|
|
@@ -14005,7 +14005,7 @@ function pinChannel(action) {
|
|
|
14005
14005
|
case 14:
|
|
14006
14006
|
_context15.prev = 14;
|
|
14007
14007
|
_context15.t0 = _context15["catch"](0);
|
|
14008
|
-
log.
|
|
14008
|
+
log.error(_context15.t0, 'Error in pinChannel');
|
|
14009
14009
|
case 17:
|
|
14010
14010
|
case "end":
|
|
14011
14011
|
return _context15.stop();
|
|
@@ -14043,7 +14043,7 @@ function unpinChannel(action) {
|
|
|
14043
14043
|
case 14:
|
|
14044
14044
|
_context16.prev = 14;
|
|
14045
14045
|
_context16.t0 = _context16["catch"](0);
|
|
14046
|
-
log.
|
|
14046
|
+
log.error(_context16.t0, 'Error in unpinChannel');
|
|
14047
14047
|
case 17:
|
|
14048
14048
|
case "end":
|
|
14049
14049
|
return _context16.stop();
|
|
@@ -14129,7 +14129,7 @@ function leaveChannel(action) {
|
|
|
14129
14129
|
case 26:
|
|
14130
14130
|
_context18.prev = 26;
|
|
14131
14131
|
_context18.t0 = _context18["catch"](0);
|
|
14132
|
-
log.
|
|
14132
|
+
log.error('ERROR in leave channel - ', _context18.t0.message);
|
|
14133
14133
|
case 29:
|
|
14134
14134
|
case "end":
|
|
14135
14135
|
return _context18.stop();
|
|
@@ -14172,7 +14172,7 @@ function deleteChannel(action) {
|
|
|
14172
14172
|
case 18:
|
|
14173
14173
|
_context19.prev = 18;
|
|
14174
14174
|
_context19.t0 = _context19["catch"](0);
|
|
14175
|
-
log.
|
|
14175
|
+
log.error('ERROR in delete channel', _context19.t0);
|
|
14176
14176
|
case 21:
|
|
14177
14177
|
case "end":
|
|
14178
14178
|
return _context19.stop();
|
|
@@ -14212,7 +14212,7 @@ function blockChannel(action) {
|
|
|
14212
14212
|
case 16:
|
|
14213
14213
|
_context20.prev = 16;
|
|
14214
14214
|
_context20.t0 = _context20["catch"](0);
|
|
14215
|
-
log.
|
|
14215
|
+
log.error('ERROR in block channel - ', _context20.t0.message);
|
|
14216
14216
|
case 19:
|
|
14217
14217
|
case "end":
|
|
14218
14218
|
return _context20.stop();
|
|
@@ -14289,7 +14289,7 @@ function updateChannel(action) {
|
|
|
14289
14289
|
case 28:
|
|
14290
14290
|
_context21.prev = 28;
|
|
14291
14291
|
_context21.t0 = _context21["catch"](0);
|
|
14292
|
-
log.
|
|
14292
|
+
log.error('ERROR in update channel', _context21.t0.message);
|
|
14293
14293
|
case 31:
|
|
14294
14294
|
case "end":
|
|
14295
14295
|
return _context21.stop();
|
|
@@ -14336,7 +14336,7 @@ function checkUsersStatus() {
|
|
|
14336
14336
|
case 19:
|
|
14337
14337
|
_context22.prev = 19;
|
|
14338
14338
|
_context22.t0 = _context22["catch"](0);
|
|
14339
|
-
log.
|
|
14339
|
+
log.error('ERROR in check user status : ', _context22.t0.message);
|
|
14340
14340
|
case 22:
|
|
14341
14341
|
case "end":
|
|
14342
14342
|
return _context22.stop();
|
|
@@ -14380,7 +14380,7 @@ function sendTyping(action) {
|
|
|
14380
14380
|
case 18:
|
|
14381
14381
|
_context23.prev = 18;
|
|
14382
14382
|
_context23.t0 = _context23["catch"](7);
|
|
14383
|
-
log.
|
|
14383
|
+
log.error('ERROR in send typing', _context23.t0);
|
|
14384
14384
|
case 21:
|
|
14385
14385
|
case "end":
|
|
14386
14386
|
return _context23.stop();
|
|
@@ -14448,7 +14448,7 @@ function clearHistory(action) {
|
|
|
14448
14448
|
case 27:
|
|
14449
14449
|
_context24.prev = 27;
|
|
14450
14450
|
_context24.t0 = _context24["catch"](0);
|
|
14451
|
-
log.
|
|
14451
|
+
log.error('ERROR in clear history', _context24.t0);
|
|
14452
14452
|
case 30:
|
|
14453
14453
|
case "end":
|
|
14454
14454
|
return _context24.stop();
|
|
@@ -14519,7 +14519,7 @@ function deleteAllMessages(action) {
|
|
|
14519
14519
|
case 28:
|
|
14520
14520
|
_context25.prev = 28;
|
|
14521
14521
|
_context25.t0 = _context25["catch"](0);
|
|
14522
|
-
log.
|
|
14522
|
+
log.error('ERROR in clear history', _context25.t0);
|
|
14523
14523
|
case 31:
|
|
14524
14524
|
case "end":
|
|
14525
14525
|
return _context25.stop();
|
|
@@ -14573,7 +14573,7 @@ function joinChannel(action) {
|
|
|
14573
14573
|
case 26:
|
|
14574
14574
|
_context26.prev = 26;
|
|
14575
14575
|
_context26.t0 = _context26["catch"](0);
|
|
14576
|
-
log.
|
|
14576
|
+
log.error(_context26.t0, 'Error in join to channel');
|
|
14577
14577
|
case 29:
|
|
14578
14578
|
case "end":
|
|
14579
14579
|
return _context26.stop();
|
|
@@ -15019,7 +15019,7 @@ var _setDataToDB = function setDataToDB(dbName, storeName, data, keyPath) {
|
|
|
15019
15019
|
addData(db, storeName, keyPath, data);
|
|
15020
15020
|
};
|
|
15021
15021
|
openRequest.onerror = function () {
|
|
15022
|
-
|
|
15022
|
+
log.error('Indexeddb Error ', openRequest.error);
|
|
15023
15023
|
};
|
|
15024
15024
|
openRequest.onsuccess = function (event) {
|
|
15025
15025
|
var db = event.target.result;
|
|
@@ -15081,7 +15081,7 @@ var _getDataFromDB = function getDataFromDB(dbName, storeName, keyPath, keyPatNa
|
|
|
15081
15081
|
};
|
|
15082
15082
|
request.onerror = function (event) {
|
|
15083
15083
|
db.close();
|
|
15084
|
-
|
|
15084
|
+
log.error('Error retrieving data: ', event.target.error);
|
|
15085
15085
|
};
|
|
15086
15086
|
} else {
|
|
15087
15087
|
db.close();
|
|
@@ -15658,7 +15658,7 @@ function sendMessage(action) {
|
|
|
15658
15658
|
case 49:
|
|
15659
15659
|
_context2.prev = 49;
|
|
15660
15660
|
_context2.t0 = _context2["catch"](2);
|
|
15661
|
-
log.
|
|
15661
|
+
log.error('Error on uploading attachment', message.tid, _context2.t0);
|
|
15662
15662
|
_context2.next = 54;
|
|
15663
15663
|
return put(updateAttachmentUploadingStateAC(UPLOAD_STATE.FAIL, message.tid));
|
|
15664
15664
|
case 54:
|
|
@@ -15698,7 +15698,7 @@ function sendMessage(action) {
|
|
|
15698
15698
|
case 80:
|
|
15699
15699
|
_context3.prev = 80;
|
|
15700
15700
|
_context3.t2 = _context3["catch"](2);
|
|
15701
|
-
log.
|
|
15701
|
+
log.error('error on send message ... ', _context3.t2);
|
|
15702
15702
|
case 83:
|
|
15703
15703
|
case "end":
|
|
15704
15704
|
return _context3.stop();
|
|
@@ -15880,7 +15880,7 @@ function sendTextMessage(action) {
|
|
|
15880
15880
|
case 82:
|
|
15881
15881
|
_context4.prev = 82;
|
|
15882
15882
|
_context4.t0 = _context4["catch"](8);
|
|
15883
|
-
log.
|
|
15883
|
+
log.error('error on send text message ... ', _context4.t0);
|
|
15884
15884
|
updateMessageOnMap(channel.id, {
|
|
15885
15885
|
messageId: sendMessageTid,
|
|
15886
15886
|
params: {
|
|
@@ -16075,7 +16075,7 @@ function forwardMessage(action) {
|
|
|
16075
16075
|
case 73:
|
|
16076
16076
|
_context5.prev = 73;
|
|
16077
16077
|
_context5.t0 = _context5["catch"](0);
|
|
16078
|
-
log.
|
|
16078
|
+
log.error('error on forward message ... ', _context5.t0);
|
|
16079
16079
|
case 76:
|
|
16080
16080
|
_context5.next = 78;
|
|
16081
16081
|
return put(setMessagesLoadingStateAC(LOADING_STATE.LOADED));
|
|
@@ -16284,7 +16284,7 @@ function resendMessage(action) {
|
|
|
16284
16284
|
case 85:
|
|
16285
16285
|
_context6.prev = 85;
|
|
16286
16286
|
_context6.t0 = _context6["catch"](29);
|
|
16287
|
-
log.
|
|
16287
|
+
log.error('fail upload attachment on resend message ... ', _context6.t0);
|
|
16288
16288
|
_context6.next = 90;
|
|
16289
16289
|
return put(updateAttachmentUploadingStateAC(UPLOAD_STATE.FAIL, messageAttachment.tid));
|
|
16290
16290
|
case 90:
|
|
@@ -16374,7 +16374,7 @@ function resendMessage(action) {
|
|
|
16374
16374
|
case 125:
|
|
16375
16375
|
_context6.prev = 125;
|
|
16376
16376
|
_context6.t1 = _context6["catch"](7);
|
|
16377
|
-
log.
|
|
16377
|
+
log.error('ERROR in resend message', _context6.t1.message, 'channel.. . ', channel);
|
|
16378
16378
|
_context6.next = 130;
|
|
16379
16379
|
return put(updateMessageAC(message.tid, {
|
|
16380
16380
|
state: MESSAGE_STATUS.FAILED
|
|
@@ -16443,7 +16443,7 @@ function deleteMessage(action) {
|
|
|
16443
16443
|
case 22:
|
|
16444
16444
|
_context7.prev = 22;
|
|
16445
16445
|
_context7.t0 = _context7["catch"](0);
|
|
16446
|
-
log.
|
|
16446
|
+
log.error('ERROR in delete message', _context7.t0.message);
|
|
16447
16447
|
case 25:
|
|
16448
16448
|
case "end":
|
|
16449
16449
|
return _context7.stop();
|
|
@@ -16501,7 +16501,7 @@ function editMessage(action) {
|
|
|
16501
16501
|
case 21:
|
|
16502
16502
|
_context8.prev = 21;
|
|
16503
16503
|
_context8.t0 = _context8["catch"](0);
|
|
16504
|
-
log.
|
|
16504
|
+
log.error('ERROR in edit message', _context8.t0.message);
|
|
16505
16505
|
case 24:
|
|
16506
16506
|
case "end":
|
|
16507
16507
|
return _context8.stop();
|
|
@@ -16830,7 +16830,7 @@ function getMessagesQuery(action) {
|
|
|
16830
16830
|
case 177:
|
|
16831
16831
|
_context9.prev = 177;
|
|
16832
16832
|
_context9.t0 = _context9["catch"](0);
|
|
16833
|
-
log.
|
|
16833
|
+
log.error('error in message query', _context9.t0);
|
|
16834
16834
|
case 180:
|
|
16835
16835
|
case "end":
|
|
16836
16836
|
return _context9.stop();
|
|
@@ -16939,7 +16939,7 @@ function loadMoreMessages(action) {
|
|
|
16939
16939
|
case 55:
|
|
16940
16940
|
_context10.prev = 55;
|
|
16941
16941
|
_context10.t0 = _context10["catch"](0);
|
|
16942
|
-
log.
|
|
16942
|
+
log.error('error in load more messages', _context10.t0);
|
|
16943
16943
|
case 58:
|
|
16944
16944
|
case "end":
|
|
16945
16945
|
return _context10.stop();
|
|
@@ -17001,7 +17001,7 @@ function addReaction(action) {
|
|
|
17001
17001
|
case 28:
|
|
17002
17002
|
_context11.prev = 28;
|
|
17003
17003
|
_context11.t0 = _context11["catch"](0);
|
|
17004
|
-
log.
|
|
17004
|
+
log.error('ERROR in add reaction', _context11.t0.message);
|
|
17005
17005
|
case 31:
|
|
17006
17006
|
case "end":
|
|
17007
17007
|
return _context11.stop();
|
|
@@ -17059,7 +17059,7 @@ function deleteReaction(action) {
|
|
|
17059
17059
|
case 26:
|
|
17060
17060
|
_context12.prev = 26;
|
|
17061
17061
|
_context12.t0 = _context12["catch"](0);
|
|
17062
|
-
log.
|
|
17062
|
+
log.error('ERROR in delete reaction', _context12.t0.message);
|
|
17063
17063
|
case 29:
|
|
17064
17064
|
case "end":
|
|
17065
17065
|
return _context12.stop();
|
|
@@ -17103,7 +17103,7 @@ function getReactions(action) {
|
|
|
17103
17103
|
case 22:
|
|
17104
17104
|
_context13.prev = 22;
|
|
17105
17105
|
_context13.t0 = _context13["catch"](0);
|
|
17106
|
-
log.
|
|
17106
|
+
log.error('ERROR in get reactions', _context13.t0.message);
|
|
17107
17107
|
case 25:
|
|
17108
17108
|
case "end":
|
|
17109
17109
|
return _context13.stop();
|
|
@@ -17140,7 +17140,7 @@ function loadMoreReactions(action) {
|
|
|
17140
17140
|
case 16:
|
|
17141
17141
|
_context14.prev = 16;
|
|
17142
17142
|
_context14.t0 = _context14["catch"](0);
|
|
17143
|
-
log.
|
|
17143
|
+
log.error('ERROR in load more reactions', _context14.t0.message);
|
|
17144
17144
|
case 19:
|
|
17145
17145
|
case "end":
|
|
17146
17146
|
return _context14.stop();
|
|
@@ -17227,7 +17227,7 @@ function getMessageAttachments(action) {
|
|
|
17227
17227
|
case 41:
|
|
17228
17228
|
_context15.prev = 41;
|
|
17229
17229
|
_context15.t0 = _context15["catch"](0);
|
|
17230
|
-
log.
|
|
17230
|
+
log.error('error in message attachment query', _context15.t0);
|
|
17231
17231
|
case 44:
|
|
17232
17232
|
case "end":
|
|
17233
17233
|
return _context15.stop();
|
|
@@ -17280,7 +17280,7 @@ function loadMoreMessageAttachments(action) {
|
|
|
17280
17280
|
case 24:
|
|
17281
17281
|
_context16.prev = 24;
|
|
17282
17282
|
_context16.t0 = _context16["catch"](0);
|
|
17283
|
-
log.
|
|
17283
|
+
log.error('error in message attachment query', _context16.t0);
|
|
17284
17284
|
case 28:
|
|
17285
17285
|
case "end":
|
|
17286
17286
|
return _context16.stop();
|
|
@@ -17311,7 +17311,7 @@ function pauseAttachmentUploading(action) {
|
|
|
17311
17311
|
case 9:
|
|
17312
17312
|
_context17.prev = 9;
|
|
17313
17313
|
_context17.t0 = _context17["catch"](0);
|
|
17314
|
-
log.
|
|
17314
|
+
log.error('error in pause attachment uploading', _context17.t0);
|
|
17315
17315
|
case 13:
|
|
17316
17316
|
case "end":
|
|
17317
17317
|
return _context17.stop();
|
|
@@ -17343,7 +17343,7 @@ function resumeAttachmentUploading(action) {
|
|
|
17343
17343
|
case 10:
|
|
17344
17344
|
_context18.prev = 10;
|
|
17345
17345
|
_context18.t0 = _context18["catch"](0);
|
|
17346
|
-
log.
|
|
17346
|
+
log.error('error in resume attachment uploading', _context18.t0);
|
|
17347
17347
|
case 14:
|
|
17348
17348
|
case "end":
|
|
17349
17349
|
return _context18.stop();
|
|
@@ -17452,7 +17452,7 @@ function getMembers(action) {
|
|
|
17452
17452
|
case 22:
|
|
17453
17453
|
_context.prev = 22;
|
|
17454
17454
|
_context.t0 = _context["catch"](0);
|
|
17455
|
-
log.
|
|
17455
|
+
log.error('ERROR in get members - ', _context.t0.message);
|
|
17456
17456
|
case 26:
|
|
17457
17457
|
case "end":
|
|
17458
17458
|
return _context.stop();
|
|
@@ -17556,7 +17556,7 @@ function addMembers(action) {
|
|
|
17556
17556
|
case 24:
|
|
17557
17557
|
_context3.prev = 24;
|
|
17558
17558
|
_context3.t0 = _context3["catch"](0);
|
|
17559
|
-
log.
|
|
17559
|
+
log.error('error on add members... ', _context3.t0);
|
|
17560
17560
|
case 27:
|
|
17561
17561
|
case "end":
|
|
17562
17562
|
return _context3.stop();
|
|
@@ -17683,7 +17683,7 @@ function changeMemberRole(action) {
|
|
|
17683
17683
|
case 13:
|
|
17684
17684
|
_context6.prev = 13;
|
|
17685
17685
|
_context6.t0 = _context6["catch"](0);
|
|
17686
|
-
log.
|
|
17686
|
+
log.error('error in change member role', _context6.t0);
|
|
17687
17687
|
case 16:
|
|
17688
17688
|
case "end":
|
|
17689
17689
|
return _context6.stop();
|
|
@@ -17706,7 +17706,7 @@ function reportMember(action) {
|
|
|
17706
17706
|
case 7:
|
|
17707
17707
|
_context7.prev = 7;
|
|
17708
17708
|
_context7.t0 = _context7["catch"](2);
|
|
17709
|
-
log.
|
|
17709
|
+
log.error('ERROR report user', _context7.t0.message);
|
|
17710
17710
|
case 10:
|
|
17711
17711
|
case "end":
|
|
17712
17712
|
return _context7.stop();
|
|
@@ -17736,7 +17736,7 @@ function getRoles(action) {
|
|
|
17736
17736
|
case 12:
|
|
17737
17737
|
_context8.prev = 12;
|
|
17738
17738
|
_context8.t0 = _context8["catch"](1);
|
|
17739
|
-
log.
|
|
17739
|
+
log.error('ERROR get roles', _context8.t0);
|
|
17740
17740
|
_context8.next = 17;
|
|
17741
17741
|
return put(getRolesFailAC((timeout || 0) + 300, (attempts || 0) + 1));
|
|
17742
17742
|
case 17:
|
|
@@ -17808,7 +17808,7 @@ function getContacts() {
|
|
|
17808
17808
|
case 11:
|
|
17809
17809
|
_context.prev = 11;
|
|
17810
17810
|
_context.t0 = _context["catch"](0);
|
|
17811
|
-
log.
|
|
17811
|
+
log.error('ERROR in get contacts - :', _context.t0.message);
|
|
17812
17812
|
case 15:
|
|
17813
17813
|
case "end":
|
|
17814
17814
|
return _context.stop();
|
|
@@ -17870,7 +17870,7 @@ function blockUser(action) {
|
|
|
17870
17870
|
case 21:
|
|
17871
17871
|
_context2.prev = 21;
|
|
17872
17872
|
_context2.t0 = _context2["catch"](0);
|
|
17873
|
-
log.
|
|
17873
|
+
log.error('error in block users', _context2.t0.message);
|
|
17874
17874
|
case 24:
|
|
17875
17875
|
case "end":
|
|
17876
17876
|
return _context2.stop();
|
|
@@ -17932,7 +17932,7 @@ function unblockUser(action) {
|
|
|
17932
17932
|
case 21:
|
|
17933
17933
|
_context3.prev = 21;
|
|
17934
17934
|
_context3.t0 = _context3["catch"](0);
|
|
17935
|
-
log.
|
|
17935
|
+
log.error('error in unblock users', _context3.t0.message);
|
|
17936
17936
|
case 24:
|
|
17937
17937
|
case "end":
|
|
17938
17938
|
return _context3.stop();
|
|
@@ -17991,7 +17991,7 @@ function updateProfile(action) {
|
|
|
17991
17991
|
case 23:
|
|
17992
17992
|
_context4.prev = 23;
|
|
17993
17993
|
_context4.t0 = _context4["catch"](0);
|
|
17994
|
-
log.
|
|
17994
|
+
log.error(_context4.t0, 'Error on update user');
|
|
17995
17995
|
case 26:
|
|
17996
17996
|
case "end":
|
|
17997
17997
|
return _context4.stop();
|
|
@@ -18060,7 +18060,7 @@ function getUsers(action) {
|
|
|
18060
18060
|
case 31:
|
|
18061
18061
|
_context5.prev = 31;
|
|
18062
18062
|
_context5.t0 = _context5["catch"](0);
|
|
18063
|
-
log.
|
|
18063
|
+
log.error('ERROR on get users', _context5.t0.message);
|
|
18064
18064
|
case 35:
|
|
18065
18065
|
case "end":
|
|
18066
18066
|
return _context5.stop();
|
|
@@ -18098,7 +18098,7 @@ function loadMoreUsers(action) {
|
|
|
18098
18098
|
case 17:
|
|
18099
18099
|
_context6.prev = 17;
|
|
18100
18100
|
_context6.t0 = _context6["catch"](0);
|
|
18101
|
-
log.
|
|
18101
|
+
log.error('ERROR load more users', _context6.t0.message);
|
|
18102
18102
|
case 21:
|
|
18103
18103
|
case "end":
|
|
18104
18104
|
return _context6.stop();
|
|
@@ -18490,7 +18490,7 @@ var SceytChat = function SceytChat(_ref) {
|
|
|
18490
18490
|
});
|
|
18491
18491
|
}
|
|
18492
18492
|
} catch (e) {
|
|
18493
|
-
|
|
18493
|
+
log.error('safari Notification request permission', e);
|
|
18494
18494
|
}
|
|
18495
18495
|
window.sceytTabNotifications = null;
|
|
18496
18496
|
window.sceytTabUrl = window.location.href;
|
|
@@ -20117,7 +20117,7 @@ var ImageCrop = function ImageCrop(_ref) {
|
|
|
20117
20117
|
handleClosePopup(true);
|
|
20118
20118
|
});
|
|
20119
20119
|
}, function (e) {
|
|
20120
|
-
|
|
20120
|
+
log.error(e);
|
|
20121
20121
|
});
|
|
20122
20122
|
return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
|
|
20123
20123
|
} catch (e) {
|
|
@@ -22262,7 +22262,7 @@ var setAttachmentToCache = function setAttachmentToCache(attachmentUrl, attachme
|
|
|
22262
22262
|
var getAttachmentUrlFromCache = function getAttachmentUrlFromCache(attachmentUrl) {
|
|
22263
22263
|
try {
|
|
22264
22264
|
if (!cacheAvailable) {
|
|
22265
|
-
|
|
22265
|
+
log.error('Cache is not available');
|
|
22266
22266
|
return Promise.reject(new Error('Cache not available'));
|
|
22267
22267
|
}
|
|
22268
22268
|
return Promise.resolve(caches.match(attachmentUrl)).then(function (response) {
|
|
@@ -23371,7 +23371,7 @@ var SliderPopup = function SliderPopup(_ref) {
|
|
|
23371
23371
|
}
|
|
23372
23372
|
}
|
|
23373
23373
|
})["catch"](function (e) {
|
|
23374
|
-
return log.
|
|
23374
|
+
return log.error(e);
|
|
23375
23375
|
});
|
|
23376
23376
|
}
|
|
23377
23377
|
}, [currentFile]);
|
|
@@ -25012,8 +25012,8 @@ var AudioPlayer = function AudioPlayer(_ref) {
|
|
|
25012
25012
|
setIsRendered(true);
|
|
25013
25013
|
}
|
|
25014
25014
|
});
|
|
25015
|
-
}, function () {
|
|
25016
|
-
log.
|
|
25015
|
+
}, function (e) {
|
|
25016
|
+
log.error('Failed to init wavesurfer', e);
|
|
25017
25017
|
});
|
|
25018
25018
|
return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
|
|
25019
25019
|
} catch (e) {
|
|
@@ -25142,7 +25142,7 @@ var Attachment = function Attachment(_ref) {
|
|
|
25142
25142
|
attachmentThumb = attachment.metadata && attachment.metadata.tmb;
|
|
25143
25143
|
}
|
|
25144
25144
|
} catch (e) {
|
|
25145
|
-
log.
|
|
25145
|
+
log.error('error on get attachmentThumb', e);
|
|
25146
25146
|
}
|
|
25147
25147
|
}
|
|
25148
25148
|
var downloadImage = function downloadImage(url) {
|
|
@@ -25153,7 +25153,7 @@ var Attachment = function Attachment(_ref) {
|
|
|
25153
25153
|
setDownloadingFile(false);
|
|
25154
25154
|
};
|
|
25155
25155
|
image.onerror = function () {
|
|
25156
|
-
|
|
25156
|
+
log.error('Error on download image', url);
|
|
25157
25157
|
};
|
|
25158
25158
|
};
|
|
25159
25159
|
var handlePauseResumeDownload = function handlePauseResumeDownload(e) {
|
|
@@ -26934,7 +26934,8 @@ var MessageBody = function MessageBody(_ref) {
|
|
|
26934
26934
|
handleMouseEnter = _ref.handleMouseEnter,
|
|
26935
26935
|
handleMouseLeave = _ref.handleMouseLeave,
|
|
26936
26936
|
handleReactionAddDelete = _ref.handleReactionAddDelete,
|
|
26937
|
-
handleCreateChat = _ref.handleCreateChat
|
|
26937
|
+
handleCreateChat = _ref.handleCreateChat,
|
|
26938
|
+
messageTextRef = _ref.messageTextRef;
|
|
26938
26939
|
var _useColor = useColors(),
|
|
26939
26940
|
accentColor = _useColor[THEME_COLORS.ACCENT],
|
|
26940
26941
|
textPrimary = _useColor[THEME_COLORS.TEXT_PRIMARY],
|
|
@@ -26944,7 +26945,6 @@ var MessageBody = function MessageBody(_ref) {
|
|
|
26944
26945
|
var ChatClient = getClient();
|
|
26945
26946
|
var user = ChatClient.user;
|
|
26946
26947
|
var getFromContacts = getShowOnlyContactUsers();
|
|
26947
|
-
var messageTextRef = useRef(null);
|
|
26948
26948
|
var messageUserID = message.user ? message.user.id : 'deleted';
|
|
26949
26949
|
var prevMessageUserID = prevMessage ? prevMessage.user ? prevMessage.user.id : 'deleted' : null;
|
|
26950
26950
|
var nextMessageUserID = nextMessage ? nextMessage.user ? nextMessage.user.id : 'deleted' : null;
|
|
@@ -27858,7 +27858,8 @@ var Message$1 = function Message(_ref) {
|
|
|
27858
27858
|
handleMouseEnter: handleMouseEnter,
|
|
27859
27859
|
handleMouseLeave: handleMouseLeave,
|
|
27860
27860
|
handleDeletePendingMessage: handleDeletePendingMessage,
|
|
27861
|
-
handleCreateChat: handleCreateChat
|
|
27861
|
+
handleCreateChat: handleCreateChat,
|
|
27862
|
+
messageTextRef: messageTextRef
|
|
27862
27863
|
})), messageStatusAndTimePosition === 'bottomOfMessage' && (messageStatusVisible || messageTimeVisible) && (/*#__PURE__*/React__default.createElement(MessageStatusAndTime$1, {
|
|
27863
27864
|
message: message,
|
|
27864
27865
|
showMessageTimeAndStatusOnlyOnHover: showMessageTimeAndStatusOnlyOnHover,
|
|
@@ -30546,7 +30547,7 @@ function EmojisPopup$1(_ref2) {
|
|
|
30546
30547
|
editor = _useLexicalComposerCo[0];
|
|
30547
30548
|
richTextEditor = editor;
|
|
30548
30549
|
} catch (e) {
|
|
30549
|
-
log.
|
|
30550
|
+
log.error('error getting editor', e);
|
|
30550
30551
|
}
|
|
30551
30552
|
var _useState = useState(false),
|
|
30552
30553
|
rendered = _useState[0],
|
|
@@ -31030,7 +31031,7 @@ var AudioRecord = function AudioRecord(_ref) {
|
|
|
31030
31031
|
}
|
|
31031
31032
|
soundAllowed(stream);
|
|
31032
31033
|
})["catch"](function (e) {
|
|
31033
|
-
|
|
31034
|
+
log.error(e);
|
|
31034
31035
|
});
|
|
31035
31036
|
}
|
|
31036
31037
|
});
|
|
@@ -31132,7 +31133,7 @@ var AudioRecord = function AudioRecord(_ref) {
|
|
|
31132
31133
|
};
|
|
31133
31134
|
reader.readAsArrayBuffer(blob);
|
|
31134
31135
|
})["catch"](function (e) {
|
|
31135
|
-
|
|
31136
|
+
log.error(e);
|
|
31136
31137
|
});
|
|
31137
31138
|
}
|
|
31138
31139
|
var handlePlayPause = function handlePlayPause() {
|
|
@@ -31224,8 +31225,8 @@ var AudioRecord = function AudioRecord(_ref) {
|
|
|
31224
31225
|
}
|
|
31225
31226
|
}();
|
|
31226
31227
|
return _temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp);
|
|
31227
|
-
}, function () {
|
|
31228
|
-
log.
|
|
31228
|
+
}, function (e) {
|
|
31229
|
+
log.error('Failed to init wavesurfer', e);
|
|
31229
31230
|
});
|
|
31230
31231
|
return Promise.resolve(_temp3 && _temp3.then ? _temp3.then(function () {}) : void 0);
|
|
31231
31232
|
} catch (e) {
|
|
@@ -31255,8 +31256,8 @@ var AudioRecord = function AudioRecord(_ref) {
|
|
|
31255
31256
|
});
|
|
31256
31257
|
setRecorder(recorder);
|
|
31257
31258
|
});
|
|
31258
|
-
}, function () {
|
|
31259
|
-
log.
|
|
31259
|
+
}, function (e) {
|
|
31260
|
+
log.error('Failed to init mic-recorder-to-mp3', e);
|
|
31260
31261
|
});
|
|
31261
31262
|
if (_temp4 && _temp4.then) return _temp4.then(function () {});
|
|
31262
31263
|
}
|
|
@@ -31345,7 +31346,7 @@ var Timer$1 = styled.div(_templateObject7$g || (_templateObject7$g = _taggedTemp
|
|
|
31345
31346
|
return props.color;
|
|
31346
31347
|
});
|
|
31347
31348
|
|
|
31348
|
-
var _templateObject$H, _templateObject2$C, _templateObject3$v, _templateObject4$r, _templateObject5$n, _templateObject6$j, _templateObject7$h, _templateObject8$f, _templateObject9$d, _templateObject10$c, _templateObject11$8, _templateObject12$5, _templateObject13$5, _templateObject14$4, _templateObject15$3, _templateObject16$2, _templateObject17$2, _templateObject18$2, _templateObject19$2, _templateObject20$1, _templateObject21$1, _templateObject22$1, _templateObject23$1, _templateObject24$1, _templateObject25$1, _templateObject26$1, _templateObject27$1, _templateObject28$1, _templateObject29$1, _templateObject30$1, _templateObject31$1, _templateObject32$1, _templateObject33$1, _templateObject34$1;
|
|
31349
|
+
var _templateObject$H, _templateObject2$C, _templateObject3$v, _templateObject4$r, _templateObject5$n, _templateObject6$j, _templateObject7$h, _templateObject8$f, _templateObject9$d, _templateObject10$c, _templateObject11$8, _templateObject12$5, _templateObject13$5, _templateObject14$4, _templateObject15$3, _templateObject16$2, _templateObject17$2, _templateObject18$2, _templateObject19$2, _templateObject20$1, _templateObject21$1, _templateObject22$1, _templateObject23$1, _templateObject24$1, _templateObject25$1, _templateObject26$1, _templateObject27$1, _templateObject28$1, _templateObject29$1, _templateObject30$1, _templateObject31$1, _templateObject32$1, _templateObject33$1, _templateObject34$1, _templateObject35$1;
|
|
31349
31350
|
function AutoFocusPlugin(_ref) {
|
|
31350
31351
|
var messageForReply = _ref.messageForReply;
|
|
31351
31352
|
var _useLexicalComposerCo = useLexicalComposerContext(),
|
|
@@ -31403,7 +31404,7 @@ function ClearEditorPlugin(_ref2) {
|
|
|
31403
31404
|
return null;
|
|
31404
31405
|
}
|
|
31405
31406
|
function onError(error) {
|
|
31406
|
-
|
|
31407
|
+
log.error(error);
|
|
31407
31408
|
}
|
|
31408
31409
|
var prevActiveChannelId;
|
|
31409
31410
|
var attachmentsUpdate = [];
|
|
@@ -32230,7 +32231,7 @@ var SendMessageInput = function SendMessageInput(_ref3) {
|
|
|
32230
32231
|
dataFromDb = _getDataFromDB;
|
|
32231
32232
|
});
|
|
32232
32233
|
}, function (e) {
|
|
32233
|
-
log.
|
|
32234
|
+
log.error('error in get data from db . . . . ', e);
|
|
32234
32235
|
});
|
|
32235
32236
|
return _temp11 && _temp11.then ? _temp11.then(_temp12) : _temp12(_temp11);
|
|
32236
32237
|
});
|
|
@@ -32658,7 +32659,7 @@ var SendMessageInput = function SendMessageInput(_ref3) {
|
|
|
32658
32659
|
isRepliedMessage: true
|
|
32659
32660
|
})) : messageForReply.attachments[0].type === attachmentTypes.file && (/*#__PURE__*/React__default.createElement(ReplyIconWrapper, {
|
|
32660
32661
|
backgroundColor: accentColor
|
|
32661
|
-
}, /*#__PURE__*/React__default.createElement(SvgChoseFile, null)))), /*#__PURE__*/React__default.createElement(
|
|
32662
|
+
}, /*#__PURE__*/React__default.createElement(SvgChoseFile, null)))), /*#__PURE__*/React__default.createElement(ReplyMessageBody$1, null, /*#__PURE__*/React__default.createElement(EditReplyMessageHeader, {
|
|
32662
32663
|
color: accentColor
|
|
32663
32664
|
}, replyMessageIcon || /*#__PURE__*/React__default.createElement(SvgReplyIcon, null), " Reply to", /*#__PURE__*/React__default.createElement(UserName$1, null, user.id === messageForReply.user.id ? user.firstName ? user.firstName + " " + user.lastName : user.id : makeUsername(contactsMap[messageForReply.user.id], messageForReply.user, getFromContacts))), messageForReply.attachments && messageForReply.attachments.length ? messageForReply.attachments[0].type === attachmentTypes.voice ? 'Voice' : messageForReply.attachments[0].type === attachmentTypes.image ? (/*#__PURE__*/React__default.createElement(TextInOneLine, null, messageForReply.body || 'Photo')) : messageForReply.attachments[0].type === attachmentTypes.video ? (/*#__PURE__*/React__default.createElement(TextInOneLine, null, messageForReply.body || 'Video')) : (/*#__PURE__*/React__default.createElement(TextInOneLine, null, messageForReply.body || 'File')) : MessageTextFormat({
|
|
32664
32665
|
text: messageForReply.body,
|
|
@@ -32861,7 +32862,7 @@ var EditReplyMessageCont = styled.div(_templateObject3$v || (_templateObject3$v
|
|
|
32861
32862
|
}, function (props) {
|
|
32862
32863
|
return props.backgroundColor;
|
|
32863
32864
|
});
|
|
32864
|
-
var EditMessageText = styled.p(_templateObject4$r || (_templateObject4$r = _taggedTemplateLiteralLoose(["\n margin: 0;\n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
|
|
32865
|
+
var EditMessageText = styled.p(_templateObject4$r || (_templateObject4$r = _taggedTemplateLiteralLoose(["\n margin: 0;\n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n word-break: break-word;\n"])));
|
|
32865
32866
|
var UploadErrorMessage = styled.p(_templateObject5$n || (_templateObject5$n = _taggedTemplateLiteralLoose(["\n margin: 0;\n position: absolute;\n top: -30px;\n color: ", ";\n"])), function (props) {
|
|
32866
32867
|
return props.color;
|
|
32867
32868
|
});
|
|
@@ -32869,10 +32870,11 @@ var CloseEditMode = styled.span(_templateObject6$j || (_templateObject6$j = _tag
|
|
|
32869
32870
|
return props.color;
|
|
32870
32871
|
});
|
|
32871
32872
|
var UserName$1 = styled.span(_templateObject7$h || (_templateObject7$h = _taggedTemplateLiteralLoose(["\n font-weight: 500;\n margin-left: 4px;\n"])));
|
|
32872
|
-
var
|
|
32873
|
+
var ReplyMessageBody$1 = styled.div(_templateObject8$f || (_templateObject8$f = _taggedTemplateLiteralLoose(["\n word-break: break-word;\n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
|
|
32874
|
+
var EditReplyMessageHeader = styled.h4(_templateObject9$d || (_templateObject9$d = _taggedTemplateLiteralLoose(["\n display: flex;\n margin: 0 0 2px;\n font-weight: 400;\n font-size: 13px;\n line-height: 16px;\n color: ", ";\n\n > svg {\n margin-right: 4px;\n width: 16px;\n height: 16px;\n }\n"])), function (props) {
|
|
32873
32875
|
return props.color;
|
|
32874
32876
|
});
|
|
32875
|
-
var AddAttachmentIcon = styled.span(
|
|
32877
|
+
var AddAttachmentIcon = styled.span(_templateObject10$c || (_templateObject10$c = _taggedTemplateLiteralLoose(["\n display: flex;\n height: ", ";\n align-items: center;\n margin: 0 8px;\n cursor: pointer;\n line-height: 13px;\n z-index: 2;\n order: ", ";\n\n > svg {\n ", ";\n width: 24px;\n }\n\n &:hover > svg {\n color: ", ";\n }\n"])), function (props) {
|
|
32876
32878
|
return props.height ? props.height + "px" : '36px';
|
|
32877
32879
|
}, function (props) {
|
|
32878
32880
|
return props.order === 0 || props.order ? props.order : 1;
|
|
@@ -32881,21 +32883,21 @@ var AddAttachmentIcon = styled.span(_templateObject9$d || (_templateObject9$d =
|
|
|
32881
32883
|
}, function (props) {
|
|
32882
32884
|
return props.hoverColor;
|
|
32883
32885
|
});
|
|
32884
|
-
var SendMessageInputContainer = styled.div(
|
|
32886
|
+
var SendMessageInputContainer = styled.div(_templateObject11$8 || (_templateObject11$8 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: flex-end;\n justify-content: space-between;\n position: relative;\n min-height: ", ";\n box-sizing: border-box;\n border-radius: ", ";\n\n & .dropdown-trigger.open {\n color: #ccc;\n\n & ", " {\n & > svg {\n color: ", ";\n }\n ;\n }\n }\n}\n"])), function (props) {
|
|
32885
32887
|
return props.minHeight || '36px';
|
|
32886
32888
|
}, function (props) {
|
|
32887
32889
|
return props.messageForReply ? '0 0 4px 4px' : '4px';
|
|
32888
32890
|
}, AddAttachmentIcon, function (props) {
|
|
32889
32891
|
return props.iconColor;
|
|
32890
32892
|
});
|
|
32891
|
-
var MessageInputWrapper = styled.div(
|
|
32893
|
+
var MessageInputWrapper = styled.div(_templateObject12$5 || (_templateObject12$5 = _taggedTemplateLiteralLoose(["\n display: flex;\n width: 100%;\n max-width: calc(100% - 50px);\n //max-width: ", ";\n //max-width: calc(100% - 110px);\n background-color: ", ";\n border-radius: ", ";\n position: relative;\n"])), function (props) {
|
|
32892
32894
|
return props.channelDetailsIsOpen ? "calc(100% - " + (props.channelDetailsIsOpen ? 362 : 0) + "px)" : '';
|
|
32893
32895
|
}, function (props) {
|
|
32894
32896
|
return props.backgroundColor;
|
|
32895
32897
|
}, function (props) {
|
|
32896
32898
|
return props.borderRadius || '18px';
|
|
32897
32899
|
});
|
|
32898
|
-
var LexicalWrapper = styled.div(
|
|
32900
|
+
var LexicalWrapper = styled.div(_templateObject13$5 || (_templateObject13$5 = _taggedTemplateLiteralLoose(["\n position: relative;\n width: 100%;\n\n & .rich_text_editor {\n width: 100%;\n max-height: 80px;\n min-height: 20px;\n display: block;\n border: none;\n box-sizing: border-box;\n outline: none !important;\n overflow: auto;\n border-radius: ", ";\n background-color: ", ";\n padding: ", ";\n color: ", ";\n order: ", ";\n\n & p {\n font-size: 15px;\n line-height: 20px;\n color: ", ";\n }\n\n &::selection {\n background-color: ", ";\n }\n\n & *::selection {\n background-color: ", ";\n }\n\n & span::selection {\n background-color: ", ";\n }\n\n &:empty:before {\n content: attr(data-placeholder);\n }\n\n & .content_editable_input {\n border: none !important;\n outline: none !important;\n }\n\n & .mention {\n color: ", ";\n background-color: inherit !important;\n user-modify: read-only;\n }\n\n & span.bold {\n font-weight: bold;\n }\n\n & .editor_paragraph {\n margin: 0;\n }\n\n & .text_bold {\n font-weight: 600;\n }\n\n & .text_italic {\n font-style: italic;\n }\n\n & .text_underline {\n text-decoration: underline;\n }\n\n & .text_strikethrough {\n text-decoration: line-through;\n }\n\n & .text_underlineStrikethrough {\n text-decoration: underline line-through;\n }\n\n & code {\n font-family: inherit;\n letter-spacing: 4px;\n }\n }\n"])), function (props) {
|
|
32899
32901
|
return props.borderRadius;
|
|
32900
32902
|
}, function (props) {
|
|
32901
32903
|
return props.backgroundColor;
|
|
@@ -32916,12 +32918,12 @@ var LexicalWrapper = styled.div(_templateObject12$5 || (_templateObject12$5 = _t
|
|
|
32916
32918
|
}, function (props) {
|
|
32917
32919
|
return props.mentionColor;
|
|
32918
32920
|
});
|
|
32919
|
-
var Placeholder = styled.span(
|
|
32921
|
+
var Placeholder = styled.span(_templateObject14$4 || (_templateObject14$4 = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n color: ", ";\n padding: ", ";\n line-height: 20px;\n\n @media (max-width: 768px) {\n font-size: 13px;\n }\n"])), function (props) {
|
|
32920
32922
|
return props.color || colors.placeholderTextColor;
|
|
32921
32923
|
}, function (props) {
|
|
32922
32924
|
return props.paddings || '8px 6px';
|
|
32923
32925
|
});
|
|
32924
|
-
var EmojiButton = styled.span(
|
|
32926
|
+
var EmojiButton = styled.span(_templateObject15$3 || (_templateObject15$3 = _taggedTemplateLiteralLoose(["\n display: flex;\n height: ", ";\n align-items: center;\n position: relative;\n margin: auto 8px 0 8px;\n cursor: pointer;\n line-height: 13px;\n z-index: 2;\n order: ", ";\n -webkit-tap-highlight-color: transparent;\n\n > svg {\n ", ";\n width: 24px;\n height: 24px;\n }\n\n &:hover > svg {\n color: ", ";\n }\n"])), function (props) {
|
|
32925
32927
|
return props.height ? props.height + "px" : '36px';
|
|
32926
32928
|
}, function (props) {
|
|
32927
32929
|
return props.order === 0 || props.order ? props.order : 2;
|
|
@@ -32930,48 +32932,48 @@ var EmojiButton = styled.span(_templateObject14$4 || (_templateObject14$4 = _tag
|
|
|
32930
32932
|
}, function (props) {
|
|
32931
32933
|
return props.hoverColor;
|
|
32932
32934
|
});
|
|
32933
|
-
var SendMessageButton = styled.span(
|
|
32935
|
+
var SendMessageButton = styled.span(_templateObject16$2 || (_templateObject16$2 = _taggedTemplateLiteralLoose(["\n ", "\n"])), function (props) {
|
|
32934
32936
|
return !props.isCustomButton && "\n display: flex;\n height: " + (props.height ? props.height + "px" : '36px') + ";\n align-items: center;\n // margin: 0 8px 0 auto;\n cursor: " + (props.isActive && 'pointer') + ";\n line-height: 13px;\n order: " + (props.order === 0 || props.order ? props.order : 4) + ";\n -webkit-tap-highlight-color: transparent;\n\n color: " + (props.isActive ? colors.primary : props.color) + ";\n & > svg {\n color: " + props.iconColor + ";\n }\n ";
|
|
32935
32937
|
});
|
|
32936
|
-
var AudioCont = styled.div(
|
|
32937
|
-
var ChosenAttachments = styled.div(
|
|
32938
|
-
var TypingIndicator$1 = styled.div(
|
|
32939
|
-
var TypingIndicatorCont = styled.div(
|
|
32940
|
-
var TypingFrom = styled.h5(
|
|
32938
|
+
var AudioCont = styled.div(_templateObject17$2 || (_templateObject17$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n width: 100%;\n justify-content: flex-end;\n"])));
|
|
32939
|
+
var ChosenAttachments = styled.div(_templateObject18$2 || (_templateObject18$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n padding: 16px 16px 14px;\n overflow-x: auto;\n\n & ", " {\n width: 100%;\n height: 100%;\n border-radius: 4px;\n object-fit: cover;\n }\n\n & ", " {\n width: 240px;\n padding: 5px 12px;\n border-radius: 8px;\n height: 50px;\n }\n"])), AttachmentImg$1, AttachmentFile$1);
|
|
32940
|
+
var TypingIndicator$1 = styled.div(_templateObject19$2 || (_templateObject19$2 = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: 100%;\n left: 16px;\n"])));
|
|
32941
|
+
var TypingIndicatorCont = styled.div(_templateObject20$1 || (_templateObject20$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n margin-bottom: 12px;\n"])));
|
|
32942
|
+
var TypingFrom = styled.h5(_templateObject21$1 || (_templateObject21$1 = _taggedTemplateLiteralLoose(["\n margin: 0 4px 0 0;\n font-weight: 400;\n font-size: 13px;\n line-height: 16px;\n letter-spacing: -0.2px;\n color: ", ";\n"])), function (props) {
|
|
32941
32943
|
return props.color;
|
|
32942
32944
|
});
|
|
32943
|
-
var sizeAnimation = keyframes(
|
|
32944
|
-
var DotOne = styled.span(
|
|
32945
|
-
var DotTwo = styled.span(
|
|
32946
|
-
var DotThree = styled.span(
|
|
32947
|
-
var TypingAnimation = styled.div(
|
|
32948
|
-
var Loading = styled.div(
|
|
32949
|
-
var BlockedUserInfo = styled.div(
|
|
32945
|
+
var sizeAnimation = keyframes(_templateObject22$1 || (_templateObject22$1 = _taggedTemplateLiteralLoose(["\n 0% {\n width: 2px;\n height: 2px;\n opacity: 0.4;\n }\n 50% {\n width: 2px;\n height: 2px;\n opacity: 0.4;\n }\n 100% {\n width: 6px;\n height: 6px;\n opacity: 1;\n }\n"])));
|
|
32946
|
+
var DotOne = styled.span(_templateObject23$1 || (_templateObject23$1 = _taggedTemplateLiteralLoose([""])));
|
|
32947
|
+
var DotTwo = styled.span(_templateObject24$1 || (_templateObject24$1 = _taggedTemplateLiteralLoose([""])));
|
|
32948
|
+
var DotThree = styled.span(_templateObject25$1 || (_templateObject25$1 = _taggedTemplateLiteralLoose([""])));
|
|
32949
|
+
var TypingAnimation = styled.div(_templateObject26$1 || (_templateObject26$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n\n & > span {\n position: relative;\n width: 6px;\n height: 6px;\n margin-right: 3px;\n display: flex;\n align-items: center;\n justify-content: center;\n animation-timing-function: linear;\n\n &:after {\n content: '';\n position: absolute;\n\n width: 3.5px;\n height: 3.5px;\n border-radius: 50%;\n background-color: ", ";\n animation-name: ", ";\n animation-duration: 0.6s;\n animation-iteration-count: infinite;\n }\n }\n\n & ", " {\n &:after {\n animation-delay: 0s;\n }\n }\n\n & ", " {\n &:after {\n animation-delay: 0.2s;\n }\n }\n\n & ", " {\n &:after {\n animation-delay: 0.3s;\n }\n }\n"])), colors.borderColor2, sizeAnimation, DotOne, DotTwo, DotThree);
|
|
32950
|
+
var Loading = styled.div(_templateObject27$1 || (_templateObject27$1 = _taggedTemplateLiteralLoose(["\n height: 36px;\n"])));
|
|
32951
|
+
var BlockedUserInfo = styled.div(_templateObject28$1 || (_templateObject28$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 12px;\n font-weight: 400;\n font-size: 15px;\n line-height: 20px;\n color: ", ";\n\n & > svg {\n margin-right: 12px;\n }\n"])), function (props) {
|
|
32950
32952
|
return props.color;
|
|
32951
32953
|
});
|
|
32952
|
-
var JoinChannelCont = styled.div(
|
|
32954
|
+
var JoinChannelCont = styled.div(_templateObject29$1 || (_templateObject29$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 0 -12px;\n padding: 14px;\n font-weight: 500;\n font-size: 15px;\n line-height: 20px;\n letter-spacing: -0.2px;\n color: ", ";\n background-color: ", ";\n cursor: pointer;\n"])), function (props) {
|
|
32953
32955
|
return props.color || colors.primary;
|
|
32954
32956
|
}, function (props) {
|
|
32955
32957
|
return props.backgroundColor;
|
|
32956
32958
|
});
|
|
32957
|
-
var ReadOnlyCont = styled.div(
|
|
32959
|
+
var ReadOnlyCont = styled.div(_templateObject30$1 || (_templateObject30$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 12px;\n font-weight: 500;\n font-size: 15px;\n line-height: 20px;\n letter-spacing: -0.2px;\n color: ", ";\n\n & > svg {\n margin-right: 12px;\n color: ", ";\n }\n"])), function (props) {
|
|
32958
32960
|
return props.color;
|
|
32959
32961
|
}, function (props) {
|
|
32960
32962
|
return props.iconColor || colors.primary;
|
|
32961
32963
|
});
|
|
32962
|
-
var ReplyMessageCont = styled.div(
|
|
32963
|
-
var ReplyIconWrapper = styled.span(
|
|
32964
|
+
var ReplyMessageCont = styled.div(_templateObject31$1 || (_templateObject31$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
|
|
32965
|
+
var ReplyIconWrapper = styled.span(_templateObject32$1 || (_templateObject32$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: 12px;\n width: 40px;\n height: 40px;\n background-color: ", ";\n border-radius: 50%;\n\n & > svg {\n width: 20px;\n height: 20px;\n color: ", ";\n }\n"])), function (props) {
|
|
32964
32966
|
return props.backgroundColor;
|
|
32965
32967
|
}, colors.white);
|
|
32966
|
-
var SelectedMessagesWrapper = styled.div(
|
|
32967
|
-
var CustomButton = styled.span(
|
|
32968
|
+
var SelectedMessagesWrapper = styled.div(_templateObject33$1 || (_templateObject33$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n padding: 12px 16px;\n"])));
|
|
32969
|
+
var CustomButton = styled.span(_templateObject34$1 || (_templateObject34$1 = _taggedTemplateLiteralLoose(["\n color: ", ";\n padding: 8px 16px;\n background-color: ", ";\n margin-left: ", ";\n border-radius: 8px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-family: Inter, sans-serif;\n font-size: 15px;\n font-weight: 500;\n cursor: pointer;\n\n > svg {\n width: 20px;\n height: 20px;\n margin-right: 8px;\n }\n"])), function (props) {
|
|
32968
32970
|
return props.color;
|
|
32969
32971
|
}, function (props) {
|
|
32970
32972
|
return props.backgroundColor || colors.primaryLight;
|
|
32971
32973
|
}, function (props) {
|
|
32972
32974
|
return props.marginLeft || '8px';
|
|
32973
32975
|
});
|
|
32974
|
-
var CloseIconWrapper = styled.span(
|
|
32976
|
+
var CloseIconWrapper = styled.span(_templateObject35$1 || (_templateObject35$1 = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n cursor: pointer;\n margin-left: auto;\n padding: 10px;\n"])));
|
|
32975
32977
|
|
|
32976
32978
|
var _path$1c;
|
|
32977
32979
|
function _extends$1g() {
|