solid-ui 2.4.28-81e448cb → 2.4.28-89c74e3e
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/dist/solid-ui.js +31 -24
- package/dist/solid-ui.js.map +1 -1
- package/dist/solid-ui.min.js +1 -1
- package/dist/solid-ui.min.js.map +1 -1
- package/lib/chat/infinite.js +19 -12
- package/lib/chat/infinite.js.map +1 -1
- package/lib/chat/message.js +10 -10
- package/lib/chat/message.js.map +1 -1
- package/lib/versionInfo.js +2 -2
- package/lib/versionInfo.js.map +1 -1
- package/package.json +1 -1
package/dist/solid-ui.js
CHANGED
|
@@ -4127,32 +4127,39 @@ function _infiniteMessageArea() {
|
|
|
4127
4127
|
date = extremity.messageTable.date; // day in mssecs
|
|
4128
4128
|
// Are we at the top of a thread?
|
|
4129
4129
|
if (!(backwards && earliest.limit && date <= earliest.limit)) {
|
|
4130
|
-
_context4.next =
|
|
4130
|
+
_context4.next = 7;
|
|
4131
4131
|
break;
|
|
4132
4132
|
}
|
|
4133
|
+
if (liveMessageTable) {
|
|
4134
|
+
_context4.next = 6;
|
|
4135
|
+
break;
|
|
4136
|
+
}
|
|
4137
|
+
_context4.next = 6;
|
|
4138
|
+
return appendCurrentMessages();
|
|
4139
|
+
case 6:
|
|
4133
4140
|
return _context4.abrupt("return", true);
|
|
4134
|
-
case
|
|
4141
|
+
case 7:
|
|
4135
4142
|
debug.log(' insertPreviousMessages: loadPrevious given date ' + date);
|
|
4136
|
-
_context4.next =
|
|
4143
|
+
_context4.next = 10;
|
|
4137
4144
|
return dateFolder.loadPrevious(date, backwards);
|
|
4138
|
-
case
|
|
4145
|
+
case 10:
|
|
4139
4146
|
date = _context4.sent;
|
|
4140
4147
|
// backwards
|
|
4141
4148
|
debug.log(' insertPreviousMessages: loadPrevious returns date ' + date);
|
|
4142
4149
|
debug.log("insertPreviousMessages: from ".concat(backwards ? 'backwards' : 'forwards', " loadPrevious: ").concat(date));
|
|
4143
4150
|
if (!(!date && !backwards && !liveMessageTable)) {
|
|
4144
|
-
_context4.next =
|
|
4151
|
+
_context4.next = 16;
|
|
4145
4152
|
break;
|
|
4146
4153
|
}
|
|
4147
|
-
_context4.next =
|
|
4154
|
+
_context4.next = 16;
|
|
4148
4155
|
return appendCurrentMessages();
|
|
4149
|
-
case
|
|
4156
|
+
case 16:
|
|
4150
4157
|
if (date) {
|
|
4151
|
-
_context4.next =
|
|
4158
|
+
_context4.next = 18;
|
|
4152
4159
|
break;
|
|
4153
4160
|
}
|
|
4154
4161
|
return _context4.abrupt("return", true);
|
|
4155
|
-
case
|
|
4162
|
+
case 18:
|
|
4156
4163
|
// done
|
|
4157
4164
|
live = false;
|
|
4158
4165
|
if (!backwards) {
|
|
@@ -4160,9 +4167,9 @@ function _infiniteMessageArea() {
|
|
|
4160
4167
|
doc = dateFolder.leafDocumentFromDate(date);
|
|
4161
4168
|
live = doc.sameTerm(todayDoc); // Is this todays?
|
|
4162
4169
|
}
|
|
4163
|
-
_context4.next =
|
|
4170
|
+
_context4.next = 22;
|
|
4164
4171
|
return createMessageTable(date, live);
|
|
4165
|
-
case
|
|
4172
|
+
case 22:
|
|
4166
4173
|
newMessageTable = _context4.sent;
|
|
4167
4174
|
extremity.messageTable = newMessageTable; // move pointer to earliest
|
|
4168
4175
|
if (backwards ? newestFirst : !newestFirst) {
|
|
@@ -4173,7 +4180,7 @@ function _infiniteMessageArea() {
|
|
|
4173
4180
|
div.insertBefore(newMessageTable, div.firstChild);
|
|
4174
4181
|
}
|
|
4175
4182
|
return _context4.abrupt("return", live);
|
|
4176
|
-
case
|
|
4183
|
+
case 26:
|
|
4177
4184
|
case "end":
|
|
4178
4185
|
return _context4.stop();
|
|
4179
4186
|
}
|
|
@@ -4848,11 +4855,11 @@ function _renderMessageRow() {
|
|
|
4848
4855
|
if (straightReplies.length > 1) {
|
|
4849
4856
|
debug.log('renderMessageRow: found normal replies: ', straightReplies);
|
|
4850
4857
|
}
|
|
4851
|
-
debug.log('@@@@
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4858
|
+
debug.log('@@@@ is thread');
|
|
4859
|
+
if (!thread) {
|
|
4860
|
+
// thread = store.any(message, ns.sioc('has_reply'))
|
|
4861
|
+
thread = _solidLogic.store.any(null, ns.sioc('has_member'), message);
|
|
4862
|
+
}
|
|
4856
4863
|
// get signature
|
|
4857
4864
|
signature = _solidLogic.store.any(msgId, $rdf.sym("".concat(_signature.SEC, "proofValue"))); // set message object
|
|
4858
4865
|
msg = (0, _signature.getBlankMsg)();
|
|
@@ -4880,9 +4887,9 @@ function _renderMessageRow() {
|
|
|
4880
4887
|
else if (signature !== null && signature !== void 0 && signature.value && !(0, _signature.verifySignature)(signature === null || signature === void 0 ? void 0 : signature.value, msg, publicKey)) debug.warn('invalid signature\n' + msg.id);
|
|
4881
4888
|
});
|
|
4882
4889
|
}
|
|
4883
|
-
_context10.next =
|
|
4890
|
+
_context10.next = 38;
|
|
4884
4891
|
return (0, _chatLogic.originalVersion)(message);
|
|
4885
|
-
case
|
|
4892
|
+
case 38:
|
|
4886
4893
|
originalMessage = _context10.sent;
|
|
4887
4894
|
edited = !message.sameTerm(originalMessage); // @@ load it first @@ Or display the new data at the old date.
|
|
4888
4895
|
// @@@ kludge!
|
|
@@ -4939,9 +4946,9 @@ function _renderMessageRow() {
|
|
|
4939
4946
|
bgcolor = colorizeByAuthor ? pad.lightColorHash(creator) : getBgColor(fresh);
|
|
4940
4947
|
para.setAttribute('style', messageBodyStyle + 'background-color: ' + bgcolor + ';');
|
|
4941
4948
|
}
|
|
4942
|
-
_context10.next =
|
|
4949
|
+
_context10.next = 59;
|
|
4943
4950
|
return (0, _messageTools.sentimentStripLinked)(message, message.doc());
|
|
4944
|
-
case
|
|
4951
|
+
case 59:
|
|
4945
4952
|
strip = _context10.sent;
|
|
4946
4953
|
if (strip.children.length) {
|
|
4947
4954
|
td2.appendChild(dom.createElement('br'));
|
|
@@ -5006,7 +5013,7 @@ function _renderMessageRow() {
|
|
|
5006
5013
|
}));
|
|
5007
5014
|
}
|
|
5008
5015
|
return _context10.abrupt("return", messageRow);
|
|
5009
|
-
case
|
|
5016
|
+
case 68:
|
|
5010
5017
|
case "end":
|
|
5011
5018
|
return _context10.stop();
|
|
5012
5019
|
}
|
|
@@ -14433,8 +14440,8 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
14433
14440
|
}));
|
|
14434
14441
|
exports.versionInfo = void 0;
|
|
14435
14442
|
var versionInfo = {
|
|
14436
|
-
buildTime: '2023-05-
|
|
14437
|
-
commit: '
|
|
14443
|
+
buildTime: '2023-05-30T18:12:34Z',
|
|
14444
|
+
commit: '89c74e3ea1fc4a7c68d681e1d60af9bdaf652f13',
|
|
14438
14445
|
npmInfo: {
|
|
14439
14446
|
'solid-ui': '2.4.28',
|
|
14440
14447
|
npm: '8.19.4',
|