@arbidocs/react 0.4.7 → 0.4.8

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.
@@ -516,6 +516,15 @@ declare function normalizeCitationMarkup(markdown: string): string;
516
516
  * once the marker is complete. Complete markers and everything else are left alone.
517
517
  */
518
518
  declare function trimOpenCitation(markdown: string): string;
519
+ /**
520
+ * Makes the tail of text that is still streaming (or was stopped) render cleanly: a `**` opened
521
+ * in the last line and not yet closed (`| Valuation | **[USD 6.2 million](#cite-2)`) would show as
522
+ * literal asterisks until its closer arrives, because an unclosed emphasis is not emphasis. The
523
+ * open bold is closed at the end of the line, or removed when it has no text yet (`| **`, or a
524
+ * half-typed closer `**USD 6*`). Text with balanced emphasis, and every line but the last, is
525
+ * left alone. Apply after `trimOpenCitation`.
526
+ */
527
+ declare function closeOpenEmphasis(markdown: string): string;
519
528
 
520
529
  declare function AiMarkdown({ children, className, isStreaming, }: {
521
530
  children: string;
@@ -1363,4 +1372,4 @@ declare function DocumentCard({ doc, thumbnailUrl, status, selected, onToggleSel
1363
1372
 
1364
1373
  declare function cn(...inputs: ClassValue[]): string;
1365
1374
 
1366
- export { DropdownMenuLabel as $, AgentBadge as A, BASE_COLORS as B, Card as C, CommandShortcut as D, Dialog as E, DialogClose as F, DialogContent as G, DialogDescription as H, DialogFooter as I, DialogHeader as J, DialogOverlay as K, DialogPortal as L, type DialogPresentation as M, DialogTitle as N, DialogTrigger as O, type DictateContextValue as P, DictateProvider as Q, DocumentCard as R, type DocumentCardProps as S, DocumentEntity as T, type DocumentEntityProps as U, type DocumentLike as V, DropdownMenu as W, DropdownMenuCheckboxItem as X, DropdownMenuContent as Y, DropdownMenuGroup as Z, DropdownMenuItem as _, AiMarkdown as a, type StatusBadgeProps as a$, DropdownMenuPortal as a0, DropdownMenuRadioGroup as a1, DropdownMenuRadioItem as a2, DropdownMenuSeparator as a3, DropdownMenuShortcut as a4, DropdownMenuSub as a5, DropdownMenuSubContent as a6, DropdownMenuSubTrigger as a7, DropdownMenuTrigger as a8, ENTITY_MAPPINGS as a9, PopoverTrigger as aA, type PresenceDisplayStatus as aB, PresenceLabel as aC, Progress as aD, ProjectEntity as aE, type ProjectEntityProps as aF, type ProjectRelation as aG, RadioGroup as aH, RadioGroupItem as aI, type Rag as aJ, RagDot as aK, RelevanceDot as aL, ScrollArea as aM, ScrollBar as aN, Select as aO, SelectContent as aP, SelectGroup as aQ, SelectItem as aR, SelectLabel as aS, SelectScrollDownButton as aT, SelectScrollUpButton as aU, SelectSeparator as aV, SelectTrigger as aW, SelectValue as aX, Separator as aY, Slider as aZ, type StatusBadgeComponent as a_, EntityIcon as aa, type EntityIconComponent as ab, EntityPill as ac, type EntityRegistryOverride as ad, type EntityType as ae, HoverCard as af, HoverCardContent as ag, HoverCardTrigger as ah, IconToggle as ai, type IconToggleProps as aj, Input as ak, type InputProps as al, Label as am, MarkMenu as an, type MarkMenuItem as ao, type MarkMenuProps as ap, MarkdownRenderer as aq, type MarkdownRendererProps as ar, MarkdownStreamingContext as as, NEUTRAL_GRAY as at, PLACEHOLDER_COLOR as au, PassageCard as av, type PassageCardProps as aw, Popover as ax, PopoverAnchor as ay, PopoverContent as az, Avatar as b, StatusPill as b0, type StatusPillProps as b1, type StatusVariant as b2, Switch as b3, TAG_TYPE_ICONS as b4, TAG_TYPE_LABELS as b5, Table as b6, TableBody as b7, TableCaption as b8, TableCell as b9, VISIBILITY_ICONS as bA, VisibilityIcon as bB, badgeVariants as bC, buttonVariants as bD, cardVariants as bE, cn as bF, configureEntityRegistry as bG, configureRagLabels as bH, configureStatusRegistry as bI, getDocIcon as bJ, getEntityColor as bK, getEntityColorStyles as bL, getEntityIcon as bM, getEntityLabel as bN, getStatusVariant as bO, getTagTypeIcon as bP, getTagTypeLabel as bQ, getWorkspaceColor as bR, markdownBaseComponents as bS, normalizeCitationMarkup as bT, splitMarkdownBlocks as bU, toggleVariants as bV, trimOpenCitation as bW, TableFooter as ba, TableHead as bb, TableHeader as bc, TableRow as bd, Tabs as be, TabsContent as bf, TabsList as bg, TabsTrigger as bh, TagEntity as bi, type TagEntityProps as bj, type TagLike as bk, Textarea as bl, type TextareaProps as bm, Toggle as bn, ToggleGroup as bo, ToggleGroupItem as bp, Tooltip as bq, TooltipContent as br, TooltipProvider as bs, TooltipTrigger as bt, UserEntity as bu, type UserEntityProps as bv, UserMenu as bw, type UserMenuItem as bx, type UserMenuProps as by, type UserMenuStatus as bz, AvatarFallback as c, AvatarImage as d, Badge as e, type BadgeProps as f, Button as g, type ButtonProps as h, CardContent as i, CardDescription as j, CardFooter as k, CardHeader as l, type CardProps as m, CardTitle as n, Checkbox as o, Collapsible as p, CollapsibleContent as q, CollapsibleTrigger as r, Command as s, CommandDialog as t, CommandEmpty as u, CommandGroup as v, CommandInput as w, CommandItem as x, CommandList as y, CommandSeparator as z };
1375
+ export { DropdownMenuLabel as $, AgentBadge as A, BASE_COLORS as B, Card as C, CommandShortcut as D, Dialog as E, DialogClose as F, DialogContent as G, DialogDescription as H, DialogFooter as I, DialogHeader as J, DialogOverlay as K, DialogPortal as L, type DialogPresentation as M, DialogTitle as N, DialogTrigger as O, type DictateContextValue as P, DictateProvider as Q, DocumentCard as R, type DocumentCardProps as S, DocumentEntity as T, type DocumentEntityProps as U, type DocumentLike as V, DropdownMenu as W, DropdownMenuCheckboxItem as X, DropdownMenuContent as Y, DropdownMenuGroup as Z, DropdownMenuItem as _, AiMarkdown as a, type StatusBadgeProps as a$, DropdownMenuPortal as a0, DropdownMenuRadioGroup as a1, DropdownMenuRadioItem as a2, DropdownMenuSeparator as a3, DropdownMenuShortcut as a4, DropdownMenuSub as a5, DropdownMenuSubContent as a6, DropdownMenuSubTrigger as a7, DropdownMenuTrigger as a8, ENTITY_MAPPINGS as a9, PopoverTrigger as aA, type PresenceDisplayStatus as aB, PresenceLabel as aC, Progress as aD, ProjectEntity as aE, type ProjectEntityProps as aF, type ProjectRelation as aG, RadioGroup as aH, RadioGroupItem as aI, type Rag as aJ, RagDot as aK, RelevanceDot as aL, ScrollArea as aM, ScrollBar as aN, Select as aO, SelectContent as aP, SelectGroup as aQ, SelectItem as aR, SelectLabel as aS, SelectScrollDownButton as aT, SelectScrollUpButton as aU, SelectSeparator as aV, SelectTrigger as aW, SelectValue as aX, Separator as aY, Slider as aZ, type StatusBadgeComponent as a_, EntityIcon as aa, type EntityIconComponent as ab, EntityPill as ac, type EntityRegistryOverride as ad, type EntityType as ae, HoverCard as af, HoverCardContent as ag, HoverCardTrigger as ah, IconToggle as ai, type IconToggleProps as aj, Input as ak, type InputProps as al, Label as am, MarkMenu as an, type MarkMenuItem as ao, type MarkMenuProps as ap, MarkdownRenderer as aq, type MarkdownRendererProps as ar, MarkdownStreamingContext as as, NEUTRAL_GRAY as at, PLACEHOLDER_COLOR as au, PassageCard as av, type PassageCardProps as aw, Popover as ax, PopoverAnchor as ay, PopoverContent as az, Avatar as b, StatusPill as b0, type StatusPillProps as b1, type StatusVariant as b2, Switch as b3, TAG_TYPE_ICONS as b4, TAG_TYPE_LABELS as b5, Table as b6, TableBody as b7, TableCaption as b8, TableCell as b9, VISIBILITY_ICONS as bA, VisibilityIcon as bB, badgeVariants as bC, buttonVariants as bD, cardVariants as bE, closeOpenEmphasis as bF, cn as bG, configureEntityRegistry as bH, configureRagLabels as bI, configureStatusRegistry as bJ, getDocIcon as bK, getEntityColor as bL, getEntityColorStyles as bM, getEntityIcon as bN, getEntityLabel as bO, getStatusVariant as bP, getTagTypeIcon as bQ, getTagTypeLabel as bR, getWorkspaceColor as bS, markdownBaseComponents as bT, normalizeCitationMarkup as bU, splitMarkdownBlocks as bV, toggleVariants as bW, trimOpenCitation as bX, TableFooter as ba, TableHead as bb, TableHeader as bc, TableRow as bd, Tabs as be, TabsContent as bf, TabsList as bg, TabsTrigger as bh, TagEntity as bi, type TagEntityProps as bj, type TagLike as bk, Textarea as bl, type TextareaProps as bm, Toggle as bn, ToggleGroup as bo, ToggleGroupItem as bp, Tooltip as bq, TooltipContent as br, TooltipProvider as bs, TooltipTrigger as bt, UserEntity as bu, type UserEntityProps as bv, UserMenu as bw, type UserMenuItem as bx, type UserMenuProps as by, type UserMenuStatus as bz, AvatarFallback as c, AvatarImage as d, Badge as e, type BadgeProps as f, Button as g, type ButtonProps as h, CardContent as i, CardDescription as j, CardFooter as k, CardHeader as l, type CardProps as m, CardTitle as n, Checkbox as o, Collapsible as p, CollapsibleContent as q, CollapsibleTrigger as r, Command as s, CommandDialog as t, CommandEmpty as u, CommandGroup as v, CommandInput as w, CommandItem as x, CommandList as y, CommandSeparator as z };
@@ -516,6 +516,15 @@ declare function normalizeCitationMarkup(markdown: string): string;
516
516
  * once the marker is complete. Complete markers and everything else are left alone.
517
517
  */
518
518
  declare function trimOpenCitation(markdown: string): string;
519
+ /**
520
+ * Makes the tail of text that is still streaming (or was stopped) render cleanly: a `**` opened
521
+ * in the last line and not yet closed (`| Valuation | **[USD 6.2 million](#cite-2)`) would show as
522
+ * literal asterisks until its closer arrives, because an unclosed emphasis is not emphasis. The
523
+ * open bold is closed at the end of the line, or removed when it has no text yet (`| **`, or a
524
+ * half-typed closer `**USD 6*`). Text with balanced emphasis, and every line but the last, is
525
+ * left alone. Apply after `trimOpenCitation`.
526
+ */
527
+ declare function closeOpenEmphasis(markdown: string): string;
519
528
 
520
529
  declare function AiMarkdown({ children, className, isStreaming, }: {
521
530
  children: string;
@@ -1363,4 +1372,4 @@ declare function DocumentCard({ doc, thumbnailUrl, status, selected, onToggleSel
1363
1372
 
1364
1373
  declare function cn(...inputs: ClassValue[]): string;
1365
1374
 
1366
- export { DropdownMenuLabel as $, AgentBadge as A, BASE_COLORS as B, Card as C, CommandShortcut as D, Dialog as E, DialogClose as F, DialogContent as G, DialogDescription as H, DialogFooter as I, DialogHeader as J, DialogOverlay as K, DialogPortal as L, type DialogPresentation as M, DialogTitle as N, DialogTrigger as O, type DictateContextValue as P, DictateProvider as Q, DocumentCard as R, type DocumentCardProps as S, DocumentEntity as T, type DocumentEntityProps as U, type DocumentLike as V, DropdownMenu as W, DropdownMenuCheckboxItem as X, DropdownMenuContent as Y, DropdownMenuGroup as Z, DropdownMenuItem as _, AiMarkdown as a, type StatusBadgeProps as a$, DropdownMenuPortal as a0, DropdownMenuRadioGroup as a1, DropdownMenuRadioItem as a2, DropdownMenuSeparator as a3, DropdownMenuShortcut as a4, DropdownMenuSub as a5, DropdownMenuSubContent as a6, DropdownMenuSubTrigger as a7, DropdownMenuTrigger as a8, ENTITY_MAPPINGS as a9, PopoverTrigger as aA, type PresenceDisplayStatus as aB, PresenceLabel as aC, Progress as aD, ProjectEntity as aE, type ProjectEntityProps as aF, type ProjectRelation as aG, RadioGroup as aH, RadioGroupItem as aI, type Rag as aJ, RagDot as aK, RelevanceDot as aL, ScrollArea as aM, ScrollBar as aN, Select as aO, SelectContent as aP, SelectGroup as aQ, SelectItem as aR, SelectLabel as aS, SelectScrollDownButton as aT, SelectScrollUpButton as aU, SelectSeparator as aV, SelectTrigger as aW, SelectValue as aX, Separator as aY, Slider as aZ, type StatusBadgeComponent as a_, EntityIcon as aa, type EntityIconComponent as ab, EntityPill as ac, type EntityRegistryOverride as ad, type EntityType as ae, HoverCard as af, HoverCardContent as ag, HoverCardTrigger as ah, IconToggle as ai, type IconToggleProps as aj, Input as ak, type InputProps as al, Label as am, MarkMenu as an, type MarkMenuItem as ao, type MarkMenuProps as ap, MarkdownRenderer as aq, type MarkdownRendererProps as ar, MarkdownStreamingContext as as, NEUTRAL_GRAY as at, PLACEHOLDER_COLOR as au, PassageCard as av, type PassageCardProps as aw, Popover as ax, PopoverAnchor as ay, PopoverContent as az, Avatar as b, StatusPill as b0, type StatusPillProps as b1, type StatusVariant as b2, Switch as b3, TAG_TYPE_ICONS as b4, TAG_TYPE_LABELS as b5, Table as b6, TableBody as b7, TableCaption as b8, TableCell as b9, VISIBILITY_ICONS as bA, VisibilityIcon as bB, badgeVariants as bC, buttonVariants as bD, cardVariants as bE, cn as bF, configureEntityRegistry as bG, configureRagLabels as bH, configureStatusRegistry as bI, getDocIcon as bJ, getEntityColor as bK, getEntityColorStyles as bL, getEntityIcon as bM, getEntityLabel as bN, getStatusVariant as bO, getTagTypeIcon as bP, getTagTypeLabel as bQ, getWorkspaceColor as bR, markdownBaseComponents as bS, normalizeCitationMarkup as bT, splitMarkdownBlocks as bU, toggleVariants as bV, trimOpenCitation as bW, TableFooter as ba, TableHead as bb, TableHeader as bc, TableRow as bd, Tabs as be, TabsContent as bf, TabsList as bg, TabsTrigger as bh, TagEntity as bi, type TagEntityProps as bj, type TagLike as bk, Textarea as bl, type TextareaProps as bm, Toggle as bn, ToggleGroup as bo, ToggleGroupItem as bp, Tooltip as bq, TooltipContent as br, TooltipProvider as bs, TooltipTrigger as bt, UserEntity as bu, type UserEntityProps as bv, UserMenu as bw, type UserMenuItem as bx, type UserMenuProps as by, type UserMenuStatus as bz, AvatarFallback as c, AvatarImage as d, Badge as e, type BadgeProps as f, Button as g, type ButtonProps as h, CardContent as i, CardDescription as j, CardFooter as k, CardHeader as l, type CardProps as m, CardTitle as n, Checkbox as o, Collapsible as p, CollapsibleContent as q, CollapsibleTrigger as r, Command as s, CommandDialog as t, CommandEmpty as u, CommandGroup as v, CommandInput as w, CommandItem as x, CommandList as y, CommandSeparator as z };
1375
+ export { DropdownMenuLabel as $, AgentBadge as A, BASE_COLORS as B, Card as C, CommandShortcut as D, Dialog as E, DialogClose as F, DialogContent as G, DialogDescription as H, DialogFooter as I, DialogHeader as J, DialogOverlay as K, DialogPortal as L, type DialogPresentation as M, DialogTitle as N, DialogTrigger as O, type DictateContextValue as P, DictateProvider as Q, DocumentCard as R, type DocumentCardProps as S, DocumentEntity as T, type DocumentEntityProps as U, type DocumentLike as V, DropdownMenu as W, DropdownMenuCheckboxItem as X, DropdownMenuContent as Y, DropdownMenuGroup as Z, DropdownMenuItem as _, AiMarkdown as a, type StatusBadgeProps as a$, DropdownMenuPortal as a0, DropdownMenuRadioGroup as a1, DropdownMenuRadioItem as a2, DropdownMenuSeparator as a3, DropdownMenuShortcut as a4, DropdownMenuSub as a5, DropdownMenuSubContent as a6, DropdownMenuSubTrigger as a7, DropdownMenuTrigger as a8, ENTITY_MAPPINGS as a9, PopoverTrigger as aA, type PresenceDisplayStatus as aB, PresenceLabel as aC, Progress as aD, ProjectEntity as aE, type ProjectEntityProps as aF, type ProjectRelation as aG, RadioGroup as aH, RadioGroupItem as aI, type Rag as aJ, RagDot as aK, RelevanceDot as aL, ScrollArea as aM, ScrollBar as aN, Select as aO, SelectContent as aP, SelectGroup as aQ, SelectItem as aR, SelectLabel as aS, SelectScrollDownButton as aT, SelectScrollUpButton as aU, SelectSeparator as aV, SelectTrigger as aW, SelectValue as aX, Separator as aY, Slider as aZ, type StatusBadgeComponent as a_, EntityIcon as aa, type EntityIconComponent as ab, EntityPill as ac, type EntityRegistryOverride as ad, type EntityType as ae, HoverCard as af, HoverCardContent as ag, HoverCardTrigger as ah, IconToggle as ai, type IconToggleProps as aj, Input as ak, type InputProps as al, Label as am, MarkMenu as an, type MarkMenuItem as ao, type MarkMenuProps as ap, MarkdownRenderer as aq, type MarkdownRendererProps as ar, MarkdownStreamingContext as as, NEUTRAL_GRAY as at, PLACEHOLDER_COLOR as au, PassageCard as av, type PassageCardProps as aw, Popover as ax, PopoverAnchor as ay, PopoverContent as az, Avatar as b, StatusPill as b0, type StatusPillProps as b1, type StatusVariant as b2, Switch as b3, TAG_TYPE_ICONS as b4, TAG_TYPE_LABELS as b5, Table as b6, TableBody as b7, TableCaption as b8, TableCell as b9, VISIBILITY_ICONS as bA, VisibilityIcon as bB, badgeVariants as bC, buttonVariants as bD, cardVariants as bE, closeOpenEmphasis as bF, cn as bG, configureEntityRegistry as bH, configureRagLabels as bI, configureStatusRegistry as bJ, getDocIcon as bK, getEntityColor as bL, getEntityColorStyles as bM, getEntityIcon as bN, getEntityLabel as bO, getStatusVariant as bP, getTagTypeIcon as bQ, getTagTypeLabel as bR, getWorkspaceColor as bS, markdownBaseComponents as bT, normalizeCitationMarkup as bU, splitMarkdownBlocks as bV, toggleVariants as bW, trimOpenCitation as bX, TableFooter as ba, TableHead as bb, TableHeader as bc, TableRow as bd, Tabs as be, TabsContent as bf, TabsList as bg, TabsTrigger as bh, TagEntity as bi, type TagEntityProps as bj, type TagLike as bk, Textarea as bl, type TextareaProps as bm, Toggle as bn, ToggleGroup as bo, ToggleGroupItem as bp, Tooltip as bq, TooltipContent as br, TooltipProvider as bs, TooltipTrigger as bt, UserEntity as bu, type UserEntityProps as bv, UserMenu as bw, type UserMenuItem as bx, type UserMenuProps as by, type UserMenuStatus as bz, AvatarFallback as c, AvatarImage as d, Badge as e, type BadgeProps as f, Button as g, type ButtonProps as h, CardContent as i, CardDescription as j, CardFooter as k, CardHeader as l, type CardProps as m, CardTitle as n, Checkbox as o, Collapsible as p, CollapsibleContent as q, CollapsibleTrigger as r, Command as s, CommandDialog as t, CommandEmpty as u, CommandGroup as v, CommandInput as w, CommandItem as x, CommandList as y, CommandSeparator as z };