@arbidocs/react 0.4.86 → 0.4.88

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,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkE26JGYT4_cjs = require('../chunk-E26JGYT4.cjs');
3
+ var chunkPYPYDBOT_cjs = require('../chunk-PYPYDBOT.cjs');
4
4
  var chunk3AADNIOK_cjs = require('../chunk-3AADNIOK.cjs');
5
5
  var chunkT4IJHRRD_cjs = require('../chunk-T4IJHRRD.cjs');
6
6
  var chunk5DCRIWCA_cjs = require('../chunk-5DCRIWCA.cjs');
@@ -284,7 +284,7 @@ function useArtifactText(docId, options) {
284
284
  const enabled = (options?.enabled ?? true) && chunkT4IJHRRD_cjs.isDocumentId(docId) && arbi.hasWorkspace;
285
285
  const query = reactQuery.useQuery({
286
286
  // Under the shared `parsedDoc` key, so a document's invalidation reaches it too.
287
- queryKey: [...chunkE26JGYT4_cjs.arbiQueryKeys.parsedDoc(docId ?? "", "marker"), "artifact-text"],
287
+ queryKey: [...chunkPYPYDBOT_cjs.arbiQueryKeys.parsedDoc(docId ?? "", "marker"), "artifact-text"],
288
288
  queryFn: async () => {
289
289
  const { docId: plainId, version } = chunkT4IJHRRD_cjs.parseVersionRef(docId);
290
290
  const parsed = await arbi.documents.getParsedContent(
@@ -332,12 +332,12 @@ function useArtifactText(docId, options) {
332
332
  // src/artifacts/useArtifactSession.ts
333
333
  function useArtifactVersions(workspaceId, docId) {
334
334
  const plainId = docId ? chunkT4IJHRRD_cjs.parseVersionRef(docId).docId : null;
335
- const { data: documents } = chunkE26JGYT4_cjs.useDocuments(workspaceId);
335
+ const { data: documents } = chunkPYPYDBOT_cjs.useDocuments(workspaceId);
336
336
  const listed = react.useMemo(
337
337
  () => (documents ?? []).find((d) => d.external_id === plainId),
338
338
  [documents, plainId]
339
339
  );
340
- const { data: history } = chunkE26JGYT4_cjs.useDocumentVersionList(plainId, {
340
+ const { data: history } = chunkPYPYDBOT_cjs.useDocumentVersionList(plainId, {
341
341
  enabled: !!plainId && documents !== void 0 && !listed
342
342
  });
343
343
  return react.useMemo(
@@ -362,9 +362,9 @@ function useSaveArtifactVersion() {
362
362
  );
363
363
  const docId = result.doc_ext_ids?.[0];
364
364
  if (workspaceId) {
365
- await queryClient.invalidateQueries({ queryKey: chunkE26JGYT4_cjs.arbiQueryKeys.documents(workspaceId) });
365
+ await queryClient.invalidateQueries({ queryKey: chunkPYPYDBOT_cjs.arbiQueryKeys.documents(workspaceId) });
366
366
  }
367
- await queryClient.invalidateQueries({ queryKey: chunkE26JGYT4_cjs.arbiQueryKeys.allDocumentVersions() });
367
+ await queryClient.invalidateQueries({ queryKey: chunkPYPYDBOT_cjs.arbiQueryKeys.allDocumentVersions() });
368
368
  if (docId) await queryClient.invalidateQueries({ queryKey: ["arbi", "parsedDoc", docId] });
369
369
  return { docId, version: result.version ?? void 0 };
370
370
  }
@@ -1,4 +1,4 @@
1
- import { arbiQueryKeys, useDocuments, useDocumentVersionList } from '../chunk-KYCCIEXA.js';
1
+ import { arbiQueryKeys, useDocuments, useDocumentVersionList } from '../chunk-GYHKZ6JQ.js';
2
2
  import { revertRedlineRegion, buildHybridRedlineWithRegions, buildHybridRedlineMarkdown } from '../chunk-74N436VK.js';
3
3
  export { buildHybridRedlineMarkdown, buildHybridRedlineWithRegions, revertRedlineRegion } from '../chunk-74N436VK.js';
4
4
  import { isDocumentId, parseVersionRef, flattenChunks, documentVersions, toArtifactVersions, findVersion, versionLabel } from '../chunk-HKUD2NZN.js';
@@ -6,7 +6,7 @@ import * as React from 'react';
6
6
  import React__default, { createContext, forwardRef, memo, useContext, useState, useRef, useEffect, useCallback, useId, useMemo, Fragment as Fragment$1 } from 'react';
7
7
  import { createPortal } from 'react-dom';
8
8
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
9
- import { ChevronDown, ChevronUp, Check, Circle, Search, MessageCircleMore, Loader2, Square, Mic, MoreVertical, BadgeCheck, MessageSquareLock, Info, FileQuestion, BookOpen, Upload, LogOut, LayoutGrid, Bell, MessageSquare, CircleUserRound, Wrench, CreditCard, ClipboardList, UserPlus, UserStar, Settings2, Users, User, NotebookPen, NotebookText, StickyNote, FolderPlus, Hash, EyeOff, Eye, CaptionsOff, FolderOpen, MessageSquareMore, MessageSquarePlus, MessageSquareText, MessageSquareOff, MessagesSquare, Columns3Cog, SquarePlus, SquareM, ChevronsDown, Bot, Calendar, Folder, List, SquareCheckBig, Minus, Plus, Share2, MessageSquareShare, ChevronsUpDown, X, AlertTriangle, FileX, SkipForward, XCircle, CheckCircle } from 'lucide-react';
9
+ import { ChevronDown, ChevronUp, Check, Circle, Search, MessageCircleMore, Loader2, Square, Mic, MoreVertical, BadgeCheck, MessageSquareLock, Info, FileQuestion, BookOpen, Upload, LogOut, LayoutGrid, Bell, MessageSquare, CircleUserRound, Wrench, CreditCard, ClipboardList, UserPlus, UserStar, Settings2, Users, User, NotebookPen, NotebookText, Building2, Contact, Scale, Tags, StickyNote, FolderPlus, Hash, EyeOff, Eye, CaptionsOff, FolderOpen, MessageSquareMore, MessageSquarePlus, MessageSquareText, MessageSquareOff, MessagesSquare, Columns3Cog, SquarePlus, SquareM, ChevronsDown, Bot, Calendar, Folder, List, SquareCheckBig, Minus, Plus, Share2, MessageSquareShare, ChevronsUpDown, X, AlertTriangle, FileX, SkipForward, XCircle, CheckCircle } from 'lucide-react';
10
10
  import * as SelectPrimitive from '@radix-ui/react-select';
11
11
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
12
12
  import { cva } from 'class-variance-authority';
@@ -3290,6 +3290,64 @@ var ENTITY_MAPPINGS = {
3290
3290
  NEW: StickyNote
3291
3291
  }
3292
3292
  },
3293
+ // A tag of any kind — what the Tags page lists. TAG stays "Field": the Files page's custom
3294
+ // columns (labels and annotations as document fields) are named after it.
3295
+ ANY_TAG: {
3296
+ NAMES: {
3297
+ SINGULAR: "Tag",
3298
+ PLURAL: "Tags"
3299
+ },
3300
+ ICONS: {
3301
+ DEFAULT: Tags
3302
+ }
3303
+ },
3304
+ // The kinds of TAG (a tag's `kind`): a label files things; an issue is a point in dispute; a
3305
+ // person and an organisation are entities the documents name; a saved search is a stored query.
3306
+ LABEL: {
3307
+ NAMES: {
3308
+ SINGULAR: "Label",
3309
+ PLURAL: "Labels"
3310
+ },
3311
+ ICONS: {
3312
+ DEFAULT: Tags
3313
+ }
3314
+ },
3315
+ ISSUE: {
3316
+ NAMES: {
3317
+ SINGULAR: "Issue",
3318
+ PLURAL: "Issues"
3319
+ },
3320
+ ICONS: {
3321
+ DEFAULT: Scale
3322
+ }
3323
+ },
3324
+ PERSON: {
3325
+ NAMES: {
3326
+ SINGULAR: "Person",
3327
+ PLURAL: "People"
3328
+ },
3329
+ ICONS: {
3330
+ DEFAULT: Contact
3331
+ }
3332
+ },
3333
+ ORGANISATION: {
3334
+ NAMES: {
3335
+ SINGULAR: "Organisation",
3336
+ PLURAL: "Organisations"
3337
+ },
3338
+ ICONS: {
3339
+ DEFAULT: Building2
3340
+ }
3341
+ },
3342
+ SAVED_SEARCH: {
3343
+ NAMES: {
3344
+ SINGULAR: "Saved search",
3345
+ PLURAL: "Saved searches"
3346
+ },
3347
+ ICONS: {
3348
+ DEFAULT: Search
3349
+ }
3350
+ },
3293
3351
  // Workspace knowledge the assistant retains and recalls — durable free text,
3294
3352
  // optionally grounded in source passages. Distinct from ANNOTATION, which is
3295
3353
  // attached TO a document field; a NOTE is workspace-scoped and stands alone.
@@ -3919,5 +3977,5 @@ function DocumentCard({
3919
3977
  }
3920
3978
 
3921
3979
  export { AgentBadge, AiMarkdown, ArbiBotHeadIcon, 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, DictateProvider, DocIcon, DocumentCard, DocumentEntity, ENTITY_MAPPINGS, EmlIcon, EntityIcon, EntityPill, FILE_TYPE_COLORS, HoverCard, HoverCardContent, HoverCardTrigger, HtmlIcon, IconToggle, ImgIcon, InlineMicButton, Input, Label2 as Label, MarkMenu, MicRecordingOverlay, MicWaveformIndicator, NEUTRAL_GRAY2 as NEUTRAL_GRAY, PLACEHOLDER_COLOR, PassageCard, PdfIcon, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PresenceLabel, Progress, ProjectEntity, RadioGroup, RadioGroupItem, RagDot, RelevanceDot, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator2 as Separator, 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, VISIBILITY_ICONS, VerifiedBadge, VidIcon, VisibilityIcon, VisibilityToggle, XlsIcon, badgeVariants, cardVariants, classifyMediaError, configureEntityRegistry, configureRagLabels, configureStatusRegistry, formatElapsed, getDocIcon, getEntityColor2 as getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getStatusVariant, getTagTypeIcon, getTagTypeLabel, getWorkspaceColor, returnFocusToMark, toggleVariants, useAudioRecorder };
3922
- //# sourceMappingURL=chunk-MHCN7OST.js.map
3923
- //# sourceMappingURL=chunk-MHCN7OST.js.map
3980
+ //# sourceMappingURL=chunk-5UOGYTLH.js.map
3981
+ //# sourceMappingURL=chunk-5UOGYTLH.js.map