@arbidocs/react 0.4.150 → 0.4.151
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/artifacts/index.cjs +20 -20
- package/dist/artifacts/index.js +3 -3
- package/dist/{chunk-KD7CKXWQ.js → chunk-D2XIJSSI.js} +3 -3
- package/dist/{chunk-KD7CKXWQ.js.map → chunk-D2XIJSSI.js.map} +1 -1
- package/dist/{chunk-IQIDM3KM.cjs → chunk-I7UUV7FP.cjs} +11 -3
- package/dist/chunk-I7UUV7FP.cjs.map +1 -0
- package/dist/{chunk-JQ7Y723H.js → chunk-OKDZDDJM.js} +11 -3
- package/dist/chunk-OKDZDDJM.js.map +1 -0
- package/dist/{chunk-L66ZJ2UI.cjs → chunk-QCQFV5KO.cjs} +3 -3
- package/dist/{chunk-L66ZJ2UI.cjs.map → chunk-QCQFV5KO.cjs.map} +1 -1
- package/dist/index.cjs +455 -455
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -6
- package/dist/ui/index.cjs +161 -161
- package/dist/ui/index.js +2 -2
- package/package.json +3 -3
- package/dist/chunk-IQIDM3KM.cjs.map +0 -1
- package/dist/chunk-JQ7Y723H.js.map +0 -1
package/dist/artifacts/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var chunk3AADNIOK_cjs = require('../chunk-3AADNIOK.cjs');
|
|
3
|
+
var chunkI7UUV7FP_cjs = require('../chunk-I7UUV7FP.cjs');
|
|
5
4
|
var chunkZWFMFOGP_cjs = require('../chunk-ZWFMFOGP.cjs');
|
|
5
|
+
var chunk3AADNIOK_cjs = require('../chunk-3AADNIOK.cjs');
|
|
6
6
|
var chunkVOFNX4P6_cjs = require('../chunk-VOFNX4P6.cjs');
|
|
7
7
|
var chunkOC7F5SNA_cjs = require('../chunk-OC7F5SNA.cjs');
|
|
8
8
|
require('../chunk-Z3LLUO32.cjs');
|
|
@@ -283,7 +283,7 @@ function useArtifactText(docId, options) {
|
|
|
283
283
|
const enabled = (options?.enabled ?? true) && chunkZWFMFOGP_cjs.isDocumentId(docId) && arbi.hasWorkspace;
|
|
284
284
|
const query = reactQuery.useQuery({
|
|
285
285
|
// Under the shared `parsedDoc` key, so a document's invalidation reaches it too.
|
|
286
|
-
queryKey: [...
|
|
286
|
+
queryKey: [...chunkI7UUV7FP_cjs.arbiQueryKeys.parsedDoc(docId ?? "", "marker"), "artifact-text"],
|
|
287
287
|
queryFn: async () => {
|
|
288
288
|
const { docId: plainId, version } = chunkZWFMFOGP_cjs.parseVersionRef(docId);
|
|
289
289
|
const parsed = await arbi.documents.getParsedContent(
|
|
@@ -331,12 +331,12 @@ function useArtifactText(docId, options) {
|
|
|
331
331
|
// src/artifacts/useArtifactSession.ts
|
|
332
332
|
function useArtifactVersions(workspaceId, docId) {
|
|
333
333
|
const plainId = docId ? chunkZWFMFOGP_cjs.parseVersionRef(docId).docId : null;
|
|
334
|
-
const { data: documents } =
|
|
334
|
+
const { data: documents } = chunkI7UUV7FP_cjs.useDocuments(workspaceId);
|
|
335
335
|
const listed = react.useMemo(
|
|
336
336
|
() => (documents ?? []).find((d) => d.external_id === plainId),
|
|
337
337
|
[documents, plainId]
|
|
338
338
|
);
|
|
339
|
-
const { data: history } =
|
|
339
|
+
const { data: history } = chunkI7UUV7FP_cjs.useDocumentVersionList(plainId, {
|
|
340
340
|
enabled: !!plainId && documents !== void 0 && !listed
|
|
341
341
|
});
|
|
342
342
|
return react.useMemo(
|
|
@@ -360,10 +360,10 @@ function useSaveArtifactVersion() {
|
|
|
360
360
|
}
|
|
361
361
|
);
|
|
362
362
|
const docId = result.doc_ext_ids?.[0];
|
|
363
|
-
if (docId) await
|
|
364
|
-
await queryClient.invalidateQueries({ queryKey:
|
|
363
|
+
if (docId) await chunkI7UUV7FP_cjs.refreshDocuments(queryClient, arbi, [docId]);
|
|
364
|
+
await queryClient.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.allDocumentVersions() });
|
|
365
365
|
if (docId)
|
|
366
|
-
await queryClient.invalidateQueries({ queryKey:
|
|
366
|
+
await queryClient.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.parsedDocument(docId) });
|
|
367
367
|
return { docId, version: result.version ?? void 0 };
|
|
368
368
|
}
|
|
369
369
|
});
|
|
@@ -572,18 +572,6 @@ function viewerTabForArtifactMode(mode) {
|
|
|
572
572
|
return artifactKindFromMode(mode) ? "preview" : "edit";
|
|
573
573
|
}
|
|
574
574
|
|
|
575
|
-
Object.defineProperty(exports, "buildHybridRedlineMarkdown", {
|
|
576
|
-
enumerable: true,
|
|
577
|
-
get: function () { return chunk3AADNIOK_cjs.buildHybridRedlineMarkdown; }
|
|
578
|
-
});
|
|
579
|
-
Object.defineProperty(exports, "buildHybridRedlineWithRegions", {
|
|
580
|
-
enumerable: true,
|
|
581
|
-
get: function () { return chunk3AADNIOK_cjs.buildHybridRedlineWithRegions; }
|
|
582
|
-
});
|
|
583
|
-
Object.defineProperty(exports, "revertRedlineRegion", {
|
|
584
|
-
enumerable: true,
|
|
585
|
-
get: function () { return chunk3AADNIOK_cjs.revertRedlineRegion; }
|
|
586
|
-
});
|
|
587
575
|
Object.defineProperty(exports, "cleanDraftMarkdown", {
|
|
588
576
|
enumerable: true,
|
|
589
577
|
get: function () { return chunkZWFMFOGP_cjs.cleanDraftMarkdown; }
|
|
@@ -652,6 +640,18 @@ Object.defineProperty(exports, "versionRef", {
|
|
|
652
640
|
enumerable: true,
|
|
653
641
|
get: function () { return chunkZWFMFOGP_cjs.versionRef; }
|
|
654
642
|
});
|
|
643
|
+
Object.defineProperty(exports, "buildHybridRedlineMarkdown", {
|
|
644
|
+
enumerable: true,
|
|
645
|
+
get: function () { return chunk3AADNIOK_cjs.buildHybridRedlineMarkdown; }
|
|
646
|
+
});
|
|
647
|
+
Object.defineProperty(exports, "buildHybridRedlineWithRegions", {
|
|
648
|
+
enumerable: true,
|
|
649
|
+
get: function () { return chunk3AADNIOK_cjs.buildHybridRedlineWithRegions; }
|
|
650
|
+
});
|
|
651
|
+
Object.defineProperty(exports, "revertRedlineRegion", {
|
|
652
|
+
enumerable: true,
|
|
653
|
+
get: function () { return chunk3AADNIOK_cjs.revertRedlineRegion; }
|
|
654
|
+
});
|
|
655
655
|
Object.defineProperty(exports, "normalizeMarkdown", {
|
|
656
656
|
enumerable: true,
|
|
657
657
|
get: function () { return chunkVOFNX4P6_cjs.normalizeMarkdown; }
|
package/dist/artifacts/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { arbiQueryKeys, useDocuments, useDocumentVersionList, refreshDocuments } from '../chunk-
|
|
2
|
-
import { revertRedlineRegion, buildHybridRedlineWithRegions, buildHybridRedlineMarkdown } from '../chunk-74N436VK.js';
|
|
3
|
-
export { buildHybridRedlineMarkdown, buildHybridRedlineWithRegions, revertRedlineRegion } from '../chunk-74N436VK.js';
|
|
1
|
+
import { arbiQueryKeys, useDocuments, useDocumentVersionList, refreshDocuments } from '../chunk-OKDZDDJM.js';
|
|
4
2
|
import { isDocumentId, parseVersionRef, flattenChunks, documentVersions, toArtifactVersions, findVersion, versionLabel, cleanDraftWithReport } from '../chunk-NNWMHMEC.js';
|
|
5
3
|
export { cleanDraftMarkdown, cleanDraftWithReport, documentVersions, findVersion, flattenChunks, isDocumentId, parseVersionRef, promoteBoldTitle, repairParsedStructure, repairParsedTitle, savedFromId, stripAgentPreamble, toArtifactVersions, unescapeMarkdown, unwrapCitationLinks, versionLabel, versionRef } from '../chunk-NNWMHMEC.js';
|
|
4
|
+
import { revertRedlineRegion, buildHybridRedlineWithRegions, buildHybridRedlineMarkdown } from '../chunk-74N436VK.js';
|
|
5
|
+
export { buildHybridRedlineMarkdown, buildHybridRedlineWithRegions, revertRedlineRegion } from '../chunk-74N436VK.js';
|
|
6
6
|
import { normalizeMarkdown } from '../chunk-WUTL62MC.js';
|
|
7
7
|
export { normalizeMarkdown } from '../chunk-WUTL62MC.js';
|
|
8
8
|
import { MarkdownRenderer } from '../chunk-C44GO33B.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MarkdownRenderer } from './chunk-C44GO33B.js';
|
|
2
1
|
import { Dialog, DialogContent } from './chunk-YNNAJJ5Z.js';
|
|
2
|
+
import { MarkdownRenderer } from './chunk-C44GO33B.js';
|
|
3
3
|
import { getCollisionPadding, usePortalContainer, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuLabel, DropdownMenuItem, DropdownMenuSeparator } from './chunk-47CCGUWR.js';
|
|
4
4
|
import { cn } from './chunk-SN5YV6FF.js';
|
|
5
5
|
import * as React from 'react';
|
|
@@ -4868,5 +4868,5 @@ function DocumentCard({
|
|
|
4868
4868
|
}
|
|
4869
4869
|
|
|
4870
4870
|
export { AUDIO_MIME_PREFERENCE, AgentBadge, AiMarkdown, ArbiBotHeadIcon, ArbiIcon, AudIcon, Avatar, AvatarFallback, AvatarImage, BASE_COLORS2 as BASE_COLORS, Badge, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_SEGMENTER_CONFIG, DebouncedInput, DictateProvider, DocIcon, DocumentCard, DocumentEntity, ENTITY_MAPPINGS, EmlIcon, EntityIcon, EntityPill, FILE_TYPE_COLORS, HoverCard, HoverCardContent, HoverCardTrigger, HtmlIcon, INITIAL_SEGMENTER_STATE, IconToggle, ImgIcon, InlineMicButton, Input, Label2 as Label, MarkMenu, MicRecordingOverlay, MicWaveformIndicator, NEUTRAL_GRAY2 as NEUTRAL_GRAY, PLACEHOLDER_COLOR, PassageCard, PdfIcon, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, PresenceLabel, Progress, ProjectEntity, RadioGroup, RadioGroupItem, RagDot, RelevanceDot, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator2 as Separator, ShieldIcon, Slider, StatusPill, Switch, TAG_TYPE_ICONS, TAG_TYPE_LABELS, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TagEntity, Textarea, ThreadVisibilityIcon, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TxtIcon, UserEntity, UserMenu, VIDEO_MIME_PREFERENCE, VISIBILITY_ICONS, VerifiedBadge, VerifiedToggle, VidIcon, VisibilityIcon, VisibilityToggle, XlsIcon, agentAvatarColors, badgeVariants, cardVariants, classifyMediaError, configureEntityRegistry, configureRagLabels, configureStatusRegistry, createChunkedRecorder, flushSegmenter, formatElapsed, formatFriendlyDate, friendlyFileType, getDocIcon, getDocumentTitle, getEntityColor2 as getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getStatusVariant, getTagTypeIcon, getTagTypeLabel, getWorkspaceColor, isAudioFile, isDownloadOnlyFile, isImageDocument, isImageFile, isMediaFile, isVideoFile, levelFromRms, pickRecorderMimeType, returnFocusToMark, stepSegmenter, tagKindNouns, tagKindTitle, toggleVariants, useAudioRecorder, useDictateContext, usesOriginalBytesForViewer };
|
|
4871
|
-
//# sourceMappingURL=chunk-
|
|
4872
|
-
//# sourceMappingURL=chunk-
|
|
4871
|
+
//# sourceMappingURL=chunk-D2XIJSSI.js.map
|
|
4872
|
+
//# sourceMappingURL=chunk-D2XIJSSI.js.map
|