@vantageos/mosaic-blocks 0.5.19-alpha → 0.5.21-alpha

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/index.d.cts CHANGED
@@ -20,7 +20,7 @@ import { Switch } from '@base-ui/react/switch';
20
20
  import * as class_variance_authority_types from 'class-variance-authority/types';
21
21
  export { Tooltip } from '@base-ui/react/tooltip';
22
22
 
23
- declare const version = "0.5.19-alpha";
23
+ declare const version = "0.5.21-alpha";
24
24
 
25
25
  /**
26
26
  * Placeholder component — infra scaffold only.
@@ -1926,6 +1926,63 @@ interface MosaicComboboxProps {
1926
1926
  */
1927
1927
  declare function MosaicCombobox({ items, value, onValueChange, defaultValue, placeholder, disabled, name, emptyMessage, className, }: MosaicComboboxProps): React.JSX.Element;
1928
1928
 
1929
+ interface MosaicModelOption {
1930
+ /** Unique identifier the host resolves back to its own model catalogue. */
1931
+ value: string;
1932
+ /** Display name (e.g. "GPT-5", "Claude Opus"). */
1933
+ label: string;
1934
+ /** Optional one-line description, supplied by the host. */
1935
+ description?: string;
1936
+ /** Optional meta line (e.g. context window / pricing), supplied by the host. */
1937
+ meta?: string;
1938
+ /** Optional badge text (e.g. "Recommended"), supplied by the host. */
1939
+ badge?: string;
1940
+ /** When true, the option is shown but cannot be selected. */
1941
+ disabled?: boolean;
1942
+ }
1943
+ interface MosaicModelSelectorProps {
1944
+ /** The full list of selectable models. The library knows no model names — host-owned. */
1945
+ models: MosaicModelOption[];
1946
+ /** Controlled selected value. */
1947
+ value?: string;
1948
+ /** Callback fired when the host's selection should change. Never fires for disabled options. */
1949
+ onValueChange?: (value: string) => void;
1950
+ /**
1951
+ * Text shown in the trigger when no model is selected. Required — the
1952
+ * host owns the language (e.g. `t('ModelSelector.placeholder')`).
1953
+ */
1954
+ placeholder: string;
1955
+ /**
1956
+ * Message shown when no model matches the filter. Required — the host
1957
+ * owns the language. No default, no fallback.
1958
+ */
1959
+ emptyMessage: string;
1960
+ disabled?: boolean;
1961
+ name?: string;
1962
+ className?: string;
1963
+ }
1964
+ /**
1965
+ * MosaicModelSelector — production model-picker atom for @vantageos/mosaic-blocks.
1966
+ *
1967
+ * The component owns zero model knowledge: `models` is supplied by the host,
1968
+ * filtered as the user types, and the selected id is surfaced through
1969
+ * `onValueChange`. All visible strings that are not per-model host data
1970
+ * (placeholder, emptyMessage) are required props with no default.
1971
+ *
1972
+ * @example
1973
+ * <MosaicModelSelector
1974
+ * models={[{ value: "gpt-5", label: "GPT-5", description: "Flagship model" }]}
1975
+ * value={selectedModel}
1976
+ * onValueChange={setSelectedModel}
1977
+ * placeholder={t('ModelSelector.placeholder')}
1978
+ * emptyMessage={t('ModelSelector.empty')}
1979
+ * />
1980
+ */
1981
+ declare function MosaicModelSelector({ models, value, onValueChange, placeholder, emptyMessage, disabled, name, className, }: MosaicModelSelectorProps): React.JSX.Element;
1982
+ declare namespace MosaicModelSelector {
1983
+ var displayName: string;
1984
+ }
1985
+
1929
1986
  /**
1930
1987
  * MosaicDropdownMenu — @base-ui/react Menu primitive
1931
1988
  *
@@ -3347,6 +3404,141 @@ declare namespace MosaicMemoryCard {
3347
3404
  var displayName: string;
3348
3405
  }
3349
3406
 
3407
+ /**
3408
+ * MosaicTemplateAgentCard — agent-type template preview card
3409
+ *
3410
+ * Ported from any-debate-ai's components/templates/TemplateCard.tsx.
3411
+ *
3412
+ * What was dropped and why:
3413
+ * - `useDevice()` / `isMobile` breakpoint branching — a JS-side responsive
3414
+ * toggle is app-specific plumbing, not a library concern. The host controls
3415
+ * density via `className` / CSS container queries instead.
3416
+ * - `conversationIcons` (debate/collaboration/analysis -> lucide icon map) and
3417
+ * the `isPopular`/`isTrending` thresholds derived from `usageCount` — both
3418
+ * are hardcoded business knowledge (a taxonomy of conversation types, and a
3419
+ * "popular" threshold) that does not belong in the component. The host
3420
+ * passes an optional `icon` node and decides its own popularity badges, if
3421
+ * any, via composition around this card.
3422
+ * - `framer-motion` hover/tap scale — not a locked dependency here; dropped
3423
+ * with a plain CSS `transition-all` on the CVA root instead.
3424
+ * - lucide-react icons — no icon library dependency in this repo; inline SVG
3425
+ * only, same as MosaicAgentCard / MosaicModuleCard / MosaicMemoryCard.
3426
+ *
3427
+ * a11y fix vs. the source: the source made the whole `<Card>` a `<div
3428
+ * onClick>` with nested `<Button>`s for preview/duplicate (stopping click
3429
+ * propagation). A `<div onClick>` is not keyboard-actionable, and nesting
3430
+ * `<button>` inside a clickable non-button element is fragile. Here the
3431
+ * "select" affordance is its own real `<button>` (name + `aria-pressed`
3432
+ * driven by the host), and preview/duplicate are SIBLING buttons — never
3433
+ * nested inside another interactive element.
3434
+ *
3435
+ * SIN-01 (bilingual by design): every visible string is a required prop or a
3436
+ * required formatter function, no default, no fallback operator, no
3437
+ * destructuring default. `agentCountLabel` is the one exception that would
3438
+ * look surprising: it is the fully-formatted string ("3 agents"), not a
3439
+ * number, because pluralization is a locale rule the library must not own.
3440
+ *
3441
+ * Pattern: MosaicMemoryCard.tsx (data-slot, cva variants module, manual
3442
+ * dropdown-free actions row, inline SVG icons, React 19 ref prop,
3443
+ * displayName, JSDoc, formatter props over hardcoded strings).
3444
+ * Design tokens: --card, --card-foreground, --border, --primary,
3445
+ * --muted-foreground, --muted.
3446
+ * No icon library — inline SVGs only.
3447
+ */
3448
+
3449
+ interface MosaicTemplateAgentData {
3450
+ id: string;
3451
+ name: string;
3452
+ description: string;
3453
+ /** Number of agents composing this template. Formatted by the host via `agentCountLabel`. */
3454
+ agentCount: number;
3455
+ /** Raw usage count. Formatted by the host via `formatUsageCount`. */
3456
+ usageCount: number;
3457
+ /** Free-form category string — host-owned taxonomy, never a library enum. */
3458
+ category?: string;
3459
+ tags?: string[];
3460
+ }
3461
+ interface MosaicTemplateAgentCardProps {
3462
+ template: MosaicTemplateAgentData;
3463
+ isSelected?: boolean;
3464
+ onSelect: (template: MosaicTemplateAgentData) => void;
3465
+ onPreview?: (template: MosaicTemplateAgentData) => void;
3466
+ onDuplicate?: (template: MosaicTemplateAgentData) => void;
3467
+ /** Optional leading icon — host-owned, no default (no icon-library dependency here). */
3468
+ icon?: React.ReactNode;
3469
+ /**
3470
+ * Accessible name for the card's clickable "select" button. Required —
3471
+ * host-owned (e.g. `t("templates.select", { name: template.name })`).
3472
+ */
3473
+ selectAriaLabel: string;
3474
+ /**
3475
+ * Fully-formatted agent-count caption (e.g. "3 agents"). Required — the
3476
+ * host owns pluralization and language, the library never counts words.
3477
+ */
3478
+ agentCountLabel: string;
3479
+ /**
3480
+ * Formatter producing the usage-count caption from `template.usageCount`.
3481
+ * Required — always called, even when the count is 0; a host that wants
3482
+ * the badge hidden at 0 returns `null` from this formatter itself.
3483
+ */
3484
+ formatUsageCount: (count: number) => React.ReactNode;
3485
+ /**
3486
+ * Formatter producing the "+N" overflow caption when a template has more
3487
+ * than 3 tags. Required — host-owned (e.g. `(n) => \`+\${n}\`` or a
3488
+ * pluralized `t()` call).
3489
+ */
3490
+ formatMoreTags: (count: number) => React.ReactNode;
3491
+ /** aria-label for the preview action. Required, no default. */
3492
+ previewAriaLabel: string;
3493
+ /** aria-label for the duplicate action. Required, no default. */
3494
+ duplicateAriaLabel: string;
3495
+ className?: string;
3496
+ /** React 19 ref prop — forwarded to the root element. */
3497
+ ref?: React.Ref<HTMLDivElement>;
3498
+ }
3499
+ /**
3500
+ * MosaicTemplateAgentCard — production template preview card for
3501
+ * @vantageos/mosaic-blocks. Presentational and controlled: it renders a
3502
+ * template's identity and metadata and reports intents (`onSelect`,
3503
+ * `onPreview`, `onDuplicate`) — it never decides anything about the data.
3504
+ *
3505
+ * @example
3506
+ * <MosaicTemplateAgentCard
3507
+ * template={template}
3508
+ * isSelected={selectedId === template.id}
3509
+ * onSelect={(t) => setSelectedId(t.id)}
3510
+ * onPreview={(t) => openPreview(t)}
3511
+ * onDuplicate={(t) => duplicateTemplate(t)}
3512
+ * selectAriaLabel={t("templates.select", { name: template.name })}
3513
+ * agentCountLabel={t("templates.agentCount", { count: template.agentCount })}
3514
+ * formatUsageCount={(count) => (count > 0 ? t("templates.uses", { count }) : null)}
3515
+ * formatMoreTags={(count) => `+${count}`}
3516
+ * previewAriaLabel={t("templates.preview")}
3517
+ * duplicateAriaLabel={t("templates.duplicate")}
3518
+ * />
3519
+ */
3520
+ declare function MosaicTemplateAgentCard({ template, isSelected, onSelect, onPreview, onDuplicate, icon, selectAriaLabel, agentCountLabel, formatUsageCount, formatMoreTags, previewAriaLabel, duplicateAriaLabel, className, ref, }: MosaicTemplateAgentCardProps): React.JSX.Element;
3521
+ declare namespace MosaicTemplateAgentCard {
3522
+ var displayName: string;
3523
+ }
3524
+
3525
+ /**
3526
+ * templateAgentCardVariants — pure CVA variant functions for MosaicTemplateAgentCard.
3527
+ *
3528
+ * Isolated in their own module so they can be re-exported from the
3529
+ * `@vantageos/mosaic-blocks/server` subpath without pulling in React.
3530
+ *
3531
+ * Zero browser / React runtime dependencies — safe in RSC / Node.js.
3532
+ */
3533
+ /** Root card container variants — selected state only. */
3534
+ declare const templateAgentCardVariants: (props?: ({
3535
+ selected?: boolean | null | undefined;
3536
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
3537
+ /** Category / agent-count / usage-count badge. */
3538
+ declare const templateAgentCardBadgeVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
3539
+ /** Tag chip, including the "+N" overflow chip. */
3540
+ declare const templateAgentCardTagVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
3541
+
3350
3542
  /**
3351
3543
  * MosaicSelectorModal — generic searchable item picker modal
3352
3544
  *
@@ -5687,6 +5879,10 @@ declare namespace MosaicMarkdown {
5687
5879
  * on a component that does not exist yet in its own package.
5688
5880
  * - `toolStatusLabels` — every user-facing tool-status word is host-owned
5689
5881
  * copy (SIN-01 i18n), no English fallback baked in.
5882
+ * - `renderAttachment` — required on the `"attachment"` part. The host
5883
+ * renders its own file/image/PDF viewer; the library bundles zero
5884
+ * attachment-rendering dependency and only exposes the attachment's
5885
+ * metadata as `data-*` attributes (never as rendered content).
5690
5886
  *
5691
5887
  * Tool-call lifecycle is a discriminated union on `state`, matching the
5692
5888
  * eve/react part contract exactly (input-streaming -> approval-requested ->
@@ -5821,7 +6017,32 @@ type MosaicChatMessageToolState = {
5821
6017
  errorText: string;
5822
6018
  };
5823
6019
  type MosaicChatMessageToolPart = MosaicChatMessageToolPartBase & MosaicChatMessageToolState;
5824
- type MosaicChatMessagePart = MosaicChatMessageTextPart | MosaicChatMessageReasoningPart | MosaicChatMessageToolPart;
6020
+ /**
6021
+ * Host-rendered attachment part. Mirrors the tool-call `renderApproval`
6022
+ * pattern: the library never bundles a file viewer/renderer — the host
6023
+ * supplies `renderAttachment`. The metadata fields describe the attachment
6024
+ * (never its rendering) and are exposed as `data-*` attributes on the
6025
+ * wrapper, never as rendered text/UI.
6026
+ */
6027
+ interface MosaicChatMessageAttachmentPart {
6028
+ type: "attachment";
6029
+ /** Stable identifier for this attachment, used as the React key. */
6030
+ attachmentId: string;
6031
+ /** File name, exposed as `data-attachment-filename`. */
6032
+ fileName: string;
6033
+ /** MIME type of the attachment, exposed as `data-attachment-mimetype`. */
6034
+ mimeType: string;
6035
+ /** Size in bytes, exposed as `data-attachment-size`. */
6036
+ sizeBytes: number;
6037
+ /** URL where the attachment can be fetched/downloaded. */
6038
+ url: string;
6039
+ /**
6040
+ * Renders the host-owned attachment UI (e.g. a PDF/image viewer). Required
6041
+ * — the library never bundles a file-rendering dependency.
6042
+ */
6043
+ renderAttachment: (part: MosaicChatMessageAttachmentPart) => React.ReactNode;
6044
+ }
6045
+ type MosaicChatMessagePart = MosaicChatMessageTextPart | MosaicChatMessageReasoningPart | MosaicChatMessageToolPart | MosaicChatMessageAttachmentPart;
5825
6046
  /** Host-owned copy for every tool-call status label. Required, no default. */
5826
6047
  interface MosaicChatMessageToolStatusLabels {
5827
6048
  running: string;
@@ -7102,4 +7323,60 @@ declare const tagInputRemoveButtonVariants: (props?: class_variance_authority_ty
7102
7323
  /** Bare text input where new tags are typed. */
7103
7324
  declare const tagInputFieldVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
7104
7325
 
7105
- export { type Breakpoint, type DeviceContextValue, type Feature3ColItem, type FeatureItem, type FooterColumn, type FooterLink, type HeroCta, type LogoItem, MosaicAccordion, MosaicAccordionItem, type MosaicAccordionItemProps, MosaicAccordionPanel, type MosaicAccordionPanelProps, type MosaicAccordionProps, MosaicAccordionTrigger, type MosaicAccordionTriggerProps, type MosaicActionAccent, type MosaicActivity, MosaicActivityFeed, type MosaicActivityFeedProps, MosaicActivityItem, type MosaicActivityItemProps, type MosaicActivityStatus, MosaicAdaptiveGrid, type MosaicAdaptiveGridProps, MosaicAdaptiveModal, type MosaicAdaptiveModalProps, MosaicAdaptiveNavigation, type MosaicAdaptiveNavigationProps, MosaicAgentCard, type MosaicAgentCardProps, MosaicAgentChat, type MosaicAgentChatApprovalLabels, type MosaicAgentChatApprovalRequest, type MosaicAgentChatApprovalResponsePayload, type MosaicAgentChatMessage, type MosaicAgentChatMessagePart, type MosaicAgentChatProps, type MosaicAgentChatState, type MosaicAgentChatToolPart, type MosaicAgentChatToolPartState, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, type MosaicAgentComposerMobileProps, type MosaicAgentComposerProps, type MosaicAgentData, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, type MosaicAgentListProps, type MosaicAgentPreset, MosaicAgentTeamPreview, type MosaicAgentTeamPreviewProps, MosaicAnimatedList, type MosaicAnimatedListProps, MosaicApiKeyPanel, type MosaicApiKeyPanelProps, type MosaicApiKeyPanelProvider, type MosaicApiKeyPanelState, MosaicAppSidebar, type MosaicAppSidebarProps, MosaicApprovalPrompt, type MosaicApprovalPromptProps, type MosaicApprovalPromptState, MosaicAvatar, type MosaicAvatarProps, MosaicBadge, type MosaicBadgeProps, MosaicBlurredOrb, type MosaicBlurredOrbProps, type MosaicBreadcrumb, MosaicButton, type MosaicButtonProps, MosaicCard, MosaicCardContent, type MosaicCardContentProps, MosaicCardDescription, type MosaicCardDescriptionProps, MosaicCardFooter, type MosaicCardFooterProps, MosaicCardHeader, type MosaicCardHeaderProps, type MosaicCardProps, MosaicCardTitle, type MosaicCardTitleProps, MosaicChatComposer, type MosaicChatComposerProps, type MosaicChatComposerState, MosaicChatMessage, type MosaicChatMessagePart, type MosaicChatMessageProps, type MosaicChatMessageReasoningPart, type MosaicChatMessageSenderRole, type MosaicChatMessageTextPart, type MosaicChatMessageToolPart, type MosaicChatMessageToolState, type MosaicChatMessageToolStatusLabels, MosaicChatThread, type MosaicChatThreadProps, MosaicCheckbox, type MosaicCheckboxProps, type MosaicClerkMembership, MosaicClerkOrgSwitcher, type MosaicClerkOrgSwitcherProps, type MosaicClerkOrganization, MosaicClerkWebhookHandler, type MosaicClerkWebhookHandlerOptions, MosaicCollapsible, MosaicCollapsiblePanel, type MosaicCollapsiblePanelProps, type MosaicCollapsibleProps, MosaicCollapsibleTrigger, type MosaicCollapsibleTriggerProps, MosaicCombobox, type MosaicComboboxItem, type MosaicComboboxProps, type MosaicComposerModel, type MosaicComposerModule, MosaicCounter, type MosaicCounterProps, MosaicCreateOrgDialog, type MosaicCreateOrgDialogProps, MosaicDashboardContent, type MosaicDashboardContentProps, MosaicDashboardHeader, type MosaicDashboardHeaderProps, MosaicDashboardLayout, type MosaicDashboardLayoutProps, type MosaicDashboardView, MosaicDataTable, type MosaicDataTableColumn, type MosaicDataTablePagination, type MosaicDataTableProps, MosaicDeleteConfirmationDialog, type MosaicDeleteConfirmationDialogProps, MosaicDeviceProvider, type MosaicDeviceProviderProps, MosaicDocumentUpload, type MosaicDocumentUploadFile, type MosaicDocumentUploadFileStatus, type MosaicDocumentUploadProps, MosaicDropdownMenu, type MosaicDropdownMenuItem, type MosaicDropdownMenuProps, MosaicEmptyState, type MosaicEmptyStateProps, MosaicFallingPattern, type MosaicFallingPatternProps, MosaicFeature3Col, type MosaicFeature3ColProps, MosaicFeatureCenteredMedia, type MosaicFeatureCenteredMediaProps, MosaicField, MosaicFieldControl, type MosaicFieldControlProps, MosaicFieldDescription, type MosaicFieldDescriptionProps, MosaicFieldError, type MosaicFieldErrorProps, MosaicFieldLabel, type MosaicFieldLabelProps, type MosaicFieldProps, MosaicFilterBar, type MosaicFilterBarProps, type MosaicFilterOption, MosaicFilterSidebar, type MosaicFilterSidebarProps, MosaicFooterSimple, type MosaicFooterSimpleProps, MosaicHeroSplit, type MosaicHeroSplitProps, MosaicInput, MosaicInputGroup, type MosaicInputGroupProps, type MosaicInputProps, MosaicIntegrationsBadge, type MosaicIntegrationsBadgeProps, MosaicInviteMemberDialog, type MosaicInviteMemberDialogProps, MosaicKanbanBoard, type MosaicKanbanBoardProps, MosaicKanbanColumn, type MosaicKanbanColumnProps, MosaicLogosGrid, type MosaicLogosGridProps, MosaicMainNav, type MosaicMainNavProps, MosaicMarkdown, type MosaicMarkdownProps, type MosaicMarketplaceItem, MosaicMarketplaceList, MarketplaceListDesktop as MosaicMarketplaceListDesktop, MarketplaceListMobile as MosaicMarketplaceListMobile, type MosaicMarketplaceListProps, MosaicMemberList, type MosaicMemberListProps, MosaicMemoryCard, type MosaicMemoryCardProps, type MosaicMemoryData, type MosaicMemoryScope, type MosaicMemorySource, type MosaicMessage, MosaicMessageCard, type MosaicMessageCardProps, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, type MosaicMessageListProps, type MosaicMessageReactions, type MosaicMessageSender, type MosaicMessageSenderType, MosaicModuleCard, type MosaicModuleCardProps, type MosaicModuleData, MosaicModuleForm, type MosaicModuleFormField, type MosaicModuleFormProps, type MosaicModuleItem, MosaicModuleLibrary, type MosaicModuleLibraryProps, type MosaicModuleType, MosaicMultiOrgIndicator, type MosaicMultiOrgIndicatorProps, MosaicMultiTenantProvider, type MosaicMultiTenantProviderProps, type MosaicNavItem, MosaicNavbar, type MosaicNavbarProps, type MosaicNavigationItem, type MosaicOrg, type MosaicOrgInfo, type MosaicOrgMember, MosaicOrgPanel, type MosaicOrgPanelProps, type MosaicOrgPanelTab, MosaicOrgProfilePage, type MosaicOrgProfilePageProps, type MosaicOrgRole, MosaicOrgRoleBadge, type MosaicOrgRoleBadgeProps, type MosaicOrgStats, MosaicOrgSwitcher, type MosaicOrgSwitcherProps, MosaicPdfViewer, type MosaicPdfViewerProps, type MosaicSelectItem as MosaicPrefSelectItem, type MosaicPreference, type MosaicPreferenceGroup, MosaicPreferencesPanel, type MosaicPreferencesPanelProps, MosaicPricingCard, type MosaicPricingCardProps, type MosaicProfileField, MosaicProfilePanel, type MosaicProfilePanelProps, MosaicProgress, type MosaicProgressProps, type MosaicQuickAction$1 as MosaicQuickAction, MosaicQuickActionCard, type MosaicQuickActionCardProps, MosaicQuickActionsMenu, type MosaicQuickAction as MosaicQuickActionsMenuItem, type MosaicQuickActionsMenuProps, type MosaicQuickAgent, MosaicQuickAgentSelector, type MosaicQuickAgentSelectorProps, MosaicQuickStartPanel, type MosaicQuickStartPanelProps, MosaicRadioGroup, MosaicRadioGroupItem, type MosaicRadioGroupItemProps, type MosaicRadioGroupProps, MosaicResizableSplitPane, type MosaicResizableSplitPaneProps, type MosaicScenario, MosaicScrollArea, type MosaicScrollAreaProps, MosaicSelect, type MosaicSelectItem$1 as MosaicSelectItem, type MosaicSelectProps, type MosaicSelectorCategory, type MosaicSelectorItem, MosaicSelectorModal, type MosaicSelectorModalProps, MosaicSeparator, type MosaicSeparatorProps, type MosaicSidebarFooterStatus, type MosaicSidebarNavItem, type MosaicSidebarQuickAction, type MosaicSidebarRecentItem, MosaicSignInLayout, type MosaicSignInLayoutProps, MosaicSignUpLayout, type MosaicSignUpLayoutProps, MosaicSkeleton, type MosaicSkeletonProps, MosaicSlider, type MosaicSliderProps, type MosaicStatItem, MosaicStatsGrid, type MosaicStatsGridProps, type MosaicStep, MosaicStepPipeline, type MosaicStepPipelineDotsProps, type MosaicStepPipelineProps, type MosaicStepPipelineSegmentsProps, type MosaicStepStatus, MosaicSwitch, type MosaicSwitchProps, MosaicTabs, MosaicTabsList, type MosaicTabsListProps, MosaicTabsPanel, type MosaicTabsPanelProps, type MosaicTabsProps, MosaicTabsTrigger, type MosaicTabsTriggerProps, MosaicTagInput, type MosaicTagInputProps, type MosaicTemplate, type MosaicTemplateAgent, MosaicTemplateCard, type MosaicTemplateCardProps, MosaicTemplateGallery, type MosaicTemplateGalleryProps, type MosaicTemplateMetadata, MosaicTemplatePreview, type MosaicTemplatePreviewProps, MosaicTestimonialsGrid, type MosaicTestimonialsGridProps, MosaicTextarea, type MosaicTextareaProps, MosaicThemeProvider, type MosaicThemeProviderProps, MosaicThemeToggle, type MosaicThemeToggleProps, MosaicToast, type MosaicToastProps, MosaicToastProvider, type MosaicToastProviderPosition, type MosaicToastProviderProps, type MosaicToastVariant, MosaicToolToggleList, type MosaicToolToggleListApprovalLevel, type MosaicToolToggleListProps, type MosaicToolToggleListSection, type MosaicToolToggleListTool, MosaicTooltip, MosaicTooltipContent, type MosaicTooltipContentProps, type MosaicTooltipProps, MosaicTooltipProvider, type MosaicTooltipProviderProps, MosaicTooltipRoot, type MosaicTooltipRootProps, MosaicTooltipTrigger, type MosaicTooltipTriggerProps, MosaicUrlScraper, type MosaicUrlScraperContent, type MosaicUrlScraperProps, type MosaicUrlScraperState, MosaicUserButton, type MosaicUserButtonProps, type MosaicWorkspaceContext, type NavCta, type NavLink, type OrbPosition, type Orientation, Placeholder, type PricingCta, type SocialLink, type StatItem, type TestimonialItem, type Theme, agentChatRootVariants, badgeVariants, buttonVariants, chatMessageBubbleVariants, chatMessageContainerVariants, chatMessageToolStatusVariants, pdfViewerFrameVariants, pdfViewerStatusVariants, pdfViewerToolbarButtonVariants, skeletonVariants, splitPaneCollapseButtonVariants, splitPaneHandleVariants, splitPaneRootVariants, tagInputFieldVariants, tagInputRemoveButtonVariants, tagInputRootVariants, tagInputTagVariants, toastCardVariants, toastDismissButtonVariants, toastProviderPositionVariants, toastTitleVariants, toolToggleListRowVariants, toolToggleListSectionVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
7326
+ interface MosaicDrawerProps {
7327
+ /** Controlled open state — the host owns the truth. */
7328
+ open: boolean;
7329
+ /** Controlled state setter, called on every open/close intent. */
7330
+ onOpenChange: (open: boolean) => void;
7331
+ /**
7332
+ * Visible drawer title, wired to `aria-labelledby`. Required — no
7333
+ * default, no fallback. The host supplies the localized string.
7334
+ */
7335
+ title: string;
7336
+ /**
7337
+ * aria-label for the close button. Required — the host owns the
7338
+ * language (e.g. `t('Drawer.aria.close')`). No default, no fallback.
7339
+ */
7340
+ closeAriaLabel: string;
7341
+ children: React.ReactNode;
7342
+ /** Panel edge + slide direction. @default "right" */
7343
+ side?: "left" | "right" | "top" | "bottom";
7344
+ className?: string;
7345
+ }
7346
+ /**
7347
+ * MosaicDrawer — side panel showing agent (or any record) detail without
7348
+ * covering the list behind it.
7349
+ *
7350
+ * @example
7351
+ * // Host owns i18n (e.g. next-intl) — title/closeAriaLabel always required.
7352
+ * <MosaicDrawer
7353
+ * open={open}
7354
+ * onOpenChange={setOpen}
7355
+ * title={agent.name}
7356
+ * closeAriaLabel={t('Drawer.aria.close')}
7357
+ * side="right"
7358
+ * >
7359
+ * <p>Agent detail body</p> // allow-hardcode-i18n: JSDoc @example doc comment, not shipped code
7360
+ * </MosaicDrawer>
7361
+ */
7362
+ declare function MosaicDrawer({ open, onOpenChange, title, closeAriaLabel, children, side, className, }: MosaicDrawerProps): React.JSX.Element;
7363
+ declare namespace MosaicDrawer {
7364
+ var displayName: string;
7365
+ }
7366
+
7367
+ /**
7368
+ * drawerVariants — pure CVA variant functions for MosaicDrawer.
7369
+ *
7370
+ * Isolated in their own module so they can be re-exported from the
7371
+ * `@vantageos/mosaic-blocks/server` subpath without pulling in React.
7372
+ *
7373
+ * Zero browser / React runtime dependencies — safe in RSC / Node.js.
7374
+ */
7375
+ /** Popup panel — position + slide direction depend on `side`. */
7376
+ declare const drawerPopupVariants: (props?: ({
7377
+ side?: "top" | "left" | "bottom" | "right" | null | undefined;
7378
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
7379
+ /** Backdrop overlay behind the popup. */
7380
+ declare const drawerBackdropVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
7381
+
7382
+ export { type Breakpoint, type DeviceContextValue, type Feature3ColItem, type FeatureItem, type FooterColumn, type FooterLink, type HeroCta, type LogoItem, MosaicAccordion, MosaicAccordionItem, type MosaicAccordionItemProps, MosaicAccordionPanel, type MosaicAccordionPanelProps, type MosaicAccordionProps, MosaicAccordionTrigger, type MosaicAccordionTriggerProps, type MosaicActionAccent, type MosaicActivity, MosaicActivityFeed, type MosaicActivityFeedProps, MosaicActivityItem, type MosaicActivityItemProps, type MosaicActivityStatus, MosaicAdaptiveGrid, type MosaicAdaptiveGridProps, MosaicAdaptiveModal, type MosaicAdaptiveModalProps, MosaicAdaptiveNavigation, type MosaicAdaptiveNavigationProps, MosaicAgentCard, type MosaicAgentCardProps, MosaicAgentChat, type MosaicAgentChatApprovalLabels, type MosaicAgentChatApprovalRequest, type MosaicAgentChatApprovalResponsePayload, type MosaicAgentChatMessage, type MosaicAgentChatMessagePart, type MosaicAgentChatProps, type MosaicAgentChatState, type MosaicAgentChatToolPart, type MosaicAgentChatToolPartState, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, type MosaicAgentComposerMobileProps, type MosaicAgentComposerProps, type MosaicAgentData, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, type MosaicAgentListProps, type MosaicAgentPreset, MosaicAgentTeamPreview, type MosaicAgentTeamPreviewProps, MosaicAnimatedList, type MosaicAnimatedListProps, MosaicApiKeyPanel, type MosaicApiKeyPanelProps, type MosaicApiKeyPanelProvider, type MosaicApiKeyPanelState, MosaicAppSidebar, type MosaicAppSidebarProps, MosaicApprovalPrompt, type MosaicApprovalPromptProps, type MosaicApprovalPromptState, MosaicAvatar, type MosaicAvatarProps, MosaicBadge, type MosaicBadgeProps, MosaicBlurredOrb, type MosaicBlurredOrbProps, type MosaicBreadcrumb, MosaicButton, type MosaicButtonProps, MosaicCard, MosaicCardContent, type MosaicCardContentProps, MosaicCardDescription, type MosaicCardDescriptionProps, MosaicCardFooter, type MosaicCardFooterProps, MosaicCardHeader, type MosaicCardHeaderProps, type MosaicCardProps, MosaicCardTitle, type MosaicCardTitleProps, MosaicChatComposer, type MosaicChatComposerProps, type MosaicChatComposerState, MosaicChatMessage, type MosaicChatMessageAttachmentPart, type MosaicChatMessagePart, type MosaicChatMessageProps, type MosaicChatMessageReasoningPart, type MosaicChatMessageSenderRole, type MosaicChatMessageTextPart, type MosaicChatMessageToolPart, type MosaicChatMessageToolState, type MosaicChatMessageToolStatusLabels, MosaicChatThread, type MosaicChatThreadProps, MosaicCheckbox, type MosaicCheckboxProps, type MosaicClerkMembership, MosaicClerkOrgSwitcher, type MosaicClerkOrgSwitcherProps, type MosaicClerkOrganization, MosaicClerkWebhookHandler, type MosaicClerkWebhookHandlerOptions, MosaicCollapsible, MosaicCollapsiblePanel, type MosaicCollapsiblePanelProps, type MosaicCollapsibleProps, MosaicCollapsibleTrigger, type MosaicCollapsibleTriggerProps, MosaicCombobox, type MosaicComboboxItem, type MosaicComboboxProps, type MosaicComposerModel, type MosaicComposerModule, MosaicCounter, type MosaicCounterProps, MosaicCreateOrgDialog, type MosaicCreateOrgDialogProps, MosaicDashboardContent, type MosaicDashboardContentProps, MosaicDashboardHeader, type MosaicDashboardHeaderProps, MosaicDashboardLayout, type MosaicDashboardLayoutProps, type MosaicDashboardView, MosaicDataTable, type MosaicDataTableColumn, type MosaicDataTablePagination, type MosaicDataTableProps, MosaicDeleteConfirmationDialog, type MosaicDeleteConfirmationDialogProps, MosaicDeviceProvider, type MosaicDeviceProviderProps, MosaicDocumentUpload, type MosaicDocumentUploadFile, type MosaicDocumentUploadFileStatus, type MosaicDocumentUploadProps, MosaicDrawer, type MosaicDrawerProps, MosaicDropdownMenu, type MosaicDropdownMenuItem, type MosaicDropdownMenuProps, MosaicEmptyState, type MosaicEmptyStateProps, MosaicFallingPattern, type MosaicFallingPatternProps, MosaicFeature3Col, type MosaicFeature3ColProps, MosaicFeatureCenteredMedia, type MosaicFeatureCenteredMediaProps, MosaicField, MosaicFieldControl, type MosaicFieldControlProps, MosaicFieldDescription, type MosaicFieldDescriptionProps, MosaicFieldError, type MosaicFieldErrorProps, MosaicFieldLabel, type MosaicFieldLabelProps, type MosaicFieldProps, MosaicFilterBar, type MosaicFilterBarProps, type MosaicFilterOption, MosaicFilterSidebar, type MosaicFilterSidebarProps, MosaicFooterSimple, type MosaicFooterSimpleProps, MosaicHeroSplit, type MosaicHeroSplitProps, MosaicInput, MosaicInputGroup, type MosaicInputGroupProps, type MosaicInputProps, MosaicIntegrationsBadge, type MosaicIntegrationsBadgeProps, MosaicInviteMemberDialog, type MosaicInviteMemberDialogProps, MosaicKanbanBoard, type MosaicKanbanBoardProps, MosaicKanbanColumn, type MosaicKanbanColumnProps, MosaicLogosGrid, type MosaicLogosGridProps, MosaicMainNav, type MosaicMainNavProps, MosaicMarkdown, type MosaicMarkdownProps, type MosaicMarketplaceItem, MosaicMarketplaceList, MarketplaceListDesktop as MosaicMarketplaceListDesktop, MarketplaceListMobile as MosaicMarketplaceListMobile, type MosaicMarketplaceListProps, MosaicMemberList, type MosaicMemberListProps, MosaicMemoryCard, type MosaicMemoryCardProps, type MosaicMemoryData, type MosaicMemoryScope, type MosaicMemorySource, type MosaicMessage, MosaicMessageCard, type MosaicMessageCardProps, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, type MosaicMessageListProps, type MosaicMessageReactions, type MosaicMessageSender, type MosaicMessageSenderType, type MosaicModelOption, MosaicModelSelector, type MosaicModelSelectorProps, MosaicModuleCard, type MosaicModuleCardProps, type MosaicModuleData, MosaicModuleForm, type MosaicModuleFormField, type MosaicModuleFormProps, type MosaicModuleItem, MosaicModuleLibrary, type MosaicModuleLibraryProps, type MosaicModuleType, MosaicMultiOrgIndicator, type MosaicMultiOrgIndicatorProps, MosaicMultiTenantProvider, type MosaicMultiTenantProviderProps, type MosaicNavItem, MosaicNavbar, type MosaicNavbarProps, type MosaicNavigationItem, type MosaicOrg, type MosaicOrgInfo, type MosaicOrgMember, MosaicOrgPanel, type MosaicOrgPanelProps, type MosaicOrgPanelTab, MosaicOrgProfilePage, type MosaicOrgProfilePageProps, type MosaicOrgRole, MosaicOrgRoleBadge, type MosaicOrgRoleBadgeProps, type MosaicOrgStats, MosaicOrgSwitcher, type MosaicOrgSwitcherProps, MosaicPdfViewer, type MosaicPdfViewerProps, type MosaicSelectItem as MosaicPrefSelectItem, type MosaicPreference, type MosaicPreferenceGroup, MosaicPreferencesPanel, type MosaicPreferencesPanelProps, MosaicPricingCard, type MosaicPricingCardProps, type MosaicProfileField, MosaicProfilePanel, type MosaicProfilePanelProps, MosaicProgress, type MosaicProgressProps, type MosaicQuickAction$1 as MosaicQuickAction, MosaicQuickActionCard, type MosaicQuickActionCardProps, MosaicQuickActionsMenu, type MosaicQuickAction as MosaicQuickActionsMenuItem, type MosaicQuickActionsMenuProps, type MosaicQuickAgent, MosaicQuickAgentSelector, type MosaicQuickAgentSelectorProps, MosaicQuickStartPanel, type MosaicQuickStartPanelProps, MosaicRadioGroup, MosaicRadioGroupItem, type MosaicRadioGroupItemProps, type MosaicRadioGroupProps, MosaicResizableSplitPane, type MosaicResizableSplitPaneProps, type MosaicScenario, MosaicScrollArea, type MosaicScrollAreaProps, MosaicSelect, type MosaicSelectItem$1 as MosaicSelectItem, type MosaicSelectProps, type MosaicSelectorCategory, type MosaicSelectorItem, MosaicSelectorModal, type MosaicSelectorModalProps, MosaicSeparator, type MosaicSeparatorProps, type MosaicSidebarFooterStatus, type MosaicSidebarNavItem, type MosaicSidebarQuickAction, type MosaicSidebarRecentItem, MosaicSignInLayout, type MosaicSignInLayoutProps, MosaicSignUpLayout, type MosaicSignUpLayoutProps, MosaicSkeleton, type MosaicSkeletonProps, MosaicSlider, type MosaicSliderProps, type MosaicStatItem, MosaicStatsGrid, type MosaicStatsGridProps, type MosaicStep, MosaicStepPipeline, type MosaicStepPipelineDotsProps, type MosaicStepPipelineProps, type MosaicStepPipelineSegmentsProps, type MosaicStepStatus, MosaicSwitch, type MosaicSwitchProps, MosaicTabs, MosaicTabsList, type MosaicTabsListProps, MosaicTabsPanel, type MosaicTabsPanelProps, type MosaicTabsProps, MosaicTabsTrigger, type MosaicTabsTriggerProps, MosaicTagInput, type MosaicTagInputProps, type MosaicTemplate, type MosaicTemplateAgent, MosaicTemplateAgentCard, type MosaicTemplateAgentCardProps, type MosaicTemplateAgentData, MosaicTemplateCard, type MosaicTemplateCardProps, MosaicTemplateGallery, type MosaicTemplateGalleryProps, type MosaicTemplateMetadata, MosaicTemplatePreview, type MosaicTemplatePreviewProps, MosaicTestimonialsGrid, type MosaicTestimonialsGridProps, MosaicTextarea, type MosaicTextareaProps, MosaicThemeProvider, type MosaicThemeProviderProps, MosaicThemeToggle, type MosaicThemeToggleProps, MosaicToast, type MosaicToastProps, MosaicToastProvider, type MosaicToastProviderPosition, type MosaicToastProviderProps, type MosaicToastVariant, MosaicToolToggleList, type MosaicToolToggleListApprovalLevel, type MosaicToolToggleListProps, type MosaicToolToggleListSection, type MosaicToolToggleListTool, MosaicTooltip, MosaicTooltipContent, type MosaicTooltipContentProps, type MosaicTooltipProps, MosaicTooltipProvider, type MosaicTooltipProviderProps, MosaicTooltipRoot, type MosaicTooltipRootProps, MosaicTooltipTrigger, type MosaicTooltipTriggerProps, MosaicUrlScraper, type MosaicUrlScraperContent, type MosaicUrlScraperProps, type MosaicUrlScraperState, MosaicUserButton, type MosaicUserButtonProps, type MosaicWorkspaceContext, type NavCta, type NavLink, type OrbPosition, type Orientation, Placeholder, type PricingCta, type SocialLink, type StatItem, type TestimonialItem, type Theme, agentChatRootVariants, badgeVariants, buttonVariants, chatMessageBubbleVariants, chatMessageContainerVariants, chatMessageToolStatusVariants, drawerBackdropVariants, drawerPopupVariants, pdfViewerFrameVariants, pdfViewerStatusVariants, pdfViewerToolbarButtonVariants, skeletonVariants, splitPaneCollapseButtonVariants, splitPaneHandleVariants, splitPaneRootVariants, tagInputFieldVariants, tagInputRemoveButtonVariants, tagInputRootVariants, tagInputTagVariants, templateAgentCardBadgeVariants, templateAgentCardTagVariants, templateAgentCardVariants, toastCardVariants, toastDismissButtonVariants, toastProviderPositionVariants, toastTitleVariants, toolToggleListRowVariants, toolToggleListSectionVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };