@arbidocs/react 0.4.127 → 0.4.129

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.
Files changed (55) hide show
  1. package/dist/artifacts/index.cjs +20 -2
  2. package/dist/artifacts/index.cjs.map +1 -1
  3. package/dist/artifacts/index.d.cts +17 -1
  4. package/dist/artifacts/index.d.ts +17 -1
  5. package/dist/artifacts/index.js +17 -2
  6. package/dist/artifacts/index.js.map +1 -1
  7. package/dist/{chunk-GX75JCPR.cjs → chunk-65WT5PHA.cjs} +361 -189
  8. package/dist/chunk-65WT5PHA.cjs.map +1 -0
  9. package/dist/{chunk-ECOSGMTW.js → chunk-6AWF4HFU.js} +14 -6
  10. package/dist/chunk-6AWF4HFU.js.map +1 -0
  11. package/dist/chunk-6JSXDLIQ.js +101 -0
  12. package/dist/chunk-6JSXDLIQ.js.map +1 -0
  13. package/dist/{chunk-F7KQVVD2.cjs → chunk-BOJHNPNJ.cjs} +14 -6
  14. package/dist/chunk-BOJHNPNJ.cjs.map +1 -0
  15. package/dist/{chunk-EKRRORFO.js → chunk-C44GO33B.js} +105 -46
  16. package/dist/chunk-C44GO33B.js.map +1 -0
  17. package/dist/{chunk-5PQO46PE.js → chunk-J3BYHBKW.js} +358 -189
  18. package/dist/chunk-J3BYHBKW.js.map +1 -0
  19. package/dist/{chunk-TBELZWGV.cjs → chunk-OC7F5SNA.cjs} +108 -44
  20. package/dist/chunk-OC7F5SNA.cjs.map +1 -0
  21. package/dist/chunk-S7J5SCTZ.cjs +110 -0
  22. package/dist/chunk-S7J5SCTZ.cjs.map +1 -0
  23. package/dist/document-tools/index.cjs +72 -124
  24. package/dist/document-tools/index.cjs.map +1 -1
  25. package/dist/document-tools/index.d.cts +16 -4
  26. package/dist/document-tools/index.d.ts +16 -4
  27. package/dist/document-tools/index.js +30 -106
  28. package/dist/document-tools/index.js.map +1 -1
  29. package/dist/{index-B1O2cqOo.d.cts → index-2Y2MVegs.d.cts} +85 -6
  30. package/dist/{index-B1O2cqOo.d.ts → index-2Y2MVegs.d.ts} +85 -6
  31. package/dist/index.cjs +250 -211
  32. package/dist/index.cjs.map +1 -1
  33. package/dist/index.d.cts +33 -8
  34. package/dist/index.d.ts +33 -8
  35. package/dist/index.js +24 -10
  36. package/dist/index.js.map +1 -1
  37. package/dist/shell/index.cjs +6 -6
  38. package/dist/shell/index.js +1 -1
  39. package/dist/ui/index.cjs +152 -128
  40. package/dist/ui/index.d.cts +2 -1
  41. package/dist/ui/index.d.ts +2 -1
  42. package/dist/ui/index.js +3 -3
  43. package/dist/viewers/index.cjs +91 -0
  44. package/dist/viewers/index.cjs.map +1 -1
  45. package/dist/viewers/index.d.cts +62 -1
  46. package/dist/viewers/index.d.ts +62 -1
  47. package/dist/viewers/index.js +90 -1
  48. package/dist/viewers/index.js.map +1 -1
  49. package/package.json +8 -3
  50. package/dist/chunk-5PQO46PE.js.map +0 -1
  51. package/dist/chunk-ECOSGMTW.js.map +0 -1
  52. package/dist/chunk-EKRRORFO.js.map +0 -1
  53. package/dist/chunk-F7KQVVD2.cjs.map +0 -1
  54. package/dist/chunk-GX75JCPR.cjs.map +0 -1
  55. package/dist/chunk-TBELZWGV.cjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { ClassValue } from 'clsx';
2
2
  import * as React$1 from 'react';
3
- import React__default, { HTMLAttributes, ReactNode, Ref, ComponentType } from 'react';
3
+ import React__default, { HTMLAttributes, ReactNode, Ref, ComponentType, CSSProperties } from 'react';
4
4
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
5
5
  import * as class_variance_authority_types from 'class-variance-authority/types';
6
6
  import { VariantProps } from 'class-variance-authority';
@@ -23,7 +23,8 @@ import * as SwitchPrimitives from '@radix-ui/react-switch';
23
23
  import * as TabsPrimitive from '@radix-ui/react-tabs';
24
24
  import * as TogglePrimitive from '@radix-ui/react-toggle';
25
25
  import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
26
- import { Components } from 'react-markdown';
26
+ import { Components, Options } from 'react-markdown';
27
+ import { Options as Options$1 } from 'rehype-sanitize';
27
28
 
28
29
  /**
29
30
  * Identity verification types, SDK-free so presentational blocks can take an
@@ -201,6 +202,39 @@ interface VisibilityToggleProps {
201
202
  }
202
203
  declare function VisibilityToggle({ items, presentation, onToggle, disabled, disabledTooltip, disablePrivate, showLabel, showTooltip, tooltipActive, tooltipInactive, tooltipMixed, label, workspaceLabel, 'data-testid': dataTestId, }: VisibilityToggleProps): React$1.JSX.Element;
203
204
 
205
+ /**
206
+ * DebouncedInput Component
207
+ *
208
+ * A text input that debounces onChange calls to reduce API calls.
209
+ * Supports both single-line Input and multi-line Textarea.
210
+ * Reverts to prop value on blur if local value differs (handles validation failures).
211
+ */
212
+ interface DebouncedInputProps {
213
+ /** Current value */
214
+ value: string;
215
+ /** Callback when value changes (debounced) */
216
+ onChange: (value: string) => void;
217
+ /** Whether the input is disabled */
218
+ disabled?: boolean;
219
+ /** Input type (text, number, etc.) */
220
+ type?: string;
221
+ /** Whether to render as textarea */
222
+ multiline?: boolean;
223
+ /** Additional CSS classes */
224
+ className?: string;
225
+ /** Debounce delay in milliseconds */
226
+ debounceMs?: number;
227
+ /** Placeholder text */
228
+ placeholder?: string;
229
+ /** Auto-resize textarea to fit content (multiline only) */
230
+ autoResize?: boolean;
231
+ /** Min height in pixels for auto-resize (default: 28, ~1 row) */
232
+ minHeight?: number;
233
+ /** Max height in pixels for auto-resize (default: 72, ~3 rows) */
234
+ maxHeight?: number;
235
+ }
236
+ declare function DebouncedInput({ value, onChange, disabled, type, multiline, className, debounceMs, placeholder, autoResize, minHeight, maxHeight, }: DebouncedInputProps): React$1.JSX.Element;
237
+
204
238
  /**
205
239
  * DictateContext
206
240
  *
@@ -570,6 +604,30 @@ declare const CommandShortcut: {
570
604
  displayName: string;
571
605
  };
572
606
 
607
+ /** remark/rehype plugin lists, as react-markdown takes them. */
608
+ type PluggableList = NonNullable<Options['rehypePlugins']>;
609
+ /**
610
+ * Links. Internal hash/anchor links stay in-page; everything else opens safely in a new tab
611
+ * (`rel="noopener noreferrer"` prevents reverse-tabnabbing). A backend citation marker
612
+ * (`#cite-N`) has no popover here: the cited words stay in the surface's own colour with a quiet
613
+ * superscript number after them (no underline, so a cited sentence does not read as a link).
614
+ * Pass `renderCitation` to `MarkdownRenderer` to swap in a real source popover.
615
+ */
616
+ declare function MarkdownLink({ href, children, ...props }: React__default.ComponentPropsWithoutRef<'a'>): React__default.JSX.Element;
617
+ /**
618
+ * Inline code, and fenced code as a `CodeBlock` (language label + copy). Exported so a host's own
619
+ * `code` override can handle its special cases (a diagram language, an id shown as a pill) and
620
+ * hand everything else back here.
621
+ */
622
+ declare function MarkdownCode({ className, children, ...props }: React__default.ComponentPropsWithoutRef<'code'>): React__default.JSX.Element;
623
+ /**
624
+ * What survives sanitising inline HTML: GitHub's schema, plus the classes the downstream steps and
625
+ * renderers read (KaTeX's `math-*` placeholders, `language-*` on code), `<mark>` for search
626
+ * highlights, and `data-cid` on `<ins>`/`<del>` (the redline's per-change id, minted from diff
627
+ * positions, never from content). Scripts, event handlers, inline styles and `javascript:` URLs
628
+ * stay out.
629
+ */
630
+ declare const markdownSanitizeSchema: Options$1;
573
631
  interface MarkdownRendererProps {
574
632
  /** Markdown content to render. */
575
633
  children: string;
@@ -593,12 +651,18 @@ interface MarkdownRendererProps {
593
651
  /** Overrides the `data-testid` on the wrapper (default `markdown-renderer`). */
594
652
  testId?: string;
595
653
  /**
596
- * Inline HTML in the markdown becomes elements (default). False keeps it as text: for content
597
- * from outside the app, such as a comment in a Word file anyone could have written.
654
+ * Inline HTML in the markdown becomes elements, sanitised (default). False keeps it as text: for
655
+ * content from outside the app, such as a comment in a Word file anyone could have written.
598
656
  */
599
657
  allowHtml?: boolean;
658
+ /**
659
+ * Trusted rehype plugins run after sanitising, KaTeX and heading slugs (e.g. a pass that turns
660
+ * entity ids into elements the host's `components` render). Keep the array referentially
661
+ * stable (module scope), or every block re-parses.
662
+ */
663
+ rehypePlugins?: PluggableList;
600
664
  }
601
- declare function MarkdownRendererComponent({ children, components: customComponents, renderCitation, isStreaming, className, testId, allowHtml, }: MarkdownRendererProps): React__default.JSX.Element;
665
+ declare function MarkdownRendererComponent({ children, components: customComponents, renderCitation, isStreaming, className, testId, allowHtml, rehypePlugins: extraRehypePlugins, }: MarkdownRendererProps): React__default.JSX.Element;
602
666
  /**
603
667
  * Memoised so a stable message in a long thread doesn't re-parse when unrelated
604
668
  * tokens arrive elsewhere; a streaming message gets a fresh `children` each flush
@@ -1489,6 +1553,21 @@ declare function getEntityColorStyles(entityId: string): {
1489
1553
  */
1490
1554
  declare const getWorkspaceColor: (workspaceId: string | undefined | null, useWorkspaceColors?: boolean) => string;
1491
1555
 
1556
+ type ShieldIconProps = {
1557
+ char?: string;
1558
+ size?: number;
1559
+ className?: string;
1560
+ workspaceColor?: string;
1561
+ isSelected?: boolean;
1562
+ } & React__default.SVGAttributes<SVGElement>;
1563
+ declare const ShieldIcon: React__default.FC<ShieldIconProps>;
1564
+
1565
+ /**
1566
+ * Returns inline styles for agent avatar border and text color,
1567
+ * matching the user's assigned bg color class.
1568
+ */
1569
+ declare function agentAvatarColors(bgColorClass: string): CSSProperties;
1570
+
1492
1571
  interface UserMenuItem {
1493
1572
  label: string;
1494
1573
  icon?: ComponentType<{
@@ -1594,4 +1673,4 @@ declare function DocumentCard({ doc, thumbnailUrl, status, selected, onToggleSel
1594
1673
 
1595
1674
  declare function cn(...inputs: ClassValue[]): string;
1596
1675
 
1597
- export { DropdownMenuItem as $, AgentBadge as A, BASE_COLORS as B, Card as C, CommandSeparator as D, CommandShortcut as E, Dialog as F, DialogClose as G, DialogContent as H, DialogDescription as I, DialogFooter as J, DialogHeader as K, DialogOverlay as L, DialogPortal as M, type DialogPresentation as N, DialogTitle as O, DialogTrigger as P, type DictateContextValue as Q, DictateProvider as R, DocumentCard as S, type DocumentCardProps as T, DocumentEntity as U, type DocumentEntityProps as V, type DocumentLike as W, DropdownMenu as X, DropdownMenuCheckboxItem as Y, DropdownMenuContent as Z, DropdownMenuGroup as _, AiMarkdown as a, SelectItem as a$, DropdownMenuLabel as a0, DropdownMenuPortal as a1, DropdownMenuRadioGroup as a2, DropdownMenuRadioItem as a3, DropdownMenuSeparator as a4, DropdownMenuShortcut as a5, DropdownMenuSub as a6, DropdownMenuSubContent as a7, DropdownMenuSubTrigger as a8, DropdownMenuTrigger as a9, MarkdownStreamingContext as aA, NEUTRAL_GRAY as aB, PLACEHOLDER_COLOR as aC, PassageCard as aD, type PassageCardProps as aE, Popover as aF, PopoverAnchor as aG, PopoverClose as aH, PopoverContent as aI, PopoverTrigger as aJ, PortalContainerProvider as aK, type PresenceDisplayStatus as aL, PresenceLabel as aM, Progress as aN, ProjectEntity as aO, type ProjectEntityProps as aP, type ProjectRelation as aQ, RadioGroup as aR, RadioGroupItem as aS, type Rag as aT, RagDot as aU, RelevanceDot as aV, ScrollArea as aW, ScrollBar as aX, Select as aY, SelectContent as aZ, SelectGroup as a_, ENTITY_MAPPINGS as aa, EntityIcon as ab, type EntityIconComponent as ac, EntityPill as ad, type EntityRegistryOverride as ae, type EntityType as af, HoverCard as ag, HoverCardContent as ah, HoverCardTrigger as ai, IconToggle as aj, type IconToggleProps as ak, type IdentityBusy as al, type IdentityProblem as am, type IdentityPurchase as an, type IdentityState as ao, type IdentityStatus as ap, type IdentityStep as aq, type IdentityVerificationFlow as ar, Input as as, type InputProps as at, Label as au, MarkMenu as av, type MarkMenuItem as aw, type MarkMenuProps as ax, MarkdownRenderer as ay, type MarkdownRendererProps as az, ArbiIcon as b, getEntityColorStyles as b$, SelectLabel as b0, SelectScrollDownButton as b1, SelectScrollUpButton as b2, SelectSeparator as b3, SelectTrigger as b4, SelectValue as b5, Separator as b6, Slider as b7, type StatusBadgeComponent as b8, type StatusBadgeProps as b9, ToggleGroupItem as bA, Tooltip as bB, TooltipContent as bC, TooltipProvider as bD, TooltipTrigger as bE, UserEntity as bF, type UserEntityProps as bG, UserMenu as bH, type UserMenuItem as bI, type UserMenuProps as bJ, type UserMenuStatus as bK, VISIBILITY_ICONS as bL, VerifiedBadge as bM, type VerifiedBadgeProps as bN, VisibilityIcon as bO, VisibilityToggle as bP, type VisibilityToggleProps as bQ, badgeVariants as bR, buttonVariants as bS, cardVariants as bT, closeOpenEmphasis as bU, cn as bV, configureEntityRegistry as bW, configureRagLabels as bX, configureStatusRegistry as bY, getDocIcon as bZ, getEntityColor as b_, StatusPill as ba, type StatusPillProps as bb, type StatusVariant as bc, Switch as bd, TAG_TYPE_ICONS as be, TAG_TYPE_LABELS as bf, Table as bg, TableBody as bh, TableCaption as bi, TableCell as bj, TableFooter as bk, TableHead as bl, TableHeader as bm, TableRow as bn, Tabs as bo, TabsContent as bp, TabsList as bq, TabsTrigger as br, TagEntity as bs, type TagEntityProps as bt, type TagLike as bu, Textarea as bv, type TextareaProps as bw, ThreadVisibilityIcon as bx, Toggle as by, ToggleGroup as bz, Avatar as c, getEntityIcon as c0, getEntityLabel as c1, getStatusVariant as c2, getTagTypeIcon as c3, getTagTypeLabel as c4, getWorkspaceColor as c5, markdownBaseComponents as c6, normalizeCitationMarkup as c7, splitMarkdownBlocks as c8, toggleVariants as c9, trimOpenCitation as ca, usePortalContainer as cb, AvatarFallback as d, AvatarImage as e, Badge as f, type BadgeProps as g, Button as h, type ButtonProps as i, CardContent as j, CardDescription as k, CardFooter as l, CardHeader as m, type CardProps as n, CardTitle as o, Checkbox as p, Collapsible as q, CollapsibleContent as r, CollapsibleTrigger as s, Command as t, CommandDialog as u, CommandEmpty as v, CommandGroup as w, CommandInput as x, CommandItem as y, CommandList as z };
1676
+ export { DropdownMenuContent as $, AgentBadge as A, BASE_COLORS as B, Card as C, CommandSeparator as D, CommandShortcut as E, DebouncedInput as F, type DebouncedInputProps as G, Dialog as H, DialogClose as I, DialogContent as J, DialogDescription as K, DialogFooter as L, DialogHeader as M, DialogOverlay as N, DialogPortal as O, type DialogPresentation as P, DialogTitle as Q, DialogTrigger as R, type DictateContextValue as S, DictateProvider as T, DocumentCard as U, type DocumentCardProps as V, DocumentEntity as W, type DocumentEntityProps as X, type DocumentLike as Y, DropdownMenu as Z, DropdownMenuCheckboxItem as _, AiMarkdown as a, ScrollBar 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, MarkdownCode as aA, MarkdownLink as aB, MarkdownRenderer as aC, type MarkdownRendererProps as aD, MarkdownStreamingContext as aE, NEUTRAL_GRAY as aF, PLACEHOLDER_COLOR as aG, PassageCard as aH, type PassageCardProps as aI, Popover as aJ, PopoverAnchor as aK, PopoverClose as aL, PopoverContent as aM, PopoverTrigger as aN, PortalContainerProvider as aO, type PresenceDisplayStatus as aP, PresenceLabel as aQ, Progress as aR, ProjectEntity as aS, type ProjectEntityProps as aT, type ProjectRelation as aU, RadioGroup as aV, RadioGroupItem as aW, type Rag as aX, RagDot as aY, RelevanceDot as aZ, ScrollArea as a_, DropdownMenuSubTrigger as aa, DropdownMenuTrigger as ab, ENTITY_MAPPINGS as ac, EntityIcon as ad, type EntityIconComponent as ae, EntityPill as af, type EntityRegistryOverride as ag, type EntityType as ah, HoverCard as ai, HoverCardContent as aj, HoverCardTrigger as ak, IconToggle as al, type IconToggleProps as am, type IdentityBusy as an, type IdentityProblem as ao, type IdentityPurchase as ap, type IdentityState as aq, type IdentityStatus as ar, type IdentityStep as as, type IdentityVerificationFlow as at, Input as au, type InputProps as av, Label as aw, MarkMenu as ax, type MarkMenuItem as ay, type MarkMenuProps as az, ArbiIcon as b, closeOpenEmphasis as b$, Select as b0, SelectContent as b1, SelectGroup as b2, SelectItem as b3, SelectLabel as b4, SelectScrollDownButton as b5, SelectScrollUpButton as b6, SelectSeparator as b7, SelectTrigger as b8, SelectValue as b9, type TagLike as bA, Textarea as bB, type TextareaProps as bC, ThreadVisibilityIcon as bD, Toggle as bE, ToggleGroup as bF, ToggleGroupItem as bG, Tooltip as bH, TooltipContent as bI, TooltipProvider as bJ, TooltipTrigger as bK, UserEntity as bL, type UserEntityProps as bM, UserMenu as bN, type UserMenuItem as bO, type UserMenuProps as bP, type UserMenuStatus as bQ, VISIBILITY_ICONS as bR, VerifiedBadge as bS, type VerifiedBadgeProps as bT, VisibilityIcon as bU, VisibilityToggle as bV, type VisibilityToggleProps as bW, agentAvatarColors as bX, badgeVariants as bY, buttonVariants as bZ, cardVariants as b_, Separator as ba, ShieldIcon as bb, type ShieldIconProps as bc, Slider as bd, type StatusBadgeComponent as be, type StatusBadgeProps as bf, StatusPill as bg, type StatusPillProps as bh, type StatusVariant as bi, Switch as bj, TAG_TYPE_ICONS as bk, TAG_TYPE_LABELS as bl, Table as bm, TableBody as bn, TableCaption as bo, TableCell as bp, TableFooter as bq, TableHead as br, TableHeader as bs, TableRow as bt, Tabs as bu, TabsContent as bv, TabsList as bw, TabsTrigger as bx, TagEntity as by, type TagEntityProps as bz, Avatar as c, cn as c0, configureEntityRegistry as c1, configureRagLabels as c2, configureStatusRegistry as c3, getDocIcon as c4, getEntityColor as c5, getEntityColorStyles as c6, getEntityIcon as c7, getEntityLabel as c8, getStatusVariant as c9, getTagTypeIcon as ca, getTagTypeLabel as cb, getWorkspaceColor as cc, markdownBaseComponents as cd, markdownSanitizeSchema as ce, normalizeCitationMarkup as cf, splitMarkdownBlocks as cg, toggleVariants as ch, trimOpenCitation as ci, usePortalContainer as cj, AvatarFallback as d, AvatarImage as e, Badge as f, type BadgeProps as g, Button as h, type ButtonProps as i, CardContent as j, CardDescription as k, CardFooter as l, CardHeader as m, type CardProps as n, CardTitle as o, Checkbox as p, Collapsible as q, CollapsibleContent as r, CollapsibleTrigger as s, Command as t, CommandDialog as u, CommandEmpty as v, CommandGroup as w, CommandInput as x, CommandItem as y, CommandList as z };
@@ -1,6 +1,6 @@
1
1
  import { ClassValue } from 'clsx';
2
2
  import * as React$1 from 'react';
3
- import React__default, { HTMLAttributes, ReactNode, Ref, ComponentType } from 'react';
3
+ import React__default, { HTMLAttributes, ReactNode, Ref, ComponentType, CSSProperties } from 'react';
4
4
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
5
5
  import * as class_variance_authority_types from 'class-variance-authority/types';
6
6
  import { VariantProps } from 'class-variance-authority';
@@ -23,7 +23,8 @@ import * as SwitchPrimitives from '@radix-ui/react-switch';
23
23
  import * as TabsPrimitive from '@radix-ui/react-tabs';
24
24
  import * as TogglePrimitive from '@radix-ui/react-toggle';
25
25
  import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
26
- import { Components } from 'react-markdown';
26
+ import { Components, Options } from 'react-markdown';
27
+ import { Options as Options$1 } from 'rehype-sanitize';
27
28
 
28
29
  /**
29
30
  * Identity verification types, SDK-free so presentational blocks can take an
@@ -201,6 +202,39 @@ interface VisibilityToggleProps {
201
202
  }
202
203
  declare function VisibilityToggle({ items, presentation, onToggle, disabled, disabledTooltip, disablePrivate, showLabel, showTooltip, tooltipActive, tooltipInactive, tooltipMixed, label, workspaceLabel, 'data-testid': dataTestId, }: VisibilityToggleProps): React$1.JSX.Element;
203
204
 
205
+ /**
206
+ * DebouncedInput Component
207
+ *
208
+ * A text input that debounces onChange calls to reduce API calls.
209
+ * Supports both single-line Input and multi-line Textarea.
210
+ * Reverts to prop value on blur if local value differs (handles validation failures).
211
+ */
212
+ interface DebouncedInputProps {
213
+ /** Current value */
214
+ value: string;
215
+ /** Callback when value changes (debounced) */
216
+ onChange: (value: string) => void;
217
+ /** Whether the input is disabled */
218
+ disabled?: boolean;
219
+ /** Input type (text, number, etc.) */
220
+ type?: string;
221
+ /** Whether to render as textarea */
222
+ multiline?: boolean;
223
+ /** Additional CSS classes */
224
+ className?: string;
225
+ /** Debounce delay in milliseconds */
226
+ debounceMs?: number;
227
+ /** Placeholder text */
228
+ placeholder?: string;
229
+ /** Auto-resize textarea to fit content (multiline only) */
230
+ autoResize?: boolean;
231
+ /** Min height in pixels for auto-resize (default: 28, ~1 row) */
232
+ minHeight?: number;
233
+ /** Max height in pixels for auto-resize (default: 72, ~3 rows) */
234
+ maxHeight?: number;
235
+ }
236
+ declare function DebouncedInput({ value, onChange, disabled, type, multiline, className, debounceMs, placeholder, autoResize, minHeight, maxHeight, }: DebouncedInputProps): React$1.JSX.Element;
237
+
204
238
  /**
205
239
  * DictateContext
206
240
  *
@@ -570,6 +604,30 @@ declare const CommandShortcut: {
570
604
  displayName: string;
571
605
  };
572
606
 
607
+ /** remark/rehype plugin lists, as react-markdown takes them. */
608
+ type PluggableList = NonNullable<Options['rehypePlugins']>;
609
+ /**
610
+ * Links. Internal hash/anchor links stay in-page; everything else opens safely in a new tab
611
+ * (`rel="noopener noreferrer"` prevents reverse-tabnabbing). A backend citation marker
612
+ * (`#cite-N`) has no popover here: the cited words stay in the surface's own colour with a quiet
613
+ * superscript number after them (no underline, so a cited sentence does not read as a link).
614
+ * Pass `renderCitation` to `MarkdownRenderer` to swap in a real source popover.
615
+ */
616
+ declare function MarkdownLink({ href, children, ...props }: React__default.ComponentPropsWithoutRef<'a'>): React__default.JSX.Element;
617
+ /**
618
+ * Inline code, and fenced code as a `CodeBlock` (language label + copy). Exported so a host's own
619
+ * `code` override can handle its special cases (a diagram language, an id shown as a pill) and
620
+ * hand everything else back here.
621
+ */
622
+ declare function MarkdownCode({ className, children, ...props }: React__default.ComponentPropsWithoutRef<'code'>): React__default.JSX.Element;
623
+ /**
624
+ * What survives sanitising inline HTML: GitHub's schema, plus the classes the downstream steps and
625
+ * renderers read (KaTeX's `math-*` placeholders, `language-*` on code), `<mark>` for search
626
+ * highlights, and `data-cid` on `<ins>`/`<del>` (the redline's per-change id, minted from diff
627
+ * positions, never from content). Scripts, event handlers, inline styles and `javascript:` URLs
628
+ * stay out.
629
+ */
630
+ declare const markdownSanitizeSchema: Options$1;
573
631
  interface MarkdownRendererProps {
574
632
  /** Markdown content to render. */
575
633
  children: string;
@@ -593,12 +651,18 @@ interface MarkdownRendererProps {
593
651
  /** Overrides the `data-testid` on the wrapper (default `markdown-renderer`). */
594
652
  testId?: string;
595
653
  /**
596
- * Inline HTML in the markdown becomes elements (default). False keeps it as text: for content
597
- * from outside the app, such as a comment in a Word file anyone could have written.
654
+ * Inline HTML in the markdown becomes elements, sanitised (default). False keeps it as text: for
655
+ * content from outside the app, such as a comment in a Word file anyone could have written.
598
656
  */
599
657
  allowHtml?: boolean;
658
+ /**
659
+ * Trusted rehype plugins run after sanitising, KaTeX and heading slugs (e.g. a pass that turns
660
+ * entity ids into elements the host's `components` render). Keep the array referentially
661
+ * stable (module scope), or every block re-parses.
662
+ */
663
+ rehypePlugins?: PluggableList;
600
664
  }
601
- declare function MarkdownRendererComponent({ children, components: customComponents, renderCitation, isStreaming, className, testId, allowHtml, }: MarkdownRendererProps): React__default.JSX.Element;
665
+ declare function MarkdownRendererComponent({ children, components: customComponents, renderCitation, isStreaming, className, testId, allowHtml, rehypePlugins: extraRehypePlugins, }: MarkdownRendererProps): React__default.JSX.Element;
602
666
  /**
603
667
  * Memoised so a stable message in a long thread doesn't re-parse when unrelated
604
668
  * tokens arrive elsewhere; a streaming message gets a fresh `children` each flush
@@ -1489,6 +1553,21 @@ declare function getEntityColorStyles(entityId: string): {
1489
1553
  */
1490
1554
  declare const getWorkspaceColor: (workspaceId: string | undefined | null, useWorkspaceColors?: boolean) => string;
1491
1555
 
1556
+ type ShieldIconProps = {
1557
+ char?: string;
1558
+ size?: number;
1559
+ className?: string;
1560
+ workspaceColor?: string;
1561
+ isSelected?: boolean;
1562
+ } & React__default.SVGAttributes<SVGElement>;
1563
+ declare const ShieldIcon: React__default.FC<ShieldIconProps>;
1564
+
1565
+ /**
1566
+ * Returns inline styles for agent avatar border and text color,
1567
+ * matching the user's assigned bg color class.
1568
+ */
1569
+ declare function agentAvatarColors(bgColorClass: string): CSSProperties;
1570
+
1492
1571
  interface UserMenuItem {
1493
1572
  label: string;
1494
1573
  icon?: ComponentType<{
@@ -1594,4 +1673,4 @@ declare function DocumentCard({ doc, thumbnailUrl, status, selected, onToggleSel
1594
1673
 
1595
1674
  declare function cn(...inputs: ClassValue[]): string;
1596
1675
 
1597
- export { DropdownMenuItem as $, AgentBadge as A, BASE_COLORS as B, Card as C, CommandSeparator as D, CommandShortcut as E, Dialog as F, DialogClose as G, DialogContent as H, DialogDescription as I, DialogFooter as J, DialogHeader as K, DialogOverlay as L, DialogPortal as M, type DialogPresentation as N, DialogTitle as O, DialogTrigger as P, type DictateContextValue as Q, DictateProvider as R, DocumentCard as S, type DocumentCardProps as T, DocumentEntity as U, type DocumentEntityProps as V, type DocumentLike as W, DropdownMenu as X, DropdownMenuCheckboxItem as Y, DropdownMenuContent as Z, DropdownMenuGroup as _, AiMarkdown as a, SelectItem as a$, DropdownMenuLabel as a0, DropdownMenuPortal as a1, DropdownMenuRadioGroup as a2, DropdownMenuRadioItem as a3, DropdownMenuSeparator as a4, DropdownMenuShortcut as a5, DropdownMenuSub as a6, DropdownMenuSubContent as a7, DropdownMenuSubTrigger as a8, DropdownMenuTrigger as a9, MarkdownStreamingContext as aA, NEUTRAL_GRAY as aB, PLACEHOLDER_COLOR as aC, PassageCard as aD, type PassageCardProps as aE, Popover as aF, PopoverAnchor as aG, PopoverClose as aH, PopoverContent as aI, PopoverTrigger as aJ, PortalContainerProvider as aK, type PresenceDisplayStatus as aL, PresenceLabel as aM, Progress as aN, ProjectEntity as aO, type ProjectEntityProps as aP, type ProjectRelation as aQ, RadioGroup as aR, RadioGroupItem as aS, type Rag as aT, RagDot as aU, RelevanceDot as aV, ScrollArea as aW, ScrollBar as aX, Select as aY, SelectContent as aZ, SelectGroup as a_, ENTITY_MAPPINGS as aa, EntityIcon as ab, type EntityIconComponent as ac, EntityPill as ad, type EntityRegistryOverride as ae, type EntityType as af, HoverCard as ag, HoverCardContent as ah, HoverCardTrigger as ai, IconToggle as aj, type IconToggleProps as ak, type IdentityBusy as al, type IdentityProblem as am, type IdentityPurchase as an, type IdentityState as ao, type IdentityStatus as ap, type IdentityStep as aq, type IdentityVerificationFlow as ar, Input as as, type InputProps as at, Label as au, MarkMenu as av, type MarkMenuItem as aw, type MarkMenuProps as ax, MarkdownRenderer as ay, type MarkdownRendererProps as az, ArbiIcon as b, getEntityColorStyles as b$, SelectLabel as b0, SelectScrollDownButton as b1, SelectScrollUpButton as b2, SelectSeparator as b3, SelectTrigger as b4, SelectValue as b5, Separator as b6, Slider as b7, type StatusBadgeComponent as b8, type StatusBadgeProps as b9, ToggleGroupItem as bA, Tooltip as bB, TooltipContent as bC, TooltipProvider as bD, TooltipTrigger as bE, UserEntity as bF, type UserEntityProps as bG, UserMenu as bH, type UserMenuItem as bI, type UserMenuProps as bJ, type UserMenuStatus as bK, VISIBILITY_ICONS as bL, VerifiedBadge as bM, type VerifiedBadgeProps as bN, VisibilityIcon as bO, VisibilityToggle as bP, type VisibilityToggleProps as bQ, badgeVariants as bR, buttonVariants as bS, cardVariants as bT, closeOpenEmphasis as bU, cn as bV, configureEntityRegistry as bW, configureRagLabels as bX, configureStatusRegistry as bY, getDocIcon as bZ, getEntityColor as b_, StatusPill as ba, type StatusPillProps as bb, type StatusVariant as bc, Switch as bd, TAG_TYPE_ICONS as be, TAG_TYPE_LABELS as bf, Table as bg, TableBody as bh, TableCaption as bi, TableCell as bj, TableFooter as bk, TableHead as bl, TableHeader as bm, TableRow as bn, Tabs as bo, TabsContent as bp, TabsList as bq, TabsTrigger as br, TagEntity as bs, type TagEntityProps as bt, type TagLike as bu, Textarea as bv, type TextareaProps as bw, ThreadVisibilityIcon as bx, Toggle as by, ToggleGroup as bz, Avatar as c, getEntityIcon as c0, getEntityLabel as c1, getStatusVariant as c2, getTagTypeIcon as c3, getTagTypeLabel as c4, getWorkspaceColor as c5, markdownBaseComponents as c6, normalizeCitationMarkup as c7, splitMarkdownBlocks as c8, toggleVariants as c9, trimOpenCitation as ca, usePortalContainer as cb, AvatarFallback as d, AvatarImage as e, Badge as f, type BadgeProps as g, Button as h, type ButtonProps as i, CardContent as j, CardDescription as k, CardFooter as l, CardHeader as m, type CardProps as n, CardTitle as o, Checkbox as p, Collapsible as q, CollapsibleContent as r, CollapsibleTrigger as s, Command as t, CommandDialog as u, CommandEmpty as v, CommandGroup as w, CommandInput as x, CommandItem as y, CommandList as z };
1676
+ export { DropdownMenuContent as $, AgentBadge as A, BASE_COLORS as B, Card as C, CommandSeparator as D, CommandShortcut as E, DebouncedInput as F, type DebouncedInputProps as G, Dialog as H, DialogClose as I, DialogContent as J, DialogDescription as K, DialogFooter as L, DialogHeader as M, DialogOverlay as N, DialogPortal as O, type DialogPresentation as P, DialogTitle as Q, DialogTrigger as R, type DictateContextValue as S, DictateProvider as T, DocumentCard as U, type DocumentCardProps as V, DocumentEntity as W, type DocumentEntityProps as X, type DocumentLike as Y, DropdownMenu as Z, DropdownMenuCheckboxItem as _, AiMarkdown as a, ScrollBar 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, MarkdownCode as aA, MarkdownLink as aB, MarkdownRenderer as aC, type MarkdownRendererProps as aD, MarkdownStreamingContext as aE, NEUTRAL_GRAY as aF, PLACEHOLDER_COLOR as aG, PassageCard as aH, type PassageCardProps as aI, Popover as aJ, PopoverAnchor as aK, PopoverClose as aL, PopoverContent as aM, PopoverTrigger as aN, PortalContainerProvider as aO, type PresenceDisplayStatus as aP, PresenceLabel as aQ, Progress as aR, ProjectEntity as aS, type ProjectEntityProps as aT, type ProjectRelation as aU, RadioGroup as aV, RadioGroupItem as aW, type Rag as aX, RagDot as aY, RelevanceDot as aZ, ScrollArea as a_, DropdownMenuSubTrigger as aa, DropdownMenuTrigger as ab, ENTITY_MAPPINGS as ac, EntityIcon as ad, type EntityIconComponent as ae, EntityPill as af, type EntityRegistryOverride as ag, type EntityType as ah, HoverCard as ai, HoverCardContent as aj, HoverCardTrigger as ak, IconToggle as al, type IconToggleProps as am, type IdentityBusy as an, type IdentityProblem as ao, type IdentityPurchase as ap, type IdentityState as aq, type IdentityStatus as ar, type IdentityStep as as, type IdentityVerificationFlow as at, Input as au, type InputProps as av, Label as aw, MarkMenu as ax, type MarkMenuItem as ay, type MarkMenuProps as az, ArbiIcon as b, closeOpenEmphasis as b$, Select as b0, SelectContent as b1, SelectGroup as b2, SelectItem as b3, SelectLabel as b4, SelectScrollDownButton as b5, SelectScrollUpButton as b6, SelectSeparator as b7, SelectTrigger as b8, SelectValue as b9, type TagLike as bA, Textarea as bB, type TextareaProps as bC, ThreadVisibilityIcon as bD, Toggle as bE, ToggleGroup as bF, ToggleGroupItem as bG, Tooltip as bH, TooltipContent as bI, TooltipProvider as bJ, TooltipTrigger as bK, UserEntity as bL, type UserEntityProps as bM, UserMenu as bN, type UserMenuItem as bO, type UserMenuProps as bP, type UserMenuStatus as bQ, VISIBILITY_ICONS as bR, VerifiedBadge as bS, type VerifiedBadgeProps as bT, VisibilityIcon as bU, VisibilityToggle as bV, type VisibilityToggleProps as bW, agentAvatarColors as bX, badgeVariants as bY, buttonVariants as bZ, cardVariants as b_, Separator as ba, ShieldIcon as bb, type ShieldIconProps as bc, Slider as bd, type StatusBadgeComponent as be, type StatusBadgeProps as bf, StatusPill as bg, type StatusPillProps as bh, type StatusVariant as bi, Switch as bj, TAG_TYPE_ICONS as bk, TAG_TYPE_LABELS as bl, Table as bm, TableBody as bn, TableCaption as bo, TableCell as bp, TableFooter as bq, TableHead as br, TableHeader as bs, TableRow as bt, Tabs as bu, TabsContent as bv, TabsList as bw, TabsTrigger as bx, TagEntity as by, type TagEntityProps as bz, Avatar as c, cn as c0, configureEntityRegistry as c1, configureRagLabels as c2, configureStatusRegistry as c3, getDocIcon as c4, getEntityColor as c5, getEntityColorStyles as c6, getEntityIcon as c7, getEntityLabel as c8, getStatusVariant as c9, getTagTypeIcon as ca, getTagTypeLabel as cb, getWorkspaceColor as cc, markdownBaseComponents as cd, markdownSanitizeSchema as ce, normalizeCitationMarkup as cf, splitMarkdownBlocks as cg, toggleVariants as ch, trimOpenCitation as ci, usePortalContainer as cj, AvatarFallback as d, AvatarImage as e, Badge as f, type BadgeProps as g, Button as h, type ButtonProps as i, CardContent as j, CardDescription as k, CardFooter as l, CardHeader as m, type CardProps as n, CardTitle as o, Checkbox as p, Collapsible as q, CollapsibleContent as r, CollapsibleTrigger as s, Command as t, CommandDialog as u, CommandEmpty as v, CommandGroup as w, CommandInput as x, CommandItem as y, CommandList as z };