@arbidocs/react 0.4.110 → 0.4.111
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/index.cjs +51 -49
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +12 -10
- package/dist/index.js.map +1 -1
- package/dist/ui/index.cjs +9 -9
- package/dist/ui/index.js +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkAFGE55RQ_cjs = require('./chunk-AFGE55RQ.cjs');
|
|
4
|
-
var chunk5DCRIWCA_cjs = require('./chunk-5DCRIWCA.cjs');
|
|
5
4
|
var chunkF7KQVVD2_cjs = require('./chunk-F7KQVVD2.cjs');
|
|
5
|
+
var chunk5DCRIWCA_cjs = require('./chunk-5DCRIWCA.cjs');
|
|
6
6
|
var chunkXD4P4KRH_cjs = require('./chunk-XD4P4KRH.cjs');
|
|
7
7
|
var chunkTBELZWGV_cjs = require('./chunk-TBELZWGV.cjs');
|
|
8
|
+
var chunkHUZB36QU_cjs = require('./chunk-HUZB36QU.cjs');
|
|
8
9
|
var chunkWYZJLZ67_cjs = require('./chunk-WYZJLZ67.cjs');
|
|
9
10
|
var chunkZ3LLUO32_cjs = require('./chunk-Z3LLUO32.cjs');
|
|
10
|
-
var chunkHUZB36QU_cjs = require('./chunk-HUZB36QU.cjs');
|
|
11
11
|
var chunkHJDR5HEO_cjs = require('./chunk-HJDR5HEO.cjs');
|
|
12
12
|
var chunkS6A6FSG7_cjs = require('./chunk-S6A6FSG7.cjs');
|
|
13
13
|
var chunkTMPDW7J5_cjs = require('./chunk-TMPDW7J5.cjs');
|
|
@@ -4907,23 +4907,26 @@ function toConversation(loaded, myExtId, pending) {
|
|
|
4907
4907
|
const sender = userById.get(m.sender_ext_id ?? "") ?? { external_id: m.sender_ext_id ?? "usr-unknown" };
|
|
4908
4908
|
return {
|
|
4909
4909
|
externalId: m.external_id,
|
|
4910
|
-
|
|
4910
|
+
// A tombstone (deleted) has no content: it renders as "Message deleted".
|
|
4911
|
+
body: m.deleted ? "" : m.content ?? "",
|
|
4911
4912
|
createdAt: m.created_at,
|
|
4912
4913
|
isMine,
|
|
4913
4914
|
// Mine: has the peer read it? Theirs: have I?
|
|
4914
4915
|
read: browser.chats.hasRead(isMine ? peerMember : meMember, m),
|
|
4915
4916
|
sender,
|
|
4916
4917
|
recipient: isMine ? peer : meMember?.user,
|
|
4917
|
-
chatExtId: chat.external_id
|
|
4918
|
+
chatExtId: chat.external_id,
|
|
4919
|
+
...m.deleted ? { deleted: true } : {}
|
|
4918
4920
|
};
|
|
4919
4921
|
});
|
|
4920
4922
|
messages.sort((a, b) => a.createdAt.localeCompare(b.createdAt));
|
|
4921
4923
|
if (messages.length === 0) return null;
|
|
4924
|
+
const shown = messages.filter((m) => !m.deleted);
|
|
4922
4925
|
return {
|
|
4923
4926
|
peer,
|
|
4924
4927
|
chatExtId: chat.external_id,
|
|
4925
4928
|
messages,
|
|
4926
|
-
lastMessage:
|
|
4929
|
+
lastMessage: shown[shown.length - 1],
|
|
4927
4930
|
unreadCount: chat.unread_count ?? 0
|
|
4928
4931
|
};
|
|
4929
4932
|
}
|
|
@@ -5239,8 +5242,7 @@ function MessageThread({
|
|
|
5239
5242
|
classNames,
|
|
5240
5243
|
emptyState,
|
|
5241
5244
|
formatDay,
|
|
5242
|
-
onDeleteMessage
|
|
5243
|
-
deletedIds
|
|
5245
|
+
onDeleteMessage
|
|
5244
5246
|
}) {
|
|
5245
5247
|
const bottomRef = React.useRef(null);
|
|
5246
5248
|
const items = React.useMemo(
|
|
@@ -5277,8 +5279,8 @@ function MessageThread({
|
|
|
5277
5279
|
message: m,
|
|
5278
5280
|
classNames,
|
|
5279
5281
|
isLastOfRun,
|
|
5280
|
-
deleted:
|
|
5281
|
-
onDelete: onDeleteMessage ? () => onDeleteMessage(m) : void 0
|
|
5282
|
+
deleted: m.deleted,
|
|
5283
|
+
onDelete: onDeleteMessage && !m.deleted ? () => onDeleteMessage(m) : void 0
|
|
5282
5284
|
}
|
|
5283
5285
|
)
|
|
5284
5286
|
] }, m.externalId)),
|
|
@@ -7199,38 +7201,6 @@ Object.defineProperty(exports, "useWorkspaces", {
|
|
|
7199
7201
|
enumerable: true,
|
|
7200
7202
|
get: function () { return chunkAFGE55RQ_cjs.useWorkspaces; }
|
|
7201
7203
|
});
|
|
7202
|
-
Object.defineProperty(exports, "cleanDraftMarkdown", {
|
|
7203
|
-
enumerable: true,
|
|
7204
|
-
get: function () { return chunk5DCRIWCA_cjs.cleanDraftMarkdown; }
|
|
7205
|
-
});
|
|
7206
|
-
Object.defineProperty(exports, "cleanDraftWithReport", {
|
|
7207
|
-
enumerable: true,
|
|
7208
|
-
get: function () { return chunk5DCRIWCA_cjs.cleanDraftWithReport; }
|
|
7209
|
-
});
|
|
7210
|
-
Object.defineProperty(exports, "promoteBoldTitle", {
|
|
7211
|
-
enumerable: true,
|
|
7212
|
-
get: function () { return chunk5DCRIWCA_cjs.promoteBoldTitle; }
|
|
7213
|
-
});
|
|
7214
|
-
Object.defineProperty(exports, "repairParsedStructure", {
|
|
7215
|
-
enumerable: true,
|
|
7216
|
-
get: function () { return chunk5DCRIWCA_cjs.repairParsedStructure; }
|
|
7217
|
-
});
|
|
7218
|
-
Object.defineProperty(exports, "repairParsedTitle", {
|
|
7219
|
-
enumerable: true,
|
|
7220
|
-
get: function () { return chunk5DCRIWCA_cjs.repairParsedTitle; }
|
|
7221
|
-
});
|
|
7222
|
-
Object.defineProperty(exports, "stripAgentPreamble", {
|
|
7223
|
-
enumerable: true,
|
|
7224
|
-
get: function () { return chunk5DCRIWCA_cjs.stripAgentPreamble; }
|
|
7225
|
-
});
|
|
7226
|
-
Object.defineProperty(exports, "unescapeMarkdown", {
|
|
7227
|
-
enumerable: true,
|
|
7228
|
-
get: function () { return chunk5DCRIWCA_cjs.unescapeMarkdown; }
|
|
7229
|
-
});
|
|
7230
|
-
Object.defineProperty(exports, "unwrapCitationLinks", {
|
|
7231
|
-
enumerable: true,
|
|
7232
|
-
get: function () { return chunk5DCRIWCA_cjs.unwrapCitationLinks; }
|
|
7233
|
-
});
|
|
7234
7204
|
Object.defineProperty(exports, "DEFAULT_NOTIFY_TONE", {
|
|
7235
7205
|
enumerable: true,
|
|
7236
7206
|
get: function () { return chunkF7KQVVD2_cjs.DEFAULT_NOTIFY_TONE; }
|
|
@@ -7267,6 +7237,38 @@ Object.defineProperty(exports, "useNotify", {
|
|
|
7267
7237
|
enumerable: true,
|
|
7268
7238
|
get: function () { return chunkF7KQVVD2_cjs.useNotify; }
|
|
7269
7239
|
});
|
|
7240
|
+
Object.defineProperty(exports, "cleanDraftMarkdown", {
|
|
7241
|
+
enumerable: true,
|
|
7242
|
+
get: function () { return chunk5DCRIWCA_cjs.cleanDraftMarkdown; }
|
|
7243
|
+
});
|
|
7244
|
+
Object.defineProperty(exports, "cleanDraftWithReport", {
|
|
7245
|
+
enumerable: true,
|
|
7246
|
+
get: function () { return chunk5DCRIWCA_cjs.cleanDraftWithReport; }
|
|
7247
|
+
});
|
|
7248
|
+
Object.defineProperty(exports, "promoteBoldTitle", {
|
|
7249
|
+
enumerable: true,
|
|
7250
|
+
get: function () { return chunk5DCRIWCA_cjs.promoteBoldTitle; }
|
|
7251
|
+
});
|
|
7252
|
+
Object.defineProperty(exports, "repairParsedStructure", {
|
|
7253
|
+
enumerable: true,
|
|
7254
|
+
get: function () { return chunk5DCRIWCA_cjs.repairParsedStructure; }
|
|
7255
|
+
});
|
|
7256
|
+
Object.defineProperty(exports, "repairParsedTitle", {
|
|
7257
|
+
enumerable: true,
|
|
7258
|
+
get: function () { return chunk5DCRIWCA_cjs.repairParsedTitle; }
|
|
7259
|
+
});
|
|
7260
|
+
Object.defineProperty(exports, "stripAgentPreamble", {
|
|
7261
|
+
enumerable: true,
|
|
7262
|
+
get: function () { return chunk5DCRIWCA_cjs.stripAgentPreamble; }
|
|
7263
|
+
});
|
|
7264
|
+
Object.defineProperty(exports, "unescapeMarkdown", {
|
|
7265
|
+
enumerable: true,
|
|
7266
|
+
get: function () { return chunk5DCRIWCA_cjs.unescapeMarkdown; }
|
|
7267
|
+
});
|
|
7268
|
+
Object.defineProperty(exports, "unwrapCitationLinks", {
|
|
7269
|
+
enumerable: true,
|
|
7270
|
+
get: function () { return chunk5DCRIWCA_cjs.unwrapCitationLinks; }
|
|
7271
|
+
});
|
|
7270
7272
|
Object.defineProperty(exports, "AUDIO_MIME_PREFERENCE", {
|
|
7271
7273
|
enumerable: true,
|
|
7272
7274
|
get: function () { return chunkXD4P4KRH_cjs.AUDIO_MIME_PREFERENCE; }
|
|
@@ -7835,6 +7837,14 @@ Object.defineProperty(exports, "splitMarkdownBlocks", {
|
|
|
7835
7837
|
enumerable: true,
|
|
7836
7838
|
get: function () { return chunkTBELZWGV_cjs.splitMarkdownBlocks; }
|
|
7837
7839
|
});
|
|
7840
|
+
Object.defineProperty(exports, "ScrollArea", {
|
|
7841
|
+
enumerable: true,
|
|
7842
|
+
get: function () { return chunkHUZB36QU_cjs.ScrollArea; }
|
|
7843
|
+
});
|
|
7844
|
+
Object.defineProperty(exports, "ScrollBar", {
|
|
7845
|
+
enumerable: true,
|
|
7846
|
+
get: function () { return chunkHUZB36QU_cjs.ScrollBar; }
|
|
7847
|
+
});
|
|
7838
7848
|
Object.defineProperty(exports, "Button", {
|
|
7839
7849
|
enumerable: true,
|
|
7840
7850
|
get: function () { return chunkWYZJLZ67_cjs.Button; }
|
|
@@ -7895,14 +7905,6 @@ Object.defineProperty(exports, "trimOpenCitation", {
|
|
|
7895
7905
|
enumerable: true,
|
|
7896
7906
|
get: function () { return chunkZ3LLUO32_cjs.trimOpenCitation; }
|
|
7897
7907
|
});
|
|
7898
|
-
Object.defineProperty(exports, "ScrollArea", {
|
|
7899
|
-
enumerable: true,
|
|
7900
|
-
get: function () { return chunkHUZB36QU_cjs.ScrollArea; }
|
|
7901
|
-
});
|
|
7902
|
-
Object.defineProperty(exports, "ScrollBar", {
|
|
7903
|
-
enumerable: true,
|
|
7904
|
-
get: function () { return chunkHUZB36QU_cjs.ScrollBar; }
|
|
7905
|
-
});
|
|
7906
7908
|
Object.defineProperty(exports, "DropdownMenu", {
|
|
7907
7909
|
enumerable: true,
|
|
7908
7910
|
get: function () { return chunkHJDR5HEO_cjs.DropdownMenu; }
|