@arbidocs/react 0.5.165 → 0.5.167
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/ai/MessageArtifactCard.js +16 -0
- package/dist/ai/MessageArtifactCard.js.map +2 -2
- package/dist/artifacts/artifact-kind.js +12 -1
- package/dist/artifacts/artifact-kind.js.map +2 -2
- package/dist/artifacts/index.cjs +58 -47
- package/dist/artifacts/index.cjs.map +1 -1
- package/dist/artifacts/index.d.ts +3 -20
- package/dist/artifacts/index.js +3 -1
- package/dist/artifacts/index.js.map +2 -2
- package/dist/calls/livekit/index.cjs +51 -51
- package/dist/chat/ChatBubble.js +56 -65
- package/dist/chat/ChatBubble.js.map +2 -2
- package/dist/chat/open-document.js +4 -1
- package/dist/chat/open-document.js.map +2 -2
- package/dist/chat/request-agent-status.js +34 -0
- package/dist/chat/request-agent-status.js.map +7 -0
- package/dist/chat/run-finished.js +1 -0
- package/dist/chat/run-finished.js.map +2 -2
- package/dist/chat/useAgentRunControl.js +3 -3
- package/dist/chat/useAgentRunControl.js.map +2 -2
- package/dist/chat/useConnectRunStream.js +4 -0
- package/dist/chat/useConnectRunStream.js.map +2 -2
- package/dist/chat/useConversation.js +13 -10
- package/dist/chat/useConversation.js.map +2 -2
- package/dist/chat/useConversationActions.js +4 -3
- package/dist/chat/useConversationActions.js.map +2 -2
- package/dist/{chunk-XSJNRWLD.cjs → chunk-3DPOR5IR.cjs} +9 -6
- package/dist/chunk-3DPOR5IR.cjs.map +1 -0
- package/dist/{chunk-ZBRJEM25.cjs → chunk-4TWXQFHU.cjs} +70 -70
- package/dist/{chunk-ZBRJEM25.cjs.map → chunk-4TWXQFHU.cjs.map} +1 -1
- package/dist/{chunk-ZZBCZRA5.cjs → chunk-5QOZLKAY.cjs} +5 -2
- package/dist/chunk-5QOZLKAY.cjs.map +1 -0
- package/dist/{chunk-B3W7WDVY.cjs → chunk-BI4SYRLX.cjs} +73 -66
- package/dist/chunk-BI4SYRLX.cjs.map +1 -0
- package/dist/{chunk-ONAYOSSV.cjs → chunk-HRQS27DO.cjs} +39 -39
- package/dist/{chunk-ONAYOSSV.cjs.map → chunk-HRQS27DO.cjs.map} +1 -1
- package/dist/{chunk-DQODLWFX.cjs → chunk-KULS4YWP.cjs} +3 -3
- package/dist/{chunk-DQODLWFX.cjs.map → chunk-KULS4YWP.cjs.map} +1 -1
- package/dist/{chunk-V5WCKJEH.cjs → chunk-Q7BGWKHP.cjs} +44 -44
- package/dist/{chunk-V5WCKJEH.cjs.map → chunk-Q7BGWKHP.cjs.map} +1 -1
- package/dist/{chunk-352P2C4E.cjs → chunk-TX7UCN73.cjs} +14 -14
- package/dist/{chunk-352P2C4E.cjs.map → chunk-TX7UCN73.cjs.map} +1 -1
- package/dist/{chunk-WJIRX5MS.cjs → chunk-W4W75MSO.cjs} +134 -25
- package/dist/chunk-W4W75MSO.cjs.map +1 -0
- package/dist/chunk-WABJGKVA.cjs +246 -0
- package/dist/chunk-WABJGKVA.cjs.map +1 -0
- package/dist/databases.js.map +2 -2
- package/dist/directmessages/DmComposer.js +26 -10
- package/dist/directmessages/DmComposer.js.map +2 -2
- package/dist/directmessages/index.js +2 -0
- package/dist/directmessages/index.js.map +2 -2
- package/dist/directmessages/useChats.js +11 -0
- package/dist/directmessages/useChats.js.map +2 -2
- package/dist/document-tools/core.cjs +102 -102
- package/dist/document-tools/core.d.ts +2 -2
- package/dist/document-tools/index.cjs +104 -104
- package/dist/document-tools/index.d.ts +2 -2
- package/dist/entities/DocumentEntity.js +8 -3
- package/dist/entities/DocumentEntity.js.map +2 -2
- package/dist/entities/EntityActionsMenu.js +53 -0
- package/dist/entities/EntityActionsMenu.js.map +7 -0
- package/dist/entities/EntityPill.js +50 -16
- package/dist/entities/EntityPill.js.map +2 -2
- package/dist/entities/ProjectEntity.js +4 -0
- package/dist/entities/ProjectEntity.js.map +2 -2
- package/dist/entities/TagEntity.js +1 -0
- package/dist/entities/TagEntity.js.map +2 -2
- package/dist/entities/UserEntity.js +25 -3
- package/dist/entities/UserEntity.js.map +2 -2
- package/dist/entities/links.js +9 -0
- package/dist/entities/links.js.map +7 -0
- package/dist/entities/reference-data.js +56 -0
- package/dist/entities/reference-data.js.map +7 -0
- package/dist/{file-shares.d-Bwy9k3Db.d.ts → file-shares.d-Dlt7pKRi.d.ts} +3 -0
- package/dist/host/config.js.map +2 -2
- package/dist/index.cjs +2654 -2529
- package/dist/index.cjs.map +1 -1
- package/dist/{index.d-Dy_Pz6Vl.d.ts → index.d-BaZUctD1.d.ts} +34 -10
- package/dist/index.d.ts +164 -20
- package/dist/index.js +5 -0
- package/dist/index.js.map +2 -2
- package/dist/query-keys.js +3 -0
- package/dist/query-keys.js.map +2 -2
- package/dist/session/conversation-panels.js +5 -3
- package/dist/session/conversation-panels.js.map +2 -2
- package/dist/session/layout.js +5 -0
- package/dist/session/layout.js.map +2 -2
- package/dist/shell/index.cjs +40 -40
- package/dist/{stored-markdown.d-Bp18vrbr.d.ts → stored-markdown.d-BLQPny3e.d.ts} +21 -1
- package/dist/ui/index.cjs +168 -164
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +2 -0
- package/dist/ui/index.js.map +2 -2
- package/dist/viewers/AudioViewer.js +13 -3
- package/dist/viewers/AudioViewer.js.map +2 -2
- package/dist/viewers/MediaTranscriptPlayer.js +171 -0
- package/dist/viewers/MediaTranscriptPlayer.js.map +7 -0
- package/dist/viewers/VideoViewer.js +4 -11
- package/dist/viewers/VideoViewer.js.map +2 -2
- package/dist/viewers/index.cjs +16 -12
- package/dist/viewers/index.d.ts +17 -3
- package/dist/viewers/index.js +2 -0
- package/dist/viewers/index.js.map +2 -2
- package/package.json +3 -3
- package/dist/chunk-B3W7WDVY.cjs.map +0 -1
- package/dist/chunk-TMPDW7J5.cjs +0 -79
- package/dist/chunk-TMPDW7J5.cjs.map +0 -1
- package/dist/chunk-WJIRX5MS.cjs.map +0 -1
- package/dist/chunk-XSJNRWLD.cjs.map +0 -1
- package/dist/chunk-ZZBCZRA5.cjs.map +0 -1
|
@@ -935,13 +935,26 @@ declare function ThreadVisibilityIcon({ shared, className, ...props }: LucidePro
|
|
|
935
935
|
shared: boolean;
|
|
936
936
|
}): React.JSX.Element;
|
|
937
937
|
|
|
938
|
+
interface EntityAction {
|
|
939
|
+
id: string;
|
|
940
|
+
label: string;
|
|
941
|
+
icon?: ReactNode;
|
|
942
|
+
onSelect: () => void;
|
|
943
|
+
disabled?: boolean;
|
|
944
|
+
}
|
|
945
|
+
/** The shared trailing menu for entity references. Copy always uses the entity's address. */
|
|
946
|
+
declare function EntityActionsMenu({ label, href, actions, }: {
|
|
947
|
+
label: string;
|
|
948
|
+
href: string;
|
|
949
|
+
actions?: EntityAction[];
|
|
950
|
+
}): React.JSX.Element;
|
|
951
|
+
|
|
938
952
|
/**
|
|
939
953
|
* EntityPill Component
|
|
940
954
|
*
|
|
941
955
|
* Base component for pill-style entity displays. Provides consistent styling and
|
|
942
|
-
* interaction patterns.
|
|
943
|
-
*
|
|
944
|
-
* changed to resolve within the SDK).
|
|
956
|
+
* interaction patterns. It is plain icon + text (no fill, no border); a
|
|
957
|
+
* dotted underline identifies an in-platform content link; hover reveals extra actions.
|
|
945
958
|
*
|
|
946
959
|
* Pattern: [Icon] [Label] [Optional: secondary text] [MoreVertical when interactive]
|
|
947
960
|
*/
|
|
@@ -974,9 +987,7 @@ interface EntityPillProps {
|
|
|
974
987
|
* area flexes + truncates so the trailing control (⋯ menu) pins to the right
|
|
975
988
|
* edge — used by the documents table's Document column. Default: shrink-to-fit. */
|
|
976
989
|
fullWidth?: boolean;
|
|
977
|
-
/**
|
|
978
|
-
* dark-navy background with light text, applied LAST so it wins over both the
|
|
979
|
-
* default background and the interactive hover. */
|
|
990
|
+
/** Emphasise the active reference with text colour and weight. */
|
|
980
991
|
highlight?: boolean;
|
|
981
992
|
/** Click handler for main area (icon + label) - primary action */
|
|
982
993
|
onClick?: (e: React__default.MouseEvent) => void;
|
|
@@ -990,6 +1001,12 @@ interface EntityPillProps {
|
|
|
990
1001
|
moreContent?: React__default.ReactNode;
|
|
991
1002
|
/** Link URL - makes the main area an anchor tag */
|
|
992
1003
|
href?: string;
|
|
1004
|
+
/** Copyable entity address when navigation is handled in place. */
|
|
1005
|
+
copyHref?: string;
|
|
1006
|
+
/** A reference whose canonical URL comes from the host entities domain. */
|
|
1007
|
+
entityId?: string;
|
|
1008
|
+
/** Additional contextual operations, alongside the standard Copy link. */
|
|
1009
|
+
actions?: EntityAction[];
|
|
993
1010
|
/** Whether the pill is disabled */
|
|
994
1011
|
disabled?: boolean;
|
|
995
1012
|
/** For a pill that toggles a state on click: that state, exposed as `aria-pressed`. */
|
|
@@ -1013,6 +1030,7 @@ declare const EntityPill: React__default.ForwardRefExoticComponent<EntityPillPro
|
|
|
1013
1030
|
* with the SDK's `DocResponse` (from `useDocuments`), but no dependency on it —
|
|
1014
1031
|
* a consumer can pass any object with these fields. */
|
|
1015
1032
|
interface DocumentLike {
|
|
1033
|
+
external_id?: string;
|
|
1016
1034
|
file_name?: string | null;
|
|
1017
1035
|
folder?: string | null;
|
|
1018
1036
|
doc_metadata?: {
|
|
@@ -1027,6 +1045,7 @@ declare function getDocumentTitle(document: DocumentLike | null | undefined, def
|
|
|
1027
1045
|
*/
|
|
1028
1046
|
declare function isImageDocument(document: {
|
|
1029
1047
|
file_type?: string | null;
|
|
1048
|
+
file_name?: string | null;
|
|
1030
1049
|
} | null | undefined): boolean;
|
|
1031
1050
|
/**
|
|
1032
1051
|
* The file-type glyph for a document, by extension.
|
|
@@ -1063,6 +1082,7 @@ interface DocumentEntityProps {
|
|
|
1063
1082
|
status?: React__default.ReactNode;
|
|
1064
1083
|
/** Trailing control rendered outside the click area (e.g. a ⋯ actions menu). */
|
|
1065
1084
|
actions?: React__default.ReactNode;
|
|
1085
|
+
copyHref?: string;
|
|
1066
1086
|
/** When true, the pill fills the available width and the name truncates via
|
|
1067
1087
|
* CSS so the trailing ⋯ menu pins to the right edge. */
|
|
1068
1088
|
fullWidth?: boolean;
|
|
@@ -1077,7 +1097,7 @@ interface DocumentEntityProps {
|
|
|
1077
1097
|
/** Forwarded to the pill so a surface can address this document's chip. */
|
|
1078
1098
|
'data-testid'?: string;
|
|
1079
1099
|
}
|
|
1080
|
-
declare function DocumentEntity({ doc, icon, size, labelMaxWidth, labelClassName, onClick, onIconClick, viewing, iconBadge, status, actions, tooltipContent, className, fullWidth, noClamp, 'data-testid': testId, }: DocumentEntityProps): React__default.JSX.Element;
|
|
1100
|
+
declare function DocumentEntity({ doc, icon, size, labelMaxWidth, labelClassName, onClick, onIconClick, viewing, iconBadge, status, actions, copyHref, tooltipContent, className, fullWidth, noClamp, 'data-testid': testId, }: DocumentEntityProps): React__default.JSX.Element;
|
|
1081
1101
|
|
|
1082
1102
|
/**
|
|
1083
1103
|
* Where every `SharingEntity` finds the member list of its card (the entity registry's seam: the
|
|
@@ -1222,6 +1242,8 @@ declare function tagKindNouns(kind: TagKind): {
|
|
|
1222
1242
|
type ProjectRelation = 'mine' | 'other' | 'common';
|
|
1223
1243
|
interface ProjectEntityProps {
|
|
1224
1244
|
name: string;
|
|
1245
|
+
copyHref?: string;
|
|
1246
|
+
projectId?: string;
|
|
1225
1247
|
/** Display text override (defaults to `name`) — lets a consumer relabel. */
|
|
1226
1248
|
label?: string;
|
|
1227
1249
|
/** Icon override (defaults to the CreditCard glyph). */
|
|
@@ -1238,7 +1260,7 @@ interface ProjectEntityProps {
|
|
|
1238
1260
|
/** Hover tooltip. */
|
|
1239
1261
|
tooltipContent?: React__default.ReactNode;
|
|
1240
1262
|
}
|
|
1241
|
-
declare function ProjectEntity({ name, label, icon, subscription, hasCollaborators, className, onClick, relation, isPaid, tooltipContent, }: ProjectEntityProps): React__default.JSX.Element;
|
|
1263
|
+
declare function ProjectEntity({ name, copyHref, projectId, label, icon, subscription, hasCollaborators, className, onClick, relation, isPaid, tooltipContent, }: ProjectEntityProps): React__default.JSX.Element;
|
|
1242
1264
|
|
|
1243
1265
|
/**
|
|
1244
1266
|
* UserEntity Component
|
|
@@ -1302,8 +1324,10 @@ interface UserEntityProps {
|
|
|
1302
1324
|
tooltipContent?: React__default.ReactNode;
|
|
1303
1325
|
/** Render the empty "no user" avatar. */
|
|
1304
1326
|
empty?: boolean;
|
|
1327
|
+
copyHref?: string;
|
|
1328
|
+
entityId?: string;
|
|
1305
1329
|
}
|
|
1306
|
-
declare const UserEntity: React__default.MemoExoticComponent<({ size, variant, className, showTooltip, interactive, initials, displayName, picture, avatarImageClassName, colorClass, isAgent, isVerified, agentStyle, avatarStyle, isMe, displayStatus, onClick, tooltipContent, empty, }: UserEntityProps) => React__default.JSX.Element>;
|
|
1330
|
+
declare const UserEntity: React__default.MemoExoticComponent<({ size, variant, className, showTooltip, interactive, initials, displayName, picture, avatarImageClassName, colorClass, isAgent, isVerified, agentStyle, avatarStyle, isMe, displayStatus, onClick, tooltipContent, empty, copyHref, entityId, }: UserEntityProps) => React__default.JSX.Element>;
|
|
1307
1331
|
|
|
1308
1332
|
interface VerifiedBadgeProps {
|
|
1309
1333
|
className?: string;
|
|
@@ -2083,4 +2107,4 @@ declare function createUserAvatarIcon(user: {
|
|
|
2083
2107
|
|
|
2084
2108
|
declare function cn(...inputs: ClassValue[]): string;
|
|
2085
2109
|
|
|
2086
|
-
export { DropdownMenuContent as $, ARBI_MARK_SRC as A, BASE_COLORS as B, COLUMN_LABEL_FALLBACKS as C, CommandItem as D, CommandList as E, CommandSeparator as F, CommandShortcut as G, DEFAULT_METADATA_TAGS as H, DebouncedInput as I, type DebouncedInputProps as J, Dialog as K, DialogClose as L, DialogContent as M, DialogDescription as N, DialogFooter as O, DialogHeader as P, DialogOverlay as Q, DialogPortal as R, type DialogPresentation as S, DialogTitle as T, DialogTrigger as U, type DictateContextValue as V, DocumentEntity as W, type DocumentEntityProps as X, type DocumentLike as Y, DropdownMenu as Z, DropdownMenuCheckboxItem as _, AgentBadge as a,
|
|
2110
|
+
export { DropdownMenuContent as $, ARBI_MARK_SRC as A, BASE_COLORS as B, COLUMN_LABEL_FALLBACKS as C, CommandItem as D, CommandList as E, CommandSeparator as F, CommandShortcut as G, DEFAULT_METADATA_TAGS as H, DebouncedInput as I, type DebouncedInputProps as J, Dialog as K, DialogClose as L, DialogContent as M, DialogDescription as N, DialogFooter as O, DialogHeader as P, DialogOverlay as Q, DialogPortal as R, type DialogPresentation as S, DialogTitle as T, DialogTrigger as U, type DictateContextValue as V, DocumentEntity as W, type DocumentEntityProps as X, type DocumentLike as Y, DropdownMenu as Z, DropdownMenuCheckboxItem as _, AgentBadge as a, PresenceLabel as a$, DropdownMenuGroup as a0, DropdownMenuItem as a1, DropdownMenuLabel as a2, DropdownMenuPortal as a3, DropdownMenuRadioGroup as a4, DropdownMenuRadioItem as a5, DropdownMenuSeparator as a6, DropdownMenuShortcut as a7, DropdownMenuSub as a8, DropdownMenuSubContent as a9, type IdentityStatus as aA, type IdentityStep as aB, type IdentityVerificationFlow as aC, Input as aD, type InputProps as aE, Label as aF, MarkMenu as aG, type MarkMenuItem as aH, type MarkMenuProps as aI, MarkdownCode as aJ, MarkdownLink as aK, MarkdownRenderer as aL, type MarkdownRendererProps as aM, MarkdownStreamingContext as aN, NEUTRAL_GRAY as aO, PLACEHOLDER_COLOR as aP, PRESENTATIONS_FOLDER as aQ, PRESENTATION_TEMPLATES_FOLDER as aR, PassageCard as aS, type PassageCardProps as aT, Popover as aU, PopoverAnchor as aV, PopoverClose as aW, PopoverContent as aX, PopoverTrigger as aY, PortalContainerProvider as aZ, type PresenceDisplayStatus as a_, DropdownMenuSubTrigger as aa, DropdownMenuTrigger as ab, ENTITY_MAPPINGS as ac, type EntityAction as ad, EntityActionsMenu as ae, EntityIcon as af, type EntityIconComponent as ag, type EntityLabelForm as ah, type EntityNoun as ai, EntityPill as aj, type EntityRegistryOverride as ak, type EntitySize as al, type EntityType as am, type EntityVocabulary as an, type FileTypeIcon as ao, type FolderTreeNode as ap, type FormatRelativeTimeOptions as aq, HoverCard as ar, HoverCardContent as as, HoverCardTrigger as at, IconToggle as au, type IconToggleProps as av, type IdentityBusy as aw, type IdentityProblem as ax, type IdentityPurchase as ay, type IdentityState as az, AiMarkdown as b, type UserMenuItem as b$, Progress as b0, ProjectEntity as b1, type ProjectEntityProps as b2, type ProjectRelation as b3, ProviderIcon as b4, RadioGroup as b5, RadioGroupItem as b6, type Rag as b7, SHARING_LABELS as b8, ScrollArea as b9, TableBody as bA, TableCaption as bB, TableCell as bC, TableFooter as bD, TableHead as bE, TableHeader as bF, TableRow as bG, Tabs as bH, TabsContent as bI, TabsList as bJ, TabsTrigger as bK, TagEntity as bL, type TagEntityProps as bM, type TagLike as bN, Textarea as bO, type TextareaProps as bP, ThreadVisibilityIcon as bQ, Toggle as bR, ToggleGroup as bS, ToggleGroupItem as bT, Tooltip as bU, TooltipContent as bV, TooltipProvider as bW, TooltipTrigger as bX, UserEntity as bY, type UserEntityProps as bZ, UserMenu as b_, ScrollBar as ba, Select as bb, SelectContent as bc, SelectGroup as bd, SelectItem as be, SelectLabel as bf, SelectScrollDownButton as bg, SelectScrollUpButton as bh, SelectSeparator as bi, SelectTrigger as bj, SelectValue as bk, Separator as bl, SharingEntity as bm, type SharingEntityProps as bn, ShieldIcon as bo, type ShieldIconProps as bp, Slider as bq, type StatusBadgeComponent as br, type StatusBadgeProps as bs, StatusPill as bt, type StatusPillProps as bu, type StatusVariant as bv, Switch as bw, TAG_TYPE_ICONS as bx, TAG_TYPE_LABELS as by, Table as bz, ArbiIcon as c, normalizeCitationMarkup as c$, type UserMenuProps as c0, type UserMenuStatus as c1, VISIBILITY_ICONS as c2, VerifiedBadge as c3, type VerifiedBadgeProps as c4, VerifiedToggle as c5, VisibilityIcon as c6, VisibilityToggle as c7, type VisibilityToggleProps as c8, agentAvatarColors as c9, getDocumentTitle as cA, getEntityColor as cB, getEntityColorStyles as cC, getEntityIcon as cD, getEntityLabel as cE, getFileExtension as cF, getFileTypeIcon as cG, getStatusVariant as cH, getTagTypeIcon as cI, getTagTypeLabel as cJ, getUserAvatarColor as cK, getUserDisplayName as cL, getUserInitials as cM, getWorkspaceColor as cN, isAgent as cO, isAudioFile as cP, isDocumentAddableToConversation as cQ, isDownloadOnlyFile as cR, isImageDocument as cS, isImageFile as cT, isMediaFile as cU, isPresentationFileName as cV, isVideoFile as cW, markdownBaseComponents as cX, markdownSanitizeSchema as cY, markdownToPlainText as cZ, markdownToPlainTextBlocks as c_, badgeVariants as ca, buildFolderTree as cb, buttonVariants as cc, canonicalFolderPath as cd, cardVariants as ce, closeOpenEmphasis as cf, cn as cg, configureEntityRegistry as ch, configureEntityVocabulary as ci, configureRagLabels as cj, configureSharingMembers as ck, configureStatusRegistry as cl, createUserAvatarIcon as cm, entityNoun as cn, extensionFromMime as co, formatCompactLastSeen as cp, formatDocDate as cq, formatFolderLabel as cr, formatFriendlyDate as cs, formatRelativeTime as ct, friendlyFileType as cu, getDocIcon as cv, getDocumentAuthor as cw, getDocumentDate as cx, getDocumentNature as cy, getDocumentSubject as cz, Avatar as d, splitMarkdownBlocks as d0, tagKindNouns as d1, tagKindTitle as d2, toggleVariants as d3, trimOpenCitation as d4, useDictateContext as d5, usePortalContainer as d6, usesOriginalBytesForViewer as d7, AvatarFallback as e, AvatarImage as f, Badge as g, type BadgeProps as h, Button as i, type ButtonProps as j, Card as k, CardContent as l, CardDescription as m, CardFooter as n, CardHeader as o, type CardProps as p, CardTitle as q, Checkbox as r, Collapsible as s, CollapsibleContent as t, CollapsibleTrigger as u, Command as v, CommandDialog as w, CommandEmpty as x, CommandGroup as y, CommandInput as z };
|