sceyt-chat-react-uikit 1.7.8-beta.16 → 1.7.8-beta.18
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/Message.types.d.ts +1 -0
- package/components/Message/MessageBody/index.d.ts +2 -1
- package/components/Message/index.d.ts +1 -1
- package/components/Messages/MessageList/index.d.ts +1 -0
- package/components/Messages/index.d.ts +1 -0
- package/components/SendMessageInput/MentionsPlugin/index.d.ts +2 -1
- package/index.js +484 -143
- package/index.modern.js +484 -144
- package/messageUtils/index.d.ts +5 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -9028,6 +9028,29 @@ var handleVoteDetails = function handleVoteDetails(voteDetails, message) {
|
|
|
9028
9028
|
voteDetails: newVoteDetails
|
|
9029
9029
|
});
|
|
9030
9030
|
};
|
|
9031
|
+
var _extractTextFromReactElement = function extractTextFromReactElement(element) {
|
|
9032
|
+
if (typeof element === 'string') {
|
|
9033
|
+
return element;
|
|
9034
|
+
}
|
|
9035
|
+
if (element === null || element === undefined) {
|
|
9036
|
+
return '';
|
|
9037
|
+
}
|
|
9038
|
+
if (Array.isArray(element)) {
|
|
9039
|
+
return element.map(_extractTextFromReactElement).join('');
|
|
9040
|
+
}
|
|
9041
|
+
if (typeof element === 'object' && element.props) {
|
|
9042
|
+
if (typeof element.props.children === 'string') {
|
|
9043
|
+
return element.props.children;
|
|
9044
|
+
}
|
|
9045
|
+
if (Array.isArray(element.props.children)) {
|
|
9046
|
+
return element.props.children.map(_extractTextFromReactElement).join('');
|
|
9047
|
+
}
|
|
9048
|
+
if (element.props.children) {
|
|
9049
|
+
return _extractTextFromReactElement(element.props.children);
|
|
9050
|
+
}
|
|
9051
|
+
}
|
|
9052
|
+
return '';
|
|
9053
|
+
};
|
|
9031
9054
|
var checkIsTypeKeyPressed = function checkIsTypeKeyPressed(code) {
|
|
9032
9055
|
return !(code === 'Enter' || code === 'NumpadEnter' || code === 'Backspace' || code === 'Delete' || code === 'ArrowLeft' || code === 'ArrowRight' || code === 'ArrowUp' || code === 'ArrowDown' || code === 'PageUp' || code === 'PageDown' || code === 'Home' || code === 'End' || code === 'Insert' || code === 'Escape' || code === 'Tab' || code === 'F1' || code === 'F2' || code === 'F3' || code === 'F4' || code === 'F5' || code === 'F6' || code === 'F7' || code === 'F8' || code === 'F9' || code === 'F10' || code === 'F11' || code === 'F12' || code === 'CapsLock' || code === 'Shift' || code === 'ShiftLeft' || code === 'ShiftRight' || code === 'Control' || code === 'ControlLeft' || code === 'ControlRight' || code === 'Alt' || code === 'AltLeft' || code === 'AltRight' || code === 'MetaLeft' || code === 'MetaRight' || code === 'Space' || code === 'Enter' || code === 'NumpadEnter' || code === 'Backspace' || code === 'Delete' || code === 'ArrowLeft' || code === 'ArrowRight' || code === 'ArrowUp' || code === 'ArrowDown' || code === 'PageUp' || code === 'PageDown' || code === 'Home' || code === 'End' || code === 'Insert' || code === 'Escape' || code === 'Tab' || code === 'F1' || code === 'F2' || code === 'F3' || code === 'F4' || code === 'F5' || code === 'F6' || code === 'F7' || code === 'F8' || code === 'F9' || code === 'F10' || code === 'F11' || code === 'F12' || code === 'Shift');
|
|
9033
9056
|
};
|
|
@@ -9770,10 +9793,6 @@ var CHANNEL_EVENT_TYPES = {
|
|
|
9770
9793
|
REACTION_ADDED: 'REACTION_ADDED',
|
|
9771
9794
|
REACTION_DELETED: 'REACTION_DELETED',
|
|
9772
9795
|
EDIT_MESSAGE: 'EDIT_MESSAGE',
|
|
9773
|
-
START_TYPING: 'START_TYPING',
|
|
9774
|
-
STOP_TYPING: 'STOP_TYPING',
|
|
9775
|
-
START_RECORDING: 'START_RECORDING',
|
|
9776
|
-
STOP_RECORDING: 'STOP_RECORDING',
|
|
9777
9796
|
MESSAGE_MARKERS_RECEIVED: 'MESSAGE_MARKERS_RECEIVED',
|
|
9778
9797
|
UNREAD_MESSAGES_INFO: 'UNREAD_MESSAGES_INFO',
|
|
9779
9798
|
HIDE: 'HIDE',
|
|
@@ -12186,7 +12205,7 @@ var userSlice = createSlice({
|
|
|
12186
12205
|
state.usersLoadingState = action.payload.state;
|
|
12187
12206
|
},
|
|
12188
12207
|
updateUserMap: function updateUserMap(state, action) {
|
|
12189
|
-
state.updatedUserMap = action.payload.usersMap;
|
|
12208
|
+
state.updatedUserMap = _extends({}, state.updatedUserMap, action.payload.usersMap);
|
|
12190
12209
|
},
|
|
12191
12210
|
setContacts: function setContacts(state, action) {
|
|
12192
12211
|
var contacts = action.payload.contacts;
|
|
@@ -13394,6 +13413,9 @@ var usersLoadingStateSelector = function usersLoadingStateSelector(store) {
|
|
|
13394
13413
|
var browserTabIsActiveSelector = function browserTabIsActiveSelector(store) {
|
|
13395
13414
|
return store.UserReducer.browserTabIsActive;
|
|
13396
13415
|
};
|
|
13416
|
+
var usersMapSelector = function usersMapSelector(store) {
|
|
13417
|
+
return store.UserReducer.updatedUserMap;
|
|
13418
|
+
};
|
|
13397
13419
|
|
|
13398
13420
|
var _path;
|
|
13399
13421
|
function _extends$1() {
|
|
@@ -14121,6 +14143,15 @@ var MessageStatusIcon = function MessageStatusIcon(_ref) {
|
|
|
14121
14143
|
size = _ref.size,
|
|
14122
14144
|
accentColor = _ref.accentColor;
|
|
14123
14145
|
switch (messageStatus) {
|
|
14146
|
+
case MESSAGE_DELIVERY_STATUS.PLAYED:
|
|
14147
|
+
return messageStatusDisplayingType === 'ticks' ? (/*#__PURE__*/React__default.createElement(ReadIconWrapper, {
|
|
14148
|
+
width: size,
|
|
14149
|
+
height: size,
|
|
14150
|
+
color: readIconColor || accentColor
|
|
14151
|
+
})) : (/*#__PURE__*/React__default.createElement(StatusText, {
|
|
14152
|
+
fontSize: size,
|
|
14153
|
+
color: color
|
|
14154
|
+
}, "\u2022 Seen"));
|
|
14124
14155
|
case MESSAGE_DELIVERY_STATUS.READ:
|
|
14125
14156
|
return messageStatusDisplayingType === 'ticks' ? (/*#__PURE__*/React__default.createElement(ReadIconWrapper, {
|
|
14126
14157
|
width: size,
|
|
@@ -14316,6 +14347,173 @@ var MessageTextFormat = function MessageTextFormat(_ref2) {
|
|
|
14316
14347
|
return text;
|
|
14317
14348
|
}
|
|
14318
14349
|
};
|
|
14350
|
+
var isMentionNode = function isMentionNode(node) {
|
|
14351
|
+
if (!node || typeof node !== 'object') return false;
|
|
14352
|
+
if (node.props && node.props.className) {
|
|
14353
|
+
var className = node.props.className;
|
|
14354
|
+
if (typeof className === 'string' && className.includes('mention')) {
|
|
14355
|
+
return true;
|
|
14356
|
+
}
|
|
14357
|
+
if (Array.isArray(className) && className.some(function (cls) {
|
|
14358
|
+
return typeof cls === 'string' && cls.includes('mention');
|
|
14359
|
+
})) {
|
|
14360
|
+
return true;
|
|
14361
|
+
}
|
|
14362
|
+
}
|
|
14363
|
+
return false;
|
|
14364
|
+
};
|
|
14365
|
+
var _getNodeTextLength = function getNodeTextLength(node) {
|
|
14366
|
+
if (!node) return 0;
|
|
14367
|
+
if (typeof node === 'string') return node.length;
|
|
14368
|
+
if (typeof node === 'number') return String(node).length;
|
|
14369
|
+
if (Array.isArray(node)) {
|
|
14370
|
+
return node.reduce(function (sum, child) {
|
|
14371
|
+
return sum + _getNodeTextLength(child);
|
|
14372
|
+
}, 0);
|
|
14373
|
+
}
|
|
14374
|
+
if (node.props && node.props.children) {
|
|
14375
|
+
return _getNodeTextLength(node.props.children);
|
|
14376
|
+
}
|
|
14377
|
+
return 0;
|
|
14378
|
+
};
|
|
14379
|
+
var _truncateNodeText3 = function truncateNodeText(node, maxLength) {
|
|
14380
|
+
if (!node) return {
|
|
14381
|
+
node: node,
|
|
14382
|
+
usedLength: 0
|
|
14383
|
+
};
|
|
14384
|
+
if (typeof node === 'string') {
|
|
14385
|
+
if (node.length > maxLength) {
|
|
14386
|
+
return {
|
|
14387
|
+
node: node.slice(0, maxLength),
|
|
14388
|
+
usedLength: maxLength
|
|
14389
|
+
};
|
|
14390
|
+
}
|
|
14391
|
+
return {
|
|
14392
|
+
node: node,
|
|
14393
|
+
usedLength: node.length
|
|
14394
|
+
};
|
|
14395
|
+
}
|
|
14396
|
+
if (typeof node === 'number') {
|
|
14397
|
+
var str = String(node);
|
|
14398
|
+
if (str.length > maxLength) {
|
|
14399
|
+
return {
|
|
14400
|
+
node: str.slice(0, maxLength),
|
|
14401
|
+
usedLength: maxLength
|
|
14402
|
+
};
|
|
14403
|
+
}
|
|
14404
|
+
return {
|
|
14405
|
+
node: node,
|
|
14406
|
+
usedLength: str.length
|
|
14407
|
+
};
|
|
14408
|
+
}
|
|
14409
|
+
if (Array.isArray(node)) {
|
|
14410
|
+
var result = [];
|
|
14411
|
+
var remaining = maxLength;
|
|
14412
|
+
for (var _iterator = _createForOfIteratorHelperLoose(node), _step; !(_step = _iterator()).done;) {
|
|
14413
|
+
var child = _step.value;
|
|
14414
|
+
if (remaining <= 0) break;
|
|
14415
|
+
var _truncateNodeText = _truncateNodeText3(child, remaining),
|
|
14416
|
+
truncatedChild = _truncateNodeText.node,
|
|
14417
|
+
usedLength = _truncateNodeText.usedLength;
|
|
14418
|
+
result.push(truncatedChild);
|
|
14419
|
+
remaining -= usedLength;
|
|
14420
|
+
}
|
|
14421
|
+
return {
|
|
14422
|
+
node: result,
|
|
14423
|
+
usedLength: maxLength - remaining
|
|
14424
|
+
};
|
|
14425
|
+
}
|
|
14426
|
+
if (node.props && node.props.children !== undefined) {
|
|
14427
|
+
var _truncateNodeText2 = _truncateNodeText3(node.props.children, maxLength),
|
|
14428
|
+
truncatedChildren = _truncateNodeText2.node,
|
|
14429
|
+
_usedLength = _truncateNodeText2.usedLength;
|
|
14430
|
+
return {
|
|
14431
|
+
node: _extends({}, node, {
|
|
14432
|
+
props: _extends({}, node.props, {
|
|
14433
|
+
children: truncatedChildren
|
|
14434
|
+
})
|
|
14435
|
+
}),
|
|
14436
|
+
usedLength: _usedLength
|
|
14437
|
+
};
|
|
14438
|
+
}
|
|
14439
|
+
return {
|
|
14440
|
+
node: node,
|
|
14441
|
+
usedLength: 0
|
|
14442
|
+
};
|
|
14443
|
+
};
|
|
14444
|
+
var trimReactMessage = function trimReactMessage(parts, limit) {
|
|
14445
|
+
if (typeof limit !== 'number' || limit < 0) {
|
|
14446
|
+
return {
|
|
14447
|
+
result: parts,
|
|
14448
|
+
truncated: false
|
|
14449
|
+
};
|
|
14450
|
+
}
|
|
14451
|
+
if (typeof parts === 'string') {
|
|
14452
|
+
if (parts.length > limit) {
|
|
14453
|
+
return {
|
|
14454
|
+
result: parts.slice(0, limit) + '...',
|
|
14455
|
+
truncated: true
|
|
14456
|
+
};
|
|
14457
|
+
}
|
|
14458
|
+
return {
|
|
14459
|
+
result: parts,
|
|
14460
|
+
truncated: false
|
|
14461
|
+
};
|
|
14462
|
+
}
|
|
14463
|
+
var remaining = limit;
|
|
14464
|
+
var truncated = false;
|
|
14465
|
+
var result = [];
|
|
14466
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose(parts), _step2; !(_step2 = _iterator2()).done;) {
|
|
14467
|
+
var part = _step2.value;
|
|
14468
|
+
if (typeof part === 'string') {
|
|
14469
|
+
if (remaining <= 0) {
|
|
14470
|
+
truncated = true;
|
|
14471
|
+
break;
|
|
14472
|
+
}
|
|
14473
|
+
if (part.length > remaining) {
|
|
14474
|
+
result.push(part.slice(0, remaining));
|
|
14475
|
+
remaining = 0;
|
|
14476
|
+
truncated = true;
|
|
14477
|
+
break;
|
|
14478
|
+
} else {
|
|
14479
|
+
result.push(part);
|
|
14480
|
+
remaining -= part.length;
|
|
14481
|
+
}
|
|
14482
|
+
} else if (part && typeof part === 'object') {
|
|
14483
|
+
if (isMentionNode(part)) {
|
|
14484
|
+
var nodeTextLength = _getNodeTextLength(part);
|
|
14485
|
+
if (nodeTextLength <= remaining) {
|
|
14486
|
+
result.push(part);
|
|
14487
|
+
remaining -= nodeTextLength;
|
|
14488
|
+
} else {
|
|
14489
|
+
truncated = true;
|
|
14490
|
+
break;
|
|
14491
|
+
}
|
|
14492
|
+
} else {
|
|
14493
|
+
if (remaining <= 0) {
|
|
14494
|
+
truncated = true;
|
|
14495
|
+
break;
|
|
14496
|
+
}
|
|
14497
|
+
var _nodeTextLength = _getNodeTextLength(part);
|
|
14498
|
+
if (_nodeTextLength > remaining) {
|
|
14499
|
+
var _truncateNodeText4 = _truncateNodeText3(part, remaining),
|
|
14500
|
+
truncatedNode = _truncateNodeText4.node;
|
|
14501
|
+
result.push(truncatedNode);
|
|
14502
|
+
remaining = 0;
|
|
14503
|
+
truncated = true;
|
|
14504
|
+
break;
|
|
14505
|
+
} else {
|
|
14506
|
+
result.push(part);
|
|
14507
|
+
remaining -= _nodeTextLength;
|
|
14508
|
+
}
|
|
14509
|
+
}
|
|
14510
|
+
}
|
|
14511
|
+
}
|
|
14512
|
+
return {
|
|
14513
|
+
result: result,
|
|
14514
|
+
truncated: truncated
|
|
14515
|
+
};
|
|
14516
|
+
};
|
|
14319
14517
|
|
|
14320
14518
|
var _marked = /*#__PURE__*/_regenerator().m(updateActiveChannelMembersAdd),
|
|
14321
14519
|
_marked2 = /*#__PURE__*/_regenerator().m(updateActiveChannelMembersRemove);
|
|
@@ -19625,7 +19823,7 @@ function sendMessage(action) {
|
|
|
19625
19823
|
messagesToSend.push(messageToSend);
|
|
19626
19824
|
case 12:
|
|
19627
19825
|
_loop2 = /*#__PURE__*/_regenerator().m(function _callee3() {
|
|
19628
|
-
var messageAttachment, messageToSend, messageCopy, _attachmentsToSend, linkAttachmentToSend, linkAttachmentBuilder, messageResponse, k, pendingAttachment, attachmentsToUpdate, currentAttachmentsMap, messageUpdateData, stringifiedMessageUpdateData, activeChannelId, channelUpdateParam, isErrorResendable, _t;
|
|
19826
|
+
var messageAttachment, messageToSend, messageCopy, _attachmentsToSend, linkAttachmentToSend, linkAttachmentBuilder, messageResponse, k, pendingAttachment, attachmentsToUpdate, currentAttachmentsMap, messageUpdateData, stringifiedMessageUpdateData, activeChannelId, messageToUpdate, channelUpdateParam, isErrorResendable, _t;
|
|
19629
19827
|
return _regenerator().w(function (_context3) {
|
|
19630
19828
|
while (1) switch (_context3.p = _context3.n) {
|
|
19631
19829
|
case 0:
|
|
@@ -19727,7 +19925,7 @@ function sendMessage(action) {
|
|
|
19727
19925
|
createdAt: messageResponse.createdAt,
|
|
19728
19926
|
channelId: channel.id
|
|
19729
19927
|
};
|
|
19730
|
-
stringifiedMessageUpdateData = JSON.parse(JSON.stringify(
|
|
19928
|
+
stringifiedMessageUpdateData = JSON.parse(JSON.stringify(messageResponse));
|
|
19731
19929
|
activeChannelId = getActiveChannelId();
|
|
19732
19930
|
if (!(activeChannelId === channel.id)) {
|
|
19733
19931
|
_context3.n = 9;
|
|
@@ -19739,11 +19937,12 @@ function sendMessage(action) {
|
|
|
19739
19937
|
_context3.n = 10;
|
|
19740
19938
|
return effects.put(removePendingMessageAC(channel.id, messageToSend.tid));
|
|
19741
19939
|
case 10:
|
|
19742
|
-
addMessageToMap(channel.id, stringifiedMessageUpdateData);
|
|
19743
19940
|
updateMessageOnAllMessages(messageToSend.tid, messageUpdateData);
|
|
19744
|
-
|
|
19941
|
+
messageToUpdate = JSON.parse(JSON.stringify(messageResponse));
|
|
19942
|
+
addMessageToMap(channel.id, messageToUpdate);
|
|
19943
|
+
updateChannelLastMessageOnAllChannels(channel.id, messageToUpdate);
|
|
19745
19944
|
channelUpdateParam = {
|
|
19746
|
-
lastMessage:
|
|
19945
|
+
lastMessage: messageToUpdate,
|
|
19747
19946
|
lastReactedMessage: null
|
|
19748
19947
|
};
|
|
19749
19948
|
if (!channel.unread) {
|
|
@@ -23646,6 +23845,24 @@ var useColors = function useColors() {
|
|
|
23646
23845
|
}, [theme.colors, currentThemeMode]);
|
|
23647
23846
|
};
|
|
23648
23847
|
|
|
23848
|
+
function useUpdatedUser(user) {
|
|
23849
|
+
var dispatch = useDispatch();
|
|
23850
|
+
var usersMap = useSelector(usersMapSelector);
|
|
23851
|
+
React.useEffect(function () {
|
|
23852
|
+
if (user !== null && user !== void 0 && user.id && !usersMap[user.id]) {
|
|
23853
|
+
var _updateUserStatusOnMa;
|
|
23854
|
+
setUserToMap(user);
|
|
23855
|
+
dispatch(updateUserStatusOnMapAC((_updateUserStatusOnMa = {}, _updateUserStatusOnMa[user.id] = user, _updateUserStatusOnMa)));
|
|
23856
|
+
}
|
|
23857
|
+
}, [user === null || user === void 0 ? void 0 : user.id]);
|
|
23858
|
+
return React.useMemo(function () {
|
|
23859
|
+
if (!(user !== null && user !== void 0 && user.id)) {
|
|
23860
|
+
return user;
|
|
23861
|
+
}
|
|
23862
|
+
return usersMap[user.id] || user;
|
|
23863
|
+
}, [user, usersMap]);
|
|
23864
|
+
}
|
|
23865
|
+
|
|
23649
23866
|
function setThemeAC(theme) {
|
|
23650
23867
|
return {
|
|
23651
23868
|
type: SET_THEME,
|
|
@@ -25818,30 +26035,43 @@ var Title$1 = styled__default.h4(_templateObject4$6 || (_templateObject4$6 = _ta
|
|
|
25818
26035
|
});
|
|
25819
26036
|
|
|
25820
26037
|
var _templateObject$b, _templateObject2$a, _templateObject3$8, _templateObject4$7, _templateObject5$4, _templateObject6$3, _templateObject7$3, _templateObject8$3, _templateObject9$2, _templateObject0$2, _templateObject1$2;
|
|
25821
|
-
var
|
|
25822
|
-
var
|
|
25823
|
-
|
|
25824
|
-
actionType = _ref.actionType,
|
|
25825
|
-
getSelectedUsers = _ref.getSelectedUsers,
|
|
25826
|
-
memberIds = _ref.memberIds,
|
|
25827
|
-
creatChannelSelectedMembers = _ref.creatChannelSelectedMembers,
|
|
25828
|
-
popupHeight = _ref.popupHeight,
|
|
25829
|
-
selectIsRequired = _ref.selectIsRequired,
|
|
25830
|
-
popupWidth = _ref.popupWidth,
|
|
25831
|
-
handleOpenInviteModal = _ref.handleOpenInviteModal;
|
|
26038
|
+
var UserItem = function UserItem(_ref) {
|
|
26039
|
+
var user = _ref.user,
|
|
26040
|
+
memberDisplayName = _ref.memberDisplayName;
|
|
25832
26041
|
var _useColor = useColors(),
|
|
25833
|
-
accentColor = _useColor[THEME_COLORS.ACCENT],
|
|
25834
|
-
surface1Background = _useColor[THEME_COLORS.SURFACE_1],
|
|
25835
26042
|
textPrimary = _useColor[THEME_COLORS.TEXT_PRIMARY],
|
|
25836
|
-
textSecondary = _useColor[THEME_COLORS.TEXT_SECONDARY]
|
|
25837
|
-
|
|
25838
|
-
|
|
25839
|
-
|
|
25840
|
-
|
|
25841
|
-
|
|
25842
|
-
|
|
25843
|
-
|
|
25844
|
-
|
|
26043
|
+
textSecondary = _useColor[THEME_COLORS.TEXT_SECONDARY];
|
|
26044
|
+
var userUpdated = useUpdatedUser(user);
|
|
26045
|
+
return /*#__PURE__*/React__default.createElement(UserNamePresence, null, /*#__PURE__*/React__default.createElement(MemberName, {
|
|
26046
|
+
color: textPrimary
|
|
26047
|
+
}, memberDisplayName), /*#__PURE__*/React__default.createElement(SubTitle, {
|
|
26048
|
+
color: textSecondary
|
|
26049
|
+
}, userUpdated.presence && userUpdated.presence.state === USER_PRESENCE_STATUS.ONLINE ? 'Online' : userUpdated.presence && userUpdated.presence.lastActiveAt && userLastActiveDateFormat(userUpdated.presence.lastActiveAt)));
|
|
26050
|
+
};
|
|
26051
|
+
var UsersPopup = function UsersPopup(_ref2) {
|
|
26052
|
+
var channel = _ref2.channel,
|
|
26053
|
+
toggleCreatePopup = _ref2.toggleCreatePopup,
|
|
26054
|
+
actionType = _ref2.actionType,
|
|
26055
|
+
getSelectedUsers = _ref2.getSelectedUsers,
|
|
26056
|
+
memberIds = _ref2.memberIds,
|
|
26057
|
+
creatChannelSelectedMembers = _ref2.creatChannelSelectedMembers,
|
|
26058
|
+
popupHeight = _ref2.popupHeight,
|
|
26059
|
+
selectIsRequired = _ref2.selectIsRequired,
|
|
26060
|
+
popupWidth = _ref2.popupWidth,
|
|
26061
|
+
handleOpenInviteModal = _ref2.handleOpenInviteModal;
|
|
26062
|
+
var _useColor2 = useColors(),
|
|
26063
|
+
accentColor = _useColor2[THEME_COLORS.ACCENT],
|
|
26064
|
+
surface1Background = _useColor2[THEME_COLORS.SURFACE_1],
|
|
26065
|
+
textPrimary = _useColor2[THEME_COLORS.TEXT_PRIMARY],
|
|
26066
|
+
textSecondary = _useColor2[THEME_COLORS.TEXT_SECONDARY],
|
|
26067
|
+
iconInactive = _useColor2[THEME_COLORS.ICON_INACTIVE],
|
|
26068
|
+
backgroundHovered = _useColor2[THEME_COLORS.BACKGROUND_HOVERED],
|
|
26069
|
+
background = _useColor2[THEME_COLORS.BACKGROUND],
|
|
26070
|
+
border = _useColor2[THEME_COLORS.BORDER],
|
|
26071
|
+
textFootnote = _useColor2[THEME_COLORS.TEXT_FOOTNOTE],
|
|
26072
|
+
surface1 = _useColor2[THEME_COLORS.SURFACE_1],
|
|
26073
|
+
textOnPrimary = _useColor2[THEME_COLORS.TEXT_ON_PRIMARY],
|
|
26074
|
+
surface2 = _useColor2[THEME_COLORS.SURFACE_2];
|
|
25845
26075
|
var dispatch = useDispatch();
|
|
25846
26076
|
var ChatClient = getClient();
|
|
25847
26077
|
var selfUser = ChatClient.user;
|
|
@@ -26116,11 +26346,10 @@ var UsersPopup = function UsersPopup(_ref) {
|
|
|
26116
26346
|
size: 40,
|
|
26117
26347
|
textSize: 16,
|
|
26118
26348
|
setDefaultAvatar: true
|
|
26119
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
26120
|
-
|
|
26121
|
-
|
|
26122
|
-
|
|
26123
|
-
}, user.presence && user.presence.state === USER_PRESENCE_STATUS.ONLINE ? 'Online' : user.presence && user.presence.lastActiveAt && userLastActiveDateFormat(user.presence.lastActiveAt))), actionType !== 'createChat' && (/*#__PURE__*/React__default.createElement(CustomCheckbox, {
|
|
26349
|
+
}), /*#__PURE__*/React__default.createElement(UserItem, {
|
|
26350
|
+
user: user,
|
|
26351
|
+
memberDisplayName: memberDisplayName
|
|
26352
|
+
}), actionType !== 'createChat' && (/*#__PURE__*/React__default.createElement(CustomCheckbox, {
|
|
26124
26353
|
index: user.id,
|
|
26125
26354
|
state: isSelected,
|
|
26126
26355
|
backgroundColor: 'transparent',
|
|
@@ -28987,23 +29216,35 @@ var Progress = styled__default.input(_templateObject0$5 || (_templateObject0$5 =
|
|
|
28987
29216
|
var FullScreenWrapper = styled__default.div(_templateObject1$3 || (_templateObject1$3 = _taggedTemplateLiteralLoose(["\n display: flex;\n margin-left: 16px;\n cursor: pointer;\n @media (max-width: 768px) {\n margin-left: 12px;\n & > svg {\n width: 18px;\n height: 18px;\n }\n }\n @media (max-width: 480px) {\n margin-left: auto;\n & > svg {\n width: 16px;\n height: 16px;\n }\n }\n"])));
|
|
28988
29217
|
|
|
28989
29218
|
var _templateObject$n, _templateObject2$k, _templateObject3$h, _templateObject4$e, _templateObject5$b, _templateObject6$9, _templateObject7$8, _templateObject8$8, _templateObject9$7, _templateObject0$6, _templateObject1$4;
|
|
28990
|
-
function
|
|
28991
|
-
var
|
|
28992
|
-
|
|
28993
|
-
|
|
28994
|
-
handleForward = _ref.handleForward,
|
|
28995
|
-
loading = _ref.loading;
|
|
29219
|
+
var ChannelMembersItem = function ChannelMembersItem(_ref) {
|
|
29220
|
+
var channel = _ref.channel,
|
|
29221
|
+
directChannelUser = _ref.directChannelUser,
|
|
29222
|
+
isDirectChannel = _ref.isDirectChannel;
|
|
28996
29223
|
var _useColor = useColors(),
|
|
28997
|
-
|
|
28998
|
-
|
|
28999
|
-
|
|
29000
|
-
|
|
29001
|
-
|
|
29002
|
-
|
|
29003
|
-
|
|
29004
|
-
|
|
29005
|
-
|
|
29006
|
-
|
|
29224
|
+
textSecondary = _useColor[THEME_COLORS.TEXT_SECONDARY];
|
|
29225
|
+
var updatedUser = useUpdatedUser(directChannelUser);
|
|
29226
|
+
var directChannelUserUpdated = isDirectChannel ? updatedUser : directChannelUser;
|
|
29227
|
+
return /*#__PURE__*/React__default.createElement(ChannelMembers, {
|
|
29228
|
+
color: textSecondary
|
|
29229
|
+
}, isDirectChannel && directChannelUserUpdated ? (hideUserPresence && hideUserPresence(directChannelUserUpdated) ? '' : directChannelUserUpdated.presence && directChannelUserUpdated.presence.state === USER_PRESENCE_STATUS.ONLINE) ? 'Online' : directChannelUserUpdated && directChannelUserUpdated.presence && directChannelUserUpdated.presence.lastActiveAt && userLastActiveDateFormat(directChannelUserUpdated.presence.lastActiveAt) : (channel === null || channel === void 0 ? void 0 : channel.memberCount) + " " + (channel.type === DEFAULT_CHANNEL_TYPE.BROADCAST || channel.type === DEFAULT_CHANNEL_TYPE.PUBLIC ? (channel === null || channel === void 0 ? void 0 : channel.memberCount) > 1 ? 'subscribers' : 'subscriber' : (channel === null || channel === void 0 ? void 0 : channel.memberCount) > 1 ? 'members' : 'member') + " ");
|
|
29230
|
+
};
|
|
29231
|
+
function ForwardMessagePopup(_ref2) {
|
|
29232
|
+
var title = _ref2.title,
|
|
29233
|
+
buttonText = _ref2.buttonText,
|
|
29234
|
+
togglePopup = _ref2.togglePopup,
|
|
29235
|
+
handleForward = _ref2.handleForward,
|
|
29236
|
+
loading = _ref2.loading;
|
|
29237
|
+
var _useColor2 = useColors(),
|
|
29238
|
+
accentColor = _useColor2[THEME_COLORS.ACCENT],
|
|
29239
|
+
textPrimary = _useColor2[THEME_COLORS.TEXT_PRIMARY],
|
|
29240
|
+
surface1 = _useColor2[THEME_COLORS.SURFACE_1],
|
|
29241
|
+
textSecondary = _useColor2[THEME_COLORS.TEXT_SECONDARY],
|
|
29242
|
+
background = _useColor2[THEME_COLORS.BACKGROUND],
|
|
29243
|
+
iconInactive = _useColor2[THEME_COLORS.ICON_INACTIVE],
|
|
29244
|
+
textOnPrimary = _useColor2[THEME_COLORS.TEXT_ON_PRIMARY],
|
|
29245
|
+
iconPrimary = _useColor2[THEME_COLORS.ICON_PRIMARY],
|
|
29246
|
+
backgroundHovered = _useColor2[THEME_COLORS.BACKGROUND_HOVERED],
|
|
29247
|
+
surface2 = _useColor2[THEME_COLORS.SURFACE_2];
|
|
29007
29248
|
var ChatClient = getClient();
|
|
29008
29249
|
var user = ChatClient.user;
|
|
29009
29250
|
var dispatch = useDispatch();
|
|
@@ -29196,9 +29437,11 @@ function ForwardMessagePopup(_ref) {
|
|
|
29196
29437
|
setDefaultAvatar: isDirectChannel
|
|
29197
29438
|
}), /*#__PURE__*/React__default.createElement(ChannelInfo$3, null, /*#__PURE__*/React__default.createElement(ChannelTitle, {
|
|
29198
29439
|
color: textPrimary
|
|
29199
|
-
}, isDirectChannel ? isSelfChannel ? 'Me' : directChannelUser ? makeUsername(contactsMap[directChannelUser.id], directChannelUser, getFromContacts) : 'Deleted User' : channel.subject), /*#__PURE__*/React__default.createElement(
|
|
29200
|
-
|
|
29201
|
-
|
|
29440
|
+
}, isDirectChannel ? isSelfChannel ? 'Me' : directChannelUser ? makeUsername(contactsMap[directChannelUser.id], directChannelUser, getFromContacts) : 'Deleted User' : channel.subject), /*#__PURE__*/React__default.createElement(ChannelMembersItem, {
|
|
29441
|
+
channel: channel,
|
|
29442
|
+
directChannelUser: directChannelUser,
|
|
29443
|
+
isDirectChannel: isDirectChannel
|
|
29444
|
+
})), /*#__PURE__*/React__default.createElement(CustomCheckbox, {
|
|
29202
29445
|
borderColor: iconInactive,
|
|
29203
29446
|
index: channel.id,
|
|
29204
29447
|
disabled: selectedChannels.length >= 5 && !isSelected,
|
|
@@ -29216,6 +29459,11 @@ function ForwardMessagePopup(_ref) {
|
|
|
29216
29459
|
var isSelected = selectedChannels.findIndex(function (chan) {
|
|
29217
29460
|
return chan.id === channel.id;
|
|
29218
29461
|
}) >= 0;
|
|
29462
|
+
var isDirectChannel = channel.type === DEFAULT_CHANNEL_TYPE.DIRECT;
|
|
29463
|
+
var isSelfChannel = isDirectChannel && channel.memberCount === 1 && channel.members.length > 0 && channel.members[0].id === user.id;
|
|
29464
|
+
var directChannelUser = isDirectChannel && isSelfChannel ? user : channel.members.find(function (member) {
|
|
29465
|
+
return member.id !== user.id;
|
|
29466
|
+
});
|
|
29219
29467
|
return /*#__PURE__*/React__default.createElement(ChannelItem, {
|
|
29220
29468
|
key: channel.id,
|
|
29221
29469
|
onClick: function onClick() {
|
|
@@ -29231,9 +29479,11 @@ function ForwardMessagePopup(_ref) {
|
|
|
29231
29479
|
setDefaultAvatar: false
|
|
29232
29480
|
}), /*#__PURE__*/React__default.createElement(ChannelInfo$3, null, /*#__PURE__*/React__default.createElement(ChannelTitle, {
|
|
29233
29481
|
color: textPrimary
|
|
29234
|
-
}, channel.subject), /*#__PURE__*/React__default.createElement(
|
|
29235
|
-
|
|
29236
|
-
|
|
29482
|
+
}, channel.subject), /*#__PURE__*/React__default.createElement(ChannelMembersItem, {
|
|
29483
|
+
channel: channel,
|
|
29484
|
+
directChannelUser: directChannelUser,
|
|
29485
|
+
isDirectChannel: isDirectChannel
|
|
29486
|
+
})), /*#__PURE__*/React__default.createElement(CustomCheckbox, {
|
|
29237
29487
|
borderColor: iconInactive,
|
|
29238
29488
|
index: channel.id,
|
|
29239
29489
|
disabled: selectedChannels.length >= 5 && !isSelected,
|
|
@@ -29271,9 +29521,11 @@ function ForwardMessagePopup(_ref) {
|
|
|
29271
29521
|
setDefaultAvatar: isDirectChannel
|
|
29272
29522
|
}), /*#__PURE__*/React__default.createElement(ChannelInfo$3, null, /*#__PURE__*/React__default.createElement(ChannelTitle, {
|
|
29273
29523
|
color: textPrimary
|
|
29274
|
-
}, channel.subject || (isDirectChannel && isSelfChannel ? 'Me' : directChannelUser ? makeUsername(contactsMap[directChannelUser.id], directChannelUser, getFromContacts) : '')), /*#__PURE__*/React__default.createElement(
|
|
29275
|
-
|
|
29276
|
-
|
|
29524
|
+
}, channel.subject || (isDirectChannel && isSelfChannel ? 'Me' : directChannelUser ? makeUsername(contactsMap[directChannelUser.id], directChannelUser, getFromContacts) : '')), /*#__PURE__*/React__default.createElement(ChannelMembersItem, {
|
|
29525
|
+
channel: channel,
|
|
29526
|
+
directChannelUser: directChannelUser,
|
|
29527
|
+
isDirectChannel: isDirectChannel
|
|
29528
|
+
})), /*#__PURE__*/React__default.createElement(CustomCheckbox, {
|
|
29277
29529
|
borderColor: iconInactive,
|
|
29278
29530
|
index: channel.id,
|
|
29279
29531
|
disabled: selectedChannels.length >= 5 && !isSelected,
|
|
@@ -36447,7 +36699,7 @@ var OGTextWrapper = styled__default.div(_templateObject9$e || (_templateObject9$
|
|
|
36447
36699
|
var FaviconContainer = styled__default.div(_templateObject0$d || (_templateObject0$d = _taggedTemplateLiteralLoose(["\n width: 52px;\n height: 52px;\n border-radius: 8px;\n overflow: hidden;\n margin: 8px;\n flex: 0 0 52px;\n"])));
|
|
36448
36700
|
var FaviconImg = styled__default.img(_templateObject1$a || (_templateObject1$a = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 100%;\n object-fit: cover;\n display: block;\n"])));
|
|
36449
36701
|
|
|
36450
|
-
var _templateObject$H, _templateObject2$C, _templateObject3$w, _templateObject4$r, _templateObject5$m;
|
|
36702
|
+
var _templateObject$H, _templateObject2$C, _templateObject3$w, _templateObject4$r, _templateObject5$m, _templateObject6$k, _templateObject7$j;
|
|
36451
36703
|
var MessageBody = function MessageBody(_ref) {
|
|
36452
36704
|
var message = _ref.message,
|
|
36453
36705
|
channel = _ref.channel,
|
|
@@ -36596,7 +36848,8 @@ var MessageBody = function MessageBody(_ref) {
|
|
|
36596
36848
|
shouldOpenUserProfileForMention = _ref.shouldOpenUserProfileForMention,
|
|
36597
36849
|
ogMetadataProps = _ref.ogMetadataProps,
|
|
36598
36850
|
unsupportedMessage = _ref.unsupportedMessage,
|
|
36599
|
-
onInviteLinkClick = _ref.onInviteLinkClick
|
|
36851
|
+
onInviteLinkClick = _ref.onInviteLinkClick,
|
|
36852
|
+
collapsedCharacterLimit = _ref.collapsedCharacterLimit;
|
|
36600
36853
|
var _useColor = useColors(),
|
|
36601
36854
|
accentColor = _useColor[THEME_COLORS.ACCENT],
|
|
36602
36855
|
textPrimary = _useColor[THEME_COLORS.TEXT_PRIMARY],
|
|
@@ -36611,6 +36864,61 @@ var MessageBody = function MessageBody(_ref) {
|
|
|
36611
36864
|
var user = ChatClient.user;
|
|
36612
36865
|
var getFromContacts = getShowOnlyContactUsers();
|
|
36613
36866
|
var messageUserID = message.user ? message.user.id : 'deleted';
|
|
36867
|
+
var _useState = React.useState(false),
|
|
36868
|
+
isExpanded = _useState[0],
|
|
36869
|
+
setIsExpanded = _useState[1];
|
|
36870
|
+
var textContainerRef = React.useRef(null);
|
|
36871
|
+
var _useState2 = React.useState('auto'),
|
|
36872
|
+
textHeight = _useState2[0],
|
|
36873
|
+
setTextHeight = _useState2[1];
|
|
36874
|
+
var messageText = React.useMemo(function () {
|
|
36875
|
+
return MessageTextFormat({
|
|
36876
|
+
text: message.body,
|
|
36877
|
+
message: message,
|
|
36878
|
+
contactsMap: contactsMap,
|
|
36879
|
+
getFromContacts: getFromContacts,
|
|
36880
|
+
accentColor: accentColor,
|
|
36881
|
+
textSecondary: textSecondary,
|
|
36882
|
+
onMentionNameClick: handleOpenUserProfile,
|
|
36883
|
+
shouldOpenUserProfileForMention: !!shouldOpenUserProfileForMention,
|
|
36884
|
+
unsupportedMessage: unsupportedMessage,
|
|
36885
|
+
target: ogMetadataProps === null || ogMetadataProps === void 0 ? void 0 : ogMetadataProps.target,
|
|
36886
|
+
isInviteLink: (ogMetadataProps === null || ogMetadataProps === void 0 ? void 0 : ogMetadataProps.isInviteLink) || false,
|
|
36887
|
+
onInviteLinkClick: onInviteLinkClick
|
|
36888
|
+
});
|
|
36889
|
+
}, [message, contactsMap, getFromContacts, accentColor, textSecondary, shouldOpenUserProfileForMention, unsupportedMessage, ogMetadataProps === null || ogMetadataProps === void 0 ? void 0 : ogMetadataProps.target, ogMetadataProps === null || ogMetadataProps === void 0 ? void 0 : ogMetadataProps.isInviteLink, onInviteLinkClick]);
|
|
36890
|
+
var messageTextTrimmed = React.useMemo(function () {
|
|
36891
|
+
if (!message.body) return {
|
|
36892
|
+
result: messageText,
|
|
36893
|
+
truncated: false
|
|
36894
|
+
};
|
|
36895
|
+
if (isExpanded) return {
|
|
36896
|
+
result: messageText,
|
|
36897
|
+
truncated: false
|
|
36898
|
+
};
|
|
36899
|
+
return trimReactMessage(messageText, collapsedCharacterLimit);
|
|
36900
|
+
}, [message.body, messageText, isExpanded, collapsedCharacterLimit]);
|
|
36901
|
+
React.useEffect(function () {
|
|
36902
|
+
if (textContainerRef.current && typeof collapsedCharacterLimit === 'number' && collapsedCharacterLimit >= 0) {
|
|
36903
|
+
if (messageTextTrimmed.truncated && !isExpanded) {
|
|
36904
|
+
requestAnimationFrame(function () {
|
|
36905
|
+
if (textContainerRef.current) {
|
|
36906
|
+
var height = textContainerRef.current.scrollHeight;
|
|
36907
|
+
setTextHeight(height);
|
|
36908
|
+
}
|
|
36909
|
+
});
|
|
36910
|
+
} else if (isExpanded) {
|
|
36911
|
+
requestAnimationFrame(function () {
|
|
36912
|
+
if (textContainerRef.current) {
|
|
36913
|
+
var fullHeight = textContainerRef.current.scrollHeight;
|
|
36914
|
+
setTextHeight(fullHeight);
|
|
36915
|
+
}
|
|
36916
|
+
});
|
|
36917
|
+
} else if (!messageTextTrimmed.truncated && textHeight !== 'auto') {
|
|
36918
|
+
setTextHeight('auto');
|
|
36919
|
+
}
|
|
36920
|
+
}
|
|
36921
|
+
}, [isExpanded, messageTextTrimmed.truncated, textHeight, collapsedCharacterLimit]);
|
|
36614
36922
|
var prevMessageUserID = React.useMemo(function () {
|
|
36615
36923
|
return prevMessage ? prevMessage.user ? prevMessage.user.id : 'deleted' : null;
|
|
36616
36924
|
}, [prevMessage]);
|
|
@@ -36908,22 +37216,17 @@ var MessageBody = function MessageBody(_ref) {
|
|
|
36908
37216
|
ogContainerShowBackground: ogMetadataProps === null || ogMetadataProps === void 0 ? void 0 : ogMetadataProps.ogContainerShowBackground,
|
|
36909
37217
|
ogContainerBackground: ogMetadataProps === null || ogMetadataProps === void 0 ? void 0 : ogMetadataProps.ogContainerBackground,
|
|
36910
37218
|
infoPadding: ogMetadataProps === null || ogMetadataProps === void 0 ? void 0 : ogMetadataProps.infoPadding
|
|
36911
|
-
})), message.type !== exports.MESSAGE_TYPE.POLL && (/*#__PURE__*/React__default.createElement(
|
|
37219
|
+
})), message.type !== exports.MESSAGE_TYPE.POLL && (/*#__PURE__*/React__default.createElement(TextContentContainer, {
|
|
37220
|
+
ref: textContainerRef,
|
|
37221
|
+
textHeight: textHeight
|
|
37222
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
36912
37223
|
ref: messageTextRef
|
|
36913
|
-
},
|
|
36914
|
-
|
|
36915
|
-
|
|
36916
|
-
|
|
36917
|
-
|
|
36918
|
-
|
|
36919
|
-
textSecondary: textSecondary,
|
|
36920
|
-
onMentionNameClick: handleOpenUserProfile,
|
|
36921
|
-
shouldOpenUserProfileForMention: !!shouldOpenUserProfileForMention,
|
|
36922
|
-
unsupportedMessage: unsupportedMessage,
|
|
36923
|
-
target: ogMetadataProps === null || ogMetadataProps === void 0 ? void 0 : ogMetadataProps.target,
|
|
36924
|
-
isInviteLink: (ogMetadataProps === null || ogMetadataProps === void 0 ? void 0 : ogMetadataProps.isInviteLink) || false,
|
|
36925
|
-
onInviteLinkClick: onInviteLinkClick
|
|
36926
|
-
}))), !withAttachments && message.state === MESSAGE_STATUS.DELETE ? (/*#__PURE__*/React__default.createElement(MessageStatusDeleted$1, {
|
|
37224
|
+
}, messageTextTrimmed === null || messageTextTrimmed === void 0 ? void 0 : messageTextTrimmed.result, messageTextTrimmed !== null && messageTextTrimmed !== void 0 && messageTextTrimmed.truncated && !isExpanded ? '...' : ''), messageTextTrimmed.truncated && !isExpanded && (/*#__PURE__*/React__default.createElement(ReadMoreLink, {
|
|
37225
|
+
onClick: function onClick() {
|
|
37226
|
+
return setIsExpanded(true);
|
|
37227
|
+
},
|
|
37228
|
+
accentColor: accentColor
|
|
37229
|
+
}, "Read more")))), !withAttachments && message.state === MESSAGE_STATUS.DELETE ? (/*#__PURE__*/React__default.createElement(MessageStatusDeleted$1, {
|
|
36927
37230
|
color: textSecondary
|
|
36928
37231
|
}, " Message was deleted. ")) : '', !ogContainerFirst && linkAttachment && !mediaAttachment && !withMediaAttachment && !fileAttachment && (/*#__PURE__*/React__default.createElement(OGMetadata, {
|
|
36929
37232
|
maxWidth: ogMetadataContainerWidth,
|
|
@@ -37041,7 +37344,7 @@ var MessageBody = function MessageBody(_ref) {
|
|
|
37041
37344
|
};
|
|
37042
37345
|
var MessageBody$1 = /*#__PURE__*/React__default.memo(MessageBody, function (prevProps, nextProps) {
|
|
37043
37346
|
var _prevProps$ogMetadata, _nextProps$ogMetadata, _prevProps$ogMetadata2, _nextProps$ogMetadata2, _prevProps$ogMetadata3, _nextProps$ogMetadata3, _prevProps$ogMetadata4, _nextProps$ogMetadata4, _prevProps$ogMetadata5, _nextProps$ogMetadata5, _prevProps$ogMetadata6, _nextProps$ogMetadata6;
|
|
37044
|
-
return !!(prevProps.message.deliveryStatus === nextProps.message.deliveryStatus && prevProps.message.state === nextProps.message.state && prevProps.message.userReactions === nextProps.message.userReactions && prevProps.message.body === nextProps.message.body && prevProps.message.reactionTotals === nextProps.message.reactionTotals && prevProps.message.attachments === nextProps.message.attachments && prevProps.message.userMarkers === nextProps.message.userMarkers && prevProps.prevMessage === nextProps.prevMessage && prevProps.nextMessage === nextProps.nextMessage && prevProps.selectedMessagesMap === nextProps.selectedMessagesMap && prevProps.contactsMap === nextProps.contactsMap && prevProps.connectionStatus === nextProps.connectionStatus && prevProps.openedMessageMenuId === nextProps.openedMessageMenuId && prevProps.ownMessageOnRightSide === nextProps.ownMessageOnRightSide && prevProps.showSenderNameOnDirectChannel === nextProps.showSenderNameOnDirectChannel && prevProps.showSenderNameOnGroupChannel === nextProps.showSenderNameOnGroupChannel && prevProps.showSenderNameOnOwnMessages === nextProps.showSenderNameOnOwnMessages && prevProps.messageStatusAndTimePosition === nextProps.messageStatusAndTimePosition && prevProps.messageStatusDisplayingType === nextProps.messageStatusDisplayingType && prevProps.outgoingMessageStyles === nextProps.outgoingMessageStyles && prevProps.incomingMessageStyles === nextProps.incomingMessageStyles && prevProps.ownRepliedMessageBackground === nextProps.ownRepliedMessageBackground && prevProps.incomingRepliedMessageBackground === nextProps.incomingRepliedMessageBackground && prevProps.showMessageStatus === nextProps.showMessageStatus && prevProps.showMessageTimeAndStatusOnlyOnHover === nextProps.showMessageTimeAndStatusOnlyOnHover && prevProps.showMessageTime === nextProps.showMessageTime && prevProps.showMessageStatusForEachMessage === nextProps.showMessageStatusForEachMessage && prevProps.showMessageTimeForEachMessage === nextProps.showMessageTimeForEachMessage && prevProps.messageReaction === nextProps.messageReaction && prevProps.editMessage === nextProps.editMessage && prevProps.copyMessage === nextProps.copyMessage && prevProps.replyMessage === nextProps.replyMessage && prevProps.replyMessageInThread === nextProps.replyMessageInThread && prevProps.forwardMessage === nextProps.forwardMessage && prevProps.deleteMessage === nextProps.deleteMessage && prevProps.selectMessage === nextProps.selectMessage && prevProps.allowEditDeleteIncomingMessage === nextProps.allowEditDeleteIncomingMessage && prevProps.reportMessage === nextProps.reportMessage && prevProps.reactionIcon === nextProps.reactionIcon && prevProps.editIcon === nextProps.editIcon && prevProps.copyIcon === nextProps.copyIcon && prevProps.replyIcon === nextProps.replyIcon && prevProps.replyInThreadIcon === nextProps.replyInThreadIcon && prevProps.forwardIcon === nextProps.forwardIcon && prevProps.deleteIcon === nextProps.deleteIcon && prevProps.selectIcon === nextProps.selectIcon && prevProps.starIcon === nextProps.starIcon && prevProps.staredIcon === nextProps.staredIcon && prevProps.reportIcon === nextProps.reportIcon && prevProps.fixEmojiCategoriesTitleOnTop === nextProps.fixEmojiCategoriesTitleOnTop && prevProps.emojisCategoryIconsPosition === nextProps.emojisCategoryIconsPosition && prevProps.emojisContainerBorderRadius === nextProps.emojisContainerBorderRadius && prevProps.reactionIconOrder === nextProps.reactionIconOrder && prevProps.editIconOrder === nextProps.editIconOrder && prevProps.copyIconOrder === nextProps.copyIconOrder && prevProps.replyIconOrder === nextProps.replyIconOrder && prevProps.replyInThreadIconOrder === nextProps.replyInThreadIconOrder && prevProps.forwardIconOrder === nextProps.forwardIconOrder && prevProps.deleteIconOrder === nextProps.deleteIconOrder && prevProps.selectIconOrder === nextProps.selectIconOrder && prevProps.starIconOrder === nextProps.starIconOrder && prevProps.reportIconOrder === nextProps.reportIconOrder && prevProps.reactionIconTooltipText === nextProps.reactionIconTooltipText && prevProps.editIconTooltipText === nextProps.editIconTooltipText && prevProps.copyIconTooltipText === nextProps.copyIconTooltipText && prevProps.replyIconTooltipText === nextProps.replyIconTooltipText && prevProps.replyInThreadIconTooltipText === nextProps.replyInThreadIconTooltipText && prevProps.forwardIconTooltipText === nextProps.forwardIconTooltipText && prevProps.deleteIconTooltipText === nextProps.deleteIconTooltipText && prevProps.selectIconTooltipText === nextProps.selectIconTooltipText && prevProps.starIconTooltipText === nextProps.starIconTooltipText && prevProps.reportIconTooltipText === nextProps.reportIconTooltipText && prevProps.messageActionIconsColor === nextProps.messageActionIconsColor && prevProps.inlineReactionIcon === nextProps.inlineReactionIcon && prevProps.messageStatusSize === nextProps.messageStatusSize && prevProps.messageStatusColor === nextProps.messageStatusColor && prevProps.messageReadStatusColor === nextProps.messageReadStatusColor && prevProps.messageStateFontSize === nextProps.messageStateFontSize && prevProps.messageStateColor === nextProps.messageStateColor && prevProps.messageTimeFontSize === nextProps.messageTimeFontSize && prevProps.messageTimeColor === nextProps.messageTimeColor && prevProps.messageStatusAndTimeLineHeight === nextProps.messageStatusAndTimeLineHeight && prevProps.fileAttachmentsBoxWidth === nextProps.fileAttachmentsBoxWidth && prevProps.fileAttachmentsBoxBackground === nextProps.fileAttachmentsBoxBackground && prevProps.fileAttachmentsBoxBorder === nextProps.fileAttachmentsBoxBorder && prevProps.fileAttachmentsTitleColor === nextProps.fileAttachmentsTitleColor && prevProps.fileAttachmentsSizeColor === nextProps.fileAttachmentsSizeColor && prevProps.fileAttachmentsIcon === nextProps.fileAttachmentsIcon && prevProps.imageAttachmentMaxWidth === nextProps.imageAttachmentMaxWidth && prevProps.imageAttachmentMaxHeight === nextProps.imageAttachmentMaxHeight && prevProps.videoAttachmentMaxWidth === nextProps.videoAttachmentMaxWidth && prevProps.videoAttachmentMaxHeight === nextProps.videoAttachmentMaxHeight && prevProps.theme === nextProps.theme && prevProps.messageTextFontSize === nextProps.messageTextFontSize && prevProps.messageTextLineHeight === nextProps.messageTextLineHeight && prevProps.messageActionsShow === nextProps.messageActionsShow && prevProps.emojisPopupOpen === nextProps.emojisPopupOpen && prevProps.emojisPopupPosition === nextProps.emojisPopupPosition && prevProps.frequentlyEmojisOpen === nextProps.frequentlyEmojisOpen && (((_prevProps$ogMetadata = prevProps.ogMetadataProps) === null || _prevProps$ogMetadata === void 0 ? void 0 : _prevProps$ogMetadata.ogLayoutOrder) || 'og-first') === (((_nextProps$ogMetadata = nextProps.ogMetadataProps) === null || _nextProps$ogMetadata === void 0 ? void 0 : _nextProps$ogMetadata.ogLayoutOrder) || 'og-first') && ((_prevProps$ogMetadata2 = prevProps.ogMetadataProps) === null || _prevProps$ogMetadata2 === void 0 ? void 0 : _prevProps$ogMetadata2.ogShowUrl) === ((_nextProps$ogMetadata2 = nextProps.ogMetadataProps) === null || _nextProps$ogMetadata2 === void 0 ? void 0 : _nextProps$ogMetadata2.ogShowUrl) && ((_prevProps$ogMetadata3 = prevProps.ogMetadataProps) === null || _prevProps$ogMetadata3 === void 0 ? void 0 : _prevProps$ogMetadata3.ogShowTitle) === ((_nextProps$ogMetadata3 = nextProps.ogMetadataProps) === null || _nextProps$ogMetadata3 === void 0 ? void 0 : _nextProps$ogMetadata3.ogShowTitle) && ((_prevProps$ogMetadata4 = prevProps.ogMetadataProps) === null || _prevProps$ogMetadata4 === void 0 ? void 0 : _prevProps$ogMetadata4.ogShowDescription) === ((_nextProps$ogMetadata4 = nextProps.ogMetadataProps) === null || _nextProps$ogMetadata4 === void 0 ? void 0 : _nextProps$ogMetadata4.ogShowDescription) && ((_prevProps$ogMetadata5 = prevProps.ogMetadataProps) === null || _prevProps$ogMetadata5 === void 0 ? void 0 : _prevProps$ogMetadata5.ogShowFavicon) === ((_nextProps$ogMetadata5 = nextProps.ogMetadataProps) === null || _nextProps$ogMetadata5 === void 0 ? void 0 : _nextProps$ogMetadata5.ogShowFavicon) && ((_prevProps$ogMetadata6 = prevProps.ogMetadataProps) === null || _prevProps$ogMetadata6 === void 0 ? void 0 : _prevProps$ogMetadata6.order) === ((_nextProps$ogMetadata6 = nextProps.ogMetadataProps) === null || _nextProps$ogMetadata6 === void 0 ? void 0 : _nextProps$ogMetadata6.order));
|
|
37347
|
+
return !!(prevProps.message.deliveryStatus === nextProps.message.deliveryStatus && prevProps.message.state === nextProps.message.state && prevProps.message.userReactions === nextProps.message.userReactions && prevProps.message.body === nextProps.message.body && prevProps.message.reactionTotals === nextProps.message.reactionTotals && prevProps.message.attachments === nextProps.message.attachments && prevProps.message.userMarkers === nextProps.message.userMarkers && prevProps.prevMessage === nextProps.prevMessage && prevProps.nextMessage === nextProps.nextMessage && prevProps.selectedMessagesMap === nextProps.selectedMessagesMap && prevProps.contactsMap === nextProps.contactsMap && prevProps.connectionStatus === nextProps.connectionStatus && prevProps.openedMessageMenuId === nextProps.openedMessageMenuId && prevProps.ownMessageOnRightSide === nextProps.ownMessageOnRightSide && prevProps.showSenderNameOnDirectChannel === nextProps.showSenderNameOnDirectChannel && prevProps.showSenderNameOnGroupChannel === nextProps.showSenderNameOnGroupChannel && prevProps.showSenderNameOnOwnMessages === nextProps.showSenderNameOnOwnMessages && prevProps.messageStatusAndTimePosition === nextProps.messageStatusAndTimePosition && prevProps.messageStatusDisplayingType === nextProps.messageStatusDisplayingType && prevProps.outgoingMessageStyles === nextProps.outgoingMessageStyles && prevProps.incomingMessageStyles === nextProps.incomingMessageStyles && prevProps.ownRepliedMessageBackground === nextProps.ownRepliedMessageBackground && prevProps.incomingRepliedMessageBackground === nextProps.incomingRepliedMessageBackground && prevProps.showMessageStatus === nextProps.showMessageStatus && prevProps.showMessageTimeAndStatusOnlyOnHover === nextProps.showMessageTimeAndStatusOnlyOnHover && prevProps.showMessageTime === nextProps.showMessageTime && prevProps.showMessageStatusForEachMessage === nextProps.showMessageStatusForEachMessage && prevProps.showMessageTimeForEachMessage === nextProps.showMessageTimeForEachMessage && prevProps.messageReaction === nextProps.messageReaction && prevProps.editMessage === nextProps.editMessage && prevProps.copyMessage === nextProps.copyMessage && prevProps.replyMessage === nextProps.replyMessage && prevProps.replyMessageInThread === nextProps.replyMessageInThread && prevProps.forwardMessage === nextProps.forwardMessage && prevProps.deleteMessage === nextProps.deleteMessage && prevProps.selectMessage === nextProps.selectMessage && prevProps.allowEditDeleteIncomingMessage === nextProps.allowEditDeleteIncomingMessage && prevProps.reportMessage === nextProps.reportMessage && prevProps.reactionIcon === nextProps.reactionIcon && prevProps.editIcon === nextProps.editIcon && prevProps.copyIcon === nextProps.copyIcon && prevProps.replyIcon === nextProps.replyIcon && prevProps.replyInThreadIcon === nextProps.replyInThreadIcon && prevProps.forwardIcon === nextProps.forwardIcon && prevProps.deleteIcon === nextProps.deleteIcon && prevProps.selectIcon === nextProps.selectIcon && prevProps.starIcon === nextProps.starIcon && prevProps.staredIcon === nextProps.staredIcon && prevProps.reportIcon === nextProps.reportIcon && prevProps.fixEmojiCategoriesTitleOnTop === nextProps.fixEmojiCategoriesTitleOnTop && prevProps.emojisCategoryIconsPosition === nextProps.emojisCategoryIconsPosition && prevProps.emojisContainerBorderRadius === nextProps.emojisContainerBorderRadius && prevProps.reactionIconOrder === nextProps.reactionIconOrder && prevProps.editIconOrder === nextProps.editIconOrder && prevProps.copyIconOrder === nextProps.copyIconOrder && prevProps.replyIconOrder === nextProps.replyIconOrder && prevProps.replyInThreadIconOrder === nextProps.replyInThreadIconOrder && prevProps.forwardIconOrder === nextProps.forwardIconOrder && prevProps.deleteIconOrder === nextProps.deleteIconOrder && prevProps.selectIconOrder === nextProps.selectIconOrder && prevProps.starIconOrder === nextProps.starIconOrder && prevProps.reportIconOrder === nextProps.reportIconOrder && prevProps.reactionIconTooltipText === nextProps.reactionIconTooltipText && prevProps.editIconTooltipText === nextProps.editIconTooltipText && prevProps.copyIconTooltipText === nextProps.copyIconTooltipText && prevProps.replyIconTooltipText === nextProps.replyIconTooltipText && prevProps.replyInThreadIconTooltipText === nextProps.replyInThreadIconTooltipText && prevProps.forwardIconTooltipText === nextProps.forwardIconTooltipText && prevProps.deleteIconTooltipText === nextProps.deleteIconTooltipText && prevProps.selectIconTooltipText === nextProps.selectIconTooltipText && prevProps.starIconTooltipText === nextProps.starIconTooltipText && prevProps.reportIconTooltipText === nextProps.reportIconTooltipText && prevProps.messageActionIconsColor === nextProps.messageActionIconsColor && prevProps.inlineReactionIcon === nextProps.inlineReactionIcon && prevProps.messageStatusSize === nextProps.messageStatusSize && prevProps.messageStatusColor === nextProps.messageStatusColor && prevProps.messageReadStatusColor === nextProps.messageReadStatusColor && prevProps.messageStateFontSize === nextProps.messageStateFontSize && prevProps.messageStateColor === nextProps.messageStateColor && prevProps.messageTimeFontSize === nextProps.messageTimeFontSize && prevProps.messageTimeColor === nextProps.messageTimeColor && prevProps.messageStatusAndTimeLineHeight === nextProps.messageStatusAndTimeLineHeight && prevProps.fileAttachmentsBoxWidth === nextProps.fileAttachmentsBoxWidth && prevProps.fileAttachmentsBoxBackground === nextProps.fileAttachmentsBoxBackground && prevProps.fileAttachmentsBoxBorder === nextProps.fileAttachmentsBoxBorder && prevProps.fileAttachmentsTitleColor === nextProps.fileAttachmentsTitleColor && prevProps.fileAttachmentsSizeColor === nextProps.fileAttachmentsSizeColor && prevProps.fileAttachmentsIcon === nextProps.fileAttachmentsIcon && prevProps.imageAttachmentMaxWidth === nextProps.imageAttachmentMaxWidth && prevProps.imageAttachmentMaxHeight === nextProps.imageAttachmentMaxHeight && prevProps.videoAttachmentMaxWidth === nextProps.videoAttachmentMaxWidth && prevProps.videoAttachmentMaxHeight === nextProps.videoAttachmentMaxHeight && prevProps.theme === nextProps.theme && prevProps.messageTextFontSize === nextProps.messageTextFontSize && prevProps.messageTextLineHeight === nextProps.messageTextLineHeight && prevProps.messageActionsShow === nextProps.messageActionsShow && prevProps.emojisPopupOpen === nextProps.emojisPopupOpen && prevProps.emojisPopupPosition === nextProps.emojisPopupPosition && prevProps.frequentlyEmojisOpen === nextProps.frequentlyEmojisOpen && (((_prevProps$ogMetadata = prevProps.ogMetadataProps) === null || _prevProps$ogMetadata === void 0 ? void 0 : _prevProps$ogMetadata.ogLayoutOrder) || 'og-first') === (((_nextProps$ogMetadata = nextProps.ogMetadataProps) === null || _nextProps$ogMetadata === void 0 ? void 0 : _nextProps$ogMetadata.ogLayoutOrder) || 'og-first') && ((_prevProps$ogMetadata2 = prevProps.ogMetadataProps) === null || _prevProps$ogMetadata2 === void 0 ? void 0 : _prevProps$ogMetadata2.ogShowUrl) === ((_nextProps$ogMetadata2 = nextProps.ogMetadataProps) === null || _nextProps$ogMetadata2 === void 0 ? void 0 : _nextProps$ogMetadata2.ogShowUrl) && ((_prevProps$ogMetadata3 = prevProps.ogMetadataProps) === null || _prevProps$ogMetadata3 === void 0 ? void 0 : _prevProps$ogMetadata3.ogShowTitle) === ((_nextProps$ogMetadata3 = nextProps.ogMetadataProps) === null || _nextProps$ogMetadata3 === void 0 ? void 0 : _nextProps$ogMetadata3.ogShowTitle) && ((_prevProps$ogMetadata4 = prevProps.ogMetadataProps) === null || _prevProps$ogMetadata4 === void 0 ? void 0 : _prevProps$ogMetadata4.ogShowDescription) === ((_nextProps$ogMetadata4 = nextProps.ogMetadataProps) === null || _nextProps$ogMetadata4 === void 0 ? void 0 : _nextProps$ogMetadata4.ogShowDescription) && ((_prevProps$ogMetadata5 = prevProps.ogMetadataProps) === null || _prevProps$ogMetadata5 === void 0 ? void 0 : _prevProps$ogMetadata5.ogShowFavicon) === ((_nextProps$ogMetadata5 = nextProps.ogMetadataProps) === null || _nextProps$ogMetadata5 === void 0 ? void 0 : _nextProps$ogMetadata5.ogShowFavicon) && ((_prevProps$ogMetadata6 = prevProps.ogMetadataProps) === null || _prevProps$ogMetadata6 === void 0 ? void 0 : _prevProps$ogMetadata6.order) === ((_nextProps$ogMetadata6 = nextProps.ogMetadataProps) === null || _nextProps$ogMetadata6 === void 0 ? void 0 : _nextProps$ogMetadata6.order) && prevProps.collapsedCharacterLimit === nextProps.collapsedCharacterLimit);
|
|
37045
37348
|
});
|
|
37046
37349
|
var ForwardedTitle = styled__default.h3(_templateObject$H || (_templateObject$H = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n font-weight: 500;\n font-size: 13px;\n line-height: 16px;\n color: ", ";\n // margin: ", ";\n margin: 0;\n padding: ", ";\n padding-top: ", ";\n padding-bottom: ", ";\n\n & > svg {\n margin-right: 4px;\n width: 16px;\n height: 16px;\n color: ", ";\n }\n"])), function (props) {
|
|
37047
37350
|
return props.color;
|
|
@@ -37098,8 +37401,14 @@ var FrequentlyEmojisContainer = styled__default.div(_templateObject5$m || (_temp
|
|
|
37098
37401
|
}, function (props) {
|
|
37099
37402
|
return props.rtlDirection && '0';
|
|
37100
37403
|
});
|
|
37404
|
+
var TextContentContainer = styled__default.div(_templateObject6$k || (_templateObject6$k = _taggedTemplateLiteralLoose(["\n overflow: hidden;\n height: ", ";\n transition: height 0.3s ease-out;\n"])), function (props) {
|
|
37405
|
+
return props.textHeight !== 'auto' ? props.textHeight + "px" : 'auto';
|
|
37406
|
+
});
|
|
37407
|
+
var ReadMoreLink = styled__default.span(_templateObject7$j || (_templateObject7$j = _taggedTemplateLiteralLoose(["\n display: block;\n color: ", ";\n cursor: pointer;\n font-weight: 500;\n margin-top: 8px;\n font-style: Medium;\n font-size: 15px;\n line-height: 20px;\n letter-spacing: -0.4px;\n user-select: none;\n transition: opacity 0.2s ease;\n"])), function (props) {
|
|
37408
|
+
return props.accentColor;
|
|
37409
|
+
});
|
|
37101
37410
|
|
|
37102
|
-
var _templateObject$I, _templateObject2$D, _templateObject3$x, _templateObject4$s, _templateObject5$n, _templateObject6$
|
|
37411
|
+
var _templateObject$I, _templateObject2$D, _templateObject3$x, _templateObject4$s, _templateObject5$n, _templateObject6$l, _templateObject7$k, _templateObject8$h, _templateObject9$f, _templateObject0$e, _templateObject1$b;
|
|
37103
37412
|
var defaultFormatDate = function defaultFormatDate(date) {
|
|
37104
37413
|
var m = moment(date);
|
|
37105
37414
|
if (m.isSame(moment(), 'day')) {
|
|
@@ -37594,10 +37903,10 @@ var Row$2 = styled__default.div(_templateObject4$s || (_templateObject4$s = _tag
|
|
|
37594
37903
|
return p.backgroundHover;
|
|
37595
37904
|
});
|
|
37596
37905
|
var RowInfo = styled__default.div(_templateObject5$n || (_templateObject5$n = _taggedTemplateLiteralLoose(["\n display: flex;\n margin-right: auto;\n min-width: 0;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n"])));
|
|
37597
|
-
var RowTitle = styled__default.div(_templateObject6$
|
|
37906
|
+
var RowTitle = styled__default.div(_templateObject6$l || (_templateObject6$l = _taggedTemplateLiteralLoose(["\n color: ", ";\n font-size: 16px;\n font-weight: 500;\n line-height: 22px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])), function (p) {
|
|
37598
37907
|
return p.color;
|
|
37599
37908
|
});
|
|
37600
|
-
var RowDate = styled__default.div(_templateObject7$
|
|
37909
|
+
var RowDate = styled__default.div(_templateObject7$k || (_templateObject7$k = _taggedTemplateLiteralLoose(["\n color: ", ";\n min-width: max-content;\n font-weight: 400;\n font-size: 13px;\n line-height: 16px;\n"])), function (p) {
|
|
37601
37910
|
return p.color;
|
|
37602
37911
|
});
|
|
37603
37912
|
var Empty = styled__default.div(_templateObject8$h || (_templateObject8$h = _taggedTemplateLiteralLoose(["\n color: ", ";\n text-align: center;\n padding: 16px 0;\n font-size: 14px;\n height: calc(100% - 32px);\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n"])), function (p) {
|
|
@@ -37643,7 +37952,7 @@ function ConfirmEndPollPopup(_ref) {
|
|
|
37643
37952
|
});
|
|
37644
37953
|
}
|
|
37645
37954
|
|
|
37646
|
-
var _templateObject$J, _templateObject2$E, _templateObject3$y, _templateObject4$t, _templateObject5$o, _templateObject6$
|
|
37955
|
+
var _templateObject$J, _templateObject2$E, _templateObject3$y, _templateObject4$t, _templateObject5$o, _templateObject6$m, _templateObject7$l, _templateObject8$i, _templateObject9$g, _templateObject0$f, _templateObject1$c, _templateObject10$7, _templateObject11$5, _templateObject12$4;
|
|
37647
37956
|
var Message$1 = function Message(_ref) {
|
|
37648
37957
|
var message = _ref.message,
|
|
37649
37958
|
channel = _ref.channel,
|
|
@@ -37801,7 +38110,8 @@ var Message$1 = function Message(_ref) {
|
|
|
37801
38110
|
shouldOpenUserProfileForMention = _ref.shouldOpenUserProfileForMention,
|
|
37802
38111
|
ogMetadataProps = _ref.ogMetadataProps,
|
|
37803
38112
|
_ref$showInfoMessageP = _ref.showInfoMessageProps,
|
|
37804
|
-
showInfoMessageProps = _ref$showInfoMessageP === void 0 ? {} : _ref$showInfoMessageP
|
|
38113
|
+
showInfoMessageProps = _ref$showInfoMessageP === void 0 ? {} : _ref$showInfoMessageP,
|
|
38114
|
+
collapsedCharacterLimit = _ref.collapsedCharacterLimit;
|
|
37805
38115
|
var _useColor = useColors(),
|
|
37806
38116
|
accentColor = _useColor[THEME_COLORS.ACCENT],
|
|
37807
38117
|
backgroundSections = _useColor[THEME_COLORS.BACKGROUND_SECTIONS],
|
|
@@ -37945,7 +38255,17 @@ var Message$1 = function Message(_ref) {
|
|
|
37945
38255
|
setMessageActionsShow(false);
|
|
37946
38256
|
};
|
|
37947
38257
|
var handleCopyMessage = function handleCopyMessage() {
|
|
37948
|
-
|
|
38258
|
+
var getFromContacts = getShowOnlyContactUsers();
|
|
38259
|
+
var textToCopyHTML = MessageTextFormat({
|
|
38260
|
+
text: message.body,
|
|
38261
|
+
message: message,
|
|
38262
|
+
contactsMap: contactsMap,
|
|
38263
|
+
getFromContacts: getFromContacts,
|
|
38264
|
+
accentColor: '',
|
|
38265
|
+
textSecondary: ''
|
|
38266
|
+
});
|
|
38267
|
+
var textToCopy = typeof textToCopyHTML === 'string' ? textToCopyHTML : _extractTextFromReactElement(textToCopyHTML);
|
|
38268
|
+
navigator.clipboard.writeText(textToCopy);
|
|
37949
38269
|
setMessageActionsShow(false);
|
|
37950
38270
|
};
|
|
37951
38271
|
var handleToggleReactionsPopup = function handleToggleReactionsPopup() {
|
|
@@ -38334,7 +38654,8 @@ var Message$1 = function Message(_ref) {
|
|
|
38334
38654
|
handleOpenUserProfile: handleOpenUserProfile,
|
|
38335
38655
|
shouldOpenUserProfileForMention: shouldOpenUserProfileForMention,
|
|
38336
38656
|
ogMetadataProps: ogMetadataProps,
|
|
38337
|
-
unsupportedMessage: unsupportedMessage
|
|
38657
|
+
unsupportedMessage: unsupportedMessage,
|
|
38658
|
+
collapsedCharacterLimit: collapsedCharacterLimit
|
|
38338
38659
|
})), messageStatusAndTimePosition === 'bottomOfMessage' && (messageStatusVisible || messageTimeVisible) && (/*#__PURE__*/React__default.createElement(MessageStatusAndTime$1, {
|
|
38339
38660
|
message: message,
|
|
38340
38661
|
showMessageTimeAndStatusOnlyOnHover: showMessageTimeAndStatusOnlyOnHover,
|
|
@@ -38473,8 +38794,8 @@ var FailedMessageIcon = styled__default.div(_templateObject5$o || (_templateObje
|
|
|
38473
38794
|
}, function (props) {
|
|
38474
38795
|
return props.rtl && '-24px';
|
|
38475
38796
|
});
|
|
38476
|
-
var ErrorIconWrapper = styled__default(SvgErrorIcon)(_templateObject6$
|
|
38477
|
-
var SelectMessageWrapper = styled__default.div(_templateObject7$
|
|
38797
|
+
var ErrorIconWrapper = styled__default(SvgErrorIcon)(_templateObject6$m || (_templateObject6$m = _taggedTemplateLiteralLoose(["\n width: 20px;\n height: 20px;\n"])));
|
|
38798
|
+
var SelectMessageWrapper = styled__default.div(_templateObject7$l || (_templateObject7$l = _taggedTemplateLiteralLoose(["\n display: flex;\n padding: 10px;\n position: absolute;\n left: 4%;\n bottom: calc(50% - 22px);\n cursor: ", ";\n & > svg {\n color: ", ";\n width: 24px;\n height: 24px;\n }\n"])), function (props) {
|
|
38478
38799
|
return !props.disabled && 'pointer';
|
|
38479
38800
|
}, function (props) {
|
|
38480
38801
|
return props.activeColor;
|
|
@@ -38545,7 +38866,7 @@ var MessageItem = styled__default.div(_templateObject12$4 || (_templateObject12$
|
|
|
38545
38866
|
return props.hoverBackground || '';
|
|
38546
38867
|
}, HiddenMessageTime$1, MessageStatus$1);
|
|
38547
38868
|
|
|
38548
|
-
var _templateObject$K, _templateObject2$F, _templateObject3$z, _templateObject4$u, _templateObject5$p, _templateObject6$
|
|
38869
|
+
var _templateObject$K, _templateObject2$F, _templateObject3$z, _templateObject4$u, _templateObject5$p, _templateObject6$n, _templateObject7$m, _templateObject8$j, _templateObject9$h, _templateObject0$g, _templateObject1$d;
|
|
38549
38870
|
var CreateMessageDateDivider = function CreateMessageDateDivider(_ref) {
|
|
38550
38871
|
var lastIndex = _ref.lastIndex,
|
|
38551
38872
|
currentMessageDate = _ref.currentMessageDate,
|
|
@@ -38735,7 +39056,8 @@ var MessageList = function MessageList(_ref2) {
|
|
|
38735
39056
|
shouldOpenUserProfileForMention = _ref2.shouldOpenUserProfileForMention,
|
|
38736
39057
|
_ref2$showInfoMessage = _ref2.showInfoMessageProps,
|
|
38737
39058
|
showInfoMessageProps = _ref2$showInfoMessage === void 0 ? {} : _ref2$showInfoMessage,
|
|
38738
|
-
ogMetadataProps = _ref2.ogMetadataProps
|
|
39059
|
+
ogMetadataProps = _ref2.ogMetadataProps,
|
|
39060
|
+
collapsedCharacterLimit = _ref2.collapsedCharacterLimit;
|
|
38739
39061
|
var _useColor = useColors(),
|
|
38740
39062
|
outgoingMessageBackground = _useColor[THEME_COLORS.OUTGOING_MESSAGE_BACKGROUND],
|
|
38741
39063
|
themeBackgroundColor = _useColor[THEME_COLORS.BACKGROUND],
|
|
@@ -39596,7 +39918,8 @@ var MessageList = function MessageList(_ref2) {
|
|
|
39596
39918
|
messageStatusAndTimeLineHeight: messageStatusAndTimeLineHeight,
|
|
39597
39919
|
shouldOpenUserProfileForMention: shouldOpenUserProfileForMention,
|
|
39598
39920
|
showInfoMessageProps: showInfoMessageProps,
|
|
39599
|
-
ogMetadataProps: ogMetadataProps
|
|
39921
|
+
ogMetadataProps: ogMetadataProps,
|
|
39922
|
+
collapsedCharacterLimit: collapsedCharacterLimit
|
|
39600
39923
|
}))), isUnreadMessage ? (/*#__PURE__*/React__default.createElement(MessageDivider, {
|
|
39601
39924
|
theme: theme,
|
|
39602
39925
|
newMessagesSeparatorTextColor: newMessagesSeparatorTextColor,
|
|
@@ -39659,12 +39982,12 @@ var DragAndDropContainer = styled__default.div(_templateObject5$p || (_templateO
|
|
|
39659
39982
|
}, function (props) {
|
|
39660
39983
|
return props.backgroundColor;
|
|
39661
39984
|
});
|
|
39662
|
-
var IconWrapper$1 = styled__default.span(_templateObject6$
|
|
39985
|
+
var IconWrapper$1 = styled__default.span(_templateObject6$n || (_templateObject6$n = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 64px;\n width: 64px;\n background-color: ", ";\n border-radius: 50%;\n text-align: center;\n margin-bottom: 16px;\n transition: all 0.3s;\n pointer-events: none;\n\n & > svg {\n color: ", ";\n width: 32px;\n height: 32px;\n }\n"])), function (props) {
|
|
39663
39986
|
return props.backgroundColor;
|
|
39664
39987
|
}, function (props) {
|
|
39665
39988
|
return props.iconColor;
|
|
39666
39989
|
});
|
|
39667
|
-
var DropAttachmentArea = styled__default.div(_templateObject7$
|
|
39990
|
+
var DropAttachmentArea = styled__default.div(_templateObject7$m || (_templateObject7$m = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n height: 100%;\n border: 1px dashed ", ";\n border-radius: 16px;\n margin: ", ";\n font-weight: 400;\n font-size: 15px;\n line-height: 18px;\n letter-spacing: -0.2px;\n color: ", ";\n transition: all 0.1s;\n\n &.dragover {\n background-color: ", ";\n border: 1px dashed ", ";\n\n ", " {\n background-color: ", ";\n }\n }\n"])), function (props) {
|
|
39668
39991
|
return props.borderColor;
|
|
39669
39992
|
}, function (props) {
|
|
39670
39993
|
return props.margin || '12px 32px 32px';
|
|
@@ -39857,7 +40180,8 @@ var MessagesContainer = function MessagesContainer(_ref) {
|
|
|
39857
40180
|
},
|
|
39858
40181
|
infoPadding: '0 8px',
|
|
39859
40182
|
isInviteLink: false
|
|
39860
|
-
} : _ref$ogMetadataProps
|
|
40183
|
+
} : _ref$ogMetadataProps,
|
|
40184
|
+
collapsedCharacterLimit = _ref.collapsedCharacterLimit;
|
|
39861
40185
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(MessageList, {
|
|
39862
40186
|
fontFamily: fontFamily,
|
|
39863
40187
|
ownMessageOnRightSide: ownMessageOnRightSide,
|
|
@@ -39991,7 +40315,8 @@ var MessagesContainer = function MessagesContainer(_ref) {
|
|
|
39991
40315
|
hiddenMessagesProperties: hiddenMessagesProperties,
|
|
39992
40316
|
shouldOpenUserProfileForMention: shouldOpenUserProfileForMention,
|
|
39993
40317
|
showInfoMessageProps: showInfoMessageProps,
|
|
39994
|
-
ogMetadataProps: ogMetadataProps
|
|
40318
|
+
ogMetadataProps: ogMetadataProps,
|
|
40319
|
+
collapsedCharacterLimit: collapsedCharacterLimit
|
|
39995
40320
|
}));
|
|
39996
40321
|
};
|
|
39997
40322
|
|
|
@@ -40118,7 +40443,6 @@ var LENGTH_LIMIT = 75;
|
|
|
40118
40443
|
var AtSignMentionsRegex = new RegExp('(^|\\s|\\()(' + '[' + TRIGGERS + ']' + '((?:' + VALID_CHARS + VALID_JOINS + '){0,' + LENGTH_LIMIT + '})' + ')$');
|
|
40119
40444
|
var ALIAS_LENGTH_LIMIT = 50;
|
|
40120
40445
|
var AtSignMentionsRegexAliasRegex = new RegExp('(^|\\s|\\()(' + '[' + TRIGGERS + ']' + '((?:' + VALID_CHARS + '){0,' + ALIAS_LENGTH_LIMIT + '})' + ')$');
|
|
40121
|
-
var SUGGESTION_LIST_LENGTH_LIMIT = 50;
|
|
40122
40446
|
var mentionsCache = new Map();
|
|
40123
40447
|
var membersMap = {};
|
|
40124
40448
|
function useMentionLookupService(mentionString, contactsMap, userId, members, getFromContacts) {
|
|
@@ -40242,11 +40566,16 @@ function MentionsContainer(_ref2) {
|
|
|
40242
40566
|
selectedIndex = _ref2.selectedIndex,
|
|
40243
40567
|
selectOptionAndCleanUp = _ref2.selectOptionAndCleanUp,
|
|
40244
40568
|
setHighlightedIndex = _ref2.setHighlightedIndex,
|
|
40245
|
-
setMentionsIsOpen = _ref2.setMentionsIsOpen
|
|
40569
|
+
setMentionsIsOpen = _ref2.setMentionsIsOpen,
|
|
40570
|
+
channelId = _ref2.channelId;
|
|
40246
40571
|
var theme = useSelector(themeSelector);
|
|
40247
40572
|
var _useColor2 = useColors(),
|
|
40248
40573
|
borderColor = _useColor2[THEME_COLORS.BORDER],
|
|
40249
40574
|
background = _useColor2[THEME_COLORS.BACKGROUND];
|
|
40575
|
+
var dispatch = useDispatch();
|
|
40576
|
+
var membersHasNext = useSelector(membersHasNextSelector);
|
|
40577
|
+
var membersLoadingState = useSelector(membersLoadingStateSelector);
|
|
40578
|
+
var mentionsListRef = React.useRef(null);
|
|
40250
40579
|
var contRef = React.useRef();
|
|
40251
40580
|
var handleKeyDown = function handleKeyDown(event) {
|
|
40252
40581
|
var code = event.code;
|
|
@@ -40287,13 +40616,22 @@ function MentionsContainer(_ref2) {
|
|
|
40287
40616
|
setMentionsIsOpen(false);
|
|
40288
40617
|
};
|
|
40289
40618
|
}, []);
|
|
40619
|
+
var handleScroll = React.useCallback(function (e) {
|
|
40620
|
+
var target = e.currentTarget;
|
|
40621
|
+
var isScrolledToBottom = target.scrollHeight - target.scrollTop <= target.clientHeight + 10;
|
|
40622
|
+
if (isScrolledToBottom && membersHasNext && membersLoadingState !== LOADING_STATE.LOADING && channelId) {
|
|
40623
|
+
dispatch(loadMoreMembersAC(15, channelId));
|
|
40624
|
+
}
|
|
40625
|
+
}, [membersHasNext, membersLoadingState, channelId, dispatch]);
|
|
40290
40626
|
return /*#__PURE__*/React__default.createElement(MentionsContainerWrapper, {
|
|
40291
40627
|
className: 'typeahead-popover mentions-menu',
|
|
40292
40628
|
ref: contRef
|
|
40293
40629
|
}, /*#__PURE__*/React__default.createElement(MentionsList, {
|
|
40630
|
+
ref: mentionsListRef,
|
|
40294
40631
|
borderColor: borderColor,
|
|
40295
40632
|
backgroundColor: background,
|
|
40296
|
-
theme: theme
|
|
40633
|
+
theme: theme,
|
|
40634
|
+
onScroll: handleScroll
|
|
40297
40635
|
}, options.map(function (option, i) {
|
|
40298
40636
|
return /*#__PURE__*/React__default.createElement(MentionsTypeaheadMenuItem, {
|
|
40299
40637
|
index: i,
|
|
@@ -40316,7 +40654,8 @@ function MentionsPlugin(_ref3) {
|
|
|
40316
40654
|
getFromContacts = _ref3.getFromContacts,
|
|
40317
40655
|
setMentionMember = _ref3.setMentionMember,
|
|
40318
40656
|
setMentionsIsOpen = _ref3.setMentionsIsOpen,
|
|
40319
|
-
members = _ref3.members
|
|
40657
|
+
members = _ref3.members,
|
|
40658
|
+
channelId = _ref3.channelId;
|
|
40320
40659
|
var _useLexicalComposerCo = LexicalComposerContext.useLexicalComposerContext(),
|
|
40321
40660
|
editor = _useLexicalComposerCo[0];
|
|
40322
40661
|
var _useState2 = React.useState(null),
|
|
@@ -40329,8 +40668,8 @@ function MentionsPlugin(_ref3) {
|
|
|
40329
40668
|
var options = React.useMemo(function () {
|
|
40330
40669
|
return results.map(function (result) {
|
|
40331
40670
|
return new MentionTypeaheadOption(result.name, result.id, result.presence, result.avatar);
|
|
40332
|
-
})
|
|
40333
|
-
}, [results]);
|
|
40671
|
+
});
|
|
40672
|
+
}, [results === null || results === void 0 ? void 0 : results.length]);
|
|
40334
40673
|
var handleOnOpen = function handleOnOpen() {
|
|
40335
40674
|
var menuElement = document.getElementById('typeahead-menu');
|
|
40336
40675
|
if (menuElement) {
|
|
@@ -40372,13 +40711,14 @@ function MentionsPlugin(_ref3) {
|
|
|
40372
40711
|
var selectedIndex = _ref4.selectedIndex,
|
|
40373
40712
|
selectOptionAndCleanUp = _ref4.selectOptionAndCleanUp,
|
|
40374
40713
|
setHighlightedIndex = _ref4.setHighlightedIndex;
|
|
40375
|
-
return anchorElementRef.current &&
|
|
40714
|
+
return anchorElementRef.current && options.length ? /*#__PURE__*/ReactDOM.createPortal(/*#__PURE__*/React__default.createElement(MentionsContainer, {
|
|
40376
40715
|
queryString: queryString,
|
|
40377
40716
|
options: options,
|
|
40378
40717
|
setMentionsIsOpen: setMentionsIsOpen,
|
|
40379
40718
|
selectOptionAndCleanUp: selectOptionAndCleanUp,
|
|
40380
40719
|
selectedIndex: selectedIndex,
|
|
40381
|
-
setHighlightedIndex: setHighlightedIndex
|
|
40720
|
+
setHighlightedIndex: setHighlightedIndex,
|
|
40721
|
+
channelId: channelId
|
|
40382
40722
|
}), anchorElementRef.current) : null;
|
|
40383
40723
|
}
|
|
40384
40724
|
});
|
|
@@ -41336,7 +41676,7 @@ function FormatMessagePlugin(_ref3) {
|
|
|
41336
41676
|
return null;
|
|
41337
41677
|
}
|
|
41338
41678
|
|
|
41339
|
-
var _templateObject$N, _templateObject2$I, _templateObject3$B, _templateObject4$w, _templateObject5$r, _templateObject6$
|
|
41679
|
+
var _templateObject$N, _templateObject2$I, _templateObject3$B, _templateObject4$w, _templateObject5$r, _templateObject6$o, _templateObject7$n, _templateObject8$k;
|
|
41340
41680
|
var EmojiIcon$1 = function EmojiIcon(_ref) {
|
|
41341
41681
|
var collectionName = _ref.collectionName;
|
|
41342
41682
|
switch (collectionName) {
|
|
@@ -41562,8 +41902,8 @@ var EmojiCollection$1 = styled__default.span(_templateObject4$w || (_templateObj
|
|
|
41562
41902
|
return props.iconColor;
|
|
41563
41903
|
});
|
|
41564
41904
|
var CollectionPointer$1 = styled__default.span(_templateObject5$r || (_templateObject5$r = _taggedTemplateLiteralLoose([""])));
|
|
41565
|
-
var AllEmojis$1 = styled__default.ul(_templateObject6$
|
|
41566
|
-
var EmojiFooter$1 = styled__default.div(_templateObject7$
|
|
41905
|
+
var AllEmojis$1 = styled__default.ul(_templateObject6$o || (_templateObject6$o = _taggedTemplateLiteralLoose(["\n overflow: hidden;\n padding: 0 8px 8px;\n margin: 0;\n"])));
|
|
41906
|
+
var EmojiFooter$1 = styled__default.div(_templateObject7$n || (_templateObject7$n = _taggedTemplateLiteralLoose(["\n height: 42px;\n display: flex;\n justify-content: space-around;\n align-items: center;\n border-top: ", ";\n border-bottom: ", ";\n padding: 0 10px;\n & > span {\n width: 100%;\n text-align: center;\n }\n"])), function (props) {
|
|
41567
41907
|
return props.emojisCategoryIconsPosition !== 'top' && "1px solid " + props.borderColor;
|
|
41568
41908
|
}, function (props) {
|
|
41569
41909
|
return props.emojisCategoryIconsPosition === 'top' && "1px solid " + props.borderColor;
|
|
@@ -41769,7 +42109,7 @@ function SvgRecordButton(props) {
|
|
|
41769
42109
|
})));
|
|
41770
42110
|
}
|
|
41771
42111
|
|
|
41772
|
-
var _templateObject$O, _templateObject2$J, _templateObject3$C, _templateObject4$x, _templateObject5$s, _templateObject6$
|
|
42112
|
+
var _templateObject$O, _templateObject2$J, _templateObject3$C, _templateObject4$x, _templateObject5$s, _templateObject6$p, _templateObject7$o;
|
|
41773
42113
|
var fieldsObject = {
|
|
41774
42114
|
channelId: '',
|
|
41775
42115
|
currentRecordedFile: null,
|
|
@@ -42411,7 +42751,7 @@ var AudioVisualization$1 = styled__default.div(_templateObject4$x || (_templateO
|
|
|
42411
42751
|
var PlayPause$1 = styled__default.div(_templateObject5$s || (_templateObject5$s = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n padding: 10px;\n > svg {\n color: ", ";\n }\n"])), function (props) {
|
|
42412
42752
|
return props.iconColor;
|
|
42413
42753
|
});
|
|
42414
|
-
var Canvas = styled__default.canvas(_templateObject6$
|
|
42754
|
+
var Canvas = styled__default.canvas(_templateObject6$p || (_templateObject6$p = _taggedTemplateLiteralLoose(["\n height: 28px;\n width: ", ";\n max-width: calc(100% - 110px);\n position: absolute;\n opacity: ", ";\n z-index: ", ";\n left: 42px;\n"])), function (_ref8) {
|
|
42415
42755
|
var recording = _ref8.recording;
|
|
42416
42756
|
return recording ? '300px' : '0';
|
|
42417
42757
|
}, function (_ref9) {
|
|
@@ -42421,7 +42761,7 @@ var Canvas = styled__default.canvas(_templateObject6$o || (_templateObject6$o =
|
|
|
42421
42761
|
var hide = _ref0.hide;
|
|
42422
42762
|
return hide && '-1';
|
|
42423
42763
|
});
|
|
42424
|
-
var Timer$2 = styled__default.div(_templateObject7$
|
|
42764
|
+
var Timer$2 = styled__default.div(_templateObject7$o || (_templateObject7$o = _taggedTemplateLiteralLoose(["\n width: 40px;\n font-weight: 400;\n font-size: 16px;\n line-height: 12px;\n color: ", ";\n margin-left: auto;\n"])), function (props) {
|
|
42425
42765
|
return props.color;
|
|
42426
42766
|
});
|
|
42427
42767
|
|
|
@@ -42476,7 +42816,7 @@ function SvgDotsVertica(props) {
|
|
|
42476
42816
|
})));
|
|
42477
42817
|
}
|
|
42478
42818
|
|
|
42479
|
-
var _templateObject$Q, _templateObject2$L, _templateObject3$E, _templateObject4$y, _templateObject5$t, _templateObject6$
|
|
42819
|
+
var _templateObject$Q, _templateObject2$L, _templateObject3$E, _templateObject4$y, _templateObject5$t, _templateObject6$q, _templateObject7$p, _templateObject8$l, _templateObject9$i;
|
|
42480
42820
|
var CreatePollPopup = function CreatePollPopup(_ref) {
|
|
42481
42821
|
var togglePopup = _ref.togglePopup,
|
|
42482
42822
|
onCreate = _ref.onCreate;
|
|
@@ -42875,7 +43215,7 @@ var OptionRow = styled__default.div(_templateObject5$t || (_templateObject5$t =
|
|
|
42875
43215
|
}, function (props) {
|
|
42876
43216
|
return props.isDragging ? 0.6 : 1;
|
|
42877
43217
|
});
|
|
42878
|
-
var RemoveOptionIcon = styled__default(SvgClose)(_templateObject6$
|
|
43218
|
+
var RemoveOptionIcon = styled__default(SvgClose)(_templateObject6$q || (_templateObject6$q = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n color: ", ";\n width: ", ";\n height: ", ";\n opacity: ", ";\n"])), function (props) {
|
|
42879
43219
|
return props.color;
|
|
42880
43220
|
}, function (props) {
|
|
42881
43221
|
return props.width;
|
|
@@ -42884,7 +43224,7 @@ var RemoveOptionIcon = styled__default(SvgClose)(_templateObject6$p || (_templat
|
|
|
42884
43224
|
}, function (props) {
|
|
42885
43225
|
return props.disabled ? 0.5 : 1;
|
|
42886
43226
|
});
|
|
42887
|
-
var AddOptionButton = styled__default.button(_templateObject7$
|
|
43227
|
+
var AddOptionButton = styled__default.button(_templateObject7$p || (_templateObject7$p = _taggedTemplateLiteralLoose(["\n margin: 16px 0 0 0;\n background: transparent;\n border: none;\n color: ", ";\n cursor: ", ";\n width: 100%;\n text-align: left;\n padding-left: 32px;\n opacity: ", ";\n"])), function (props) {
|
|
42888
43228
|
return props.disabled ? props.disabledColor : props.color;
|
|
42889
43229
|
}, function (props) {
|
|
42890
43230
|
return props.disabled ? 'not-allowed' : 'pointer';
|
|
@@ -42896,7 +43236,7 @@ var SettingItem = styled__default.div(_templateObject9$i || (_templateObject9$i
|
|
|
42896
43236
|
return props.color;
|
|
42897
43237
|
});
|
|
42898
43238
|
|
|
42899
|
-
var _templateObject$R, _templateObject2$M, _templateObject3$F, _templateObject4$z, _templateObject5$u, _templateObject6$
|
|
43239
|
+
var _templateObject$R, _templateObject2$M, _templateObject3$F, _templateObject4$z, _templateObject5$u, _templateObject6$r, _templateObject7$q, _templateObject8$m, _templateObject9$j, _templateObject0$h, _templateObject1$e, _templateObject10$8, _templateObject11$6, _templateObject12$5, _templateObject13$3, _templateObject14$2, _templateObject15$2, _templateObject16$2, _templateObject17$2, _templateObject18$2, _templateObject19$2, _templateObject20$2, _templateObject21$2, _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;
|
|
42900
43240
|
function AutoFocusPlugin(_ref) {
|
|
42901
43241
|
var messageForReply = _ref.messageForReply;
|
|
42902
43242
|
var _useLexicalComposerCo = LexicalComposerContext.useLexicalComposerContext(),
|
|
@@ -44014,7 +44354,7 @@ var SendMessageInput = function SendMessageInput(_ref3) {
|
|
|
44014
44354
|
setMentionedUsers([]);
|
|
44015
44355
|
}, [activeChannel.id]);
|
|
44016
44356
|
React.useEffect(function () {
|
|
44017
|
-
if (messageText.trim() || editMessageText.trim() && editMessageText && editMessageText.trim() !== messageToEdit.body || attachments.length) {
|
|
44357
|
+
if (messageText.trim() || editMessageText !== null && editMessageText !== void 0 && editMessageText.trim() && editMessageText && (editMessageText === null || editMessageText === void 0 ? void 0 : editMessageText.trim()) !== (messageToEdit === null || messageToEdit === void 0 ? void 0 : messageToEdit.body) || attachments.length) {
|
|
44018
44358
|
if (attachments.length) {
|
|
44019
44359
|
var videoAttachment = false;
|
|
44020
44360
|
attachments.forEach(function (att) {
|
|
@@ -44502,7 +44842,8 @@ var SendMessageInput = function SendMessageInput(_ref3) {
|
|
|
44502
44842
|
userId: user.id,
|
|
44503
44843
|
getFromContacts: getFromContacts,
|
|
44504
44844
|
members: activeChannelMembers,
|
|
44505
|
-
setMentionsIsOpen: setMentionsIsOpen
|
|
44845
|
+
setMentionsIsOpen: setMentionsIsOpen,
|
|
44846
|
+
channelId: activeChannel === null || activeChannel === void 0 ? void 0 : activeChannel.id
|
|
44506
44847
|
})), /*#__PURE__*/React__default.createElement(LexicalHistoryPlugin.HistoryPlugin, null), /*#__PURE__*/React__default.createElement(LexicalRichTextPlugin.RichTextPlugin, {
|
|
44507
44848
|
contentEditable: /*#__PURE__*/React__default.createElement("div", {
|
|
44508
44849
|
onKeyDown: handleSendEditMessage,
|
|
@@ -44582,10 +44923,10 @@ var EditMessageText = styled__default.p(_templateObject4$z || (_templateObject4$
|
|
|
44582
44923
|
var UploadErrorMessage = styled__default.p(_templateObject5$u || (_templateObject5$u = _taggedTemplateLiteralLoose(["\n margin: 0;\n position: absolute;\n top: -30px;\n color: ", ";\n"])), function (props) {
|
|
44583
44924
|
return props.color;
|
|
44584
44925
|
});
|
|
44585
|
-
var CloseEditMode = styled__default.span(_templateObject6$
|
|
44926
|
+
var CloseEditMode = styled__default.span(_templateObject6$r || (_templateObject6$r = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 8px;\n right: 12px;\n width: 20px;\n height: 20px;\n text-align: center;\n line-height: 22px;\n cursor: pointer;\n\n & > svg {\n color: ", ";\n }\n"])), function (props) {
|
|
44586
44927
|
return props.color;
|
|
44587
44928
|
});
|
|
44588
|
-
var UserName$1 = styled__default.span(_templateObject7$
|
|
44929
|
+
var UserName$1 = styled__default.span(_templateObject7$q || (_templateObject7$q = _taggedTemplateLiteralLoose(["\n font-weight: 500;\n margin-left: 4px;\n"])));
|
|
44589
44930
|
var ReplyMessageBody$1 = styled__default.div(_templateObject8$m || (_templateObject8$m = _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 a {\n color: ", ";\n }\n"])), function (props) {
|
|
44590
44931
|
return props.linkColor;
|
|
44591
44932
|
});
|
|
@@ -45056,7 +45397,7 @@ var StyledPopupName = styled__default(PopupName)(_templateObject$S || (_template
|
|
|
45056
45397
|
var StyledPopupDescription = styled__default(PopupDescription)(_templateObject2$N || (_templateObject2$N = _taggedTemplateLiteralLoose(["\n font-weight: 400;\n font-style: normal;\n font-size: 15px;\n line-height: 150%;\n letter-spacing: 0%;\n margin-top: 0;\n margin-bottom: 0;\n width: 437px;\n height: 68px;\n opacity: 1;\n display: block;\n overflow-wrap: break-word;\n word-wrap: break-word;\n"])));
|
|
45057
45398
|
var CloseButton = styled__default(Button)(_templateObject3$G || (_templateObject3$G = _taggedTemplateLiteralLoose(["\n width: 73px;\n height: 36px;\n min-width: 73px;\n max-width: 73px;\n padding: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n"])));
|
|
45058
45399
|
|
|
45059
|
-
var _templateObject$T, _templateObject2$O, _templateObject3$H, _templateObject4$A, _templateObject5$v, _templateObject6$
|
|
45400
|
+
var _templateObject$T, _templateObject2$O, _templateObject3$H, _templateObject4$A, _templateObject5$v, _templateObject6$s, _templateObject7$r, _templateObject8$n;
|
|
45060
45401
|
var TIMER_OPTIONS = [{
|
|
45061
45402
|
key: 'off',
|
|
45062
45403
|
label: 'Off'
|
|
@@ -45308,13 +45649,13 @@ var CustomSelectWrapper = styled__default.div(_templateObject4$A || (_templateOb
|
|
|
45308
45649
|
return props.accentColor;
|
|
45309
45650
|
});
|
|
45310
45651
|
var CustomSelectTriggerStyled = styled__default(CustomSelectTrigger)(_templateObject5$v || (_templateObject5$v = _taggedTemplateLiteralLoose(["\n font-size: 15px;\n text-transform: none;\n"])));
|
|
45311
|
-
var CustomDropdownOptionLi = styled__default(DropdownOptionLi)(_templateObject6$
|
|
45312
|
-
var CustomDropdownOptionsUl = styled__default(DropdownOptionsUl)(_templateObject7$
|
|
45652
|
+
var CustomDropdownOptionLi = styled__default(DropdownOptionLi)(_templateObject6$s || (_templateObject6$s = _taggedTemplateLiteralLoose(["\n font-size: 15px;\n"])));
|
|
45653
|
+
var CustomDropdownOptionsUl = styled__default(DropdownOptionsUl)(_templateObject7$r || (_templateObject7$r = _taggedTemplateLiteralLoose(["\n border-color: ", ";\n height: 268px;\n max-height: 268px;\n border-radius: 0;\n\n ", " {\n padding-left: 24px;\n padding-right: 24px;\n }\n"])), function (props) {
|
|
45313
45654
|
return props.accentColor;
|
|
45314
45655
|
}, CustomDropdownOptionLi);
|
|
45315
45656
|
var SetButton = styled__default(Button)(_templateObject8$n || (_templateObject8$n = _taggedTemplateLiteralLoose(["\n width: 57px;\n height: 36px;\n min-width: 57px;\n max-width: 57px;\n padding: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n"])));
|
|
45316
45657
|
|
|
45317
|
-
var _templateObject$U, _templateObject2$P, _templateObject3$I, _templateObject4$B, _templateObject5$w, _templateObject6$
|
|
45658
|
+
var _templateObject$U, _templateObject2$P, _templateObject3$I, _templateObject4$B, _templateObject5$w, _templateObject6$t, _templateObject7$s, _templateObject8$o;
|
|
45318
45659
|
var formatMemberCount = function formatMemberCount(count, channelType) {
|
|
45319
45660
|
if (channelType === DEFAULT_CHANNEL_TYPE.BROADCAST || channelType === DEFAULT_CHANNEL_TYPE.PUBLIC) {
|
|
45320
45661
|
return count + " " + (count > 1 ? 'subscribers' : 'subscriber');
|
|
@@ -45411,7 +45752,6 @@ var GroupsInCommonPopup = function GroupsInCommonPopup(_ref2) {
|
|
|
45411
45752
|
}
|
|
45412
45753
|
}, [mutualChannelsHasNext, isLoading, dispatch]);
|
|
45413
45754
|
React.useEffect(function () {
|
|
45414
|
-
console.log('connectionStatus', connectionStatus, 'mutualChannels', !(mutualChannels !== null && mutualChannels !== void 0 && mutualChannels.length), 'user', user === null || user === void 0 ? void 0 : user.id);
|
|
45415
45755
|
if (connectionStatus === CONNECTION_STATUS.CONNECTED && !(mutualChannels !== null && mutualChannels !== void 0 && mutualChannels.length)) {
|
|
45416
45756
|
if (user !== null && user !== void 0 && user.id) {
|
|
45417
45757
|
dispatch(getChannelsWithUserAC(user.id));
|
|
@@ -45484,15 +45824,15 @@ var ChannelTitle$1 = styled__default.div(_templateObject4$B || (_templateObject4
|
|
|
45484
45824
|
var ChannelMembers$1 = styled__default.div(_templateObject5$w || (_templateObject5$w = _taggedTemplateLiteralLoose(["\n font-weight: 400;\n font-size: 14px;\n line-height: 20px;\n letter-spacing: -0.2px;\n color: ", ";\n"])), function (props) {
|
|
45485
45825
|
return props.color;
|
|
45486
45826
|
});
|
|
45487
|
-
var LoadingText$1 = styled__default.div(_templateObject6$
|
|
45827
|
+
var LoadingText$1 = styled__default.div(_templateObject6$t || (_templateObject6$t = _taggedTemplateLiteralLoose(["\n text-align: center;\n padding: 20px;\n font-size: 14px;\n color: ", ";\n"])), function (props) {
|
|
45488
45828
|
return props.color;
|
|
45489
45829
|
});
|
|
45490
|
-
var EmptyText = styled__default.div(_templateObject7$
|
|
45830
|
+
var EmptyText = styled__default.div(_templateObject7$s || (_templateObject7$s = _taggedTemplateLiteralLoose(["\n text-align: center;\n padding: 40px 20px;\n font-size: 14px;\n color: ", ";\n"])), function (props) {
|
|
45491
45831
|
return props.color;
|
|
45492
45832
|
});
|
|
45493
45833
|
var ChevronRightIconWrapper = styled__default.span(_templateObject8$o || (_templateObject8$o = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n\n & > svg {\n width: 16px;\n height: 16px;\n transform: rotate(-90deg);\n }\n"])));
|
|
45494
45834
|
|
|
45495
|
-
var _templateObject$V, _templateObject2$Q, _templateObject3$J, _templateObject4$C, _templateObject5$x, _templateObject6$
|
|
45835
|
+
var _templateObject$V, _templateObject2$Q, _templateObject3$J, _templateObject4$C, _templateObject5$x, _templateObject6$u, _templateObject7$t, _templateObject8$p, _templateObject9$k, _templateObject0$i, _templateObject1$f, _templateObject10$9, _templateObject11$7, _templateObject12$6, _templateObject13$4, _templateObject14$3, _templateObject15$3, _templateObject16$3, _templateObject17$3, _templateObject18$3, _templateObject19$3, _templateObject20$3;
|
|
45496
45836
|
var Actions = function Actions(_ref) {
|
|
45497
45837
|
var _getDisappearingSetti;
|
|
45498
45838
|
var setActionsHeight = _ref.setActionsHeight,
|
|
@@ -46026,8 +46366,8 @@ var MenuTriggerIcon = styled__default.span(_templateObject3$J || (_templateObjec
|
|
|
46026
46366
|
});
|
|
46027
46367
|
var ActionsMenu = styled__default.ul(_templateObject4$C || (_templateObject4$C = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n margin: 0;\n padding: 0;\n list-style: none;\n transition: all 0.2s;\n"])));
|
|
46028
46368
|
var DefaultMutedIcon = styled__default(SvgUnmuteNotifications)(_templateObject5$x || (_templateObject5$x = _taggedTemplateLiteralLoose([""])));
|
|
46029
|
-
var DefaultMuteIcon = styled__default(SvgNotifications)(_templateObject6$
|
|
46030
|
-
var DefaultStarIcon = styled__default(SvgStar)(_templateObject7$
|
|
46369
|
+
var DefaultMuteIcon = styled__default(SvgNotifications)(_templateObject6$u || (_templateObject6$u = _taggedTemplateLiteralLoose([""])));
|
|
46370
|
+
var DefaultStarIcon = styled__default(SvgStar)(_templateObject7$t || (_templateObject7$t = _taggedTemplateLiteralLoose([""])));
|
|
46031
46371
|
var DefaultUnpinIcon = styled__default(SvgUnpin)(_templateObject8$p || (_templateObject8$p = _taggedTemplateLiteralLoose([""])));
|
|
46032
46372
|
var DefaultPinIcon = styled__default(SvgPin)(_templateObject9$k || (_templateObject9$k = _taggedTemplateLiteralLoose([""])));
|
|
46033
46373
|
var DefaultMarkAsRead = styled__default(SvgMarkAsRead)(_templateObject0$i || (_templateObject0$i = _taggedTemplateLiteralLoose([""])));
|
|
@@ -46266,7 +46606,7 @@ function ResetLinkConfirmModal(_ref) {
|
|
|
46266
46606
|
});
|
|
46267
46607
|
}
|
|
46268
46608
|
|
|
46269
|
-
var _templateObject$X, _templateObject2$S, _templateObject3$L, _templateObject4$D, _templateObject5$y, _templateObject6$
|
|
46609
|
+
var _templateObject$X, _templateObject2$S, _templateObject3$L, _templateObject4$D, _templateObject5$y, _templateObject6$v, _templateObject7$u, _templateObject8$q, _templateObject9$l, _templateObject0$j, _templateObject1$g, _templateObject10$a, _templateObject11$8, _templateObject12$7, _templateObject13$5;
|
|
46270
46610
|
function InviteLinkModal(_ref) {
|
|
46271
46611
|
var _getInviteLinkOptions, _tabs$link, _tabs$qr, _tabs$link2, _tabs$qr2;
|
|
46272
46612
|
var onClose = _ref.onClose,
|
|
@@ -46769,12 +47109,12 @@ var Description = styled__default.p(_templateObject4$D || (_templateObject4$D =
|
|
|
46769
47109
|
var FieldLabel = styled__default.span(_templateObject5$y || (_templateObject5$y = _taggedTemplateLiteralLoose(["\n font-size: 14px;\n line-height: 16px;\n color: ", ";\n"])), function (p) {
|
|
46770
47110
|
return p.color;
|
|
46771
47111
|
});
|
|
46772
|
-
var LinkField = styled__default.div(_templateObject6$
|
|
47112
|
+
var LinkField = styled__default.div(_templateObject6$v || (_templateObject6$v = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n border: 1px solid ", ";\n border-radius: 8px;\n margin-top: 8px;\n padding-left: 12px;\n background-color: ", ";\n"])), function (p) {
|
|
46773
47113
|
return p.borderColor;
|
|
46774
47114
|
}, function (p) {
|
|
46775
47115
|
return p.backgroundColor;
|
|
46776
47116
|
});
|
|
46777
|
-
var LinkInput = styled__default.input(_templateObject7$
|
|
47117
|
+
var LinkInput = styled__default.input(_templateObject7$u || (_templateObject7$u = _taggedTemplateLiteralLoose(["\n flex: 1;\n border: none;\n outline: none;\n height: 40px;\n background: transparent;\n color: ", ";\n font-size: 14px;\n"])), function (p) {
|
|
46778
47118
|
return p.color;
|
|
46779
47119
|
});
|
|
46780
47120
|
var CopyButton = styled__default.button(_templateObject8$q || (_templateObject8$q = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 40px;\n height: 40px;\n border: none;\n background: transparent;\n cursor: pointer;\n"])));
|
|
@@ -46798,7 +47138,7 @@ var QrHint = styled__default.p(_templateObject13$5 || (_templateObject13$5 = _ta
|
|
|
46798
47138
|
return p.color;
|
|
46799
47139
|
});
|
|
46800
47140
|
|
|
46801
|
-
var _templateObject$Y, _templateObject2$T, _templateObject3$M, _templateObject4$E, _templateObject5$z, _templateObject6$
|
|
47141
|
+
var _templateObject$Y, _templateObject2$T, _templateObject3$M, _templateObject4$E, _templateObject5$z, _templateObject6$w, _templateObject7$v, _templateObject8$r, _templateObject9$m;
|
|
46802
47142
|
var Members = function Members(_ref) {
|
|
46803
47143
|
var _members$find;
|
|
46804
47144
|
var channel = _ref.channel,
|
|
@@ -47117,10 +47457,10 @@ var MemberNameWrapper = styled__default.div(_templateObject4$E || (_templateObje
|
|
|
47117
47457
|
var MemberName$3 = styled__default.h4(_templateObject5$z || (_templateObject5$z = _taggedTemplateLiteralLoose(["\n margin: 0;\n font-weight: 400;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n color: ", ";\n"])), function (props) {
|
|
47118
47458
|
return props.color;
|
|
47119
47459
|
});
|
|
47120
|
-
var EditMemberIcon = styled__default.span(_templateObject6$
|
|
47460
|
+
var EditMemberIcon = styled__default.span(_templateObject6$w || (_templateObject6$w = _taggedTemplateLiteralLoose(["\n margin-left: auto;\n cursor: pointer;\n padding: 15px;\n opacity: 0;\n visibility: hidden;\n transition: all 0.2s;\n\n & svg {\n color: ", ";\n }\n"])), function (props) {
|
|
47121
47461
|
return props.color;
|
|
47122
47462
|
});
|
|
47123
|
-
var MembersList = styled__default.ul(_templateObject7$
|
|
47463
|
+
var MembersList = styled__default.ul(_templateObject7$v || (_templateObject7$v = _taggedTemplateLiteralLoose(["\n margin: 0;\n padding: 0;\n list-style: none;\n transition: all 0.2s;\n"])));
|
|
47124
47464
|
var MemberItem$1 = styled__default.li(_templateObject8$r || (_templateObject8$r = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n font-size: ", ";\n font-weight: 500;\n padding: 6px 16px;\n transition: all 0.2s;\n color: ", ";\n cursor: pointer;\n\n & > svg {\n rect {\n fill: transparent;\n }\n }\n\n &:first-child {\n cursor: pointer;\n\n > svg {\n color: ", ";\n margin-right: 12px;\n & > rect {\n fill: ", " !important;\n }\n }\n }\n\n &:hover {\n background-color: ", ";\n }\n\n &:hover ", " {\n opacity: 1;\n visibility: visible;\n }\n\n & .dropdown-wrapper {\n margin-left: auto;\n }\n\n & ", " {\n width: 12px;\n height: 12px;\n right: -1px;\n bottom: -1px;\n }\n"])), function (props) {
|
|
47125
47465
|
return props.fontSize || '15px';
|
|
47126
47466
|
}, function (props) {
|
|
@@ -47279,7 +47619,7 @@ function SvgDownloadFile(props) {
|
|
|
47279
47619
|
})));
|
|
47280
47620
|
}
|
|
47281
47621
|
|
|
47282
|
-
var _templateObject$$, _templateObject2$V, _templateObject3$N, _templateObject4$F, _templateObject5$A, _templateObject6$
|
|
47622
|
+
var _templateObject$$, _templateObject2$V, _templateObject3$N, _templateObject4$F, _templateObject5$A, _templateObject6$x, _templateObject7$w, _templateObject8$s;
|
|
47283
47623
|
var Files = function Files(_ref) {
|
|
47284
47624
|
var channelId = _ref.channelId,
|
|
47285
47625
|
filePreviewIcon = _ref.filePreviewIcon,
|
|
@@ -47420,8 +47760,8 @@ var FileHoverIconCont = styled__default.span(_templateObject5$A || (_templateObj
|
|
|
47420
47760
|
}, function (props) {
|
|
47421
47761
|
return props.fillColor;
|
|
47422
47762
|
});
|
|
47423
|
-
var FileThumb = styled__default.img(_templateObject6$
|
|
47424
|
-
var FileItem = styled__default.div(_templateObject7$
|
|
47763
|
+
var FileThumb = styled__default.img(_templateObject6$x || (_templateObject6$x = _taggedTemplateLiteralLoose(["\n width: 40px;\n height: 40px;\n border: 0.5px solid rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n object-fit: cover;\n"])));
|
|
47764
|
+
var FileItem = styled__default.div(_templateObject7$w || (_templateObject7$w = _taggedTemplateLiteralLoose(["\n position: relative;\n padding: 11px 16px;\n display: flex;\n align-items: center;\n font-size: 15px;\n transition: all 0.2s;\n div {\n margin-left: 7px;\n width: calc(100% - 48px);\n }\n &:hover {\n background-color: ", ";\n ", " {\n visibility: visible;\n }\n & ", " {\n display: none;\n }\n & ", " {\n display: inline-flex;\n }\n }\n /*&.isHover {\n\n }*/\n"])), function (props) {
|
|
47425
47765
|
return props.hoverBackgroundColor;
|
|
47426
47766
|
}, DownloadWrapper, FileIconCont, FileHoverIconCont);
|
|
47427
47767
|
var FileSizeAndDate = styled__default.span(_templateObject8$s || (_templateObject8$s = _taggedTemplateLiteralLoose(["\n display: block;\n font-style: normal;\n font-weight: normal;\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n margin-top: 2px;\n"])), function (props) {
|
|
@@ -47599,7 +47939,7 @@ function SvgVoicePreviewPause(props) {
|
|
|
47599
47939
|
})));
|
|
47600
47940
|
}
|
|
47601
47941
|
|
|
47602
|
-
var _templateObject$12, _templateObject2$X, _templateObject3$P, _templateObject4$H, _templateObject5$C, _templateObject6$
|
|
47942
|
+
var _templateObject$12, _templateObject2$X, _templateObject3$P, _templateObject4$H, _templateObject5$C, _templateObject6$y, _templateObject7$x, _templateObject8$t;
|
|
47603
47943
|
var VoiceItem = function VoiceItem(_ref) {
|
|
47604
47944
|
var file = _ref.file,
|
|
47605
47945
|
voicePreviewPlayIcon = _ref.voicePreviewPlayIcon,
|
|
@@ -47741,10 +48081,10 @@ var AudioInfo = styled__default.div(_templateObject4$H || (_templateObject4$H =
|
|
|
47741
48081
|
var AudioTitle = styled__default.span(_templateObject5$C || (_templateObject5$C = _taggedTemplateLiteralLoose(["\n display: block;\n font-style: normal;\n font-weight: 500;\n font-size: 15px;\n line-height: 20px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n max-width: calc(100% - 72px);\n color: ", ";\n"])), function (props) {
|
|
47742
48082
|
return props.color;
|
|
47743
48083
|
});
|
|
47744
|
-
var AudioDate = styled__default.span(_templateObject6$
|
|
48084
|
+
var AudioDate = styled__default.span(_templateObject6$y || (_templateObject6$y = _taggedTemplateLiteralLoose(["\n display: block;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n max-width: calc(100% - 72px);\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n line-height: 16px;\n color: ", ";\n"])), function (props) {
|
|
47745
48085
|
return props.color;
|
|
47746
48086
|
});
|
|
47747
|
-
var AudioSendTime = styled__default.span(_templateObject7$
|
|
48087
|
+
var AudioSendTime = styled__default.span(_templateObject7$x || (_templateObject7$x = _taggedTemplateLiteralLoose(["\n position: absolute;\n right: 0;\n top: 11px;\n color: ", ";\n font-size: 12px;\n line-height: 16px;\n"])), function (props) {
|
|
47748
48088
|
return props.color;
|
|
47749
48089
|
});
|
|
47750
48090
|
var Audio = styled__default.audio(_templateObject8$t || (_templateObject8$t = _taggedTemplateLiteralLoose(["\n display: none;\n"])));
|
|
@@ -48223,7 +48563,7 @@ var EditChannel = function EditChannel(_ref) {
|
|
|
48223
48563
|
})));
|
|
48224
48564
|
};
|
|
48225
48565
|
|
|
48226
|
-
var _templateObject$16, _templateObject2$_, _templateObject3$R, _templateObject4$J, _templateObject5$D, _templateObject6$
|
|
48566
|
+
var _templateObject$16, _templateObject2$_, _templateObject3$R, _templateObject4$J, _templateObject5$D, _templateObject6$z, _templateObject7$y, _templateObject8$u, _templateObject9$n, _templateObject0$k, _templateObject1$h, _templateObject10$b, _templateObject11$9;
|
|
48227
48567
|
var Details = function Details(_ref) {
|
|
48228
48568
|
var _activeChannel$member;
|
|
48229
48569
|
var detailsTitleText = _ref.detailsTitleText,
|
|
@@ -48687,10 +49027,10 @@ var AboutChannel = styled__default.div(_templateObject4$J || (_templateObject4$J
|
|
|
48687
49027
|
var AboutChannelTitle = styled__default.h4(_templateObject5$D || (_templateObject5$D = _taggedTemplateLiteralLoose(["\n font-size: 12px;\n margin: 0;\n line-height: 16px;\n color: ", ";\n"])), function (props) {
|
|
48688
49028
|
return props.color;
|
|
48689
49029
|
});
|
|
48690
|
-
var AboutChannelText = styled__default.h3(_templateObject6$
|
|
49030
|
+
var AboutChannelText = styled__default.h3(_templateObject6$z || (_templateObject6$z = _taggedTemplateLiteralLoose(["\n font-size: 15px;\n margin: 0;\n font-weight: 400;\n line-height: 20px;\n color: ", ";\n"])), function (props) {
|
|
48691
49031
|
return props.color;
|
|
48692
49032
|
});
|
|
48693
|
-
var ChannelInfo$5 = styled__default.div(_templateObject7$
|
|
49033
|
+
var ChannelInfo$5 = styled__default.div(_templateObject7$y || (_templateObject7$y = _taggedTemplateLiteralLoose(["\n position: relative;\n margin-left: ", ";\n margin-top: ", ";\n text-align: ", ";\n"])), function (props) {
|
|
48694
49034
|
return (!props.direction || props.direction !== 'column') && '16px';
|
|
48695
49035
|
}, function (props) {
|
|
48696
49036
|
return props.direction && props.direction === 'column' && '16px';
|
|
@@ -49339,4 +49679,5 @@ exports.createOrGetDirectChannel = createOrGetDirectChannel;
|
|
|
49339
49679
|
exports.handleGetMessage = handleGetMessage;
|
|
49340
49680
|
exports.handleSendMessage = handleSendMessage;
|
|
49341
49681
|
exports.switchChannelActiveChannel = switchChannelActiveChannel;
|
|
49682
|
+
exports.trimReactMessage = trimReactMessage;
|
|
49342
49683
|
//# sourceMappingURL=index.js.map
|