@arbidocs/blocks 0.4.144 → 0.4.146
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/agents/index.cjs +264 -264
- package/dist/agents/index.js +7 -7
- package/dist/{chunk-ON3TKY5Y.js → chunk-5YHEHEJT.js} +242 -4
- package/dist/chunk-5YHEHEJT.js.map +1 -0
- package/dist/{chunk-7NGAWGA3.js → chunk-A6IU4GIW.js} +190 -7
- package/dist/chunk-A6IU4GIW.js.map +1 -0
- package/dist/{chunk-BUWBXJ2N.cjs → chunk-C3CGJK7A.cjs} +192 -6
- package/dist/chunk-C3CGJK7A.cjs.map +1 -0
- package/dist/{chunk-X3TGXEFS.js → chunk-C44TDH54.js} +6 -6
- package/dist/{chunk-X3TGXEFS.js.map → chunk-C44TDH54.js.map} +1 -1
- package/dist/{chunk-YFY3TQ6Q.cjs → chunk-COCGRJLA.cjs} +7 -7
- package/dist/{chunk-YFY3TQ6Q.cjs.map → chunk-COCGRJLA.cjs.map} +1 -1
- package/dist/{chunk-45LRMW54.js → chunk-DN2KI4BU.js} +8 -10
- package/dist/chunk-DN2KI4BU.js.map +1 -0
- package/dist/{chunk-R26BK7YL.cjs → chunk-DTROMMDX.cjs} +4 -4
- package/dist/{chunk-R26BK7YL.cjs.map → chunk-DTROMMDX.cjs.map} +1 -1
- package/dist/{chunk-65THHQVB.cjs → chunk-ECW2R2KF.cjs} +27 -27
- package/dist/{chunk-65THHQVB.cjs.map → chunk-ECW2R2KF.cjs.map} +1 -1
- package/dist/{chunk-RI6DZA5X.js → chunk-EF4ZLKRM.js} +3 -3
- package/dist/{chunk-RI6DZA5X.js.map → chunk-EF4ZLKRM.js.map} +1 -1
- package/dist/chunk-EV7W64B6.js +134 -0
- package/dist/chunk-EV7W64B6.js.map +1 -0
- package/dist/{chunk-WS5EX7DN.cjs → chunk-EYKISBDO.cjs} +5 -5
- package/dist/{chunk-WS5EX7DN.cjs.map → chunk-EYKISBDO.cjs.map} +1 -1
- package/dist/{chunk-JZNXRMLH.cjs → chunk-GAYMJWTC.cjs} +8 -10
- package/dist/chunk-GAYMJWTC.cjs.map +1 -0
- package/dist/{chunk-I7WG3JRD.js → chunk-H4D7WKDY.js} +3 -3
- package/dist/{chunk-I7WG3JRD.js.map → chunk-H4D7WKDY.js.map} +1 -1
- package/dist/{chunk-2FJMTZNJ.js → chunk-IJST4EBM.js} +8 -8
- package/dist/{chunk-2FJMTZNJ.js.map → chunk-IJST4EBM.js.map} +1 -1
- package/dist/{chunk-3RJN2VTL.js → chunk-IXWJGOM2.js} +3 -3
- package/dist/{chunk-3RJN2VTL.js.map → chunk-IXWJGOM2.js.map} +1 -1
- package/dist/{chunk-CYNF5PZI.js → chunk-J5CWKFSC.js} +3 -3
- package/dist/{chunk-CYNF5PZI.js.map → chunk-J5CWKFSC.js.map} +1 -1
- package/dist/{chunk-TP6PLDNM.cjs → chunk-KMZWKSKO.cjs} +8 -8
- package/dist/{chunk-TP6PLDNM.cjs.map → chunk-KMZWKSKO.cjs.map} +1 -1
- package/dist/{chunk-C4WSHRR6.cjs → chunk-KPZZ5FHE.cjs} +32 -12
- package/dist/chunk-KPZZ5FHE.cjs.map +1 -0
- package/dist/{chunk-O2ODDTMA.cjs → chunk-LPYEUD2D.cjs} +9 -9
- package/dist/{chunk-O2ODDTMA.cjs.map → chunk-LPYEUD2D.cjs.map} +1 -1
- package/dist/{chunk-RA3ZJ45L.cjs → chunk-MFMASSEO.cjs} +25 -44
- package/dist/chunk-MFMASSEO.cjs.map +1 -0
- package/dist/chunk-NHZK64TQ.js +75 -0
- package/dist/chunk-NHZK64TQ.js.map +1 -0
- package/dist/{chunk-BPBSSMRB.js → chunk-NRFAWUVD.js} +3 -3
- package/dist/{chunk-BPBSSMRB.js.map → chunk-NRFAWUVD.js.map} +1 -1
- package/dist/chunk-NWNVWO6L.cjs +80 -0
- package/dist/chunk-NWNVWO6L.cjs.map +1 -0
- package/dist/{chunk-XGZX22ET.cjs → chunk-O2GW5IY6.cjs} +38 -38
- package/dist/{chunk-XGZX22ET.cjs.map → chunk-O2GW5IY6.cjs.map} +1 -1
- package/dist/{chunk-33ZOUJXA.js → chunk-OBWYM25Y.js} +13 -32
- package/dist/chunk-OBWYM25Y.js.map +1 -0
- package/dist/{chunk-Y3KA6X7B.js → chunk-OVR3XMYL.js} +4 -4
- package/dist/{chunk-Y3KA6X7B.js.map → chunk-OVR3XMYL.js.map} +1 -1
- package/dist/{chunk-ABUO6PIQ.cjs → chunk-RB7GX2VT.cjs} +12 -12
- package/dist/{chunk-ABUO6PIQ.cjs.map → chunk-RB7GX2VT.cjs.map} +1 -1
- package/dist/chunk-RXK3XP62.cjs +144 -0
- package/dist/chunk-RXK3XP62.cjs.map +1 -0
- package/dist/{chunk-LYUO3E6V.js → chunk-SZOFGU7W.js} +3 -3
- package/dist/{chunk-LYUO3E6V.js.map → chunk-SZOFGU7W.js.map} +1 -1
- package/dist/{chunk-A6J2IBUG.js → chunk-T5B7FM7S.js} +4 -4
- package/dist/{chunk-A6J2IBUG.js.map → chunk-T5B7FM7S.js.map} +1 -1
- package/dist/{chunk-YNIBUKV5.js → chunk-TBEVGWY3.js} +32 -14
- package/dist/chunk-TBEVGWY3.js.map +1 -0
- package/dist/{chunk-MJCCBMM5.cjs → chunk-TC3RQNEX.cjs} +6 -80
- package/dist/chunk-TC3RQNEX.cjs.map +1 -0
- package/dist/{chunk-QIMVTGKS.cjs → chunk-U73KPFYH.cjs} +255 -2
- package/dist/chunk-U73KPFYH.cjs.map +1 -0
- package/dist/{chunk-HFGXA5CL.cjs → chunk-UTTTJSQU.cjs} +4 -4
- package/dist/{chunk-HFGXA5CL.cjs.map → chunk-UTTTJSQU.cjs.map} +1 -1
- package/dist/{chunk-DLBUFHLY.js → chunk-VTTZZ4FN.js} +4 -74
- package/dist/chunk-VTTZZ4FN.js.map +1 -0
- package/dist/{chunk-5FTIHRZH.cjs → chunk-XVUOMWMD.cjs} +4 -4
- package/dist/{chunk-5FTIHRZH.cjs.map → chunk-XVUOMWMD.cjs.map} +1 -1
- package/dist/{chunk-444XKG46.js → chunk-YKQ2DPIP.js} +3 -3
- package/dist/{chunk-444XKG46.js.map → chunk-YKQ2DPIP.js.map} +1 -1
- package/dist/{chunk-HEMU73OP.cjs → chunk-YSHIC4NJ.cjs} +4 -4
- package/dist/{chunk-HEMU73OP.cjs.map → chunk-YSHIC4NJ.cjs.map} +1 -1
- package/dist/citations/index.cjs +12 -12
- package/dist/citations/index.js +3 -3
- package/dist/connect/docx.cjs +11 -11
- package/dist/connect/docx.js +8 -8
- package/dist/connect/index.cjs +1079 -333
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.d.ts +2 -0
- package/dist/connect/index.js +953 -222
- package/dist/connect/index.js.map +1 -1
- package/dist/connection/ConnectedNotificationRelevance.d.ts +4 -1
- package/dist/connection/ConnectedSettings.d.ts +3 -2
- package/dist/connection/ai.d.ts +27 -72
- package/dist/connection/settings-page/ConnectedAccountSettings.d.ts +35 -0
- package/dist/connection/settings-page/ConnectedMailSettings.d.ts +13 -0
- package/dist/connection/settings-page/ConnectedPremiumModels.d.ts +1 -0
- package/dist/connection/settings-page/ConnectedPrivacySettings.d.ts +12 -0
- package/dist/connection/settings-page/ConnectedSettingsPage.d.ts +29 -0
- package/dist/connection/settings-page/SessionStatusIcon.d.ts +7 -0
- package/dist/connection/settings-page/index.d.ts +6 -0
- package/dist/connection/workspace-settings/ConnectedWorkspaceSettings.d.ts +53 -0
- package/dist/connection/workspace-settings/index.d.ts +2 -0
- package/dist/connection/workspace-settings/useConnectedWorkspaceSettings.d.ts +85 -0
- package/dist/connection/workspaceData.d.ts +6 -6
- package/dist/facts/index.cjs +3 -3
- package/dist/facts/index.js +2 -2
- package/dist/files/index.cjs +3 -3
- package/dist/files/index.js +2 -2
- package/dist/home/index.cjs +20 -20
- package/dist/home/index.js +4 -4
- package/dist/index.cjs +468 -632
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +23 -204
- package/dist/index.js.map +1 -1
- package/dist/provider/BlocksProvider.d.ts +5 -1
- package/dist/provider/settings-section.d.ts +9 -0
- package/dist/retrieval/index.cjs +4 -4
- package/dist/retrieval/index.js +2 -2
- package/dist/settings/AppearanceSettings.d.ts +18 -0
- package/dist/settings/ServerConnectionControls.d.ts +16 -0
- package/dist/settings/SettingsPage.d.ts +31 -0
- package/dist/settings/index.cjs +178 -241
- package/dist/settings/index.cjs.map +1 -1
- package/dist/settings/index.d.ts +3 -1
- package/dist/settings/index.js +86 -198
- package/dist/settings/index.js.map +1 -1
- package/dist/shell/index.cjs +44 -44
- package/dist/shell/index.js +3 -3
- package/dist/site/index.cjs +74 -73
- package/dist/site/index.js +3 -2
- package/dist/studio/index.cjs +78 -77
- package/dist/studio/index.cjs.map +1 -1
- package/dist/studio/index.js +10 -9
- package/dist/studio/index.js.map +1 -1
- package/dist/workflow-canvas/index.cjs +25 -25
- package/dist/workflow-canvas/index.js +8 -8
- package/dist/workspaces/CommonWorkspaceToggle.d.ts +15 -0
- package/dist/workspaces/index.cjs +41 -110
- package/dist/workspaces/index.cjs.map +1 -1
- package/dist/workspaces/index.d.ts +1 -0
- package/dist/workspaces/index.js +7 -104
- package/dist/workspaces/index.js.map +1 -1
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +4 -4
- package/dist/chunk-33ZOUJXA.js.map +0 -1
- package/dist/chunk-45LRMW54.js.map +0 -1
- package/dist/chunk-7NGAWGA3.js.map +0 -1
- package/dist/chunk-BUWBXJ2N.cjs.map +0 -1
- package/dist/chunk-C4WSHRR6.cjs.map +0 -1
- package/dist/chunk-DLBUFHLY.js.map +0 -1
- package/dist/chunk-JZNXRMLH.cjs.map +0 -1
- package/dist/chunk-MJCCBMM5.cjs.map +0 -1
- package/dist/chunk-ON3TKY5Y.js.map +0 -1
- package/dist/chunk-QIMVTGKS.cjs.map +0 -1
- package/dist/chunk-RA3ZJ45L.cjs.map +0 -1
- package/dist/chunk-YNIBUKV5.js.map +0 -1
package/dist/settings/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export { DraggableHeader, type DraggableHeaderProps } from './DraggableHeader';
|
|
|
10
10
|
export { PanelFrame, PanelFrameBody, PanelScroll, PanelActionsRow, PanelAddButton, PanelTitleBar, PanelNote, type PanelFrameProps, type PanelFrameBodyProps, type PanelScrollProps, type PanelAddButtonProps, } from './PanelFrame';
|
|
11
11
|
export { ConfigSwitcherBar, DEFAULT_CONFIG_SWITCHER_BAR_LABELS, type ConfigOption, type ConfigOptionMarker, type ConfigSwitcherBarProps, type ConfigSwitcherBarLabels, } from './ConfigSwitcherBar';
|
|
12
12
|
export { ConversationTitleSection, ModelSelectionSection, CONVERSATION_TITLE_MAX, DEFAULT_CONVERSATION_TITLE_SECTION_LABELS, DEFAULT_MODEL_SELECTION_SECTION_LABELS, type ConversationTitleSectionProps, type ConversationTitleSectionLabels, type ModelSelectionSectionProps, type ModelSelectionSectionLabels, } from './ConversationSettingsParts';
|
|
13
|
-
export { ServerConnectionButton, WorkOfflineToggle, DEFAULT_WORK_OFFLINE_LABELS, type ServerConnectionState, type ServerConnectionButtonProps, type WorkOfflineToggleProps, } from './ServerConnectionControls';
|
|
13
|
+
export { ServerConnectionButton, WorkOfflineToggle, DEFAULT_WORK_OFFLINE_LABELS, serverConnectionView, type ServerConnectionStatus, type ServerConnectionView, type ServerConnectionState, type ServerConnectionButtonProps, type WorkOfflineToggleProps, } from './ServerConnectionControls';
|
|
14
14
|
export { NotificationCategoryList, type NotificationCategory, type NotificationCategoryListProps, } from './NotificationCategoryList';
|
|
15
15
|
export { PremiumModelsFrame, ModelProviderLabel, type PremiumModelsFrameProps, } from './PremiumModelsFrame';
|
|
16
16
|
export { ThreadPreviewDialog, type ThreadPreviewDialogProps, type ThreadPreviewCrumb, } from './ThreadPreviewDialog';
|
|
@@ -42,3 +42,5 @@ export { PlanNotice, PlanStack, PlanTransition, PlanPickerHeader, PlanPickerCard
|
|
|
42
42
|
export { ErrorDialogView, DEFAULT_ERROR_DIALOG_LABELS, type ErrorDialogViewProps, type ErrorDialogDetails, type ErrorDialogLabels, } from './ErrorDialog';
|
|
43
43
|
export { formatSessionTtl, toActiveSessionViews, toLogoutSessionViews, toDeleteBlockerViews, toNotificationCategories, EMAIL_NOTIFICATION_CATEGORIES, EMAIL_NOTIFICATION_KEYS, type SessionLike, type ToActiveSessionViewsOptions, type DeleteBlockerLike, type EmailNotificationCategoryDef, } from './account-views';
|
|
44
44
|
export { IdentityVerificationCard, IdentityVerificationDialog, RequireVerified, DEFAULT_IDENTITY_VERIFICATION_LABELS, type IdentityVerificationCardProps, type IdentityVerificationDialogProps, type RequireVerifiedProps, type IdentityVerificationLabels, } from './IdentityVerification';
|
|
45
|
+
export { SettingsPage, resolveSettingsSection, type SettingsPageProps, type SettingsPageSection, } from './SettingsPage';
|
|
46
|
+
export { AppearanceSettings, DEFAULT_APPEARANCE_PAIRING_IDS, type AppearanceSettingsProps, type AppearanceColorScheme, type AppearanceTextSize, } from './AppearanceSettings';
|
package/dist/settings/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
import { SettingsPanel, SettingsSection } from '../chunk-5YHEHEJT.js';
|
|
3
|
+
export { ActiveSessionsDialog, AvatarPicker, DEFAULT_ACTIVE_SESSIONS_DIALOG_LABELS, DEFAULT_AVATAR_PICKER_LABELS, DEFAULT_DELETE_ACCOUNT_DIALOG_LABELS, DEFAULT_IDENTITY_VERIFICATION_LABELS, DEFAULT_LOGOUT_DIALOG_LABELS, DEFAULT_PASSWORD_CHANGE_DIALOG_LABELS, DEFAULT_PROFILE_CARD_LABELS, DEFAULT_SETTINGS_DANGER_ZONE_LABELS, DEFAULT_WORK_OFFLINE_LABELS, DeleteAccountDialog, DraggableHeader, EMAIL_NOTIFICATION_CATEGORIES, EMAIL_NOTIFICATION_KEYS, IdentityVerificationCard, IdentityVerificationDialog, LogoutDialog, ModelProviderLabel, NotificationCategoryList, PanelActionsRow, PanelAddButton, PanelFrame, PanelFrameBody, PanelNote, PanelScroll, PanelTitleBar, PasswordChangeDialog, PremiumModelsFrame, ProfileCard, RequireVerified, ServerConnectionButton, SettingsActionRow, SettingsCard, SettingsDangerZone, SettingsPage, SettingsPanel, SettingsRow, SettingsSection, SettingsSwitchGroup, SettingsSwitchRow, WorkOfflineToggle, formatSessionTtl, resolveSettingsSection, serverConnectionView, toActiveSessionViews, toDeleteBlockerViews, toLogoutSessionViews, toNotificationCategories } from '../chunk-5YHEHEJT.js';
|
|
3
4
|
export { ModalBreadcrumbHeader, ModalCrumbs } from '../chunk-RC6VTY2H.js';
|
|
4
5
|
import { UsageMeter } from '../chunk-66TA5IBN.js';
|
|
6
|
+
import { getFontPairing } from '../chunk-NHZK64TQ.js';
|
|
5
7
|
export { MultiSelect } from '../chunk-CQCC7LE7.js';
|
|
6
8
|
export { DEFAULT_DOCUMENT_PICKER_LABELS, DEFAULT_TRI_STATE_FILTER_MENU_LABELS, DocumentPicker, TriStateFilterMenu } from '../chunk-KSHKTOY2.js';
|
|
7
9
|
import { ToneBadge } from '../chunk-5LXQPP2K.js';
|
|
@@ -16,10 +18,10 @@ export { MODAL_SECTION_TITLE_CLASS, ModalHeader, ModalScaffold, ModalSection, Mo
|
|
|
16
18
|
import { formatCount } from '../chunk-OXF2IFXG.js';
|
|
17
19
|
import '../chunk-VUNV25KB.js';
|
|
18
20
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
19
|
-
import { cn, DialogFooter, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, Input, Button, Tooltip, TooltipTrigger, TooltipContent,
|
|
21
|
+
import { cn, DialogFooter, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, Input, Button, Tooltip, TooltipTrigger, TooltipContent, Dialog, DialogContent, DialogTitle, DialogDescription, Label, Textarea, Checkbox, ScrollArea, DialogHeader, Badge, Progress } from '@arbidocs/react/ui';
|
|
20
22
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
21
23
|
import { useMemo, useState, useId, Fragment as Fragment$1 } from 'react';
|
|
22
|
-
import { History, Undo2, Star, Trash2, Users, Sparkles, Brain,
|
|
24
|
+
import { Sun, Moon, History, Undo2, Star, Trash2, Users, Sparkles, Brain, ChevronDown, ChevronRight, Pencil, Plus, Loader2, Check, X, Info, Tag, Gift, PlugIcon, CheckCircle2, ExternalLink, ShieldCheck, Plug, AlertCircle, MessageCircleQuestionMark, BookOpen, UserPlus, ChartNoAxesColumn, FileText, Mail, Send, Clock, Infinity, ArrowRight, Copy, RefreshCw, LogOut, RotateCcw } from 'lucide-react';
|
|
23
25
|
import { cva } from 'class-variance-authority';
|
|
24
26
|
|
|
25
27
|
function SegmentedControl({
|
|
@@ -124,77 +126,6 @@ function FloatingPanel({
|
|
|
124
126
|
}
|
|
125
127
|
);
|
|
126
128
|
}
|
|
127
|
-
function PanelFrame({ testId, className, children }) {
|
|
128
|
-
return /* @__PURE__ */ jsx(
|
|
129
|
-
"div",
|
|
130
|
-
{
|
|
131
|
-
"data-slot": "panel-frame",
|
|
132
|
-
"data-testid": testId,
|
|
133
|
-
className: cn("flex h-full min-h-0 flex-col bg-background", className),
|
|
134
|
-
children
|
|
135
|
-
}
|
|
136
|
-
);
|
|
137
|
-
}
|
|
138
|
-
function PanelFrameBody({ className, children }) {
|
|
139
|
-
return /* @__PURE__ */ jsx("div", { "data-slot": "panel-frame-body", className: cn("min-h-0 flex-1 overflow-hidden", className), children });
|
|
140
|
-
}
|
|
141
|
-
function PanelScroll({ variant = "flush", className, children }) {
|
|
142
|
-
return /* @__PURE__ */ jsx(
|
|
143
|
-
"div",
|
|
144
|
-
{
|
|
145
|
-
"data-slot": "panel-scroll",
|
|
146
|
-
className: cn("h-full overflow-auto", variant === "padded" && "space-y-4 p-3", className),
|
|
147
|
-
children
|
|
148
|
-
}
|
|
149
|
-
);
|
|
150
|
-
}
|
|
151
|
-
function PanelActionsRow({
|
|
152
|
-
className,
|
|
153
|
-
children
|
|
154
|
-
}) {
|
|
155
|
-
return /* @__PURE__ */ jsx("div", { "data-slot": "panel-actions-row", className: cn("flex justify-end", className), children });
|
|
156
|
-
}
|
|
157
|
-
function PanelAddButton({
|
|
158
|
-
label,
|
|
159
|
-
onClick,
|
|
160
|
-
isCompact,
|
|
161
|
-
icon,
|
|
162
|
-
testId,
|
|
163
|
-
disabledReason
|
|
164
|
-
}) {
|
|
165
|
-
return /* @__PURE__ */ jsxs(
|
|
166
|
-
"button",
|
|
167
|
-
{
|
|
168
|
-
type: "button",
|
|
169
|
-
onClick,
|
|
170
|
-
disabled: !!disabledReason,
|
|
171
|
-
title: disabledReason ?? label,
|
|
172
|
-
"data-slot": "panel-add-button",
|
|
173
|
-
"data-testid": testId,
|
|
174
|
-
className: "flex h-8 items-center gap-1.5 rounded-md px-2 text-sm font-medium text-primary transition-colors hover:bg-primary/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent pointer-coarse:h-11 pointer-coarse:min-w-11",
|
|
175
|
-
children: [
|
|
176
|
-
icon,
|
|
177
|
-
isCompact ? /* @__PURE__ */ jsx("span", { className: "sr-only", children: label }) : /* @__PURE__ */ jsx("span", { children: "New" })
|
|
178
|
-
]
|
|
179
|
-
}
|
|
180
|
-
);
|
|
181
|
-
}
|
|
182
|
-
function PanelTitleBar({
|
|
183
|
-
icon,
|
|
184
|
-
title,
|
|
185
|
-
end
|
|
186
|
-
}) {
|
|
187
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "panel-title-bar", className: "flex w-full items-center justify-between px-4 py-2", children: [
|
|
188
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
189
|
-
icon,
|
|
190
|
-
/* @__PURE__ */ jsx("span", { className: "font-medium", children: title })
|
|
191
|
-
] }),
|
|
192
|
-
end
|
|
193
|
-
] });
|
|
194
|
-
}
|
|
195
|
-
function PanelNote({ children }) {
|
|
196
|
-
return /* @__PURE__ */ jsx("div", { "data-slot": "panel-note", className: "py-8 text-center text-muted-foreground", children });
|
|
197
|
-
}
|
|
198
129
|
var DEFAULT_CONFIG_SWITCHER_BAR_LABELS = {
|
|
199
130
|
placeholder: "Select configuration...",
|
|
200
131
|
save: "Save",
|
|
@@ -444,129 +375,6 @@ function ModelSelectionSection({
|
|
|
444
375
|
] })
|
|
445
376
|
] });
|
|
446
377
|
}
|
|
447
|
-
var DOT = {
|
|
448
|
-
connected: "bg-green-solid",
|
|
449
|
-
connecting: "bg-yellow-solid",
|
|
450
|
-
disconnected: "bg-red-solid",
|
|
451
|
-
offline: "bg-yellow-solid"
|
|
452
|
-
};
|
|
453
|
-
function ServerConnectionButton({
|
|
454
|
-
state,
|
|
455
|
-
label,
|
|
456
|
-
isRefreshing,
|
|
457
|
-
onRefresh,
|
|
458
|
-
testId = "refresh-session-button"
|
|
459
|
-
}) {
|
|
460
|
-
return /* @__PURE__ */ jsxs(
|
|
461
|
-
Button,
|
|
462
|
-
{
|
|
463
|
-
type: "button",
|
|
464
|
-
variant: "outline",
|
|
465
|
-
size: "sm",
|
|
466
|
-
onClick: onRefresh,
|
|
467
|
-
disabled: isRefreshing,
|
|
468
|
-
className: "flex items-center gap-2",
|
|
469
|
-
"data-testid": testId,
|
|
470
|
-
"data-state": state,
|
|
471
|
-
children: [
|
|
472
|
-
/* @__PURE__ */ jsx(RefreshCw, { className: cn("size-4", isRefreshing && "animate-spin") }),
|
|
473
|
-
/* @__PURE__ */ jsx("span", { className: cn("size-2 rounded-full", DOT[state]), "aria-hidden": true }),
|
|
474
|
-
label
|
|
475
|
-
]
|
|
476
|
-
}
|
|
477
|
-
);
|
|
478
|
-
}
|
|
479
|
-
var DEFAULT_WORK_OFFLINE_LABELS = {
|
|
480
|
-
goOnline: "Go online",
|
|
481
|
-
workOffline: "Work offline",
|
|
482
|
-
goOnlineHint: "Reconnect and use ARBI online again",
|
|
483
|
-
workOfflineHint: "Work offline \u2014 read cached docs and queue edits, even though the server is reachable"
|
|
484
|
-
};
|
|
485
|
-
function WorkOfflineToggle({
|
|
486
|
-
isOffline,
|
|
487
|
-
onToggle,
|
|
488
|
-
labels,
|
|
489
|
-
testId = "work-offline-toggle"
|
|
490
|
-
}) {
|
|
491
|
-
const l = { ...DEFAULT_WORK_OFFLINE_LABELS, ...labels };
|
|
492
|
-
return /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
493
|
-
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
494
|
-
Button,
|
|
495
|
-
{
|
|
496
|
-
variant: isOffline ? "secondary" : "outline",
|
|
497
|
-
size: "icon",
|
|
498
|
-
onClick: () => onToggle(!isOffline),
|
|
499
|
-
"aria-label": isOffline ? l.goOnline : l.workOffline,
|
|
500
|
-
"aria-pressed": isOffline,
|
|
501
|
-
"data-testid": testId,
|
|
502
|
-
children: isOffline ? /* @__PURE__ */ jsx(Wifi, { className: "size-4" }) : /* @__PURE__ */ jsx(WifiOff, { className: "size-4" })
|
|
503
|
-
}
|
|
504
|
-
) }),
|
|
505
|
-
/* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: isOffline ? l.goOnlineHint : l.workOfflineHint }) })
|
|
506
|
-
] });
|
|
507
|
-
}
|
|
508
|
-
var GRID_ACCENT_CLASSES = [
|
|
509
|
-
"[&_.ag-checkbox-input-wrapper.ag-checked]:!bg-primary",
|
|
510
|
-
"[&_.ag-checkbox-input-wrapper.ag-checked]:!border-primary",
|
|
511
|
-
"[&_.ag-checkbox-input-wrapper.ag-checked]:!text-primary-foreground"
|
|
512
|
-
];
|
|
513
|
-
var GRID_ACCENT_VARS = {
|
|
514
|
-
"--ag-checkbox-checked-color": "hsl(var(--primary))",
|
|
515
|
-
"--ag-selected-row-background-color": "hsl(var(--accent))"
|
|
516
|
-
};
|
|
517
|
-
function PremiumModelsFrame({
|
|
518
|
-
enabled,
|
|
519
|
-
onEnabledChange,
|
|
520
|
-
title = "Enable Premium Models",
|
|
521
|
-
description = "Third party AI models are priced on a pass-through basis.",
|
|
522
|
-
children,
|
|
523
|
-
toggleTestId
|
|
524
|
-
}) {
|
|
525
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "premium-models-frame", children: [
|
|
526
|
-
/* @__PURE__ */ jsxs("div", { className: "mb-2 flex items-center gap-3", children: [
|
|
527
|
-
/* @__PURE__ */ jsx(
|
|
528
|
-
Switch,
|
|
529
|
-
{
|
|
530
|
-
id: "premiumModelToggle",
|
|
531
|
-
checked: enabled,
|
|
532
|
-
onCheckedChange: onEnabledChange,
|
|
533
|
-
"data-testid": testIdOr(toggleTestId, { testId: "toggle-premium-model" })
|
|
534
|
-
}
|
|
535
|
-
),
|
|
536
|
-
/* @__PURE__ */ jsxs(
|
|
537
|
-
"label",
|
|
538
|
-
{
|
|
539
|
-
className: "flex cursor-pointer items-center gap-2 text-sm font-medium",
|
|
540
|
-
htmlFor: "premiumModelToggle",
|
|
541
|
-
children: [
|
|
542
|
-
/* @__PURE__ */ jsx(Crown, { className: "size-4 text-muted-foreground" }),
|
|
543
|
-
title
|
|
544
|
-
]
|
|
545
|
-
}
|
|
546
|
-
)
|
|
547
|
-
] }),
|
|
548
|
-
/* @__PURE__ */ jsx("p", { className: "mb-2 text-sm text-muted-foreground", children: description }),
|
|
549
|
-
/* @__PURE__ */ jsx(
|
|
550
|
-
"div",
|
|
551
|
-
{
|
|
552
|
-
className: cn(
|
|
553
|
-
"transition-opacity",
|
|
554
|
-
!enabled && "pointer-events-none opacity-50",
|
|
555
|
-
GRID_ACCENT_CLASSES
|
|
556
|
-
),
|
|
557
|
-
style: GRID_ACCENT_VARS,
|
|
558
|
-
"aria-disabled": !enabled,
|
|
559
|
-
children
|
|
560
|
-
}
|
|
561
|
-
)
|
|
562
|
-
] });
|
|
563
|
-
}
|
|
564
|
-
function ModelProviderLabel({ logo, children }) {
|
|
565
|
-
return /* @__PURE__ */ jsxs("span", { "data-slot": "model-provider", className: "flex items-center gap-1.5", children: [
|
|
566
|
-
logo,
|
|
567
|
-
children
|
|
568
|
-
] });
|
|
569
|
-
}
|
|
570
378
|
function ThreadPreviewDialog({
|
|
571
379
|
open,
|
|
572
380
|
onOpenChange,
|
|
@@ -3642,7 +3450,87 @@ function ErrorDialogView({
|
|
|
3642
3450
|
}
|
|
3643
3451
|
) });
|
|
3644
3452
|
}
|
|
3453
|
+
var SCHEME_OPTIONS = [
|
|
3454
|
+
{ value: "light", label: "Light", icon: /* @__PURE__ */ jsx(Sun, { className: "h-4 w-4" }) },
|
|
3455
|
+
{ value: "dark", label: "Dark", icon: /* @__PURE__ */ jsx(Moon, { className: "h-4 w-4" }) }
|
|
3456
|
+
].map((option) => ({ ...option, testId: `appearance-scheme-${option.value}` }));
|
|
3457
|
+
var TEXT_SIZE_OPTIONS = [
|
|
3458
|
+
{ value: "default", label: "Default" },
|
|
3459
|
+
{ value: "large", label: "Large" },
|
|
3460
|
+
{ value: "larger", label: "Larger" }
|
|
3461
|
+
].map((option) => ({ ...option, testId: `appearance-text-size-${option.value}` }));
|
|
3462
|
+
var DEFAULT_APPEARANCE_PAIRING_IDS = [
|
|
3463
|
+
"office",
|
|
3464
|
+
"inter",
|
|
3465
|
+
"fraunces-inter",
|
|
3466
|
+
"montserrat-nunito"
|
|
3467
|
+
];
|
|
3468
|
+
function AppearanceSettings({
|
|
3469
|
+
colorScheme,
|
|
3470
|
+
onColorSchemeChange,
|
|
3471
|
+
textSize,
|
|
3472
|
+
onTextSizeChange,
|
|
3473
|
+
pairingId,
|
|
3474
|
+
onPairingChange,
|
|
3475
|
+
pairingIds = DEFAULT_APPEARANCE_PAIRING_IDS,
|
|
3476
|
+
onReset
|
|
3477
|
+
}) {
|
|
3478
|
+
const activePairing = getFontPairing(pairingId) ?? getFontPairing(pairingIds[0]);
|
|
3479
|
+
return /* @__PURE__ */ jsxs(SettingsPanel, { testId: "settings-appearance", children: [
|
|
3480
|
+
/* @__PURE__ */ jsx(
|
|
3481
|
+
SettingsSection,
|
|
3482
|
+
{
|
|
3483
|
+
title: "Colour scheme",
|
|
3484
|
+
action: onReset && /* @__PURE__ */ jsxs(
|
|
3485
|
+
"button",
|
|
3486
|
+
{
|
|
3487
|
+
type: "button",
|
|
3488
|
+
onClick: onReset,
|
|
3489
|
+
className: "flex items-center gap-1.5 py-1 text-sm text-muted-foreground hover:text-foreground pointer-coarse:min-h-11",
|
|
3490
|
+
"data-testid": "appearance-reset",
|
|
3491
|
+
children: [
|
|
3492
|
+
/* @__PURE__ */ jsx(RotateCcw, { className: "h-3 w-3" }),
|
|
3493
|
+
"Reset"
|
|
3494
|
+
]
|
|
3495
|
+
}
|
|
3496
|
+
),
|
|
3497
|
+
children: /* @__PURE__ */ jsx(
|
|
3498
|
+
SegmentedControl,
|
|
3499
|
+
{
|
|
3500
|
+
value: colorScheme,
|
|
3501
|
+
onChange: onColorSchemeChange,
|
|
3502
|
+
options: SCHEME_OPTIONS,
|
|
3503
|
+
ariaLabel: "Colour scheme"
|
|
3504
|
+
}
|
|
3505
|
+
)
|
|
3506
|
+
}
|
|
3507
|
+
),
|
|
3508
|
+
/* @__PURE__ */ jsxs(SettingsSection, { title: "Text size", children: [
|
|
3509
|
+
/* @__PURE__ */ jsx(
|
|
3510
|
+
SegmentedControl,
|
|
3511
|
+
{
|
|
3512
|
+
value: textSize,
|
|
3513
|
+
onChange: onTextSizeChange,
|
|
3514
|
+
options: TEXT_SIZE_OPTIONS,
|
|
3515
|
+
ariaLabel: "Text size"
|
|
3516
|
+
}
|
|
3517
|
+
),
|
|
3518
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "Makes all text larger, including documents in the viewer and citations. Applied straight away and remembered on this device." })
|
|
3519
|
+
] }),
|
|
3520
|
+
/* @__PURE__ */ jsxs(SettingsSection, { title: "Typeface", children: [
|
|
3521
|
+
/* @__PURE__ */ jsxs(Select, { value: pairingId, onValueChange: onPairingChange, children: [
|
|
3522
|
+
/* @__PURE__ */ jsx(SelectTrigger, { className: "w-full", "data-testid": "appearance-typeface-select", children: /* @__PURE__ */ jsx(SelectValue, { children: activePairing && /* @__PURE__ */ jsx("span", { style: { fontFamily: activePairing.display }, children: activePairing.label }) }) }),
|
|
3523
|
+
/* @__PURE__ */ jsx(SelectContent, { children: pairingIds.map((id) => {
|
|
3524
|
+
const pairing = getFontPairing(id);
|
|
3525
|
+
if (!pairing) return null;
|
|
3526
|
+
return /* @__PURE__ */ jsx(SelectItem, { value: id, "data-testid": `appearance-typeface-${id}`, children: /* @__PURE__ */ jsx("span", { style: { fontFamily: pairing.display }, children: pairing.label }) }, id);
|
|
3527
|
+
}) })
|
|
3528
|
+
] }),
|
|
3529
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "Sets the headings and body text across the app. Applied straight away and remembered on this device." })
|
|
3530
|
+
] })
|
|
3531
|
+
] });
|
|
3532
|
+
}
|
|
3645
3533
|
|
|
3646
|
-
export { CONVERSATION_TITLE_MAX, CheckoutDialogFrame, ConfigSwitcherBar, ConnectionCard, ConnectionsEmpty, ConnectionsError, ConnectionsLoading, ConversationTitleSection, DEFAULT_CHECKOUT_DIALOG_LABELS, DEFAULT_CONFIG_SWITCHER_BAR_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_REWARD_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_USAGE_LINE_CHART_LABELS, DEFAULT_USAGE_PANEL_LABELS, DEFAULT_USAGE_PROPORTION_BAR_LABELS, DEFAULT_WELCOME_DIALOG_LABELS,
|
|
3534
|
+
export { AppearanceSettings, CONVERSATION_TITLE_MAX, CheckoutDialogFrame, ConfigSwitcherBar, ConnectionCard, ConnectionsEmpty, ConnectionsError, ConnectionsLoading, ConversationTitleSection, DEFAULT_APPEARANCE_PAIRING_IDS, DEFAULT_CHECKOUT_DIALOG_LABELS, DEFAULT_CONFIG_SWITCHER_BAR_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_REWARD_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_USAGE_LINE_CHART_LABELS, DEFAULT_USAGE_PANEL_LABELS, DEFAULT_USAGE_PROPORTION_BAR_LABELS, DEFAULT_WELCOME_DIALOG_LABELS, DailyCapField, EmailWorkspaceDialogView, ErrorDialogView, FilterChip, FloatingPanel, InlineNameEditor, InviteContactsDialog, InvoicesDialog, JsonTree, MemberProjectRow, MessageJsonTree, ModelSelectionSection, MoreInfo, MoreInfoList, PlanActionButton, PlanActionRow, PlanBadge, PlanCard, PlanCardGrid, PlanDialogFrame, PlanInfoPopover, PlanNotice, PlanPickerCard, PlanPickerHeader, PlanStack, PlanTierOption, PlanTransition, PricingToggle, ProjectCardView, ProjectDetailHeader, ProjectDetailSection, ProjectGroup, ProjectList, ProjectNameLabel, ProjectPlanPicker, ProjectRow, ProjectRowActions, PromoCodeInput, QuotaExceededDialogView, QuotaMeter, ReferralRewardBadge, ReferralRewardNote, ReferralRewardSummary, RenameDialog, RowButton, RowIconAction, SegmentedControl, SharedProjectRow, SharedProjectsSection, SubscriptionSectionView, SubscriptionStatusView, SupportPanel, SupportUnavailable, SyncCheckList, SyncDialogBody, SyncDialogFooter, SyncField, SyncFolderRow, SyncFolderStatus, SyncLinkButton, SyncLinkRow, SyncLoading, SyncNote, SyncOptionToggle, SyncOptions, SyncReconnectNotice, SyncSelect, SyncSmallNote, SyncTreeFrame, ThreadPreviewDialog, TipsEditorDialog, UsageActionButton, UsageLegend, UsageLineChart, UsagePanel, UsageProportionBar, UsageQuotaHint, UsageSection, UsageSummary, UsageToggle, WelcomeDialog, WelcomeProjectPicker };
|
|
3647
3535
|
//# sourceMappingURL=index.js.map
|
|
3648
3536
|
//# sourceMappingURL=index.js.map
|