@arbidocs/react 0.4.122 → 0.4.123
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 +21 -21
- package/dist/artifacts/index.d.cts +8 -0
- package/dist/artifacts/index.d.ts +8 -0
- package/dist/artifacts/index.js +2 -2
- package/dist/{chunk-FLZ3OT2V.js → chunk-5PQO46PE.js} +5 -4
- package/dist/chunk-5PQO46PE.js.map +1 -0
- package/dist/{chunk-HKUD2NZN.js → chunk-74UTKIWQ.js} +4 -3
- package/dist/chunk-74UTKIWQ.js.map +1 -0
- package/dist/{chunk-A4ONEV57.cjs → chunk-GX75JCPR.cjs} +5 -3
- package/dist/chunk-GX75JCPR.cjs.map +1 -0
- package/dist/{chunk-T4IJHRRD.cjs → chunk-NUFEZBA5.cjs} +4 -3
- package/dist/chunk-NUFEZBA5.cjs.map +1 -0
- package/dist/document-tools/index.cjs +4 -4
- package/dist/document-tools/index.js +1 -1
- package/dist/{index-Bl_hqLiJ.d.cts → index-B1O2cqOo.d.cts} +3 -1
- package/dist/{index-Bl_hqLiJ.d.ts → index-B1O2cqOo.d.ts} +3 -1
- package/dist/index.cjs +185 -181
- package/dist/index.d.cts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +2 -2
- package/dist/ui/index.cjs +118 -114
- package/dist/ui/index.d.cts +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-A4ONEV57.cjs.map +0 -1
- package/dist/chunk-FLZ3OT2V.js.map +0 -1
- package/dist/chunk-HKUD2NZN.js.map +0 -1
- package/dist/chunk-T4IJHRRD.cjs.map +0 -1
|
@@ -28,7 +28,8 @@ function toArtifactVersions(docId, entries, currentVersion) {
|
|
|
28
28
|
number: e.n,
|
|
29
29
|
reason: e.reason ?? "upload",
|
|
30
30
|
isCurrent: current != null ? e.n === current : !!e.is_current,
|
|
31
|
-
savedFromId: savedFromId(docId, e)
|
|
31
|
+
savedFromId: savedFromId(docId, e),
|
|
32
|
+
thread: e.conversation_ext_id ? { conversationId: e.conversation_ext_id, messageId: e.source_message_ext_id ?? null } : null
|
|
32
33
|
}));
|
|
33
34
|
}
|
|
34
35
|
function documentVersions(doc) {
|
|
@@ -67,5 +68,5 @@ exports.savedFromId = savedFromId;
|
|
|
67
68
|
exports.toArtifactVersions = toArtifactVersions;
|
|
68
69
|
exports.versionLabel = versionLabel;
|
|
69
70
|
exports.versionRef = versionRef;
|
|
70
|
-
//# sourceMappingURL=chunk-
|
|
71
|
-
//# sourceMappingURL=chunk-
|
|
71
|
+
//# sourceMappingURL=chunk-NUFEZBA5.cjs.map
|
|
72
|
+
//# sourceMappingURL=chunk-NUFEZBA5.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/artifacts/versions.ts"],"names":["normalizeMarkdown","repairParsedStructure","repairParsedTitle","unescapeMarkdown"],"mappings":";;;;;;AAuDA,IAAM,WAAA,GAAc,qCAAA;AAGb,SAAS,UAAA,CAAW,OAAe,OAAA,EAAyB;AACjE,EAAA,OAAO,CAAA,EAAG,KAAK,CAAA,EAAA,EAAK,OAAO,CAAA,CAAA;AAC7B;AAMO,SAAS,gBAAgB,GAAA,EAG9B;AACA,EAAA,MAAM,KAAA,GAAQ,WAAA,CAAY,IAAA,CAAK,GAAA,IAAO,EAAE,CAAA;AACxC,EAAA,IAAI,CAAC,OAAO,OAAO,EAAE,OAAO,GAAA,IAAO,EAAA,EAAI,SAAS,IAAA,EAAK;AACrD,EAAA,OAAO,EAAE,KAAA,EAAO,KAAA,CAAM,CAAC,CAAA,EAAG,SAAS,MAAA,CAAO,KAAA,CAAM,CAAC,CAAC,CAAA,EAAE;AACtD;AAGO,SAAS,WAAA,CAAY,OAAe,KAAA,EAAuC;AAChF,EAAA,IAAI,MAAM,SAAA,EAAW,OAAO,UAAA,CAAW,KAAA,EAAO,MAAM,SAAS,CAAA;AAC7D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AAS,QAAA,EAAU,OAAO,IAAA;AAE/B,EAAA,OAAOA,mCAAA;AAAA,IACLC,uCAAA,CAAsBC,mCAAA,CAAkBC,kCAAA,CAAiB,IAAI,CAAC,CAAC;AAAA,GACjE,CAAE,OAAA,CAAQ,KAAA,EAAO,EAAE,CAAA;AACrB;AAGA,IAAM,MAAA,GAAS,MAAA;AAGR,SAAS,aAAa,EAAA,EAA6C;AACxE,EAAA,OAAO,CAAC,CAAC,EAAA,IAAM,MAAA,CAAO,KAAK,EAAE,CAAA;AAC/B","file":"chunk-NUFEZBA5.cjs","sourcesContent":["/**\n * Versions of a document. A document keeps ONE id for its whole life; its versions live inside it\n * (`current_version` + `versions`, numbered 1..n). A version is named by a version reference\n * `doc-…@v{n}`; a plain document id means its current version. The workspace list carries every\n * document's `versions`, and `GET /v1/document/{id}/versions` (`arbi.documents.versions`) the same\n * list on its own.\n */\n\nimport { repairParsedStructure, repairParsedTitle, unescapeMarkdown } from '../ai/stored-markdown'\nimport { normalizeMarkdown } from './normalize-markdown'\n\n/** One version entry as the API returns it (a subset of `DocVersion`). */\nexport interface DocVersionEntry {\n n: number\n file_name?: string | null\n created_at?: string | null\n reason?: string | null\n /** The version an edit started from, when it was not the previous one. */\n made_from?: number | null\n is_current?: boolean | null\n /** The assistant message whose turn made this version, and its thread (none: a person's). */\n source_message_ext_id?: string | null\n conversation_ext_id?: string | null\n}\n\n/** The fields of a workspace document the version list needs (a subset of the API type). */\nexport interface VersionedDoc {\n external_id?: string | null\n current_version?: number | null\n versions?: readonly DocVersionEntry[] | null\n file_name?: string | null\n created_at?: string | null\n}\n\n/** One row of a version list. Matches `VersionEntry` of `@arbidocs/blocks/artifacts`. */\nexport interface ArtifactVersion {\n /** The version reference `doc-…@v{n}`: what opening or comparing this version names. */\n id: string\n /** The document (the same for every version). */\n docId: string\n /** File name as stored. */\n name: string\n /** ISO timestamp. */\n createdAt: string\n /** 1-based version number within the document. */\n number: number\n /** upload | edit | signed | sync */\n reason: string\n isCurrent: boolean\n /** The version this one was saved from (an older one than the previous version when restored). */\n savedFromId?: string | null\n /** The thread (and its message) whose turn made this version; none for a person's. */\n thread?: { conversationId: string; messageId: string | null } | null\n}\n\nconst VERSION_REF = /^(doc-[A-Za-z0-9]+)@v([1-9][0-9]*)$/\n\n/** `doc-…@v{n}`: a reference to version `n` of a document. */\nexport function versionRef(docId: string, version: number): string {\n return `${docId}@v${version}`\n}\n\n/**\n * Split a reference into the document and the version it names. A plain document id (or anything\n * else) names no version: the document's current one.\n */\nexport function parseVersionRef(ref: string | null | undefined): {\n docId: string\n version: number | null\n} {\n const match = VERSION_REF.exec(ref ?? '')\n if (!match) return { docId: ref ?? '', version: null }\n return { docId: match[1], version: Number(match[2]) }\n}\n\n/** The version a version was saved from: `made_from`, else the one before it. */\nexport function savedFromId(docId: string, entry: DocVersionEntry): string | null {\n if (entry.made_from) return versionRef(docId, entry.made_from)\n return entry.n > 1 ? versionRef(docId, entry.n - 1) : null\n}\n\n/** A document's version entries (oldest first) as plain version rows. */\nexport function toArtifactVersions(\n docId: string | null | undefined,\n entries: readonly DocVersionEntry[] | null | undefined,\n currentVersion?: number | null\n): ArtifactVersion[] {\n if (!docId) return []\n const current = currentVersion ?? entries?.find((e) => e.is_current)?.n ?? null\n return [...(entries ?? [])]\n .sort((a, b) => a.n - b.n)\n .map((e) => ({\n id: versionRef(docId, e.n),\n docId,\n name: e.file_name ?? '',\n createdAt: e.created_at ?? '',\n number: e.n,\n reason: e.reason ?? 'upload',\n isCurrent: current != null ? e.n === current : !!e.is_current,\n savedFromId: savedFromId(docId, e),\n thread: e.conversation_ext_id\n ? { conversationId: e.conversation_ext_id, messageId: e.source_message_ext_id ?? null }\n : null,\n }))\n}\n\n/** The versions of a listed document, oldest first (`[]` when the document is not given). */\nexport function documentVersions(doc: VersionedDoc | null | undefined): ArtifactVersion[] {\n if (!doc?.external_id) return []\n const entries = doc.versions?.length\n ? doc.versions\n : [{ n: doc.current_version ?? 1, file_name: doc.file_name, created_at: doc.created_at }]\n return toArtifactVersions(doc.external_id, entries, doc.current_version ?? null)\n}\n\n/** The row `ref` names: an exact version, or (a plain document id) the current version. */\nexport function findVersion(\n versions: readonly ArtifactVersion[],\n ref: string | null | undefined\n): ArtifactVersion | undefined {\n if (!ref) return undefined\n const { docId, version } = parseVersionRef(ref)\n return version == null\n ? versions.find((v) => v.docId === docId && v.isCurrent)\n : versions.find((v) => v.docId === docId && v.number === version)\n}\n\n/**\n * \"v2\": the version number `ref` names. `null` when there is nothing to tell apart (the document\n * has a single version, or it is unknown), so unversioned documents stay unlabelled.\n */\nexport function versionLabel(\n versions: readonly ArtifactVersion[],\n ref: string | null | undefined\n): string | null {\n if (!ref || versions.length <= 1) return null\n const version = findVersion(versions, ref)\n return version ? `v${version.number}` : null\n}\n\n/**\n * Join parsed chunks into one markdown text (blank line between chunks).\n *\n * `unescape: true` for an artifact stored from markdown: the backend's parse of a `.md` escapes\n * markdown punctuation, which `unescapeMarkdown` undoes (see its rule), and mangles its title\n * (`repairParsedTitle`, `repairParsedStructure`: doubled headings, `- ` stacked on list markers,\n * one-line tables), then normalised. Leave it off for the parse\n * of a PDF or Word file.\n */\nexport function flattenChunks(\n chunks: readonly { content?: string | null }[] | null | undefined,\n options?: { unescape?: boolean }\n): string {\n const text = (chunks ?? []).map((c) => (c.content ?? '').trim()).join('\\n\\n')\n if (!options?.unescape) return text\n // Canonical spelling last, so the text an editor starts from is what a save would persist.\n return normalizeMarkdown(\n repairParsedStructure(repairParsedTitle(unescapeMarkdown(text)))\n ).replace(/\\n$/, '')\n}\n\n/** The backend's pattern for a document id. Anything else (a streamed draft's placeholder) is local. */\nconst DOC_ID = /^doc/\n\n/** Is `id` a real, saved document id? Local drafts have placeholder ids and no backend document. */\nexport function isDocumentId(id: string | null | undefined): id is string {\n return !!id && DOC_ID.test(id)\n}\n"]}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkL2PXZWJM_cjs = require('../chunk-L2PXZWJM.cjs');
|
|
4
4
|
var chunkSSOPIPEX_cjs = require('../chunk-SSOPIPEX.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkNUFEZBA5_cjs = require('../chunk-NUFEZBA5.cjs');
|
|
6
6
|
require('../chunk-5DCRIWCA.cjs');
|
|
7
7
|
require('../chunk-VOFNX4P6.cjs');
|
|
8
8
|
require('../chunk-WYZJLZ67.cjs');
|
|
@@ -119,7 +119,7 @@ var DocumentFetchError = class extends Error {
|
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
121
|
async function fetchDocumentBytes(client, endpoint, documentRef, options, headers, what) {
|
|
122
|
-
const ref =
|
|
122
|
+
const ref = chunkNUFEZBA5_cjs.parseVersionRef(documentRef);
|
|
123
123
|
const version = options.version ?? ref.version;
|
|
124
124
|
const { data, response } = await client.GET(endpoint, {
|
|
125
125
|
params: { path: { document_ext_id: ref.docId }, query: version ? { version } : {} },
|
|
@@ -719,7 +719,7 @@ function errorDetail(error, fallback) {
|
|
|
719
719
|
return typeof detail2 === "string" ? detail2 : fallback;
|
|
720
720
|
}
|
|
721
721
|
async function fetchDocumentSignatures(client, documentRef) {
|
|
722
|
-
const { docId, version } =
|
|
722
|
+
const { docId, version } = chunkNUFEZBA5_cjs.parseVersionRef(documentRef);
|
|
723
723
|
const { data, error } = await client.GET(SIGNATURES_PATH, {
|
|
724
724
|
params: { path: { document_ext_id: docId }, ...version ? { query: { version } } : {} }
|
|
725
725
|
});
|
|
@@ -728,7 +728,7 @@ async function fetchDocumentSignatures(client, documentRef) {
|
|
|
728
728
|
}
|
|
729
729
|
function useDocumentSignatures(documentId, enabled = true) {
|
|
730
730
|
const { client } = useDocumentTools();
|
|
731
|
-
const { docId, version } =
|
|
731
|
+
const { docId, version } = chunkNUFEZBA5_cjs.parseVersionRef(documentId);
|
|
732
732
|
return reactQuery.useQuery({
|
|
733
733
|
queryKey: [
|
|
734
734
|
...SIGNATURES_KEY,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { mergeLayers, AnnotationStoreOfflineError } from '../chunk-IHTBAY57.js';
|
|
2
2
|
import { parseLayer, emptyLayer, LAYER_SCHEMA_VERSION } from '../chunk-COWZGCL5.js';
|
|
3
|
-
import { parseVersionRef } from '../chunk-
|
|
3
|
+
import { parseVersionRef } from '../chunk-74UTKIWQ.js';
|
|
4
4
|
import '../chunk-G6FHNURH.js';
|
|
5
5
|
import '../chunk-WUTL62MC.js';
|
|
6
6
|
import '../chunk-YNNAJJ5Z.js';
|
|
@@ -407,6 +407,8 @@ declare const PopoverAnchor: React$1.ForwardRefExoticComponent<PopoverPrimitive.
|
|
|
407
407
|
declare const PopoverContent: React$1.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
408
408
|
container?: HTMLElement | null;
|
|
409
409
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
410
|
+
/** Closes the popover it is in (wrap an action that should close it with `asChild`). */
|
|
411
|
+
declare const PopoverClose: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
410
412
|
|
|
411
413
|
/** One row of a mark's menu. Give it `onSelect`, or an `href` for a real link row. */
|
|
412
414
|
interface MarkMenuItem {
|
|
@@ -1592,4 +1594,4 @@ declare function DocumentCard({ doc, thumbnailUrl, status, selected, onToggleSel
|
|
|
1592
1594
|
|
|
1593
1595
|
declare function cn(...inputs: ClassValue[]): string;
|
|
1594
1596
|
|
|
1595
|
-
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,
|
|
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 };
|
|
@@ -407,6 +407,8 @@ declare const PopoverAnchor: React$1.ForwardRefExoticComponent<PopoverPrimitive.
|
|
|
407
407
|
declare const PopoverContent: React$1.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
408
408
|
container?: HTMLElement | null;
|
|
409
409
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
410
|
+
/** Closes the popover it is in (wrap an action that should close it with `asChild`). */
|
|
411
|
+
declare const PopoverClose: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
410
412
|
|
|
411
413
|
/** One row of a mark's menu. Give it `onSelect`, or an `href` for a real link row. */
|
|
412
414
|
interface MarkMenuItem {
|
|
@@ -1592,4 +1594,4 @@ declare function DocumentCard({ doc, thumbnailUrl, status, selected, onToggleSel
|
|
|
1592
1594
|
|
|
1593
1595
|
declare function cn(...inputs: ClassValue[]): string;
|
|
1594
1596
|
|
|
1595
|
-
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,
|
|
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 };
|