@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.
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkIQIDM3KM_cjs = require('../chunk-IQIDM3KM.cjs');
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: [...chunkIQIDM3KM_cjs.arbiQueryKeys.parsedDoc(docId ?? "", "marker"), "artifact-text"],
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 } = chunkIQIDM3KM_cjs.useDocuments(workspaceId);
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 } = chunkIQIDM3KM_cjs.useDocumentVersionList(plainId, {
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 chunkIQIDM3KM_cjs.refreshDocuments(queryClient, arbi, [docId]);
364
- await queryClient.invalidateQueries({ queryKey: chunkIQIDM3KM_cjs.arbiQueryKeys.allDocumentVersions() });
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: chunkIQIDM3KM_cjs.arbiQueryKeys.parsedDocument(docId) });
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; }
@@ -1,8 +1,8 @@
1
- import { arbiQueryKeys, useDocuments, useDocumentVersionList, refreshDocuments } from '../chunk-JQ7Y723H.js';
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-KD7CKXWQ.js.map
4872
- //# sourceMappingURL=chunk-KD7CKXWQ.js.map
4871
+ //# sourceMappingURL=chunk-D2XIJSSI.js.map
4872
+ //# sourceMappingURL=chunk-D2XIJSSI.js.map