@arbidocs/react 0.4.167 → 0.4.169
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 +15 -12
- package/dist/artifacts/index.cjs.map +1 -1
- package/dist/artifacts/index.js +6 -3
- package/dist/artifacts/index.js.map +1 -1
- package/dist/calls/livekit/index.cjs +977 -0
- package/dist/calls/livekit/index.cjs.map +1 -0
- package/dist/calls/livekit/index.d.cts +280 -0
- package/dist/calls/livekit/index.d.ts +280 -0
- package/dist/calls/livekit/index.js +961 -0
- package/dist/calls/livekit/index.js.map +1 -0
- package/dist/{chunk-ON4PL6DQ.cjs → chunk-2M4B4FFA.cjs} +48 -4
- package/dist/chunk-2M4B4FFA.cjs.map +1 -0
- package/dist/chunk-3NVSUYUV.js +528 -0
- package/dist/chunk-3NVSUYUV.js.map +1 -0
- package/dist/{chunk-QJHCVQ6C.js → chunk-3WIBD44F.js} +4734 -4673
- package/dist/chunk-3WIBD44F.js.map +1 -0
- package/dist/chunk-5HDC43MF.js +145 -0
- package/dist/chunk-5HDC43MF.js.map +1 -0
- package/dist/{chunk-D66JCVBB.cjs → chunk-7NHOKV7N.cjs} +4093 -4040
- package/dist/chunk-7NHOKV7N.cjs.map +1 -0
- package/dist/chunk-7NY2J3TR.js +986 -0
- package/dist/chunk-7NY2J3TR.js.map +1 -0
- package/dist/chunk-APZZQZ6P.js +147 -0
- package/dist/chunk-APZZQZ6P.js.map +1 -0
- package/dist/{chunk-I5ZBQ63Y.js → chunk-DGMK3EUN.js} +188 -181
- package/dist/chunk-DGMK3EUN.js.map +1 -0
- package/dist/chunk-DPYBZDJB.js +18 -0
- package/dist/chunk-DPYBZDJB.js.map +1 -0
- package/dist/chunk-EEIYXVM4.cjs +181 -0
- package/dist/chunk-EEIYXVM4.cjs.map +1 -0
- package/dist/chunk-GGYCK5A6.cjs +1035 -0
- package/dist/chunk-GGYCK5A6.cjs.map +1 -0
- package/dist/{chunk-JSSKEXRR.js → chunk-KGCGA452.js} +2 -2
- package/dist/chunk-KGCGA452.js.map +1 -0
- package/dist/chunk-N73IMVFF.cjs +21 -0
- package/dist/chunk-N73IMVFF.cjs.map +1 -0
- package/dist/chunk-NVAIVJID.js +298 -0
- package/dist/chunk-NVAIVJID.js.map +1 -0
- package/dist/{chunk-GTJ667CP.cjs → chunk-QQ7SCJRY.cjs} +2 -2
- package/dist/chunk-QQ7SCJRY.cjs.map +1 -0
- package/dist/chunk-S4PCA3ES.cjs +572 -0
- package/dist/chunk-S4PCA3ES.cjs.map +1 -0
- package/dist/chunk-VAMPYLQ4.cjs +157 -0
- package/dist/chunk-VAMPYLQ4.cjs.map +1 -0
- package/dist/chunk-VLK52VXC.cjs +307 -0
- package/dist/chunk-VLK52VXC.cjs.map +1 -0
- package/dist/chunk-VPKFUYGW.cjs +2551 -0
- package/dist/chunk-VPKFUYGW.cjs.map +1 -0
- package/dist/chunk-W6DYNLA2.js +2362 -0
- package/dist/chunk-W6DYNLA2.js.map +1 -0
- package/dist/{chunk-SVHGCX25.js → chunk-YWYCEEBF.js} +43 -4
- package/dist/chunk-YWYCEEBF.js.map +1 -0
- package/dist/{chunk-EUC2BTNS.cjs → chunk-ZI2VJOID.cjs} +206 -199
- package/dist/chunk-ZI2VJOID.cjs.map +1 -0
- package/dist/document-tools/index.cjs +79 -107
- package/dist/document-tools/index.cjs.map +1 -1
- package/dist/document-tools/index.d.cts +4 -5
- package/dist/document-tools/index.d.ts +4 -5
- package/dist/document-tools/index.js +23 -68
- package/dist/document-tools/index.js.map +1 -1
- package/dist/index.cjs +12650 -9452
- package/dist/index.cjs.map +1 -1
- package/dist/{index.d-DfCFKora.d.cts → index.d-Bvp6rKNo.d.cts} +139 -1
- package/dist/{index.d-DfCFKora.d.ts → index.d-Bvp6rKNo.d.ts} +139 -1
- package/dist/{index.d-DCjYj7YK.d.ts → index.d-Dx9sGkW2.d.cts} +20 -8
- package/dist/{index.d-DCjYj7YK.d.cts → index.d-Dx9sGkW2.d.ts} +20 -8
- package/dist/index.d.cts +5465 -2291
- package/dist/index.d.ts +5465 -2291
- package/dist/index.js +11047 -8858
- package/dist/index.js.map +1 -1
- package/dist/query-keys.d-Kw0JMoff.d.cts +308 -0
- package/dist/query-keys.d-Kw0JMoff.d.ts +308 -0
- package/dist/shell/index.cjs +78 -21
- package/dist/shell/index.d.cts +1 -1
- package/dist/shell/index.d.ts +1 -1
- package/dist/shell/index.js +6 -1
- package/dist/ui/index.cjs +191 -186
- package/dist/ui/index.d.cts +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +3 -2
- package/dist/useAudioRecorder.d-CWFDsb_S.d.cts +778 -0
- package/dist/useAudioRecorder.d-CWFDsb_S.d.ts +778 -0
- package/dist/viewers/index.cjs +22 -13
- package/dist/viewers/index.cjs.map +1 -1
- package/dist/viewers/index.js +21 -12
- package/dist/viewers/index.js.map +1 -1
- package/package.json +13 -3
- package/dist/chunk-6MTKKT2O.cjs +0 -999
- package/dist/chunk-6MTKKT2O.cjs.map +0 -1
- package/dist/chunk-CEZCFQ47.js +0 -932
- package/dist/chunk-CEZCFQ47.js.map +0 -1
- package/dist/chunk-D66JCVBB.cjs.map +0 -1
- package/dist/chunk-EUC2BTNS.cjs.map +0 -1
- package/dist/chunk-GTJ667CP.cjs.map +0 -1
- package/dist/chunk-I5ZBQ63Y.js.map +0 -1
- package/dist/chunk-JSSKEXRR.js.map +0 -1
- package/dist/chunk-ON4PL6DQ.cjs.map +0 -1
- package/dist/chunk-QJHCVQ6C.js.map +0 -1
- package/dist/chunk-SVHGCX25.js.map +0 -1
|
@@ -49,6 +49,144 @@ type HostConfigRecord = Readonly<Record<string, unknown>>;
|
|
|
49
49
|
/** The host configuration in scope, untyped (`{}` outside an `<ArbiHost>`). */
|
|
50
50
|
declare function useHostConfigRecord(): HostConfigRecord;
|
|
51
51
|
|
|
52
|
+
/**
|
|
53
|
+
* @mentions in chat text: pure helpers shared by the composer (autocomplete, extraction) and
|
|
54
|
+
* the message renderer (chips). No React, no SDK.
|
|
55
|
+
*
|
|
56
|
+
* A mention lives in two places: the readable `@Label` text in the message content, and a
|
|
57
|
+
* structured entry on the message (`{ type, user_ext_id, label }`) that the server reads to share
|
|
58
|
+
* the conversation and notify. The composer only ever inserts `@<label>` for a known candidate,
|
|
59
|
+
* so the structured list can be recovered from the text at send time ({@link extractMentions});
|
|
60
|
+
* the renderer turns each stored mention back into a chip ({@link linkMentions}).
|
|
61
|
+
*/
|
|
62
|
+
/** Who can be mentioned: a workspace member, or the assistant. */
|
|
63
|
+
type MentionKind = 'user' | 'assistant';
|
|
64
|
+
/** One entry of the mention autocomplete. */
|
|
65
|
+
interface MentionCandidate {
|
|
66
|
+
/** User external id (`usr-…`) for a person; any stable key (e.g. `assistant`) for the assistant. */
|
|
67
|
+
id: string;
|
|
68
|
+
kind: MentionKind;
|
|
69
|
+
/** Inserted as `@<label>`. For people this must be the server's display name (given + family). */
|
|
70
|
+
label: string;
|
|
71
|
+
/** Secondary line in the menu (email, role, …). */
|
|
72
|
+
description?: string;
|
|
73
|
+
}
|
|
74
|
+
/** The structured mention a message carries (the API's `MessageMention`). */
|
|
75
|
+
interface MessageMentionRef {
|
|
76
|
+
type: MentionKind;
|
|
77
|
+
user_ext_id?: string | null;
|
|
78
|
+
label?: string | null;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* The `@query` the caret is in, if any: the `@` must start the text or follow whitespace, and the
|
|
82
|
+
* query may contain spaces (names do) but no newline. Returns the index of the `@` and the query.
|
|
83
|
+
*/
|
|
84
|
+
declare function findMentionQuery(text: string, caret: number): {
|
|
85
|
+
start: number;
|
|
86
|
+
query: string;
|
|
87
|
+
} | null;
|
|
88
|
+
/** Candidates matching a query: label prefix (or word-prefix) matches, prefix matches first. */
|
|
89
|
+
declare function filterMentionCandidates(candidates: ReadonlyArray<MentionCandidate>, query: string): MentionCandidate[];
|
|
90
|
+
/** Replace the `@query` at `start…caret` with `@<label> `; returns the new text and caret. */
|
|
91
|
+
declare function insertMention(text: string, start: number, caret: number, label: string): {
|
|
92
|
+
text: string;
|
|
93
|
+
caret: number;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* The candidates mentioned in `text`, in order of first appearance. Longer labels win overlaps,
|
|
97
|
+
* so `@Bob Smith` is Bob Smith, not a separate `@Bob`.
|
|
98
|
+
*/
|
|
99
|
+
declare function extractMentions(text: string, candidates: ReadonlyArray<MentionCandidate>): MentionCandidate[];
|
|
100
|
+
/** The API payload for mentioned candidates. */
|
|
101
|
+
declare function toMessageMentions(mentioned: ReadonlyArray<MentionCandidate>): MessageMentionRef[];
|
|
102
|
+
/** Fragment prefix of the links {@link linkMentions} writes. */
|
|
103
|
+
declare const MENTION_HREF_PREFIX = "#mention-";
|
|
104
|
+
/**
|
|
105
|
+
* Turn each stored mention's `@<label>` in `content` into a markdown link
|
|
106
|
+
* `[@<label>](#mention-<id>)`, so a markdown renderer can draw it as a chip (see
|
|
107
|
+
* {@link mentionFromHref}). Text that no longer matches (a renamed user) stays plain text.
|
|
108
|
+
* `assistantLabels` lists other names the assistant may have been mentioned by.
|
|
109
|
+
*/
|
|
110
|
+
declare function linkMentions(content: string, mentions: ReadonlyArray<MessageMentionRef> | null | undefined, assistantLabels?: ReadonlyArray<string>): string;
|
|
111
|
+
/** The mention a `#mention-…` href points at, or null for any other href. */
|
|
112
|
+
declare function mentionFromHref(href: string | null | undefined): {
|
|
113
|
+
kind: MentionKind;
|
|
114
|
+
id: string;
|
|
115
|
+
} | null;
|
|
116
|
+
/** A recipient alone is not a message. */
|
|
117
|
+
declare function hasMessageBody(value: string, recipientLabel?: string): boolean;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Drafting mode: the saved document open beside the chat is what a chat turn is about.
|
|
121
|
+
*
|
|
122
|
+
* A viewer registers the document it shows (`useRegisterOpenDocument`); every assistant turn names
|
|
123
|
+
* it (`active_artifact_ext_id`, read with `takeOpenDocumentForTurn` as the question is sent), so the
|
|
124
|
+
* server binds the live document to the turn: a Word document is read on demand and edited as
|
|
125
|
+
* tracked changes in the open editor, and what the assistant saves becomes a child version of it.
|
|
126
|
+
* The request carries a reference, never the content.
|
|
127
|
+
*
|
|
128
|
+
* The open document is always the subject, also while one of its earlier versions is on screen
|
|
129
|
+
* read-only: a version still names its document. Sending a turn then returns the viewer to the live
|
|
130
|
+
* document (`showLive`), where the assistant's edits appear as they are made. (Pinning a specific
|
|
131
|
+
* version as a source is a separate feature: it does not go through here.)
|
|
132
|
+
*
|
|
133
|
+
* A module-level registry (not React context), like `useChatSurface`, so a viewer and a chat agree
|
|
134
|
+
* wherever they sit in the tree; the most recently opened document wins and closing it hands back
|
|
135
|
+
* to the one before. It is not the session state's viewing document (`useArbiSessionState`): it
|
|
136
|
+
* holds what mounted viewers can draft in (saved documents only, with the callback that shows the
|
|
137
|
+
* live one again), and a turn reads it outside React. A viewer on the session's viewing document
|
|
138
|
+
* passes that as `shownId` (it may be a version reference, resolved here the same way as
|
|
139
|
+
* `selectViewingDocumentId` does).
|
|
140
|
+
*/
|
|
141
|
+
/** What a viewer knows about the document it shows. */
|
|
142
|
+
interface SavedDocumentInput {
|
|
143
|
+
/** The document (`doc-…`), never a version reference. */
|
|
144
|
+
documentId: string | null | undefined;
|
|
145
|
+
/** An unsaved draft (client-minted id, no backend record). */
|
|
146
|
+
isDraft: boolean;
|
|
147
|
+
/** Still streaming: nothing is persisted yet. */
|
|
148
|
+
isStreaming: boolean;
|
|
149
|
+
/** An image, audio or video artifact: there is no text to draft in. */
|
|
150
|
+
isBlobArtifact: boolean;
|
|
151
|
+
/** The loaded document record. */
|
|
152
|
+
documentData: {
|
|
153
|
+
external_id?: string | null;
|
|
154
|
+
wp_type?: string | null;
|
|
155
|
+
file_name?: string | null;
|
|
156
|
+
} | null | undefined;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* The saved, content-backed document a chat can draft in, or null. Only a saved artifact or Word
|
|
160
|
+
* document counts: drafts, an artifact still streaming and blob artifacts do not.
|
|
161
|
+
*/
|
|
162
|
+
declare function savedDocumentIdFor(input: SavedDocumentInput): string | null;
|
|
163
|
+
interface OpenDocumentRegistration {
|
|
164
|
+
/** The saved document the viewer shows (`doc-…`); null or empty registers nothing. */
|
|
165
|
+
documentId: string | null | undefined;
|
|
166
|
+
/** What is on screen: the document itself, or one of its earlier versions (`doc-…@v2`). */
|
|
167
|
+
shownId?: string | null;
|
|
168
|
+
/** Show the live document again. Called when a turn starts while an earlier version is shown. */
|
|
169
|
+
showLive?: () => void;
|
|
170
|
+
/** The workspace the document belongs to; a chat in another workspace does not draft in it. */
|
|
171
|
+
workspaceId?: string | null;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Registers the document a viewer shows as the open document while the caller is mounted and
|
|
175
|
+
* `documentId` is set. Pass `savedDocumentIdFor(...)`, or the id of a document known to be saved.
|
|
176
|
+
*/
|
|
177
|
+
declare function useRegisterOpenDocument(registration: OpenDocumentRegistration): void;
|
|
178
|
+
/** The open document's id, or null. Re-renders when another document opens or it closes. */
|
|
179
|
+
declare function useOpenDocumentId(): string | null;
|
|
180
|
+
/**
|
|
181
|
+
* The document an assistant turn about to be sent drafts in, or null. Call it once per turn as the
|
|
182
|
+
* question is sent: when an earlier version of the document is on screen, the viewer returns to the
|
|
183
|
+
* live document, where the assistant's edits appear. With `workspaceId`, a document registered in
|
|
184
|
+
* another workspace is not named (and its viewer is left alone).
|
|
185
|
+
*/
|
|
186
|
+
declare function takeOpenDocumentForTurn(options?: {
|
|
187
|
+
workspaceId?: string | null;
|
|
188
|
+
}): string | null;
|
|
189
|
+
|
|
52
190
|
/**
|
|
53
191
|
* A search's state outside any component: the query last searched, its passages, and whether it
|
|
54
192
|
* is running. A page that shows the shared session (`sharedSearchSession`) keeps its results when
|
|
@@ -249,4 +387,4 @@ declare function NotificationBell({ renderTrigger, onNavigate, onSelectNotificat
|
|
|
249
387
|
|
|
250
388
|
declare function Toaster({ toastOptions, ...props }: ToasterProps): React$1.JSX.Element;
|
|
251
389
|
|
|
252
|
-
export { type AppNotification as A, DEFAULT_NOTIFY_TONE as D, type HostConfigRecord as H, MAX_SESSION_NOTIFICATIONS as M, NotificationBell as N, type
|
|
390
|
+
export { type AppNotification as A, persistNotifyHistory as B, persistSearchSession as C, DEFAULT_NOTIFY_TONE as D, requestSearch as E, savedDocumentIdFor as F, seedNotifications as G, type HostConfigRecord as H, selectUnread as I, sharedSearchSession as J, takeOpenDocumentForTurn as K, takePendingSearch as L, MAX_SESSION_NOTIFICATIONS as M, NotificationBell as N, type OpenDocumentRegistration as O, toMessageMentions as P, useHostConfigRecord as Q, useNotify as R, type SavedDocumentInput as S, Toaster as T, useOpenDocumentId as U, useRegisterOpenDocument as V, ArbiHost as a, type ArbiHostConnection as b, type ArbiHostProps as c, MENTION_HREF_PREFIX as d, type MentionCandidate as e, type MentionKind as f, type MessageMentionRef as g, type NotificationBellProps as h, type NotificationBellTriggerState as i, type NotifyConfig as j, type NotifyOptions as k, type NotifyVariant as l, type SearchSession as m, type SearchSessionState as n, type SearchStatus as o, clearSearchSession as p, configureNotify as q, createSearchSession as r, extractMentions as s, filterMentionCandidates as t, findMentionQuery as u, hasMessageBody as v, insertMention as w, linkMentions as x, mentionFromHref as y, notify as z };
|
|
@@ -49,6 +49,144 @@ type HostConfigRecord = Readonly<Record<string, unknown>>;
|
|
|
49
49
|
/** The host configuration in scope, untyped (`{}` outside an `<ArbiHost>`). */
|
|
50
50
|
declare function useHostConfigRecord(): HostConfigRecord;
|
|
51
51
|
|
|
52
|
+
/**
|
|
53
|
+
* @mentions in chat text: pure helpers shared by the composer (autocomplete, extraction) and
|
|
54
|
+
* the message renderer (chips). No React, no SDK.
|
|
55
|
+
*
|
|
56
|
+
* A mention lives in two places: the readable `@Label` text in the message content, and a
|
|
57
|
+
* structured entry on the message (`{ type, user_ext_id, label }`) that the server reads to share
|
|
58
|
+
* the conversation and notify. The composer only ever inserts `@<label>` for a known candidate,
|
|
59
|
+
* so the structured list can be recovered from the text at send time ({@link extractMentions});
|
|
60
|
+
* the renderer turns each stored mention back into a chip ({@link linkMentions}).
|
|
61
|
+
*/
|
|
62
|
+
/** Who can be mentioned: a workspace member, or the assistant. */
|
|
63
|
+
type MentionKind = 'user' | 'assistant';
|
|
64
|
+
/** One entry of the mention autocomplete. */
|
|
65
|
+
interface MentionCandidate {
|
|
66
|
+
/** User external id (`usr-…`) for a person; any stable key (e.g. `assistant`) for the assistant. */
|
|
67
|
+
id: string;
|
|
68
|
+
kind: MentionKind;
|
|
69
|
+
/** Inserted as `@<label>`. For people this must be the server's display name (given + family). */
|
|
70
|
+
label: string;
|
|
71
|
+
/** Secondary line in the menu (email, role, …). */
|
|
72
|
+
description?: string;
|
|
73
|
+
}
|
|
74
|
+
/** The structured mention a message carries (the API's `MessageMention`). */
|
|
75
|
+
interface MessageMentionRef {
|
|
76
|
+
type: MentionKind;
|
|
77
|
+
user_ext_id?: string | null;
|
|
78
|
+
label?: string | null;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* The `@query` the caret is in, if any: the `@` must start the text or follow whitespace, and the
|
|
82
|
+
* query may contain spaces (names do) but no newline. Returns the index of the `@` and the query.
|
|
83
|
+
*/
|
|
84
|
+
declare function findMentionQuery(text: string, caret: number): {
|
|
85
|
+
start: number;
|
|
86
|
+
query: string;
|
|
87
|
+
} | null;
|
|
88
|
+
/** Candidates matching a query: label prefix (or word-prefix) matches, prefix matches first. */
|
|
89
|
+
declare function filterMentionCandidates(candidates: ReadonlyArray<MentionCandidate>, query: string): MentionCandidate[];
|
|
90
|
+
/** Replace the `@query` at `start…caret` with `@<label> `; returns the new text and caret. */
|
|
91
|
+
declare function insertMention(text: string, start: number, caret: number, label: string): {
|
|
92
|
+
text: string;
|
|
93
|
+
caret: number;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* The candidates mentioned in `text`, in order of first appearance. Longer labels win overlaps,
|
|
97
|
+
* so `@Bob Smith` is Bob Smith, not a separate `@Bob`.
|
|
98
|
+
*/
|
|
99
|
+
declare function extractMentions(text: string, candidates: ReadonlyArray<MentionCandidate>): MentionCandidate[];
|
|
100
|
+
/** The API payload for mentioned candidates. */
|
|
101
|
+
declare function toMessageMentions(mentioned: ReadonlyArray<MentionCandidate>): MessageMentionRef[];
|
|
102
|
+
/** Fragment prefix of the links {@link linkMentions} writes. */
|
|
103
|
+
declare const MENTION_HREF_PREFIX = "#mention-";
|
|
104
|
+
/**
|
|
105
|
+
* Turn each stored mention's `@<label>` in `content` into a markdown link
|
|
106
|
+
* `[@<label>](#mention-<id>)`, so a markdown renderer can draw it as a chip (see
|
|
107
|
+
* {@link mentionFromHref}). Text that no longer matches (a renamed user) stays plain text.
|
|
108
|
+
* `assistantLabels` lists other names the assistant may have been mentioned by.
|
|
109
|
+
*/
|
|
110
|
+
declare function linkMentions(content: string, mentions: ReadonlyArray<MessageMentionRef> | null | undefined, assistantLabels?: ReadonlyArray<string>): string;
|
|
111
|
+
/** The mention a `#mention-…` href points at, or null for any other href. */
|
|
112
|
+
declare function mentionFromHref(href: string | null | undefined): {
|
|
113
|
+
kind: MentionKind;
|
|
114
|
+
id: string;
|
|
115
|
+
} | null;
|
|
116
|
+
/** A recipient alone is not a message. */
|
|
117
|
+
declare function hasMessageBody(value: string, recipientLabel?: string): boolean;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Drafting mode: the saved document open beside the chat is what a chat turn is about.
|
|
121
|
+
*
|
|
122
|
+
* A viewer registers the document it shows (`useRegisterOpenDocument`); every assistant turn names
|
|
123
|
+
* it (`active_artifact_ext_id`, read with `takeOpenDocumentForTurn` as the question is sent), so the
|
|
124
|
+
* server binds the live document to the turn: a Word document is read on demand and edited as
|
|
125
|
+
* tracked changes in the open editor, and what the assistant saves becomes a child version of it.
|
|
126
|
+
* The request carries a reference, never the content.
|
|
127
|
+
*
|
|
128
|
+
* The open document is always the subject, also while one of its earlier versions is on screen
|
|
129
|
+
* read-only: a version still names its document. Sending a turn then returns the viewer to the live
|
|
130
|
+
* document (`showLive`), where the assistant's edits appear as they are made. (Pinning a specific
|
|
131
|
+
* version as a source is a separate feature: it does not go through here.)
|
|
132
|
+
*
|
|
133
|
+
* A module-level registry (not React context), like `useChatSurface`, so a viewer and a chat agree
|
|
134
|
+
* wherever they sit in the tree; the most recently opened document wins and closing it hands back
|
|
135
|
+
* to the one before. It is not the session state's viewing document (`useArbiSessionState`): it
|
|
136
|
+
* holds what mounted viewers can draft in (saved documents only, with the callback that shows the
|
|
137
|
+
* live one again), and a turn reads it outside React. A viewer on the session's viewing document
|
|
138
|
+
* passes that as `shownId` (it may be a version reference, resolved here the same way as
|
|
139
|
+
* `selectViewingDocumentId` does).
|
|
140
|
+
*/
|
|
141
|
+
/** What a viewer knows about the document it shows. */
|
|
142
|
+
interface SavedDocumentInput {
|
|
143
|
+
/** The document (`doc-…`), never a version reference. */
|
|
144
|
+
documentId: string | null | undefined;
|
|
145
|
+
/** An unsaved draft (client-minted id, no backend record). */
|
|
146
|
+
isDraft: boolean;
|
|
147
|
+
/** Still streaming: nothing is persisted yet. */
|
|
148
|
+
isStreaming: boolean;
|
|
149
|
+
/** An image, audio or video artifact: there is no text to draft in. */
|
|
150
|
+
isBlobArtifact: boolean;
|
|
151
|
+
/** The loaded document record. */
|
|
152
|
+
documentData: {
|
|
153
|
+
external_id?: string | null;
|
|
154
|
+
wp_type?: string | null;
|
|
155
|
+
file_name?: string | null;
|
|
156
|
+
} | null | undefined;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* The saved, content-backed document a chat can draft in, or null. Only a saved artifact or Word
|
|
160
|
+
* document counts: drafts, an artifact still streaming and blob artifacts do not.
|
|
161
|
+
*/
|
|
162
|
+
declare function savedDocumentIdFor(input: SavedDocumentInput): string | null;
|
|
163
|
+
interface OpenDocumentRegistration {
|
|
164
|
+
/** The saved document the viewer shows (`doc-…`); null or empty registers nothing. */
|
|
165
|
+
documentId: string | null | undefined;
|
|
166
|
+
/** What is on screen: the document itself, or one of its earlier versions (`doc-…@v2`). */
|
|
167
|
+
shownId?: string | null;
|
|
168
|
+
/** Show the live document again. Called when a turn starts while an earlier version is shown. */
|
|
169
|
+
showLive?: () => void;
|
|
170
|
+
/** The workspace the document belongs to; a chat in another workspace does not draft in it. */
|
|
171
|
+
workspaceId?: string | null;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Registers the document a viewer shows as the open document while the caller is mounted and
|
|
175
|
+
* `documentId` is set. Pass `savedDocumentIdFor(...)`, or the id of a document known to be saved.
|
|
176
|
+
*/
|
|
177
|
+
declare function useRegisterOpenDocument(registration: OpenDocumentRegistration): void;
|
|
178
|
+
/** The open document's id, or null. Re-renders when another document opens or it closes. */
|
|
179
|
+
declare function useOpenDocumentId(): string | null;
|
|
180
|
+
/**
|
|
181
|
+
* The document an assistant turn about to be sent drafts in, or null. Call it once per turn as the
|
|
182
|
+
* question is sent: when an earlier version of the document is on screen, the viewer returns to the
|
|
183
|
+
* live document, where the assistant's edits appear. With `workspaceId`, a document registered in
|
|
184
|
+
* another workspace is not named (and its viewer is left alone).
|
|
185
|
+
*/
|
|
186
|
+
declare function takeOpenDocumentForTurn(options?: {
|
|
187
|
+
workspaceId?: string | null;
|
|
188
|
+
}): string | null;
|
|
189
|
+
|
|
52
190
|
/**
|
|
53
191
|
* A search's state outside any component: the query last searched, its passages, and whether it
|
|
54
192
|
* is running. A page that shows the shared session (`sharedSearchSession`) keeps its results when
|
|
@@ -249,4 +387,4 @@ declare function NotificationBell({ renderTrigger, onNavigate, onSelectNotificat
|
|
|
249
387
|
|
|
250
388
|
declare function Toaster({ toastOptions, ...props }: ToasterProps): React$1.JSX.Element;
|
|
251
389
|
|
|
252
|
-
export { type AppNotification as A, DEFAULT_NOTIFY_TONE as D, type HostConfigRecord as H, MAX_SESSION_NOTIFICATIONS as M, NotificationBell as N, type
|
|
390
|
+
export { type AppNotification as A, persistNotifyHistory as B, persistSearchSession as C, DEFAULT_NOTIFY_TONE as D, requestSearch as E, savedDocumentIdFor as F, seedNotifications as G, type HostConfigRecord as H, selectUnread as I, sharedSearchSession as J, takeOpenDocumentForTurn as K, takePendingSearch as L, MAX_SESSION_NOTIFICATIONS as M, NotificationBell as N, type OpenDocumentRegistration as O, toMessageMentions as P, useHostConfigRecord as Q, useNotify as R, type SavedDocumentInput as S, Toaster as T, useOpenDocumentId as U, useRegisterOpenDocument as V, ArbiHost as a, type ArbiHostConnection as b, type ArbiHostProps as c, MENTION_HREF_PREFIX as d, type MentionCandidate as e, type MentionKind as f, type MessageMentionRef as g, type NotificationBellProps as h, type NotificationBellTriggerState as i, type NotifyConfig as j, type NotifyOptions as k, type NotifyVariant as l, type SearchSession as m, type SearchSessionState as n, type SearchStatus as o, clearSearchSession as p, configureNotify as q, createSearchSession as r, extractMentions as s, filterMentionCandidates as t, findMentionQuery as u, hasMessageBody as v, insertMention as w, linkMentions as x, mentionFromHref as y, notify as z };
|
|
@@ -577,7 +577,7 @@ declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
|
577
577
|
ref?: React.Ref<HTMLDivElement>;
|
|
578
578
|
} & {
|
|
579
579
|
asChild?: boolean;
|
|
580
|
-
}, "key" |
|
|
580
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
581
581
|
label?: string;
|
|
582
582
|
shouldFilter?: boolean;
|
|
583
583
|
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
@@ -593,7 +593,7 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
|
|
|
593
593
|
ref?: React.Ref<HTMLInputElement>;
|
|
594
594
|
} & {
|
|
595
595
|
asChild?: boolean;
|
|
596
|
-
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "
|
|
596
|
+
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "value" | "type" | "onChange"> & {
|
|
597
597
|
value?: string;
|
|
598
598
|
onValueChange?: (search: string) => void;
|
|
599
599
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -603,7 +603,7 @@ declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
|
603
603
|
ref?: React.Ref<HTMLDivElement>;
|
|
604
604
|
} & {
|
|
605
605
|
asChild?: boolean;
|
|
606
|
-
}, "key" |
|
|
606
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
607
607
|
label?: string;
|
|
608
608
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
609
609
|
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
@@ -612,14 +612,14 @@ declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
|
612
612
|
ref?: React.Ref<HTMLDivElement>;
|
|
613
613
|
} & {
|
|
614
614
|
asChild?: boolean;
|
|
615
|
-
}, "key" |
|
|
615
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
616
616
|
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
617
617
|
children?: React.ReactNode;
|
|
618
618
|
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
619
619
|
ref?: React.Ref<HTMLDivElement>;
|
|
620
620
|
} & {
|
|
621
621
|
asChild?: boolean;
|
|
622
|
-
}, "key" |
|
|
622
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
|
|
623
623
|
heading?: React.ReactNode;
|
|
624
624
|
value?: string;
|
|
625
625
|
forceMount?: boolean;
|
|
@@ -628,7 +628,7 @@ declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<R
|
|
|
628
628
|
ref?: React.Ref<HTMLDivElement>;
|
|
629
629
|
} & {
|
|
630
630
|
asChild?: boolean;
|
|
631
|
-
}, "key" |
|
|
631
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
632
632
|
alwaysRender?: boolean;
|
|
633
633
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
634
634
|
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
@@ -637,7 +637,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
|
637
637
|
ref?: React.Ref<HTMLDivElement>;
|
|
638
638
|
} & {
|
|
639
639
|
asChild?: boolean;
|
|
640
|
-
}, "key" |
|
|
640
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "onSelect" | "disabled"> & {
|
|
641
641
|
disabled?: boolean;
|
|
642
642
|
onSelect?: (value: string) => void;
|
|
643
643
|
value?: string;
|
|
@@ -875,6 +875,18 @@ declare function getFileTypeIcon(fileName?: string | null, opts?: {
|
|
|
875
875
|
defaultToPdf?: boolean;
|
|
876
876
|
}): FileTypeIcon;
|
|
877
877
|
|
|
878
|
+
/** Pick the best brand mark for a model. We prefer the *product* logo
|
|
879
|
+
* (ChatGPT swirl, Gemini sparkle, Claude burst) when the model_name
|
|
880
|
+
* signals a known product line, falling back to the LiteLLM provider
|
|
881
|
+
* string for everything else. Returns Crown as the universal fallback so
|
|
882
|
+
* Premium-tier rows always render an icon. */
|
|
883
|
+
declare function ProviderIcon({ modelName, provider, size, className, }: {
|
|
884
|
+
modelName?: string;
|
|
885
|
+
provider?: string | null;
|
|
886
|
+
size?: number;
|
|
887
|
+
className?: string;
|
|
888
|
+
}): React.JSX.Element;
|
|
889
|
+
|
|
878
890
|
/**
|
|
879
891
|
* ARBI Icon Component. Promoted from the ARBI app for SDK reuse.
|
|
880
892
|
* The ARBI mark, bundled (no host asset needed).
|
|
@@ -2018,4 +2030,4 @@ declare function createUserAvatarIcon(user: {
|
|
|
2018
2030
|
|
|
2019
2031
|
declare function cn(...inputs: ClassValue[]): string;
|
|
2020
2032
|
|
|
2021
|
-
export { DropdownMenu as $, ARBI_MARK_SRC as A, BASE_COLORS as B, COLUMN_LABEL_FALLBACKS as C, CommandItem as D, CommandList as E, CommandSeparator as F, CommandShortcut as G, DEFAULT_METADATA_TAGS as H, DebouncedInput as I, type DebouncedInputProps as J, Dialog as K, DialogClose as L, DialogContent as M, DialogDescription as N, DialogFooter as O, DialogHeader as P, DialogOverlay as Q, DialogPortal as R, type DialogPresentation as S, DialogTitle as T, DialogTrigger as U, type DictateContextValue as V, DocumentCard as W, type DocumentCardProps as X, DocumentEntity as Y, type DocumentEntityProps as Z, type DocumentLike as _, AgentBadge as a,
|
|
2033
|
+
export { DropdownMenu as $, ARBI_MARK_SRC as A, BASE_COLORS as B, COLUMN_LABEL_FALLBACKS as C, CommandItem as D, CommandList as E, CommandSeparator as F, CommandShortcut as G, DEFAULT_METADATA_TAGS as H, DebouncedInput as I, type DebouncedInputProps as J, Dialog as K, DialogClose as L, DialogContent as M, DialogDescription as N, DialogFooter as O, DialogHeader as P, DialogOverlay as Q, DialogPortal as R, type DialogPresentation as S, DialogTitle as T, DialogTrigger as U, type DictateContextValue as V, DocumentCard as W, type DocumentCardProps as X, DocumentEntity as Y, type DocumentEntityProps as Z, type DocumentLike as _, AgentBadge as a, RadioGroupItem as a$, DropdownMenuCheckboxItem as a0, DropdownMenuContent as a1, DropdownMenuGroup as a2, DropdownMenuItem as a3, DropdownMenuLabel as a4, DropdownMenuPortal as a5, DropdownMenuRadioGroup as a6, DropdownMenuRadioItem as a7, DropdownMenuSeparator as a8, DropdownMenuShortcut as a9, Label as aA, MarkMenu as aB, type MarkMenuItem as aC, type MarkMenuProps as aD, MarkdownCode as aE, MarkdownLink as aF, MarkdownRenderer as aG, type MarkdownRendererProps as aH, MarkdownStreamingContext as aI, NEUTRAL_GRAY as aJ, PLACEHOLDER_COLOR as aK, PassageCard as aL, type PassageCardProps as aM, Popover as aN, PopoverAnchor as aO, PopoverClose as aP, PopoverContent as aQ, PopoverTrigger as aR, PortalContainerProvider as aS, type PresenceDisplayStatus as aT, PresenceLabel as aU, Progress as aV, ProjectEntity as aW, type ProjectEntityProps as aX, type ProjectRelation as aY, ProviderIcon as aZ, RadioGroup as a_, DropdownMenuSub as aa, DropdownMenuSubContent as ab, DropdownMenuSubTrigger as ac, DropdownMenuTrigger as ad, ENTITY_MAPPINGS as ae, EntityIcon as af, type EntityIconComponent as ag, EntityPill as ah, type EntityRegistryOverride as ai, type EntityType as aj, type FileTypeIcon as ak, type FolderTreeNode as al, HoverCard as am, HoverCardContent as an, HoverCardTrigger as ao, IconToggle as ap, type IconToggleProps as aq, type IdentityBusy as ar, type IdentityProblem as as, type IdentityPurchase as at, type IdentityState as au, type IdentityStatus as av, type IdentityStep as aw, type IdentityVerificationFlow as ax, Input as ay, type InputProps as az, AiMarkdown as b, VisibilityToggle as b$, type Rag as b0, RagDot as b1, RelevanceDot as b2, ScrollArea as b3, ScrollBar as b4, Select as b5, SelectContent as b6, SelectGroup as b7, SelectItem as b8, SelectLabel as b9, TabsContent as bA, TabsList as bB, TabsTrigger as bC, TagEntity as bD, type TagEntityProps as bE, type TagLike as bF, Textarea as bG, type TextareaProps as bH, ThreadVisibilityIcon as bI, Toggle as bJ, ToggleGroup as bK, ToggleGroupItem as bL, Tooltip as bM, TooltipContent as bN, TooltipProvider as bO, TooltipTrigger as bP, UserEntity as bQ, type UserEntityProps as bR, UserMenu as bS, type UserMenuItem as bT, type UserMenuProps as bU, type UserMenuStatus as bV, VISIBILITY_ICONS as bW, VerifiedBadge as bX, type VerifiedBadgeProps as bY, VerifiedToggle as bZ, VisibilityIcon as b_, SelectScrollDownButton as ba, SelectScrollUpButton as bb, SelectSeparator as bc, SelectTrigger as bd, SelectValue as be, Separator as bf, ShieldIcon as bg, type ShieldIconProps as bh, Slider as bi, type StatusBadgeComponent as bj, type StatusBadgeProps as bk, StatusPill as bl, type StatusPillProps as bm, type StatusVariant as bn, Switch as bo, TAG_TYPE_ICONS as bp, TAG_TYPE_LABELS as bq, Table as br, TableBody as bs, TableCaption as bt, TableCell as bu, TableFooter as bv, TableHead as bw, TableHeader as bx, TableRow as by, Tabs as bz, ArbiIcon as c, type VisibilityToggleProps as c0, agentAvatarColors as c1, badgeVariants as c2, buildFolderTree as c3, buttonVariants as c4, canonicalFolderPath as c5, cardVariants as c6, closeOpenEmphasis as c7, cn as c8, configureEntityRegistry as c9, getWorkspaceColor as cA, isAgent as cB, isAudioFile as cC, isDocumentAddableToConversation as cD, isDownloadOnlyFile as cE, isImageDocument as cF, isImageFile as cG, isMediaFile as cH, isVideoFile as cI, markdownBaseComponents as cJ, markdownSanitizeSchema as cK, markdownToPlainText as cL, markdownToPlainTextBlocks as cM, normalizeCitationMarkup as cN, splitMarkdownBlocks as cO, tagKindNouns as cP, tagKindTitle as cQ, toggleVariants as cR, trimOpenCitation as cS, useDictateContext as cT, usePortalContainer as cU, usesOriginalBytesForViewer as cV, configureRagLabels as ca, configureStatusRegistry as cb, createUserAvatarIcon as cc, extensionFromMime as cd, formatDocDate as ce, formatFolderLabel as cf, formatFriendlyDate as cg, friendlyFileType as ch, getDocIcon as ci, getDocumentAuthor as cj, getDocumentDate as ck, getDocumentNature as cl, getDocumentSubject as cm, getDocumentTitle as cn, getEntityColor as co, getEntityColorStyles as cp, getEntityIcon as cq, getEntityLabel as cr, getFileExtension as cs, getFileTypeIcon as ct, getStatusVariant as cu, getTagTypeIcon as cv, getTagTypeLabel as cw, getUserAvatarColor as cx, getUserDisplayName as cy, getUserInitials as cz, Avatar as d, AvatarFallback as e, AvatarImage as f, Badge as g, type BadgeProps as h, Button as i, type ButtonProps as j, Card as k, CardContent as l, CardDescription as m, CardFooter as n, CardHeader as o, type CardProps as p, CardTitle as q, Checkbox as r, Collapsible as s, CollapsibleContent as t, CollapsibleTrigger as u, Command as v, CommandDialog as w, CommandEmpty as x, CommandGroup as y, CommandInput as z };
|
|
@@ -577,7 +577,7 @@ declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
|
577
577
|
ref?: React.Ref<HTMLDivElement>;
|
|
578
578
|
} & {
|
|
579
579
|
asChild?: boolean;
|
|
580
|
-
}, "key" |
|
|
580
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
581
581
|
label?: string;
|
|
582
582
|
shouldFilter?: boolean;
|
|
583
583
|
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
@@ -593,7 +593,7 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
|
|
|
593
593
|
ref?: React.Ref<HTMLInputElement>;
|
|
594
594
|
} & {
|
|
595
595
|
asChild?: boolean;
|
|
596
|
-
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "
|
|
596
|
+
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "value" | "type" | "onChange"> & {
|
|
597
597
|
value?: string;
|
|
598
598
|
onValueChange?: (search: string) => void;
|
|
599
599
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -603,7 +603,7 @@ declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
|
603
603
|
ref?: React.Ref<HTMLDivElement>;
|
|
604
604
|
} & {
|
|
605
605
|
asChild?: boolean;
|
|
606
|
-
}, "key" |
|
|
606
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
607
607
|
label?: string;
|
|
608
608
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
609
609
|
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
@@ -612,14 +612,14 @@ declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
|
612
612
|
ref?: React.Ref<HTMLDivElement>;
|
|
613
613
|
} & {
|
|
614
614
|
asChild?: boolean;
|
|
615
|
-
}, "key" |
|
|
615
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
616
616
|
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
617
617
|
children?: React.ReactNode;
|
|
618
618
|
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
619
619
|
ref?: React.Ref<HTMLDivElement>;
|
|
620
620
|
} & {
|
|
621
621
|
asChild?: boolean;
|
|
622
|
-
}, "key" |
|
|
622
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
|
|
623
623
|
heading?: React.ReactNode;
|
|
624
624
|
value?: string;
|
|
625
625
|
forceMount?: boolean;
|
|
@@ -628,7 +628,7 @@ declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<R
|
|
|
628
628
|
ref?: React.Ref<HTMLDivElement>;
|
|
629
629
|
} & {
|
|
630
630
|
asChild?: boolean;
|
|
631
|
-
}, "key" |
|
|
631
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
632
632
|
alwaysRender?: boolean;
|
|
633
633
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
634
634
|
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
@@ -637,7 +637,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
|
637
637
|
ref?: React.Ref<HTMLDivElement>;
|
|
638
638
|
} & {
|
|
639
639
|
asChild?: boolean;
|
|
640
|
-
}, "key" |
|
|
640
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "onSelect" | "disabled"> & {
|
|
641
641
|
disabled?: boolean;
|
|
642
642
|
onSelect?: (value: string) => void;
|
|
643
643
|
value?: string;
|
|
@@ -875,6 +875,18 @@ declare function getFileTypeIcon(fileName?: string | null, opts?: {
|
|
|
875
875
|
defaultToPdf?: boolean;
|
|
876
876
|
}): FileTypeIcon;
|
|
877
877
|
|
|
878
|
+
/** Pick the best brand mark for a model. We prefer the *product* logo
|
|
879
|
+
* (ChatGPT swirl, Gemini sparkle, Claude burst) when the model_name
|
|
880
|
+
* signals a known product line, falling back to the LiteLLM provider
|
|
881
|
+
* string for everything else. Returns Crown as the universal fallback so
|
|
882
|
+
* Premium-tier rows always render an icon. */
|
|
883
|
+
declare function ProviderIcon({ modelName, provider, size, className, }: {
|
|
884
|
+
modelName?: string;
|
|
885
|
+
provider?: string | null;
|
|
886
|
+
size?: number;
|
|
887
|
+
className?: string;
|
|
888
|
+
}): React.JSX.Element;
|
|
889
|
+
|
|
878
890
|
/**
|
|
879
891
|
* ARBI Icon Component. Promoted from the ARBI app for SDK reuse.
|
|
880
892
|
* The ARBI mark, bundled (no host asset needed).
|
|
@@ -2018,4 +2030,4 @@ declare function createUserAvatarIcon(user: {
|
|
|
2018
2030
|
|
|
2019
2031
|
declare function cn(...inputs: ClassValue[]): string;
|
|
2020
2032
|
|
|
2021
|
-
export { DropdownMenu as $, ARBI_MARK_SRC as A, BASE_COLORS as B, COLUMN_LABEL_FALLBACKS as C, CommandItem as D, CommandList as E, CommandSeparator as F, CommandShortcut as G, DEFAULT_METADATA_TAGS as H, DebouncedInput as I, type DebouncedInputProps as J, Dialog as K, DialogClose as L, DialogContent as M, DialogDescription as N, DialogFooter as O, DialogHeader as P, DialogOverlay as Q, DialogPortal as R, type DialogPresentation as S, DialogTitle as T, DialogTrigger as U, type DictateContextValue as V, DocumentCard as W, type DocumentCardProps as X, DocumentEntity as Y, type DocumentEntityProps as Z, type DocumentLike as _, AgentBadge as a,
|
|
2033
|
+
export { DropdownMenu as $, ARBI_MARK_SRC as A, BASE_COLORS as B, COLUMN_LABEL_FALLBACKS as C, CommandItem as D, CommandList as E, CommandSeparator as F, CommandShortcut as G, DEFAULT_METADATA_TAGS as H, DebouncedInput as I, type DebouncedInputProps as J, Dialog as K, DialogClose as L, DialogContent as M, DialogDescription as N, DialogFooter as O, DialogHeader as P, DialogOverlay as Q, DialogPortal as R, type DialogPresentation as S, DialogTitle as T, DialogTrigger as U, type DictateContextValue as V, DocumentCard as W, type DocumentCardProps as X, DocumentEntity as Y, type DocumentEntityProps as Z, type DocumentLike as _, AgentBadge as a, RadioGroupItem as a$, DropdownMenuCheckboxItem as a0, DropdownMenuContent as a1, DropdownMenuGroup as a2, DropdownMenuItem as a3, DropdownMenuLabel as a4, DropdownMenuPortal as a5, DropdownMenuRadioGroup as a6, DropdownMenuRadioItem as a7, DropdownMenuSeparator as a8, DropdownMenuShortcut as a9, Label as aA, MarkMenu as aB, type MarkMenuItem as aC, type MarkMenuProps as aD, MarkdownCode as aE, MarkdownLink as aF, MarkdownRenderer as aG, type MarkdownRendererProps as aH, MarkdownStreamingContext as aI, NEUTRAL_GRAY as aJ, PLACEHOLDER_COLOR as aK, PassageCard as aL, type PassageCardProps as aM, Popover as aN, PopoverAnchor as aO, PopoverClose as aP, PopoverContent as aQ, PopoverTrigger as aR, PortalContainerProvider as aS, type PresenceDisplayStatus as aT, PresenceLabel as aU, Progress as aV, ProjectEntity as aW, type ProjectEntityProps as aX, type ProjectRelation as aY, ProviderIcon as aZ, RadioGroup as a_, DropdownMenuSub as aa, DropdownMenuSubContent as ab, DropdownMenuSubTrigger as ac, DropdownMenuTrigger as ad, ENTITY_MAPPINGS as ae, EntityIcon as af, type EntityIconComponent as ag, EntityPill as ah, type EntityRegistryOverride as ai, type EntityType as aj, type FileTypeIcon as ak, type FolderTreeNode as al, HoverCard as am, HoverCardContent as an, HoverCardTrigger as ao, IconToggle as ap, type IconToggleProps as aq, type IdentityBusy as ar, type IdentityProblem as as, type IdentityPurchase as at, type IdentityState as au, type IdentityStatus as av, type IdentityStep as aw, type IdentityVerificationFlow as ax, Input as ay, type InputProps as az, AiMarkdown as b, VisibilityToggle as b$, type Rag as b0, RagDot as b1, RelevanceDot as b2, ScrollArea as b3, ScrollBar as b4, Select as b5, SelectContent as b6, SelectGroup as b7, SelectItem as b8, SelectLabel as b9, TabsContent as bA, TabsList as bB, TabsTrigger as bC, TagEntity as bD, type TagEntityProps as bE, type TagLike as bF, Textarea as bG, type TextareaProps as bH, ThreadVisibilityIcon as bI, Toggle as bJ, ToggleGroup as bK, ToggleGroupItem as bL, Tooltip as bM, TooltipContent as bN, TooltipProvider as bO, TooltipTrigger as bP, UserEntity as bQ, type UserEntityProps as bR, UserMenu as bS, type UserMenuItem as bT, type UserMenuProps as bU, type UserMenuStatus as bV, VISIBILITY_ICONS as bW, VerifiedBadge as bX, type VerifiedBadgeProps as bY, VerifiedToggle as bZ, VisibilityIcon as b_, SelectScrollDownButton as ba, SelectScrollUpButton as bb, SelectSeparator as bc, SelectTrigger as bd, SelectValue as be, Separator as bf, ShieldIcon as bg, type ShieldIconProps as bh, Slider as bi, type StatusBadgeComponent as bj, type StatusBadgeProps as bk, StatusPill as bl, type StatusPillProps as bm, type StatusVariant as bn, Switch as bo, TAG_TYPE_ICONS as bp, TAG_TYPE_LABELS as bq, Table as br, TableBody as bs, TableCaption as bt, TableCell as bu, TableFooter as bv, TableHead as bw, TableHeader as bx, TableRow as by, Tabs as bz, ArbiIcon as c, type VisibilityToggleProps as c0, agentAvatarColors as c1, badgeVariants as c2, buildFolderTree as c3, buttonVariants as c4, canonicalFolderPath as c5, cardVariants as c6, closeOpenEmphasis as c7, cn as c8, configureEntityRegistry as c9, getWorkspaceColor as cA, isAgent as cB, isAudioFile as cC, isDocumentAddableToConversation as cD, isDownloadOnlyFile as cE, isImageDocument as cF, isImageFile as cG, isMediaFile as cH, isVideoFile as cI, markdownBaseComponents as cJ, markdownSanitizeSchema as cK, markdownToPlainText as cL, markdownToPlainTextBlocks as cM, normalizeCitationMarkup as cN, splitMarkdownBlocks as cO, tagKindNouns as cP, tagKindTitle as cQ, toggleVariants as cR, trimOpenCitation as cS, useDictateContext as cT, usePortalContainer as cU, usesOriginalBytesForViewer as cV, configureRagLabels as ca, configureStatusRegistry as cb, createUserAvatarIcon as cc, extensionFromMime as cd, formatDocDate as ce, formatFolderLabel as cf, formatFriendlyDate as cg, friendlyFileType as ch, getDocIcon as ci, getDocumentAuthor as cj, getDocumentDate as ck, getDocumentNature as cl, getDocumentSubject as cm, getDocumentTitle as cn, getEntityColor as co, getEntityColorStyles as cp, getEntityIcon as cq, getEntityLabel as cr, getFileExtension as cs, getFileTypeIcon as ct, getStatusVariant as cu, getTagTypeIcon as cv, getTagTypeLabel as cw, getUserAvatarColor as cx, getUserDisplayName as cy, getUserInitials as cz, Avatar as d, AvatarFallback as e, AvatarImage as f, Badge as g, type BadgeProps as h, Button as i, type ButtonProps as j, Card as k, CardContent as l, CardDescription as m, CardFooter as n, CardHeader as o, type CardProps as p, CardTitle as q, Checkbox as r, Collapsible as s, CollapsibleContent as t, CollapsibleTrigger as u, Command as v, CommandDialog as w, CommandEmpty as x, CommandGroup as y, CommandInput as z };
|