sceyt-chat-react-uikit 1.7.6-beta.2 → 1.7.6-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +21 -20
- package/index.modern.js +21 -20
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -16591,7 +16591,7 @@ function channelsForForwardLoadMore(action) {
|
|
|
16591
16591
|
channelQueryForward.limit = limit;
|
|
16592
16592
|
}
|
|
16593
16593
|
_context8.n = 1;
|
|
16594
|
-
return effects.put(setChannelsLoadingStateAC(LOADING_STATE.LOADING));
|
|
16594
|
+
return effects.put(setChannelsLoadingStateAC(LOADING_STATE.LOADING, true));
|
|
16595
16595
|
case 1:
|
|
16596
16596
|
_context8.n = 2;
|
|
16597
16597
|
return effects.call(channelQueryForward.loadNextPage);
|
|
@@ -16614,7 +16614,7 @@ function channelsForForwardLoadMore(action) {
|
|
|
16614
16614
|
return effects.put(addChannelsForForwardAC(mappedChannels));
|
|
16615
16615
|
case 5:
|
|
16616
16616
|
_context8.n = 6;
|
|
16617
|
-
return effects.put(setChannelsLoadingStateAC(LOADING_STATE.LOADED));
|
|
16617
|
+
return effects.put(setChannelsLoadingStateAC(LOADING_STATE.LOADED, true));
|
|
16618
16618
|
case 6:
|
|
16619
16619
|
_context8.n = 8;
|
|
16620
16620
|
break;
|
|
@@ -19047,7 +19047,7 @@ function sendMessage(action) {
|
|
|
19047
19047
|
}, _marked$3, null, [[1, 18]]);
|
|
19048
19048
|
}
|
|
19049
19049
|
function sendTextMessage(action) {
|
|
19050
|
-
var payload, message, connectionState, channelId, channel, sendMessageTid, activeChannelId, SceytChatClient, createChannelData, mentionedUserIds, attachments, attachmentBuilder, att, messageBuilder, messageToSend, pendingMessage, messageResponse, messageUpdateData, messageToUpdate, channelUpdateParam, _t3;
|
|
19050
|
+
var payload, message, connectionState, channelId, channel, sendMessageTid, activeChannelId, SceytChatClient, createChannelData, mentionedUserIds, attachments, attachmentBuilder, att, messageBuilder, messageToSend, pendingMessage, _messageResponse, messageResponse, messageUpdateData, messageToUpdate, channelUpdateParam, _t3;
|
|
19051
19051
|
return _regenerator().w(function (_context4) {
|
|
19052
19052
|
while (1) switch (_context4.p = _context4.n) {
|
|
19053
19053
|
case 0:
|
|
@@ -19160,6 +19160,7 @@ function sendTextMessage(action) {
|
|
|
19160
19160
|
parentMessage: messageResponse.parentMessage,
|
|
19161
19161
|
repliedInThread: messageResponse.repliedInThread,
|
|
19162
19162
|
createdAt: messageResponse.createdAt,
|
|
19163
|
+
pollDetails: (_messageResponse = messageResponse) === null || _messageResponse === void 0 ? void 0 : _messageResponse.pollDetails,
|
|
19163
19164
|
channelId: channel.id
|
|
19164
19165
|
};
|
|
19165
19166
|
if (!(activeChannelId === channel.id)) {
|
|
@@ -19440,7 +19441,7 @@ function forwardMessage(action) {
|
|
|
19440
19441
|
}, _marked3$1, null, [[0, 20]]);
|
|
19441
19442
|
}
|
|
19442
19443
|
function resendMessage(action) {
|
|
19443
|
-
var payload, message, connectionState, channelId, channel, customUploader, attachmentCompilation, messageAttachment, messageCopy, handleUploadProgress, uri, filePath, handleUpdateLocalPath, pendingAttachment, thumbnailMetas, fileSize, meta, attachmentMeta, attachmentBuilder, attachmentToSend, messageResponse, messageUpdateData, fileType, messageToUpdate, _messageCopy2, _getMessagesFromMap,
|
|
19444
|
+
var payload, message, connectionState, channelId, channel, customUploader, attachmentCompilation, messageAttachment, messageCopy, handleUploadProgress, uri, filePath, handleUpdateLocalPath, pendingAttachment, thumbnailMetas, fileSize, meta, attachmentMeta, attachmentBuilder, attachmentToSend, messageResponse, messageUpdateData, fileType, messageToUpdate, _messageCopy2, _getMessagesFromMap, _messageResponse2, _messageUpdateData, isInActiveChannel, activeChannelId, _messageToUpdate, _t5, _t6;
|
|
19444
19445
|
return _regenerator().w(function (_context6) {
|
|
19445
19446
|
while (1) switch (_context6.p = _context6.n) {
|
|
19446
19447
|
case 0:
|
|
@@ -19693,24 +19694,24 @@ function resendMessage(action) {
|
|
|
19693
19694
|
_context6.n = 27;
|
|
19694
19695
|
return effects.call(channel.sendMessage, _messageCopy2);
|
|
19695
19696
|
case 27:
|
|
19696
|
-
|
|
19697
|
+
_messageResponse2 = _context6.v;
|
|
19697
19698
|
_context6.n = 28;
|
|
19698
19699
|
return effects.put(removePendingMessageAC(channel.id, _messageCopy2.tid || _messageCopy2.id));
|
|
19699
19700
|
case 28:
|
|
19700
19701
|
_messageUpdateData = {
|
|
19701
|
-
id:
|
|
19702
|
-
body:
|
|
19703
|
-
type:
|
|
19704
|
-
state:
|
|
19705
|
-
displayCount:
|
|
19706
|
-
deliveryStatus:
|
|
19702
|
+
id: _messageResponse2.id,
|
|
19703
|
+
body: _messageResponse2.body,
|
|
19704
|
+
type: _messageResponse2.type,
|
|
19705
|
+
state: _messageResponse2.state,
|
|
19706
|
+
displayCount: _messageResponse2.displayCount,
|
|
19707
|
+
deliveryStatus: _messageResponse2.deliveryStatus,
|
|
19707
19708
|
attachments: [],
|
|
19708
|
-
mentionedUsers:
|
|
19709
|
-
metadata:
|
|
19710
|
-
parentMessage:
|
|
19711
|
-
repliedInThread:
|
|
19712
|
-
bodyAttributes:
|
|
19713
|
-
createdAt:
|
|
19709
|
+
mentionedUsers: _messageResponse2.mentionedUsers,
|
|
19710
|
+
metadata: _messageResponse2.metadata,
|
|
19711
|
+
parentMessage: _messageResponse2.parentMessage,
|
|
19712
|
+
repliedInThread: _messageResponse2.repliedInThread,
|
|
19713
|
+
bodyAttributes: _messageResponse2.bodyAttributes,
|
|
19714
|
+
createdAt: _messageResponse2.createdAt,
|
|
19714
19715
|
channelId: channel.id
|
|
19715
19716
|
};
|
|
19716
19717
|
isInActiveChannel = (_getMessagesFromMap = getMessagesFromMap(channelId)) === null || _getMessagesFromMap === void 0 ? void 0 : _getMessagesFromMap.find(function (message) {
|
|
@@ -19736,7 +19737,7 @@ function resendMessage(action) {
|
|
|
19736
19737
|
break;
|
|
19737
19738
|
}
|
|
19738
19739
|
_context6.n = 31;
|
|
19739
|
-
return effects.put(updateMessageAC(_messageCopy2.tid, JSON.parse(JSON.stringify(
|
|
19740
|
+
return effects.put(updateMessageAC(_messageCopy2.tid, JSON.parse(JSON.stringify(_messageResponse2))));
|
|
19740
19741
|
case 31:
|
|
19741
19742
|
updateMessageOnMap(channel.id, {
|
|
19742
19743
|
messageId: _messageCopy2.tid,
|
|
@@ -19745,7 +19746,7 @@ function resendMessage(action) {
|
|
|
19745
19746
|
updateMessageOnAllMessages(_messageCopy2.tid, _messageUpdateData);
|
|
19746
19747
|
case 32:
|
|
19747
19748
|
updateChannelOnAllChannels(channel.id, channel);
|
|
19748
|
-
_messageToUpdate = JSON.parse(JSON.stringify(
|
|
19749
|
+
_messageToUpdate = JSON.parse(JSON.stringify(_messageResponse2));
|
|
19749
19750
|
updateChannelLastMessageOnAllChannels(channel.id, _messageToUpdate);
|
|
19750
19751
|
_context6.n = 33;
|
|
19751
19752
|
return effects.put(updateChannelLastMessageAC(_messageToUpdate, {
|
|
@@ -27866,7 +27867,7 @@ function ForwardMessagePopup(_ref) {
|
|
|
27866
27867
|
if (event.target.scrollTop >= event.target.scrollHeight - event.target.offsetHeight - 100) {
|
|
27867
27868
|
if (channelsLoading === LOADING_STATE.LOADED && channelsHasNext && !loadingRef.current) {
|
|
27868
27869
|
loadingRef.current = true;
|
|
27869
|
-
dispatch(loadMoreChannelsForForward(
|
|
27870
|
+
dispatch(loadMoreChannelsForForward(20));
|
|
27870
27871
|
var timeout = setTimeout(function () {
|
|
27871
27872
|
loadingRef.current = false;
|
|
27872
27873
|
clearTimeout(timeout);
|
package/index.modern.js
CHANGED
|
@@ -16590,7 +16590,7 @@ function channelsForForwardLoadMore(action) {
|
|
|
16590
16590
|
channelQueryForward.limit = limit;
|
|
16591
16591
|
}
|
|
16592
16592
|
_context8.n = 1;
|
|
16593
|
-
return put(setChannelsLoadingStateAC(LOADING_STATE.LOADING));
|
|
16593
|
+
return put(setChannelsLoadingStateAC(LOADING_STATE.LOADING, true));
|
|
16594
16594
|
case 1:
|
|
16595
16595
|
_context8.n = 2;
|
|
16596
16596
|
return call(channelQueryForward.loadNextPage);
|
|
@@ -16613,7 +16613,7 @@ function channelsForForwardLoadMore(action) {
|
|
|
16613
16613
|
return put(addChannelsForForwardAC(mappedChannels));
|
|
16614
16614
|
case 5:
|
|
16615
16615
|
_context8.n = 6;
|
|
16616
|
-
return put(setChannelsLoadingStateAC(LOADING_STATE.LOADED));
|
|
16616
|
+
return put(setChannelsLoadingStateAC(LOADING_STATE.LOADED, true));
|
|
16617
16617
|
case 6:
|
|
16618
16618
|
_context8.n = 8;
|
|
16619
16619
|
break;
|
|
@@ -19046,7 +19046,7 @@ function sendMessage(action) {
|
|
|
19046
19046
|
}, _marked$3, null, [[1, 18]]);
|
|
19047
19047
|
}
|
|
19048
19048
|
function sendTextMessage(action) {
|
|
19049
|
-
var payload, message, connectionState, channelId, channel, sendMessageTid, activeChannelId, SceytChatClient, createChannelData, mentionedUserIds, attachments, attachmentBuilder, att, messageBuilder, messageToSend, pendingMessage, messageResponse, messageUpdateData, messageToUpdate, channelUpdateParam, _t3;
|
|
19049
|
+
var payload, message, connectionState, channelId, channel, sendMessageTid, activeChannelId, SceytChatClient, createChannelData, mentionedUserIds, attachments, attachmentBuilder, att, messageBuilder, messageToSend, pendingMessage, _messageResponse, messageResponse, messageUpdateData, messageToUpdate, channelUpdateParam, _t3;
|
|
19050
19050
|
return _regenerator().w(function (_context4) {
|
|
19051
19051
|
while (1) switch (_context4.p = _context4.n) {
|
|
19052
19052
|
case 0:
|
|
@@ -19159,6 +19159,7 @@ function sendTextMessage(action) {
|
|
|
19159
19159
|
parentMessage: messageResponse.parentMessage,
|
|
19160
19160
|
repliedInThread: messageResponse.repliedInThread,
|
|
19161
19161
|
createdAt: messageResponse.createdAt,
|
|
19162
|
+
pollDetails: (_messageResponse = messageResponse) === null || _messageResponse === void 0 ? void 0 : _messageResponse.pollDetails,
|
|
19162
19163
|
channelId: channel.id
|
|
19163
19164
|
};
|
|
19164
19165
|
if (!(activeChannelId === channel.id)) {
|
|
@@ -19439,7 +19440,7 @@ function forwardMessage(action) {
|
|
|
19439
19440
|
}, _marked3$1, null, [[0, 20]]);
|
|
19440
19441
|
}
|
|
19441
19442
|
function resendMessage(action) {
|
|
19442
|
-
var payload, message, connectionState, channelId, channel, customUploader, attachmentCompilation, messageAttachment, messageCopy, handleUploadProgress, uri, filePath, handleUpdateLocalPath, pendingAttachment, thumbnailMetas, fileSize, meta, attachmentMeta, attachmentBuilder, attachmentToSend, messageResponse, messageUpdateData, fileType, messageToUpdate, _messageCopy2, _getMessagesFromMap,
|
|
19443
|
+
var payload, message, connectionState, channelId, channel, customUploader, attachmentCompilation, messageAttachment, messageCopy, handleUploadProgress, uri, filePath, handleUpdateLocalPath, pendingAttachment, thumbnailMetas, fileSize, meta, attachmentMeta, attachmentBuilder, attachmentToSend, messageResponse, messageUpdateData, fileType, messageToUpdate, _messageCopy2, _getMessagesFromMap, _messageResponse2, _messageUpdateData, isInActiveChannel, activeChannelId, _messageToUpdate, _t5, _t6;
|
|
19443
19444
|
return _regenerator().w(function (_context6) {
|
|
19444
19445
|
while (1) switch (_context6.p = _context6.n) {
|
|
19445
19446
|
case 0:
|
|
@@ -19692,24 +19693,24 @@ function resendMessage(action) {
|
|
|
19692
19693
|
_context6.n = 27;
|
|
19693
19694
|
return call(channel.sendMessage, _messageCopy2);
|
|
19694
19695
|
case 27:
|
|
19695
|
-
|
|
19696
|
+
_messageResponse2 = _context6.v;
|
|
19696
19697
|
_context6.n = 28;
|
|
19697
19698
|
return put(removePendingMessageAC(channel.id, _messageCopy2.tid || _messageCopy2.id));
|
|
19698
19699
|
case 28:
|
|
19699
19700
|
_messageUpdateData = {
|
|
19700
|
-
id:
|
|
19701
|
-
body:
|
|
19702
|
-
type:
|
|
19703
|
-
state:
|
|
19704
|
-
displayCount:
|
|
19705
|
-
deliveryStatus:
|
|
19701
|
+
id: _messageResponse2.id,
|
|
19702
|
+
body: _messageResponse2.body,
|
|
19703
|
+
type: _messageResponse2.type,
|
|
19704
|
+
state: _messageResponse2.state,
|
|
19705
|
+
displayCount: _messageResponse2.displayCount,
|
|
19706
|
+
deliveryStatus: _messageResponse2.deliveryStatus,
|
|
19706
19707
|
attachments: [],
|
|
19707
|
-
mentionedUsers:
|
|
19708
|
-
metadata:
|
|
19709
|
-
parentMessage:
|
|
19710
|
-
repliedInThread:
|
|
19711
|
-
bodyAttributes:
|
|
19712
|
-
createdAt:
|
|
19708
|
+
mentionedUsers: _messageResponse2.mentionedUsers,
|
|
19709
|
+
metadata: _messageResponse2.metadata,
|
|
19710
|
+
parentMessage: _messageResponse2.parentMessage,
|
|
19711
|
+
repliedInThread: _messageResponse2.repliedInThread,
|
|
19712
|
+
bodyAttributes: _messageResponse2.bodyAttributes,
|
|
19713
|
+
createdAt: _messageResponse2.createdAt,
|
|
19713
19714
|
channelId: channel.id
|
|
19714
19715
|
};
|
|
19715
19716
|
isInActiveChannel = (_getMessagesFromMap = getMessagesFromMap(channelId)) === null || _getMessagesFromMap === void 0 ? void 0 : _getMessagesFromMap.find(function (message) {
|
|
@@ -19735,7 +19736,7 @@ function resendMessage(action) {
|
|
|
19735
19736
|
break;
|
|
19736
19737
|
}
|
|
19737
19738
|
_context6.n = 31;
|
|
19738
|
-
return put(updateMessageAC(_messageCopy2.tid, JSON.parse(JSON.stringify(
|
|
19739
|
+
return put(updateMessageAC(_messageCopy2.tid, JSON.parse(JSON.stringify(_messageResponse2))));
|
|
19739
19740
|
case 31:
|
|
19740
19741
|
updateMessageOnMap(channel.id, {
|
|
19741
19742
|
messageId: _messageCopy2.tid,
|
|
@@ -19744,7 +19745,7 @@ function resendMessage(action) {
|
|
|
19744
19745
|
updateMessageOnAllMessages(_messageCopy2.tid, _messageUpdateData);
|
|
19745
19746
|
case 32:
|
|
19746
19747
|
updateChannelOnAllChannels(channel.id, channel);
|
|
19747
|
-
_messageToUpdate = JSON.parse(JSON.stringify(
|
|
19748
|
+
_messageToUpdate = JSON.parse(JSON.stringify(_messageResponse2));
|
|
19748
19749
|
updateChannelLastMessageOnAllChannels(channel.id, _messageToUpdate);
|
|
19749
19750
|
_context6.n = 33;
|
|
19750
19751
|
return put(updateChannelLastMessageAC(_messageToUpdate, {
|
|
@@ -27865,7 +27866,7 @@ function ForwardMessagePopup(_ref) {
|
|
|
27865
27866
|
if (event.target.scrollTop >= event.target.scrollHeight - event.target.offsetHeight - 100) {
|
|
27866
27867
|
if (channelsLoading === LOADING_STATE.LOADED && channelsHasNext && !loadingRef.current) {
|
|
27867
27868
|
loadingRef.current = true;
|
|
27868
|
-
dispatch(loadMoreChannelsForForward(
|
|
27869
|
+
dispatch(loadMoreChannelsForForward(20));
|
|
27869
27870
|
var timeout = setTimeout(function () {
|
|
27870
27871
|
loadingRef.current = false;
|
|
27871
27872
|
clearTimeout(timeout);
|