@arbidocs/blocks 0.4.26 → 0.4.28
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/README.md +17 -0
- package/dist/agents/index.cjs +224 -212
- package/dist/agents/index.js +6 -6
- package/dist/agents/tasks/TaskRowMenu.d.ts +4 -1
- package/dist/agents/tasks/TaskRunsDialog.d.ts +3 -1
- package/dist/agents/tasks/taskRows.d.ts +2 -0
- package/dist/agents/workflows/WorkflowDocumentsField.d.ts +12 -0
- package/dist/agents/workflows/index.d.ts +2 -0
- package/dist/agents/workflows/workspaceScope.d.ts +18 -0
- package/dist/chat/ChatPage.d.ts +1 -1
- package/dist/chat/chat-page-types.d.ts +12 -1
- package/dist/chat/index.cjs +180 -180
- package/dist/chat/index.js +5 -5
- package/dist/{chunk-CPJBU5XQ.js → chunk-3NZR6PAG.js} +8 -120
- package/dist/chunk-3NZR6PAG.js.map +1 -0
- package/dist/chunk-4XJZ6AAY.js +407 -0
- package/dist/chunk-4XJZ6AAY.js.map +1 -0
- package/dist/{chunk-UOLMFC5K.js → chunk-6YVI74BC.js} +498 -108
- package/dist/chunk-6YVI74BC.js.map +1 -0
- package/dist/{chunk-5LUI4G5R.js → chunk-BV7FEMSI.js} +3 -3
- package/dist/{chunk-5LUI4G5R.js.map → chunk-BV7FEMSI.js.map} +1 -1
- package/dist/{chunk-ZEIOREJY.js → chunk-EHXSBH6U.js} +37 -6
- package/dist/chunk-EHXSBH6U.js.map +1 -0
- package/dist/chunk-EYPPB5CY.cjs +85 -0
- package/dist/chunk-EYPPB5CY.cjs.map +1 -0
- package/dist/{chunk-LZ4O2JPP.cjs → chunk-FRRDPYBR.cjs} +8 -123
- package/dist/chunk-FRRDPYBR.cjs.map +1 -0
- package/dist/chunk-KF4EC5XU.js +68 -0
- package/dist/chunk-KF4EC5XU.js.map +1 -0
- package/dist/{chunk-DHMAJ5LC.cjs → chunk-NSZAHL23.cjs} +158 -39
- package/dist/chunk-NSZAHL23.cjs.map +1 -0
- package/dist/{chunk-MLI6MCIE.js → chunk-QMUI2MGT.js} +155 -39
- package/dist/chunk-QMUI2MGT.js.map +1 -0
- package/dist/chunk-S5HZBXZA.cjs +430 -0
- package/dist/chunk-S5HZBXZA.cjs.map +1 -0
- package/dist/{chunk-JCVZKCXC.cjs → chunk-TLQQV7WW.cjs} +37 -6
- package/dist/chunk-TLQQV7WW.cjs.map +1 -0
- package/dist/{chunk-NNH7N62N.cjs → chunk-VMCOH3AY.cjs} +497 -105
- package/dist/chunk-VMCOH3AY.cjs.map +1 -0
- package/dist/{chunk-JLPYOPCX.js → chunk-WSJVHSGN.js} +225 -36
- package/dist/chunk-WSJVHSGN.js.map +1 -0
- package/dist/{chunk-TO4FAMQP.cjs → chunk-XKSFJYOD.cjs} +3 -3
- package/dist/{chunk-TO4FAMQP.cjs.map → chunk-XKSFJYOD.cjs.map} +1 -1
- package/dist/{chunk-J22DXUJY.cjs → chunk-ZHLMDJCO.cjs} +226 -34
- package/dist/chunk-ZHLMDJCO.cjs.map +1 -0
- package/dist/connect/docx.cjs +26 -8
- package/dist/connect/docx.cjs.map +1 -1
- package/dist/connect/docx.d.ts +1 -0
- package/dist/connect/docx.js +24 -7
- package/dist/connect/docx.js.map +1 -1
- package/dist/connect/index.cjs +281 -39
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.d.ts +4 -0
- package/dist/connect/index.js +261 -23
- package/dist/connect/index.js.map +1 -1
- package/dist/connection/ConnectedAgentChatPanel.d.ts +7 -0
- package/dist/connection/ConnectedNativeDocxEditor.d.ts +2 -1
- package/dist/connection/ConnectedSkillUpload.d.ts +2 -0
- package/dist/connection/ConnectedStreamedWordArtifact.d.ts +4 -0
- package/dist/connection/ConnectedTaskAccessRequest.d.ts +4 -0
- package/dist/connection/ai.d.ts +4 -1
- package/dist/connection/useConnectedWorkNotifications.d.ts +21 -0
- package/dist/docx/DocxMentions.d.ts +9 -2
- package/dist/docx/NativeDocxEditor.d.ts +11 -3
- package/dist/docx/StreamedWordArtifact.d.ts +15 -0
- package/dist/docx/index.cjs +16 -8
- package/dist/docx/index.d.ts +3 -2
- package/dist/docx/index.js +2 -2
- package/dist/docx/streamWordDocument.d.ts +12 -0
- package/dist/facts/index.cjs +2 -2
- package/dist/facts/index.js +2 -2
- package/dist/files/index.cjs +5 -5
- package/dist/files/index.js +5 -5
- package/dist/home/index.cjs +1 -1
- package/dist/home/index.js +1 -1
- package/dist/index.cjs +953 -941
- package/dist/index.js +20 -20
- package/dist/settings/index.cjs +44 -234
- package/dist/settings/index.cjs.map +1 -1
- package/dist/settings/index.js +8 -204
- package/dist/settings/index.js.map +1 -1
- package/dist/shell/index.cjs +26 -26
- package/dist/shell/index.js +4 -4
- package/dist/studio/index.cjs +7 -6
- package/dist/studio/index.cjs.map +1 -1
- package/dist/studio/index.js +5 -4
- package/dist/studio/index.js.map +1 -1
- package/dist/workspaces/index.cjs +1 -1
- package/dist/workspaces/index.js +1 -1
- package/package.json +3 -3
- package/src/docx/styles.css +13 -0
- package/dist/chunk-5TRALRWN.js +0 -42
- package/dist/chunk-5TRALRWN.js.map +0 -1
- package/dist/chunk-CPJBU5XQ.js.map +0 -1
- package/dist/chunk-CQCC7LE7.js +0 -210
- package/dist/chunk-CQCC7LE7.js.map +0 -1
- package/dist/chunk-DHMAJ5LC.cjs.map +0 -1
- package/dist/chunk-EUOGPUMJ.cjs +0 -59
- package/dist/chunk-EUOGPUMJ.cjs.map +0 -1
- package/dist/chunk-J22DXUJY.cjs.map +0 -1
- package/dist/chunk-JCVZKCXC.cjs.map +0 -1
- package/dist/chunk-JLPYOPCX.js.map +0 -1
- package/dist/chunk-LZ4O2JPP.cjs.map +0 -1
- package/dist/chunk-MLI6MCIE.js.map +0 -1
- package/dist/chunk-NNH7N62N.cjs.map +0 -1
- package/dist/chunk-RFIBUWLF.cjs +0 -232
- package/dist/chunk-RFIBUWLF.cjs.map +0 -1
- package/dist/chunk-UOLMFC5K.js.map +0 -1
- package/dist/chunk-ZEIOREJY.js.map +0 -1
package/dist/settings/index.js
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
export { ActiveSessionsDialog, AvatarPicker, DEFAULT_ACTIVE_SESSIONS_DIALOG_LABELS, DEFAULT_AVATAR_PICKER_LABELS, DEFAULT_DELETE_ACCOUNT_DIALOG_LABELS, DEFAULT_LOGOUT_DIALOG_LABELS, DEFAULT_PASSWORD_CHANGE_DIALOG_LABELS, DEFAULT_PROFILE_CARD_LABELS, DEFAULT_SETTINGS_DANGER_ZONE_LABELS, DeleteAccountDialog, EMAIL_NOTIFICATION_CATEGORIES, EMAIL_NOTIFICATION_KEYS, LogoutDialog, NotificationCategoryList, PasswordChangeDialog, ProfileCard, SettingsActionRow, SettingsCard, SettingsDangerZone, SettingsPanel, SettingsRow, SettingsSection, SettingsSwitchGroup, SettingsSwitchRow, formatSessionTtl, toActiveSessionViews, toDeleteBlockerViews, toLogoutSessionViews, toNotificationCategories } from '../chunk-JLOYWXRB.js';
|
|
2
3
|
export { ModalBreadcrumbHeader, ModalCrumbs } from '../chunk-RC6VTY2H.js';
|
|
3
4
|
import { UsageMeter } from '../chunk-U2E3WT3J.js';
|
|
4
|
-
export { MultiSelect } from '../chunk-
|
|
5
|
-
import { TabHeader } from '../chunk-UBNVIIBT.js';
|
|
5
|
+
export { DEFAULT_DOCUMENT_PICKER_LABELS, DocumentPicker, MultiSelect } from '../chunk-4XJZ6AAY.js';
|
|
6
6
|
import { TONE_BORDER, TONE_SURFACE, ToneBadge } from '../chunk-DPLRHEJZ.js';
|
|
7
|
-
import {
|
|
8
|
-
export { MODAL_SECTION_TITLE_CLASS, ModalHeader, ModalScaffold, ModalSection, ModalSectionTitle } from '../chunk-CPMNAJLF.js';
|
|
9
|
-
export { ActiveSessionsDialog, AvatarPicker, DEFAULT_ACTIVE_SESSIONS_DIALOG_LABELS, DEFAULT_AVATAR_PICKER_LABELS, DEFAULT_DELETE_ACCOUNT_DIALOG_LABELS, DEFAULT_LOGOUT_DIALOG_LABELS, DEFAULT_PASSWORD_CHANGE_DIALOG_LABELS, DEFAULT_PROFILE_CARD_LABELS, DEFAULT_SETTINGS_DANGER_ZONE_LABELS, DeleteAccountDialog, EMAIL_NOTIFICATION_CATEGORIES, EMAIL_NOTIFICATION_KEYS, LogoutDialog, NotificationCategoryList, PasswordChangeDialog, ProfileCard, SettingsActionRow, SettingsCard, SettingsDangerZone, SettingsPanel, SettingsRow, SettingsSection, SettingsSwitchGroup, SettingsSwitchRow, formatSessionTtl, toActiveSessionViews, toDeleteBlockerViews, toLogoutSessionViews, toNotificationCategories } from '../chunk-JLOYWXRB.js';
|
|
7
|
+
import { TabHeader } from '../chunk-UBNVIIBT.js';
|
|
10
8
|
import '../chunk-VILAPTCB.js';
|
|
11
9
|
import '../chunk-NPLYHR2E.js';
|
|
12
10
|
import { formatCount } from '../chunk-OXF2IFXG.js';
|
|
11
|
+
import { ModalScaffold, ModalSection, ModalSectionTitle, ModalHeader } from '../chunk-CPMNAJLF.js';
|
|
12
|
+
export { MODAL_SECTION_TITLE_CLASS, ModalHeader, ModalScaffold, ModalSection, ModalSectionTitle } from '../chunk-CPMNAJLF.js';
|
|
13
13
|
import '../chunk-TJMKFY5P.js';
|
|
14
14
|
import { testIdOr, prefixedTestId } from '../chunk-7F6CBP3Z.js';
|
|
15
15
|
import { useMemo, useRef, useState, useId, useEffect, Fragment as Fragment$1 } from 'react';
|
|
16
|
-
import { AlertTriangle, History, Undo2, Star, Trash2, Users, Sparkles, Brain, RefreshCw, Wifi, WifiOff, Crown, ChevronDown, ChevronRight, Pencil, Plus, Loader2,
|
|
17
|
-
import { Button, cn, DialogFooter, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, Input, Tooltip, TooltipTrigger, TooltipContent, Switch, Dialog, DialogContent, DialogTitle, DialogDescription, Label, Textarea, Checkbox, ScrollArea,
|
|
16
|
+
import { AlertTriangle, History, Undo2, Star, Trash2, Users, Sparkles, Brain, RefreshCw, Wifi, WifiOff, Crown, ChevronDown, ChevronRight, Pencil, Plus, Loader2, Filter, MoreVertical, Check, Tag, Info, Gift, PlugIcon, CheckCircle2, ExternalLink, ShieldCheck, Plug, AlertCircle, MessageCircleQuestionMark, BookOpen, UserPlus, BadgeCent, ChartNoAxesColumn, FileText, X, Mail, Send, Clock, Infinity, ArrowRight, Copy, LogOut, FunnelX, Ban } from 'lucide-react';
|
|
17
|
+
import { Button, cn, DialogFooter, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, Input, Tooltip, TooltipTrigger, TooltipContent, Switch, Dialog, DialogContent, DialogTitle, DialogDescription, Label, Textarea, Checkbox, ScrollArea, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuLabel, DropdownMenuSeparator, Popover, PopoverTrigger, PopoverContent, Badge, DialogHeader, Progress, DropdownMenuItem } from '@arbidocs/react/ui';
|
|
18
18
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
19
19
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
20
|
-
import { Command as Command$1 } from 'cmdk';
|
|
21
20
|
import { cva } from 'class-variance-authority';
|
|
22
21
|
|
|
23
22
|
var DEFAULT_CONFIRM_DIALOG_LABELS = {
|
|
@@ -1340,201 +1339,6 @@ function SyncFolderStatus({
|
|
|
1340
1339
|
}
|
|
1341
1340
|
);
|
|
1342
1341
|
}
|
|
1343
|
-
var TOKEN_WARNING_THRESHOLD = 15e4;
|
|
1344
|
-
var TOKEN_DANGER_THRESHOLD = 19e4;
|
|
1345
|
-
var DEFAULT_DOCUMENT_PICKER_LABELS = {
|
|
1346
|
-
placeholder: "Select a document",
|
|
1347
|
-
searchDocuments: "Search documents...",
|
|
1348
|
-
noDocuments: "No documents found.",
|
|
1349
|
-
selectedAsSource: "Selected as source",
|
|
1350
|
-
selectAsSource: "Select as source",
|
|
1351
|
-
largeDocument: "Large document \u2014 may take longer to process",
|
|
1352
|
-
tooLong: "Document is too long to be read in its entirety",
|
|
1353
|
-
pages: (n) => `${n.toLocaleString()} pages`,
|
|
1354
|
-
tokens: (n) => `${n.toLocaleString()} tokens`
|
|
1355
|
-
};
|
|
1356
|
-
function DocumentPicker({
|
|
1357
|
-
groups,
|
|
1358
|
-
value,
|
|
1359
|
-
onValueChange,
|
|
1360
|
-
selected,
|
|
1361
|
-
selectedIds,
|
|
1362
|
-
onOpenDocument,
|
|
1363
|
-
viewingId,
|
|
1364
|
-
forceClosed = false,
|
|
1365
|
-
listClassName,
|
|
1366
|
-
labels
|
|
1367
|
-
}) {
|
|
1368
|
-
const l = useMemo(() => ({ ...DEFAULT_DOCUMENT_PICKER_LABELS, ...labels }), [labels]);
|
|
1369
|
-
const multi = selectedIds !== void 0;
|
|
1370
|
-
const isChosen = (id) => multi ? selectedIds.includes(id) : value === id;
|
|
1371
|
-
const [open, setOpen] = useState(false);
|
|
1372
|
-
useEffect(() => {
|
|
1373
|
-
if (forceClosed) setOpen(false);
|
|
1374
|
-
}, [forceClosed]);
|
|
1375
|
-
const anchorRef = useRef(null);
|
|
1376
|
-
const leadingControl = (id) => onOpenDocument ? (
|
|
1377
|
-
// cmdk selects a row on click and prevents its mousedown (to keep input focus), which would
|
|
1378
|
-
// swallow a checkbox press. Stopping the events lets the checkbox toggle on its own.
|
|
1379
|
-
/* @__PURE__ */ jsx(
|
|
1380
|
-
"span",
|
|
1381
|
-
{
|
|
1382
|
-
className: "mr-2 flex items-center",
|
|
1383
|
-
onClick: (e) => e.stopPropagation(),
|
|
1384
|
-
onMouseDown: (e) => e.stopPropagation(),
|
|
1385
|
-
onPointerDown: (e) => e.stopPropagation(),
|
|
1386
|
-
children: /* @__PURE__ */ jsx(
|
|
1387
|
-
Checkbox,
|
|
1388
|
-
{
|
|
1389
|
-
checked: isChosen(id),
|
|
1390
|
-
onCheckedChange: () => onValueChange(id),
|
|
1391
|
-
"aria-label": isChosen(id) ? l.selectedAsSource : l.selectAsSource,
|
|
1392
|
-
"data-testid": `document-combobox-select-${id}`
|
|
1393
|
-
}
|
|
1394
|
-
)
|
|
1395
|
-
}
|
|
1396
|
-
)
|
|
1397
|
-
) : /* @__PURE__ */ jsx(Check, { className: cn("mr-2 size-4", isChosen(id) ? "opacity-100" : "opacity-0") });
|
|
1398
|
-
const itemClass = (id) => cn(
|
|
1399
|
-
onOpenDocument && "cursor-pointer",
|
|
1400
|
-
onOpenDocument && isChosen(id) && "bg-primary/10 aria-selected:bg-primary/15",
|
|
1401
|
-
// Inverted so the open one is unmistakable, over cmdk's own hover tint.
|
|
1402
|
-
viewingId === id && "bg-foreground text-background data-[selected=true]:bg-foreground data-[selected=true]:text-background"
|
|
1403
|
-
);
|
|
1404
|
-
const renderGroups = () => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1405
|
-
/* @__PURE__ */ jsx(CommandEmpty, { children: l.noDocuments }),
|
|
1406
|
-
groups.map((group) => /* @__PURE__ */ jsx(CommandGroup, { heading: group.heading, children: group.docs.map((doc) => /* @__PURE__ */ jsxs(
|
|
1407
|
-
CommandItem,
|
|
1408
|
-
{
|
|
1409
|
-
value: doc.id,
|
|
1410
|
-
keywords: [doc.title],
|
|
1411
|
-
className: itemClass(doc.id),
|
|
1412
|
-
onSelect: () => {
|
|
1413
|
-
if (onOpenDocument) {
|
|
1414
|
-
onOpenDocument(doc.id);
|
|
1415
|
-
return;
|
|
1416
|
-
}
|
|
1417
|
-
onValueChange(doc.id);
|
|
1418
|
-
if (!multi) setOpen(false);
|
|
1419
|
-
},
|
|
1420
|
-
children: [
|
|
1421
|
-
leadingControl(doc.id),
|
|
1422
|
-
/* @__PURE__ */ jsx("span", { className: "mr-2 flex shrink-0 items-center", children: getDocIcon(doc.fileName ?? void 0) }),
|
|
1423
|
-
/* @__PURE__ */ jsx("span", { className: cn("truncate", onOpenDocument && "hover:underline"), children: doc.title })
|
|
1424
|
-
]
|
|
1425
|
-
},
|
|
1426
|
-
doc.id
|
|
1427
|
-
)) }, group.id))
|
|
1428
|
-
] });
|
|
1429
|
-
const contentClass = "w-[var(--radix-popover-trigger-width)] border-0 bg-muted p-0 shadow-md";
|
|
1430
|
-
const tokens = selected?.tokens ?? null;
|
|
1431
|
-
const pages = selected?.pages ?? null;
|
|
1432
|
-
const isDanger = tokens != null && tokens > TOKEN_DANGER_THRESHOLD;
|
|
1433
|
-
const isWarning = tokens != null && tokens > TOKEN_WARNING_THRESHOLD && !isDanger;
|
|
1434
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "document-picker", children: [
|
|
1435
|
-
multi ? (
|
|
1436
|
-
// The input IS the anchor: the list opens beneath the row as soon as it is focused or
|
|
1437
|
-
// typed into. cmdk's context reaches the portaled list, so arrows/Enter still drive it.
|
|
1438
|
-
/* @__PURE__ */ jsx(Command, { children: /* @__PURE__ */ jsxs(Popover, { open, onOpenChange: setOpen, children: [
|
|
1439
|
-
/* @__PURE__ */ jsx(PopoverAnchor, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
1440
|
-
"div",
|
|
1441
|
-
{
|
|
1442
|
-
ref: anchorRef,
|
|
1443
|
-
className: "flex h-9 w-full items-center gap-2 rounded-md border border-input bg-transparent px-3 shadow-sm transition-colors focus-within:ring-1 focus-within:ring-ring pointer-coarse:h-11",
|
|
1444
|
-
"data-testid": "document-combobox-trigger",
|
|
1445
|
-
children: [
|
|
1446
|
-
/* @__PURE__ */ jsx(Search, { className: "size-4 shrink-0 opacity-50" }),
|
|
1447
|
-
/* @__PURE__ */ jsx(
|
|
1448
|
-
Command$1.Input,
|
|
1449
|
-
{
|
|
1450
|
-
placeholder: l.placeholder,
|
|
1451
|
-
"aria-expanded": open,
|
|
1452
|
-
className: "h-full w-full bg-transparent text-base outline-none placeholder:text-muted-foreground md:text-sm",
|
|
1453
|
-
onFocus: () => setOpen(true),
|
|
1454
|
-
onValueChange: () => setOpen(true),
|
|
1455
|
-
onKeyDown: (e) => {
|
|
1456
|
-
if (e.key === "ArrowDown" || e.key === "ArrowUp") setOpen(true);
|
|
1457
|
-
if (e.key === "Escape") setOpen(false);
|
|
1458
|
-
},
|
|
1459
|
-
"data-testid": "document-combobox-search"
|
|
1460
|
-
}
|
|
1461
|
-
)
|
|
1462
|
-
]
|
|
1463
|
-
}
|
|
1464
|
-
) }),
|
|
1465
|
-
/* @__PURE__ */ jsx(
|
|
1466
|
-
PopoverContent,
|
|
1467
|
-
{
|
|
1468
|
-
className: contentClass,
|
|
1469
|
-
align: "start",
|
|
1470
|
-
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
1471
|
-
onFocusOutside: (e) => e.preventDefault(),
|
|
1472
|
-
onInteractOutside: (e) => {
|
|
1473
|
-
const target = e.target;
|
|
1474
|
-
if (anchorRef.current?.contains(target) || target?.closest(
|
|
1475
|
-
'[data-testid="parsed-viewer"], [role="dialog"], [data-radix-popper-content-wrapper]'
|
|
1476
|
-
)) {
|
|
1477
|
-
e.preventDefault();
|
|
1478
|
-
}
|
|
1479
|
-
},
|
|
1480
|
-
children: /* @__PURE__ */ jsx(CommandList, { className: listClassName, children: renderGroups() })
|
|
1481
|
-
}
|
|
1482
|
-
)
|
|
1483
|
-
] }) })
|
|
1484
|
-
) : /* @__PURE__ */ jsxs(Popover, { open, onOpenChange: setOpen, children: [
|
|
1485
|
-
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
1486
|
-
"button",
|
|
1487
|
-
{
|
|
1488
|
-
type: "button",
|
|
1489
|
-
role: "combobox",
|
|
1490
|
-
"aria-expanded": open,
|
|
1491
|
-
className: cn(
|
|
1492
|
-
"flex h-9 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring md:text-sm pointer-coarse:h-11",
|
|
1493
|
-
!value && "text-muted-foreground"
|
|
1494
|
-
),
|
|
1495
|
-
"data-testid": "document-combobox-trigger",
|
|
1496
|
-
children: [
|
|
1497
|
-
/* @__PURE__ */ jsx("span", { className: "truncate", children: selected?.title || l.placeholder }),
|
|
1498
|
-
/* @__PURE__ */ jsx(ChevronsUpDown, { className: "ml-2 size-4 shrink-0 opacity-50" })
|
|
1499
|
-
]
|
|
1500
|
-
}
|
|
1501
|
-
) }),
|
|
1502
|
-
/* @__PURE__ */ jsx(PopoverContent, { className: contentClass, align: "start", children: /* @__PURE__ */ jsxs(Command, { children: [
|
|
1503
|
-
/* @__PURE__ */ jsx(CommandInput, { placeholder: l.searchDocuments }),
|
|
1504
|
-
/* @__PURE__ */ jsx(CommandList, { className: listClassName, children: renderGroups() })
|
|
1505
|
-
] }) })
|
|
1506
|
-
] }),
|
|
1507
|
-
selected && /* @__PURE__ */ jsxs("div", { className: "mt-2 space-y-1", "data-testid": "document-combobox-info", children: [
|
|
1508
|
-
/* @__PURE__ */ jsxs("p", { className: "text-sm text-muted-foreground", children: [
|
|
1509
|
-
pages != null && /* @__PURE__ */ jsx("span", { children: l.pages(pages) }),
|
|
1510
|
-
pages != null && tokens != null && /* @__PURE__ */ jsx("span", { children: " \xB7 " }),
|
|
1511
|
-
tokens != null && /* @__PURE__ */ jsx("span", { children: l.tokens(tokens) })
|
|
1512
|
-
] }),
|
|
1513
|
-
isWarning && /* @__PURE__ */ jsxs(
|
|
1514
|
-
"p",
|
|
1515
|
-
{
|
|
1516
|
-
className: "flex items-center gap-1.5 text-sm text-yellow-text",
|
|
1517
|
-
"data-testid": "document-combobox-warning",
|
|
1518
|
-
children: [
|
|
1519
|
-
/* @__PURE__ */ jsx(TriangleAlert, { className: "size-3.5 shrink-0" }),
|
|
1520
|
-
l.largeDocument
|
|
1521
|
-
]
|
|
1522
|
-
}
|
|
1523
|
-
),
|
|
1524
|
-
isDanger && /* @__PURE__ */ jsxs(
|
|
1525
|
-
"p",
|
|
1526
|
-
{
|
|
1527
|
-
className: "flex items-center gap-1.5 text-sm text-red-text",
|
|
1528
|
-
"data-testid": "document-combobox-danger",
|
|
1529
|
-
children: [
|
|
1530
|
-
/* @__PURE__ */ jsx(TriangleAlert, { className: "size-3.5 shrink-0" }),
|
|
1531
|
-
l.tooLong
|
|
1532
|
-
]
|
|
1533
|
-
}
|
|
1534
|
-
)
|
|
1535
|
-
] })
|
|
1536
|
-
] });
|
|
1537
|
-
}
|
|
1538
1342
|
var DEFAULT_TRI_STATE_FILTER_MENU_LABELS = { clear: "Clear" };
|
|
1539
1343
|
function TriStateFilterMenu({
|
|
1540
1344
|
testId,
|
|
@@ -3861,6 +3665,6 @@ function ErrorDialogView({
|
|
|
3861
3665
|
) });
|
|
3862
3666
|
}
|
|
3863
3667
|
|
|
3864
|
-
export { CONVERSATION_TITLE_MAX, CheckoutDialogFrame, ConfigSwitcherBar, ConfirmDialog, ConnectionCard, ConnectionsEmpty, ConnectionsError, ConnectionsLoading, ConversationTitleSection, CreditsGlyph, DEFAULT_CHECKOUT_DIALOG_LABELS, DEFAULT_CONFIG_SWITCHER_BAR_LABELS, DEFAULT_CONFIRM_DIALOG_LABELS, DEFAULT_CONNECTION_CARD_LABELS, DEFAULT_CONVERSATION_TITLE_SECTION_LABELS, DEFAULT_DAILY_CAP_FIELD_LABELS,
|
|
3668
|
+
export { CONVERSATION_TITLE_MAX, CheckoutDialogFrame, ConfigSwitcherBar, ConfirmDialog, ConnectionCard, ConnectionsEmpty, ConnectionsError, ConnectionsLoading, ConversationTitleSection, CreditsGlyph, DEFAULT_CHECKOUT_DIALOG_LABELS, DEFAULT_CONFIG_SWITCHER_BAR_LABELS, DEFAULT_CONFIRM_DIALOG_LABELS, DEFAULT_CONNECTION_CARD_LABELS, DEFAULT_CONVERSATION_TITLE_SECTION_LABELS, DEFAULT_DAILY_CAP_FIELD_LABELS, DEFAULT_EMAIL_WORKSPACE_DIALOG_LABELS, DEFAULT_ERROR_DIALOG_LABELS, DEFAULT_INLINE_NAME_EDITOR_LABELS, DEFAULT_INVITE_CONTACTS_DIALOG_LABELS, DEFAULT_INVOICES_DIALOG_LABELS, DEFAULT_MEMBER_PROJECT_ROW_LABELS, DEFAULT_MODEL_SELECTION_SECTION_LABELS, DEFAULT_PLAN_CARD_LABELS, DEFAULT_PROJECT_CARD_VIEW_LABELS, DEFAULT_PROJECT_DETAIL_HEADER_LABELS, DEFAULT_PROJECT_LIST_LABELS, DEFAULT_QUOTA_EXCEEDED_DIALOG_LABELS, DEFAULT_REFERRAL_CREDIT_LABELS, DEFAULT_RENAME_DIALOG_LABELS, DEFAULT_SHARED_PROJECTS_SECTION_LABELS, DEFAULT_SUBSCRIPTION_SECTION_LABELS, DEFAULT_SUBSCRIPTION_STATUS_LABELS, DEFAULT_SUPPORT_PANEL_LABELS, DEFAULT_SYNC_DIALOG_FOOTER_LABELS, DEFAULT_SYNC_FOLDER_ROW_LABELS, DEFAULT_TIPS_EDITOR_LABELS, DEFAULT_TRI_STATE_FILTER_MENU_LABELS, DEFAULT_USAGE_LINE_CHART_LABELS, DEFAULT_USAGE_PANEL_LABELS, DEFAULT_USAGE_PROPORTION_BAR_LABELS, DEFAULT_WELCOME_DIALOG_LABELS, DEFAULT_WORK_OFFLINE_LABELS, DailyCapField, EmailWorkspaceDialogView, ErrorDialogView, FloatingPanel, InlineNameEditor, InviteContactsDialog, InvoicesDialog, JsonTree, MemberProjectRow, ModelProviderLabel, ModelSelectionSection, PanelActionsRow, PanelAddButton, PanelFrame, PanelFrameBody, PanelNote, PanelScroll, PanelTitleBar, PlanActionButton, PlanActionRow, PlanBadge, PlanCard, PlanCardGrid, PlanDialogFrame, PlanInfoPopover, PlanNotice, PlanPickerCard, PlanPickerHeader, PlanStack, PlanTierOption, PlanTransition, PremiumModelsFrame, PricingToggle, ProjectCardView, ProjectDetailHeader, ProjectDetailSection, ProjectGroup, ProjectList, ProjectNameLabel, ProjectPlanPicker, ProjectRow, ProjectRowActions, PromoCodeInput, QuotaExceededDialogView, QuotaMeter, ReferralCreditBadge, ReferralCreditNote, ReferralCreditSummary, RenameDialog, RowButton, RowIconAction, SegmentedControl, ServerConnectionButton, SharedProjectRow, SharedProjectsSection, SubscriptionSectionView, SubscriptionStatusView, SupportPanel, SupportUnavailable, SyncCheckList, SyncDialogBody, SyncDialogFooter, SyncField, SyncFolderRow, SyncFolderStatus, SyncLinkButton, SyncLinkRow, SyncLoading, SyncNote, SyncOptionToggle, SyncOptions, SyncReconnectNotice, SyncSelect, SyncSmallNote, SyncTreeFrame, ThreadPreviewDialog, TipsEditorDialog, TriStateFilterMenu, UsageActionButton, UsageLegend, UsageLineChart, UsagePanel, UsageProportionBar, UsageQuotaHint, UsageSection, UsageSummary, UsageToggle, WelcomeDialog, WelcomeProjectPicker, WorkOfflineToggle };
|
|
3865
3669
|
//# sourceMappingURL=index.js.map
|
|
3866
3670
|
//# sourceMappingURL=index.js.map
|