sceyt-chat-react-uikit 1.8.6-beta.4 → 1.8.6-beta.6
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 +12 -6
- package/index.modern.js +12 -6
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -18689,11 +18689,11 @@ function markMessagesRead(action) {
|
|
|
18689
18689
|
messageListMarker = _context0.v;
|
|
18690
18690
|
_context0.n = 5;
|
|
18691
18691
|
return effects.put(updateChannelDataAC(channel.id, {
|
|
18692
|
-
|
|
18692
|
+
lastDisplayedMessageId: channel.lastDisplayedMessageId
|
|
18693
18693
|
}));
|
|
18694
18694
|
case 5:
|
|
18695
18695
|
updateChannelOnAllChannels(channel.id, {
|
|
18696
|
-
|
|
18696
|
+
lastDisplayedMessageId: channel.lastDisplayedMessageId
|
|
18697
18697
|
});
|
|
18698
18698
|
_iterator6 = _createForOfIteratorHelperLoose(messageListMarker.messageIds);
|
|
18699
18699
|
case 6:
|
|
@@ -19155,7 +19155,7 @@ function notificationsTurnOn() {
|
|
|
19155
19155
|
}, _marked14, null, [[3, 6]]);
|
|
19156
19156
|
}
|
|
19157
19157
|
function markChannelAsRead(action) {
|
|
19158
|
-
var channelId, channel, updateData, _t16;
|
|
19158
|
+
var channelId, channel, updatedChannel, updateData, _t16;
|
|
19159
19159
|
return _regenerator().w(function (_context16) {
|
|
19160
19160
|
while (1) switch (_context16.p = _context16.n) {
|
|
19161
19161
|
case 0:
|
|
@@ -19171,10 +19171,12 @@ function markChannelAsRead(action) {
|
|
|
19171
19171
|
_context16.n = 2;
|
|
19172
19172
|
return effects.call(channel.markAsRead);
|
|
19173
19173
|
case 2:
|
|
19174
|
+
updatedChannel = _context16.v;
|
|
19174
19175
|
updateData = {
|
|
19175
19176
|
unread: false,
|
|
19176
19177
|
newMessageCount: 0,
|
|
19177
|
-
newMentionCount: 0
|
|
19178
|
+
newMentionCount: 0,
|
|
19179
|
+
lastDisplayedMessageId: updatedChannel === null || updatedChannel === void 0 ? void 0 : updatedChannel.lastDisplayedMessageId
|
|
19178
19180
|
};
|
|
19179
19181
|
updateChannelOnAllChannels(channel.id, updateData);
|
|
19180
19182
|
_context16.n = 3;
|
|
@@ -47517,12 +47519,16 @@ function setFloatingElemPosition(targetRect, floatingElem, anchorElem, verticalG
|
|
|
47517
47519
|
}
|
|
47518
47520
|
var floatingElemRect = floatingElem.getBoundingClientRect();
|
|
47519
47521
|
var anchorElementRect = anchorElem.getBoundingClientRect();
|
|
47520
|
-
var top = floatingElemRect.height - targetRect.height + verticalGap;
|
|
47521
47522
|
var menuWidthHalf = floatingElemRect.width / 2;
|
|
47522
47523
|
var selectionWidthHalf = targetRect.width / 2;
|
|
47523
47524
|
var left = targetRect.left - anchorElementRect.left + horizontalOffset - menuWidthHalf + selectionWidthHalf;
|
|
47525
|
+
var effectiveTop = Math.max(targetRect.top, anchorElementRect.top);
|
|
47526
|
+
var top = effectiveTop - anchorElementRect.top - floatingElemRect.height - verticalGap;
|
|
47527
|
+
if (effectiveTop - floatingElemRect.height - verticalGap < 0) {
|
|
47528
|
+
top = Math.min(targetRect.bottom, anchorElementRect.bottom) - anchorElementRect.top + verticalGap;
|
|
47529
|
+
}
|
|
47524
47530
|
floatingElem.style.opacity = '1';
|
|
47525
|
-
floatingElem.style.transform = "translate(" + left + "px, " +
|
|
47531
|
+
floatingElem.style.transform = "translate(" + left + "px, " + top + "px)";
|
|
47526
47532
|
}
|
|
47527
47533
|
function getSelectedNode(selection) {
|
|
47528
47534
|
var anchor = selection.anchor;
|
package/index.modern.js
CHANGED
|
@@ -18688,11 +18688,11 @@ function markMessagesRead(action) {
|
|
|
18688
18688
|
messageListMarker = _context0.v;
|
|
18689
18689
|
_context0.n = 5;
|
|
18690
18690
|
return put(updateChannelDataAC(channel.id, {
|
|
18691
|
-
|
|
18691
|
+
lastDisplayedMessageId: channel.lastDisplayedMessageId
|
|
18692
18692
|
}));
|
|
18693
18693
|
case 5:
|
|
18694
18694
|
updateChannelOnAllChannels(channel.id, {
|
|
18695
|
-
|
|
18695
|
+
lastDisplayedMessageId: channel.lastDisplayedMessageId
|
|
18696
18696
|
});
|
|
18697
18697
|
_iterator6 = _createForOfIteratorHelperLoose(messageListMarker.messageIds);
|
|
18698
18698
|
case 6:
|
|
@@ -19154,7 +19154,7 @@ function notificationsTurnOn() {
|
|
|
19154
19154
|
}, _marked14, null, [[3, 6]]);
|
|
19155
19155
|
}
|
|
19156
19156
|
function markChannelAsRead(action) {
|
|
19157
|
-
var channelId, channel, updateData, _t16;
|
|
19157
|
+
var channelId, channel, updatedChannel, updateData, _t16;
|
|
19158
19158
|
return _regenerator().w(function (_context16) {
|
|
19159
19159
|
while (1) switch (_context16.p = _context16.n) {
|
|
19160
19160
|
case 0:
|
|
@@ -19170,10 +19170,12 @@ function markChannelAsRead(action) {
|
|
|
19170
19170
|
_context16.n = 2;
|
|
19171
19171
|
return call(channel.markAsRead);
|
|
19172
19172
|
case 2:
|
|
19173
|
+
updatedChannel = _context16.v;
|
|
19173
19174
|
updateData = {
|
|
19174
19175
|
unread: false,
|
|
19175
19176
|
newMessageCount: 0,
|
|
19176
|
-
newMentionCount: 0
|
|
19177
|
+
newMentionCount: 0,
|
|
19178
|
+
lastDisplayedMessageId: updatedChannel === null || updatedChannel === void 0 ? void 0 : updatedChannel.lastDisplayedMessageId
|
|
19177
19179
|
};
|
|
19178
19180
|
updateChannelOnAllChannels(channel.id, updateData);
|
|
19179
19181
|
_context16.n = 3;
|
|
@@ -47516,12 +47518,16 @@ function setFloatingElemPosition(targetRect, floatingElem, anchorElem, verticalG
|
|
|
47516
47518
|
}
|
|
47517
47519
|
var floatingElemRect = floatingElem.getBoundingClientRect();
|
|
47518
47520
|
var anchorElementRect = anchorElem.getBoundingClientRect();
|
|
47519
|
-
var top = floatingElemRect.height - targetRect.height + verticalGap;
|
|
47520
47521
|
var menuWidthHalf = floatingElemRect.width / 2;
|
|
47521
47522
|
var selectionWidthHalf = targetRect.width / 2;
|
|
47522
47523
|
var left = targetRect.left - anchorElementRect.left + horizontalOffset - menuWidthHalf + selectionWidthHalf;
|
|
47524
|
+
var effectiveTop = Math.max(targetRect.top, anchorElementRect.top);
|
|
47525
|
+
var top = effectiveTop - anchorElementRect.top - floatingElemRect.height - verticalGap;
|
|
47526
|
+
if (effectiveTop - floatingElemRect.height - verticalGap < 0) {
|
|
47527
|
+
top = Math.min(targetRect.bottom, anchorElementRect.bottom) - anchorElementRect.top + verticalGap;
|
|
47528
|
+
}
|
|
47523
47529
|
floatingElem.style.opacity = '1';
|
|
47524
|
-
floatingElem.style.transform = "translate(" + left + "px, " +
|
|
47530
|
+
floatingElem.style.transform = "translate(" + left + "px, " + top + "px)";
|
|
47525
47531
|
}
|
|
47526
47532
|
function getSelectedNode(selection) {
|
|
47527
47533
|
var anchor = selection.anchor;
|