@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.
- package/dist/artifacts/index.cjs +20 -2
- package/dist/artifacts/index.cjs.map +1 -1
- package/dist/artifacts/index.d.cts +17 -1
- package/dist/artifacts/index.d.ts +17 -1
- package/dist/artifacts/index.js +17 -2
- package/dist/artifacts/index.js.map +1 -1
- package/dist/{chunk-GX75JCPR.cjs → chunk-65WT5PHA.cjs} +361 -189
- package/dist/chunk-65WT5PHA.cjs.map +1 -0
- package/dist/{chunk-ECOSGMTW.js → chunk-6AWF4HFU.js} +14 -6
- package/dist/chunk-6AWF4HFU.js.map +1 -0
- package/dist/chunk-6JSXDLIQ.js +101 -0
- package/dist/chunk-6JSXDLIQ.js.map +1 -0
- package/dist/{chunk-F7KQVVD2.cjs → chunk-BOJHNPNJ.cjs} +14 -6
- package/dist/chunk-BOJHNPNJ.cjs.map +1 -0
- package/dist/{chunk-EKRRORFO.js → chunk-C44GO33B.js} +105 -46
- package/dist/chunk-C44GO33B.js.map +1 -0
- package/dist/{chunk-5PQO46PE.js → chunk-J3BYHBKW.js} +358 -189
- package/dist/chunk-J3BYHBKW.js.map +1 -0
- package/dist/{chunk-TBELZWGV.cjs → chunk-OC7F5SNA.cjs} +108 -44
- package/dist/chunk-OC7F5SNA.cjs.map +1 -0
- package/dist/chunk-S7J5SCTZ.cjs +110 -0
- package/dist/chunk-S7J5SCTZ.cjs.map +1 -0
- package/dist/document-tools/index.cjs +72 -124
- package/dist/document-tools/index.cjs.map +1 -1
- package/dist/document-tools/index.d.cts +16 -4
- package/dist/document-tools/index.d.ts +16 -4
- package/dist/document-tools/index.js +30 -106
- package/dist/document-tools/index.js.map +1 -1
- package/dist/{index-B1O2cqOo.d.cts → index-2Y2MVegs.d.cts} +85 -6
- package/dist/{index-B1O2cqOo.d.ts → index-2Y2MVegs.d.ts} +85 -6
- package/dist/index.cjs +250 -211
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +33 -8
- package/dist/index.d.ts +33 -8
- package/dist/index.js +24 -10
- package/dist/index.js.map +1 -1
- package/dist/shell/index.cjs +6 -6
- package/dist/shell/index.js +1 -1
- package/dist/ui/index.cjs +152 -128
- package/dist/ui/index.d.cts +2 -1
- package/dist/ui/index.d.ts +2 -1
- package/dist/ui/index.js +3 -3
- package/dist/viewers/index.cjs +91 -0
- package/dist/viewers/index.cjs.map +1 -1
- package/dist/viewers/index.d.cts +62 -1
- package/dist/viewers/index.d.ts +62 -1
- package/dist/viewers/index.js +90 -1
- package/dist/viewers/index.js.map +1 -1
- package/package.json +8 -3
- package/dist/chunk-5PQO46PE.js.map +0 -1
- package/dist/chunk-ECOSGMTW.js.map +0 -1
- package/dist/chunk-EKRRORFO.js.map +0 -1
- package/dist/chunk-F7KQVVD2.cjs.map +0 -1
- package/dist/chunk-GX75JCPR.cjs.map +0 -1
- 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
|
|
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 {
|
|
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
|
|
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 {
|
|
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 };
|