@arbidocs/react 0.5.173 → 0.5.174
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/chat/ChatBubble.js +1 -6
- package/dist/chat/ChatBubble.js.map +2 -2
- package/dist/chat/useMessageTimer.js +4 -2
- package/dist/chat/useMessageTimer.js.map +2 -2
- package/dist/{chunk-W4W75MSO.cjs → chunk-UR5F4DNJ.cjs} +43 -45
- package/dist/chunk-UR5F4DNJ.cjs.map +1 -0
- package/dist/directmessages/DmComposer.js +5 -2
- package/dist/directmessages/DmComposer.js.map +2 -2
- package/dist/entities/EntityPill.js +2 -1
- package/dist/entities/EntityPill.js.map +2 -2
- package/dist/entities/UserEntity.js +11 -2
- package/dist/entities/UserEntity.js.map +2 -2
- package/dist/icons/ArbiBotHeadIcon.js +28 -41
- package/dist/icons/ArbiBotHeadIcon.js.map +2 -2
- package/dist/index.cjs +228 -228
- package/dist/index.cjs.map +1 -1
- package/dist/{index.d-BaZUctD1.d.ts → index.d-DIQCjS20.d.ts} +9 -2
- package/dist/index.d.ts +7 -11
- package/dist/ui/index.cjs +156 -152
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +2 -0
- package/dist/ui/index.js.map +2 -2
- package/package.json +3 -3
- package/dist/chunk-W4W75MSO.cjs.map +0 -1
package/dist/ui/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ARBI_MARK_SRC, a as AgentBadge, b as AiMarkdown, c as
|
|
1
|
+
export { A as ARBI_MARK_SRC, a as AgentBadge, b as AiMarkdown, c as ArbiBotHeadIcon, d as ArbiIcon, e as Avatar, f as AvatarFallback, g as AvatarImage, B as BASE_COLORS, h as Badge, i as BadgeProps, j as Button, k as ButtonProps, C as COLUMN_LABEL_FALLBACKS, l as Card, m as CardContent, n as CardDescription, o as CardFooter, p as CardHeader, q as CardProps, r as CardTitle, s as Checkbox, t as Collapsible, u as CollapsibleContent, v as CollapsibleTrigger, w as Command, x as CommandDialog, y as CommandEmpty, z as CommandGroup, D as CommandInput, E as CommandItem, F as CommandList, G as CommandSeparator, H as CommandShortcut, I as DEFAULT_METADATA_TAGS, J as DebouncedInput, K as DebouncedInputProps, L as Dialog, M as DialogClose, N as DialogContent, O as DialogDescription, P as DialogFooter, Q as DialogHeader, R as DialogOverlay, S as DialogPortal, T as DialogPresentation, U as DialogTitle, V as DialogTrigger, W as DictateContextValue, X as DocumentEntity, Y as DocumentEntityProps, Z as DocumentLike, _ as DropdownMenu, $ as DropdownMenuCheckboxItem, a0 as DropdownMenuContent, a1 as DropdownMenuGroup, a2 as DropdownMenuItem, a3 as DropdownMenuLabel, a4 as DropdownMenuPortal, a5 as DropdownMenuRadioGroup, a6 as DropdownMenuRadioItem, a7 as DropdownMenuSeparator, a8 as DropdownMenuShortcut, a9 as DropdownMenuSub, aa as DropdownMenuSubContent, ab as DropdownMenuSubTrigger, ac as DropdownMenuTrigger, ad as ENTITY_MAPPINGS, ae as EntityAction, af as EntityActionsMenu, ag as EntityIcon, ah as EntityIconComponent, ai as EntityLabelForm, aj as EntityNoun, ak as EntityPill, al as EntityRegistryOverride, am as EntitySize, an as EntityType, ao as EntityVocabulary, ap as FileTypeIcon, aq as FolderTreeNode, ar as FormatRelativeTimeOptions, as as HoverCard, at as HoverCardContent, au as HoverCardTrigger, av as IconToggle, aw as IconToggleProps, ax as IdentityBusy, ay as IdentityProblem, az as IdentityPurchase, aA as IdentityState, aB as IdentityStatus, aC as IdentityStep, aD as IdentityVerificationFlow, aE as Input, aF as InputProps, aG as Label, aH as MarkMenu, aI as MarkMenuItem, aJ as MarkMenuProps, aK as MarkdownCode, aL as MarkdownLink, aM as MarkdownRenderer, aN as MarkdownRendererProps, aO as MarkdownStreamingContext, aP as NEUTRAL_GRAY, aQ as PLACEHOLDER_COLOR, aR as PRESENTATIONS_FOLDER, aS as PRESENTATION_TEMPLATES_FOLDER, aT as PassageCard, aU as PassageCardProps, aV as Popover, aW as PopoverAnchor, aX as PopoverClose, aY as PopoverContent, aZ as PopoverTrigger, a_ as PortalContainerProvider, a$ as PresenceDisplayStatus, b0 as PresenceLabel, b1 as Progress, b2 as ProjectEntity, b3 as ProjectEntityProps, b4 as ProjectRelation, b5 as ProviderIcon, b6 as RadioGroup, b7 as RadioGroupItem, b8 as Rag, b9 as SHARING_LABELS, ba as ScrollArea, bb as ScrollBar, bc as Select, bd as SelectContent, be as SelectGroup, bf as SelectItem, bg as SelectLabel, bh as SelectScrollDownButton, bi as SelectScrollUpButton, bj as SelectSeparator, bk as SelectTrigger, bl as SelectValue, bm as Separator, bn as SharingEntity, bo as SharingEntityProps, bp as ShieldIcon, bq as ShieldIconProps, br as Slider, bs as StatusBadgeComponent, bt as StatusBadgeProps, bu as StatusPill, bv as StatusPillProps, bw as StatusVariant, bx as Switch, by as TAG_TYPE_ICONS, bz as TAG_TYPE_LABELS, bA as Table, bB as TableBody, bC as TableCaption, bD as TableCell, bE as TableFooter, bF as TableHead, bG as TableHeader, bH as TableRow, bI as Tabs, bJ as TabsContent, bK as TabsList, bL as TabsTrigger, bM as TagEntity, bN as TagEntityProps, bO as TagLike, bP as Textarea, bQ as TextareaProps, bR as ThreadVisibilityIcon, bS as Toggle, bT as ToggleGroup, bU as ToggleGroupItem, bV as Tooltip, bW as TooltipContent, bX as TooltipProvider, bY as TooltipTrigger, bZ as UserEntity, b_ as UserEntityProps, b$ as UserMenu, c0 as UserMenuItem, c1 as UserMenuProps, c2 as UserMenuStatus, c3 as VISIBILITY_ICONS, c4 as VerifiedBadge, c5 as VerifiedBadgeProps, c6 as VerifiedToggle, c7 as VisibilityIcon, c8 as VisibilityToggle, c9 as VisibilityToggleProps, ca as agentAvatarColors, cb as badgeVariants, cc as buildFolderTree, cd as buttonVariants, ce as canonicalFolderPath, cf as cardVariants, cg as closeOpenEmphasis, ch as cn, ci as configureEntityRegistry, cj as configureEntityVocabulary, ck as configureRagLabels, cl as configureSharingMembers, cm as configureStatusRegistry, cn as createUserAvatarIcon, co as entityNoun, cp as extensionFromMime, cq as formatCompactLastSeen, cr as formatDocDate, cs as formatFolderLabel, ct as formatFriendlyDate, cu as formatRelativeTime, cv as friendlyFileType, cw as getDocIcon, cx as getDocumentAuthor, cy as getDocumentDate, cz as getDocumentNature, cA as getDocumentSubject, cB as getDocumentTitle, cC as getEntityColor, cD as getEntityColorStyles, cE as getEntityIcon, cF as getEntityLabel, cG as getFileExtension, cH as getFileTypeIcon, cI as getStatusVariant, cJ as getTagTypeIcon, cK as getTagTypeLabel, cL as getUserAvatarColor, cM as getUserDisplayName, cN as getUserInitials, cO as getWorkspaceColor, cP as isAgent, cQ as isAudioFile, cR as isDocumentAddableToConversation, cS as isDownloadOnlyFile, cT as isImageDocument, cU as isImageFile, cV as isMediaFile, cW as isPresentationFileName, cX as isVideoFile, cY as markdownBaseComponents, cZ as markdownSanitizeSchema, c_ as markdownToPlainText, c$ as markdownToPlainTextBlocks, d1 as splitMarkdownBlocks, d2 as tagKindNouns, d3 as tagKindTitle, d4 as toggleVariants, d5 as trimOpenCitation, d6 as useDictateContext, d7 as usePortalContainer, d8 as usesOriginalBytesForViewer } from '../index.d-DIQCjS20.js';
|
|
2
2
|
export { L as LazyChunk, l as lazyChunk, a as lazyComponent, p as preloadChunks } from '../lazy-chunk.d-B6YDLMKI.js';
|
|
3
3
|
import 'clsx';
|
|
4
4
|
import 'react';
|
package/dist/ui/index.js
CHANGED
|
@@ -110,6 +110,7 @@ import {
|
|
|
110
110
|
import { trimOpenCitation, closeOpenEmphasis } from "../ai/normalize-citations.js";
|
|
111
111
|
import { AiMarkdown } from "../ai/AiMarkdown.js";
|
|
112
112
|
import { ArbiIcon } from "../icons/ArbiIcon.js";
|
|
113
|
+
import { ArbiBotHeadIcon } from "../icons/ArbiBotHeadIcon.js";
|
|
113
114
|
import { ARBI_MARK_SRC } from "../icons/arbi-mark.js";
|
|
114
115
|
import { ProviderIcon } from "../icons/ProviderIcon.js";
|
|
115
116
|
import { MarkdownStreamingContext } from "../ai/markdown-streaming-context.js";
|
|
@@ -143,6 +144,7 @@ import { EntityActionsMenu } from "../entities/EntityActionsMenu.js";
|
|
|
143
144
|
export {
|
|
144
145
|
ARBI_MARK_SRC,
|
|
145
146
|
AiMarkdown,
|
|
147
|
+
ArbiBotHeadIcon,
|
|
146
148
|
ArbiIcon,
|
|
147
149
|
Avatar,
|
|
148
150
|
AvatarFallback,
|
package/dist/ui/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/ui/index.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * `@arbidocs/react/ui` \u2014 the presentational, SDK-free slice of the kit.\n *\n * The root `@arbidocs/react` entry pulls in `@arbidocs/sdk`, `@arbidocs/client`,\n * and React Query because it exports data-bound surfaces\n * (the chat hooks, `useAiTask`\u2026). A marketing site or any\n * unauthenticated page wants none of that, and cannot tree-shake it away: neither\n * package declares `sideEffects`, so a bundler must assume every module matters.\n *\n * This entry exports only components that render from their props: the shadcn\n * primitives (React + Radix + lucide + cva + cmdk) and the markdown renderer.\n * Nothing here imports the SDK, a client, a store or a query.\n *\n * Every symbol below is ALSO exported from the root entry, from the same module.\n * That is deliberate and safe: `tsup` emits both entries with code splitting on,\n * so `Button`, `tooltip` &c. live in one shared chunk. Were they duplicated, a\n * `TooltipProvider` imported from the root would not share context with a\n * `Tooltip` imported from here, and tooltips would silently stop opening.\n * `ui/index.test.ts` guards that the two entries stay in agreement.\n */\n\nexport { cn } from '../lib/utils'\n\n// \u2500\u2500 shadcn primitives \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\nexport { Avatar, AvatarImage, AvatarFallback } from './avatar'\nexport { Badge, badgeVariants, type BadgeProps } from './badge'\nexport { Button, buttonVariants, type ButtonProps } from './button'\nexport {\n Card,\n CardHeader,\n CardFooter,\n CardTitle,\n CardDescription,\n CardContent,\n cardVariants,\n type CardProps,\n} from './card'\nexport { Checkbox } from './checkbox'\nexport { IconToggle, type IconToggleProps } from './IconToggle'\nexport { VisibilityToggle, type VisibilityToggleProps } from './VisibilityToggle'\nexport { DebouncedInput, type DebouncedInputProps } from './DebouncedInput'\nexport { useDictateContext, type DictateContextValue } from './DictateContext'\nexport { PortalContainerProvider, usePortalContainer } from './portal-container'\n// Entity pills + icon registry + colour system. The app shell's toast renderer\n// needs them at first paint; they depend only on lucide and the ui primitives, and\n// importing them via the root entry would cost that first load AG Grid and react-pdf.\nexport * from '../entities'\nexport { Collapsible, CollapsibleTrigger, CollapsibleContent } from './collapsible'\nexport {\n Command,\n CommandDialog,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n CommandSeparator,\n CommandShortcut,\n} from './command'\nexport {\n Dialog,\n DialogPortal,\n DialogOverlay,\n DialogClose,\n DialogTrigger,\n DialogContent,\n DialogHeader,\n DialogFooter,\n DialogTitle,\n DialogDescription,\n type DialogPresentation,\n} from './dialog'\nexport {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuGroup,\n DropdownMenuPortal,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuRadioGroup,\n} from './dropdown-menu'\nexport { HoverCard, HoverCardTrigger, HoverCardContent } from './hover-card'\nexport { Input, type InputProps } from './input'\nexport { Label } from './label'\nexport { Popover, PopoverTrigger, PopoverContent, PopoverAnchor, PopoverClose } from './popover'\nexport { MarkMenu, type MarkMenuItem, type MarkMenuProps } from './mark-menu'\nexport { Progress } from './progress'\nexport { RadioGroup, RadioGroupItem } from './radio-group'\nexport { ScrollArea, ScrollBar } from './scroll-area'\nexport {\n Select,\n SelectGroup,\n SelectValue,\n SelectTrigger,\n SelectContent,\n SelectLabel,\n SelectItem,\n SelectSeparator,\n SelectScrollUpButton,\n SelectScrollDownButton,\n} from './select'\nexport { Separator } from './separator'\nexport { Slider } from './slider'\nexport { Switch } from './switch'\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableHead,\n TableRow,\n TableCell,\n TableCaption,\n} from './table'\nexport { Tabs, TabsList, TabsTrigger, TabsContent } from './tabs'\nexport { Textarea, type TextareaProps } from './textarea'\nexport { Toggle, toggleVariants } from './toggle'\nexport { ToggleGroup, ToggleGroupItem } from './toggle-group'\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } from './tooltip'\n\n// \u2500\u2500 Presentational cards \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n// Render from props only (lucide + the ui primitives); the data-bound galleries and search\n// panels that use them stay in the root entry.\nexport { PassageCard, type PassageCardProps } from '../ai/PassageCard'\n\n// The topbar account dropdown renders from props (user, items, status, logout): no SDK, no store.\nexport {\n UserMenu,\n type UserMenuProps,\n type UserMenuItem,\n type UserMenuStatus,\n} from '../usermenu/UserMenu'\n\n// \u2500\u2500 Markdown \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n// Presentational and SDK-free, but reached from the root entry only via the `ai`\n// barrel \u2014 which also drags in `useAiTask` and the other AI task hooks. Point at\n// the modules directly so `/ui` stays clean.\nexport {\n MarkdownCode,\n MarkdownLink,\n MarkdownRenderer,\n markdownSanitizeSchema,\n type MarkdownRendererProps,\n} from '../ai/MarkdownRenderer'\nexport { trimOpenCitation, closeOpenEmphasis } from '../ai/normalize-citations'\nexport { AiMarkdown } from '../ai/AiMarkdown'\nexport { ArbiIcon } from '../icons/ArbiIcon'\nexport { ARBI_MARK_SRC } from '../icons/arbi-mark'\nexport { ProviderIcon } from '../icons/ProviderIcon'\nexport { MarkdownStreamingContext } from '../ai/markdown-streaming-context'\nexport { markdownBaseComponents } from '../ai/markdown-base-components'\nexport { splitMarkdownBlocks } from '../ai/split-markdown-blocks'\n// Identity verification: the flow's shape, so presentational blocks take it without the SDK.\nexport type {\n IdentityVerificationFlow,\n IdentityStatus,\n IdentityState,\n IdentityPurchase,\n IdentityStep,\n IdentityBusy,\n IdentityProblem,\n} from '../account/identity-types'\n\nexport { formatFriendlyDate, formatCompactLastSeen } from '../lib/format-friendly-date'\nexport { formatRelativeTime, type FormatRelativeTimeOptions } from '../lib/format-relative-time'\nexport { markdownToPlainText, markdownToPlainTextBlocks } from '../lib/markdown-to-text'\nexport { VerifiedToggle } from './VerifiedToggle'\n// A person's display name, initials and avatar colour\nexport * from '../users'\n// A document's file-type icon and extension\nexport {\n getFileTypeIcon,\n getFileExtension,\n extensionFromMime,\n type FileTypeIcon,\n} from '../icons/file-type'\n// A document's fields as the lists show them (dates, type, author, abstract, folder labels)\nexport {\n isDocumentAddableToConversation,\n getDocumentDate,\n formatDocDate,\n getDocumentNature,\n getDocumentAuthor,\n getDocumentSubject,\n DEFAULT_METADATA_TAGS,\n canonicalFolderPath,\n buildFolderTree,\n formatFolderLabel,\n COLUMN_LABEL_FALLBACKS,\n type FolderTreeNode,\n} from '../documents/document-fields'\n\n// Heavy components in their own chunk, loaded the first time one renders (no dependencies).\nexport { lazyChunk, lazyComponent, preloadChunks, type LazyChunk } from '../lazy-chunk'\n\nexport { EntityActionsMenu, type EntityAction } from '../entities/EntityActionsMenu'\n"],
|
|
5
|
-
"mappings": "AAqBA,SAAS,UAAU;AAGnB,SAAS,QAAQ,aAAa,sBAAsB;AACpD,SAAS,OAAO,qBAAsC;AACtD,SAAS,QAAQ,sBAAwC;AACzD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AACP,SAAS,gBAAgB;AACzB,SAAS,kBAAwC;AACjD,SAAS,wBAAoD;AAC7D,SAAS,sBAAgD;AACzD,SAAS,yBAAmD;AAC5D,SAAS,yBAAyB,0BAA0B;AAI5D,cAAc;AACd,SAAS,aAAa,oBAAoB,0BAA0B;AACpE;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,WAAW,kBAAkB,wBAAwB;AAC9D,SAAS,aAA8B;AACvC,SAAS,aAAa;AACtB,SAAS,SAAS,gBAAgB,gBAAgB,eAAe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/react/ui` \u2014 the presentational, SDK-free slice of the kit.\n *\n * The root `@arbidocs/react` entry pulls in `@arbidocs/sdk`, `@arbidocs/client`,\n * and React Query because it exports data-bound surfaces\n * (the chat hooks, `useAiTask`\u2026). A marketing site or any\n * unauthenticated page wants none of that, and cannot tree-shake it away: neither\n * package declares `sideEffects`, so a bundler must assume every module matters.\n *\n * This entry exports only components that render from their props: the shadcn\n * primitives (React + Radix + lucide + cva + cmdk) and the markdown renderer.\n * Nothing here imports the SDK, a client, a store or a query.\n *\n * Every symbol below is ALSO exported from the root entry, from the same module.\n * That is deliberate and safe: `tsup` emits both entries with code splitting on,\n * so `Button`, `tooltip` &c. live in one shared chunk. Were they duplicated, a\n * `TooltipProvider` imported from the root would not share context with a\n * `Tooltip` imported from here, and tooltips would silently stop opening.\n * `ui/index.test.ts` guards that the two entries stay in agreement.\n */\n\nexport { cn } from '../lib/utils'\n\n// \u2500\u2500 shadcn primitives \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\nexport { Avatar, AvatarImage, AvatarFallback } from './avatar'\nexport { Badge, badgeVariants, type BadgeProps } from './badge'\nexport { Button, buttonVariants, type ButtonProps } from './button'\nexport {\n Card,\n CardHeader,\n CardFooter,\n CardTitle,\n CardDescription,\n CardContent,\n cardVariants,\n type CardProps,\n} from './card'\nexport { Checkbox } from './checkbox'\nexport { IconToggle, type IconToggleProps } from './IconToggle'\nexport { VisibilityToggle, type VisibilityToggleProps } from './VisibilityToggle'\nexport { DebouncedInput, type DebouncedInputProps } from './DebouncedInput'\nexport { useDictateContext, type DictateContextValue } from './DictateContext'\nexport { PortalContainerProvider, usePortalContainer } from './portal-container'\n// Entity pills + icon registry + colour system. The app shell's toast renderer\n// needs them at first paint; they depend only on lucide and the ui primitives, and\n// importing them via the root entry would cost that first load AG Grid and react-pdf.\nexport * from '../entities'\nexport { Collapsible, CollapsibleTrigger, CollapsibleContent } from './collapsible'\nexport {\n Command,\n CommandDialog,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n CommandSeparator,\n CommandShortcut,\n} from './command'\nexport {\n Dialog,\n DialogPortal,\n DialogOverlay,\n DialogClose,\n DialogTrigger,\n DialogContent,\n DialogHeader,\n DialogFooter,\n DialogTitle,\n DialogDescription,\n type DialogPresentation,\n} from './dialog'\nexport {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuGroup,\n DropdownMenuPortal,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuRadioGroup,\n} from './dropdown-menu'\nexport { HoverCard, HoverCardTrigger, HoverCardContent } from './hover-card'\nexport { Input, type InputProps } from './input'\nexport { Label } from './label'\nexport { Popover, PopoverTrigger, PopoverContent, PopoverAnchor, PopoverClose } from './popover'\nexport { MarkMenu, type MarkMenuItem, type MarkMenuProps } from './mark-menu'\nexport { Progress } from './progress'\nexport { RadioGroup, RadioGroupItem } from './radio-group'\nexport { ScrollArea, ScrollBar } from './scroll-area'\nexport {\n Select,\n SelectGroup,\n SelectValue,\n SelectTrigger,\n SelectContent,\n SelectLabel,\n SelectItem,\n SelectSeparator,\n SelectScrollUpButton,\n SelectScrollDownButton,\n} from './select'\nexport { Separator } from './separator'\nexport { Slider } from './slider'\nexport { Switch } from './switch'\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableHead,\n TableRow,\n TableCell,\n TableCaption,\n} from './table'\nexport { Tabs, TabsList, TabsTrigger, TabsContent } from './tabs'\nexport { Textarea, type TextareaProps } from './textarea'\nexport { Toggle, toggleVariants } from './toggle'\nexport { ToggleGroup, ToggleGroupItem } from './toggle-group'\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } from './tooltip'\n\n// \u2500\u2500 Presentational cards \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n// Render from props only (lucide + the ui primitives); the data-bound galleries and search\n// panels that use them stay in the root entry.\nexport { PassageCard, type PassageCardProps } from '../ai/PassageCard'\n\n// The topbar account dropdown renders from props (user, items, status, logout): no SDK, no store.\nexport {\n UserMenu,\n type UserMenuProps,\n type UserMenuItem,\n type UserMenuStatus,\n} from '../usermenu/UserMenu'\n\n// \u2500\u2500 Markdown \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n// Presentational and SDK-free, but reached from the root entry only via the `ai`\n// barrel \u2014 which also drags in `useAiTask` and the other AI task hooks. Point at\n// the modules directly so `/ui` stays clean.\nexport {\n MarkdownCode,\n MarkdownLink,\n MarkdownRenderer,\n markdownSanitizeSchema,\n type MarkdownRendererProps,\n} from '../ai/MarkdownRenderer'\nexport { trimOpenCitation, closeOpenEmphasis } from '../ai/normalize-citations'\nexport { AiMarkdown } from '../ai/AiMarkdown'\nexport { ArbiIcon } from '../icons/ArbiIcon'\nexport { ArbiBotHeadIcon } from '../icons/ArbiBotHeadIcon'\nexport { ARBI_MARK_SRC } from '../icons/arbi-mark'\nexport { ProviderIcon } from '../icons/ProviderIcon'\nexport { MarkdownStreamingContext } from '../ai/markdown-streaming-context'\nexport { markdownBaseComponents } from '../ai/markdown-base-components'\nexport { splitMarkdownBlocks } from '../ai/split-markdown-blocks'\n// Identity verification: the flow's shape, so presentational blocks take it without the SDK.\nexport type {\n IdentityVerificationFlow,\n IdentityStatus,\n IdentityState,\n IdentityPurchase,\n IdentityStep,\n IdentityBusy,\n IdentityProblem,\n} from '../account/identity-types'\n\nexport { formatFriendlyDate, formatCompactLastSeen } from '../lib/format-friendly-date'\nexport { formatRelativeTime, type FormatRelativeTimeOptions } from '../lib/format-relative-time'\nexport { markdownToPlainText, markdownToPlainTextBlocks } from '../lib/markdown-to-text'\nexport { VerifiedToggle } from './VerifiedToggle'\n// A person's display name, initials and avatar colour\nexport * from '../users'\n// A document's file-type icon and extension\nexport {\n getFileTypeIcon,\n getFileExtension,\n extensionFromMime,\n type FileTypeIcon,\n} from '../icons/file-type'\n// A document's fields as the lists show them (dates, type, author, abstract, folder labels)\nexport {\n isDocumentAddableToConversation,\n getDocumentDate,\n formatDocDate,\n getDocumentNature,\n getDocumentAuthor,\n getDocumentSubject,\n DEFAULT_METADATA_TAGS,\n canonicalFolderPath,\n buildFolderTree,\n formatFolderLabel,\n COLUMN_LABEL_FALLBACKS,\n type FolderTreeNode,\n} from '../documents/document-fields'\n\n// Heavy components in their own chunk, loaded the first time one renders (no dependencies).\nexport { lazyChunk, lazyComponent, preloadChunks, type LazyChunk } from '../lazy-chunk'\n\nexport { EntityActionsMenu, type EntityAction } from '../entities/EntityActionsMenu'\n"],
|
|
5
|
+
"mappings": "AAqBA,SAAS,UAAU;AAGnB,SAAS,QAAQ,aAAa,s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AAAA,EACA;AAAA,OACK;AACP,SAAS,MAAM,UAAU,aAAa,mBAAmB;AACzD,SAAS,gBAAoC;AAC7C,SAAS,QAAQ,sBAAsB;AACvC,SAAS,aAAa,uBAAuB;AAC7C,SAAS,SAAS,gBAAgB,gBAAgB,uBAAuB;AAKzE,SAAS,mBAA0C;AAGnD;AAAA,EACE;AAAA,OAIK;AAMP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AACP,SAAS,kBAAkB,yBAAyB;AACpD,SAAS,kBAAkB;AAC3B,SAAS,gBAAgB;AACzB,SAAS,uBAAuB;AAChC,SAAS,qBAAqB;AAC9B,SAAS,oBAAoB;AAC7B,SAAS,gCAAgC;AACzC,SAAS,8BAA8B;AACvC,SAAS,2BAA2B;AAYpC,SAAS,oBAAoB,6BAA6B;AAC1D,SAAS,0BAA0D;AACnE,SAAS,qBAAqB,iCAAiC;AAC/D,SAAS,sBAAsB;AAE/B,cAAc;AAEd;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AAEP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AAGP,SAAS,WAAW,eAAe,qBAAqC;AAExE,SAAS,yBAA4C;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbidocs/react",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.174",
|
|
4
4
|
"description": "React hooks and provider for the ARBI SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -122,8 +122,8 @@
|
|
|
122
122
|
"build-storybook": "storybook build"
|
|
123
123
|
},
|
|
124
124
|
"dependencies": {
|
|
125
|
-
"@arbidocs/client": "0.5.
|
|
126
|
-
"@arbidocs/sdk": "0.5.
|
|
125
|
+
"@arbidocs/client": "0.5.174",
|
|
126
|
+
"@arbidocs/sdk": "0.5.174",
|
|
127
127
|
"@didit-protocol/sdk-web": "0.4.0",
|
|
128
128
|
"@livekit/components-react": "2.9.24",
|
|
129
129
|
"@radix-ui/react-avatar": "^1.2.0",
|