@arbidocs/react 0.5.59 → 0.5.61
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/{chunk-KUGZXI7V.js → chunk-2NFUEC5O.js} +17 -3
- package/dist/chunk-2NFUEC5O.js.map +1 -0
- package/dist/{chunk-FSPLYO52.cjs → chunk-H3HYKAS5.cjs} +17 -2
- package/dist/chunk-H3HYKAS5.cjs.map +1 -0
- package/dist/index.cjs +218 -214
- package/dist/{index.d-DklHLjcu.d.cts → index.d-DPVj21h1.d.cts} +9 -1
- package/dist/{index.d-DklHLjcu.d.ts → index.d-DPVj21h1.d.ts} +9 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/ui/index.cjs +151 -147
- package/dist/ui/index.d.cts +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-FSPLYO52.cjs.map +0 -1
- package/dist/chunk-KUGZXI7V.js.map +0 -1
|
@@ -3643,6 +3643,20 @@ function formatFriendlyDate(dateString, includeTime = true) {
|
|
|
3643
3643
|
return dateString;
|
|
3644
3644
|
}
|
|
3645
3645
|
}
|
|
3646
|
+
function formatCompactLastSeen(timestamp, options = {}) {
|
|
3647
|
+
const date = new Date(timestamp);
|
|
3648
|
+
if (isNaN(date.getTime())) return "";
|
|
3649
|
+
const now = options.now ?? /* @__PURE__ */ new Date();
|
|
3650
|
+
const yesterday = new Date(now);
|
|
3651
|
+
yesterday.setDate(yesterday.getDate() - 1);
|
|
3652
|
+
if (date.toDateString() === now.toDateString()) {
|
|
3653
|
+
return date.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" });
|
|
3654
|
+
}
|
|
3655
|
+
if (date.toDateString() === yesterday.toDateString()) return "Yesterday";
|
|
3656
|
+
const dateOptions = { month: "short", day: "numeric" };
|
|
3657
|
+
if (date.getFullYear() !== now.getFullYear()) dateOptions.year = "numeric";
|
|
3658
|
+
return date.toLocaleDateString([], dateOptions);
|
|
3659
|
+
}
|
|
3646
3660
|
|
|
3647
3661
|
// src/lib/markdown-to-text.ts
|
|
3648
3662
|
function markdownToPlainText(input) {
|
|
@@ -5367,6 +5381,7 @@ exports.configureStatusRegistry = configureStatusRegistry;
|
|
|
5367
5381
|
exports.createChunkedRecorder = createChunkedRecorder;
|
|
5368
5382
|
exports.entityNoun = entityNoun;
|
|
5369
5383
|
exports.extensionFromMime = extensionFromMime;
|
|
5384
|
+
exports.formatCompactLastSeen = formatCompactLastSeen;
|
|
5370
5385
|
exports.formatDocDate = formatDocDate;
|
|
5371
5386
|
exports.formatElapsed = formatElapsed;
|
|
5372
5387
|
exports.formatFolderLabel = formatFolderLabel;
|
|
@@ -5405,5 +5420,5 @@ exports.toggleVariants = toggleVariants;
|
|
|
5405
5420
|
exports.useAudioRecorder = useAudioRecorder;
|
|
5406
5421
|
exports.useDictateContext = useDictateContext;
|
|
5407
5422
|
exports.usesOriginalBytesForViewer = usesOriginalBytesForViewer;
|
|
5408
|
-
//# sourceMappingURL=chunk-
|
|
5409
|
-
//# sourceMappingURL=chunk-
|
|
5423
|
+
//# sourceMappingURL=chunk-H3HYKAS5.cjs.map
|
|
5424
|
+
//# sourceMappingURL=chunk-H3HYKAS5.cjs.map
|