@vantageos/mosaic-blocks 0.5.8-alpha → 0.5.10-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.ts 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.8-alpha";
23
+ declare const version = "0.5.10-alpha";
24
24
 
25
25
  /**
26
26
  * Placeholder component — infra scaffold only.
@@ -5892,4 +5892,290 @@ declare const chatMessageToolStatusVariants: (props?: ({
5892
5892
  status?: "error" | "running" | "completed" | "denied" | null | undefined;
5893
5893
  } & class_variance_authority_types.ClassProp) | undefined) => string;
5894
5894
 
5895
- 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, 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, MosaicAppSidebar, type MosaicAppSidebarProps, 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, 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, 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, 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, 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, badgeVariants, buttonVariants, chatMessageBubbleVariants, chatMessageContainerVariants, chatMessageToolStatusVariants, skeletonVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
5895
+ /**
5896
+ * MosaicApprovalPrompt — presentational "reprendre la main" tool-call approval
5897
+ *
5898
+ * Presentational atom. Shows which tool the agent wants to call, the tool's
5899
+ * arguments (host-rendered — this library never decides how a JSON payload
5900
+ * looks), and two actions: approve / deny. The component performs no
5901
+ * network call and owns no SDK: submitting a decision is surfaced purely via
5902
+ * the `onApprove()` / `onDeny()` callbacks — the host owns how the decision
5903
+ * is actually sent to the agent runtime and what happens next.
5904
+ *
5905
+ * Autonomous: does NOT depend on any chat-message component (developed in
5906
+ * parallel elsewhere) — the host inserts this component wherever an
5907
+ * approval-requested tool part appears in its own message rendering.
5908
+ *
5909
+ * Arguments rendering is host-controlled by design: `renderArguments` is a
5910
+ * required `React.ReactNode`, never a built-in JSON pretty-printer. The
5911
+ * host decides syntax highlighting, truncation, diffing, or any other
5912
+ * representation of the tool payload.
5913
+ *
5914
+ * Pattern: MosaicUrlScraper.tsx (data-slot, inline cn, React 19 ref prop,
5915
+ * displayName, JSDoc, pure variants module, host-controlled status union as
5916
+ * a discriminated prop type).
5917
+ * No "use client" — prepend-use-client.mjs adds it to dist.
5918
+ * Design tokens: --foreground, --muted-foreground, --border, --destructive,
5919
+ * --ring, --accent, --card, --background.
5920
+ * a11y: the root is a native `<fieldset>` whose `<legend>` is the required
5921
+ * `promptTitle` (an approval is a consequential action, so the whole prompt
5922
+ * is announced as one unit via the standard fieldset/legend semantics);
5923
+ * approve/deny are native `<button>` elements whose accessible
5924
+ * name IS their required visible label — no separate aria-label needed for
5925
+ * them. The tool-name region and the arguments region are always rendered,
5926
+ * in every status, so the decision/error state never loses the "what was
5927
+ * this about" context.
5928
+ * Bilingual: every user-facing string (promptTitle/toolNameLabel/
5929
+ * approveButtonLabel/denyButtonLabel/decisionMessage/errorMessage) is a
5930
+ * required caller-supplied prop — zero hardcoded copy, zero default.
5931
+ *
5932
+ * Props are pushed into the `MosaicApprovalPromptState` discriminated union
5933
+ * exactly where they are read — `onApprove`/`onDeny`/`approveButtonLabel`/
5934
+ * `denyButtonLabel` only exist on the "pending" branch, `decision`/
5935
+ * `decisionMessage` only on "responded", `errorMessage` only on "error".
5936
+ *
5937
+ * @example
5938
+ * // pending
5939
+ * <MosaicApprovalPrompt
5940
+ * status="pending"
5941
+ * toolName="delete_file"
5942
+ * toolNameLabel="Outil demandé"
5943
+ * promptTitle="L'agent souhaite exécuter un outil"
5944
+ * renderArguments={<ToolArgsViewer args={part.input} />}
5945
+ * onApprove={() => respond("approved")}
5946
+ * onDeny={() => respond("denied")}
5947
+ * approveButtonLabel="Approuver"
5948
+ * denyButtonLabel="Refuser"
5949
+ * />
5950
+ *
5951
+ * @example
5952
+ * // responded
5953
+ * <MosaicApprovalPrompt
5954
+ * {...baseProps}
5955
+ * status="responded"
5956
+ * decision="approved"
5957
+ * decisionMessage="Appel approuvé — exécution en cours"
5958
+ * />
5959
+ */
5960
+
5961
+ /**
5962
+ * Base props required in EVERY status — read unconditionally by the
5963
+ * component regardless of `status` (title + tool-name + host-rendered
5964
+ * arguments region are always shown, even after a decision or on error).
5965
+ */
5966
+ type MosaicApprovalPromptBaseProps = {
5967
+ /** Name of the tool the agent wants to call, displayed as-is. */
5968
+ toolName: string;
5969
+ /** Label preceding `toolName` (e.g. "Requested tool"). Required, no default. */
5970
+ toolNameLabel: string;
5971
+ /**
5972
+ * Heading for the whole prompt (e.g. "The agent wants to run a tool") —
5973
+ * also used as the accessible name of the root `role="group"` region.
5974
+ * Required, no default.
5975
+ */
5976
+ promptTitle: string;
5977
+ /**
5978
+ * Host-rendered view of the tool's arguments. The library never decides
5979
+ * how a JSON payload is displayed — the host owns syntax highlighting,
5980
+ * truncation, diffing, or any other representation.
5981
+ */
5982
+ renderArguments: React.ReactNode;
5983
+ /** Additional Tailwind classes on the root element. */
5984
+ className?: string;
5985
+ /** React 19 ref prop — forwarded to the root element. */
5986
+ ref?: React.Ref<HTMLFieldSetElement>;
5987
+ };
5988
+ /**
5989
+ * Host-controlled approval status. Every prop that is only ever rendered in
5990
+ * ONE status branch lives on that branch's variant — not on the base props —
5991
+ * so the type contract matches exactly what the component reads (mirrors
5992
+ * MosaicUrlScraperState's status-driven shape).
5993
+ */
5994
+ type MosaicApprovalPromptState = {
5995
+ status: "pending";
5996
+ /** Called when the host user approves the pending tool call. */
5997
+ onApprove: () => void;
5998
+ /** Called when the host user denies the pending tool call. */
5999
+ onDeny: () => void;
6000
+ /** Label for the approve button. Required, no default. */
6001
+ approveButtonLabel: string;
6002
+ /** Label for the deny button. Required, no default. */
6003
+ denyButtonLabel: string;
6004
+ } | {
6005
+ status: "responded";
6006
+ /** Which decision was sent — drives the message's visual tone only. */
6007
+ decision: "approved" | "denied";
6008
+ /**
6009
+ * Host-provided, host-localized message describing the sent decision
6010
+ * (e.g. "Approved — running", "Denied by user"). The library never
6011
+ * generates its own copy — every occurrence is a distinct required
6012
+ * value supplied by the caller.
6013
+ */
6014
+ decisionMessage: string;
6015
+ } | {
6016
+ status: "error";
6017
+ /**
6018
+ * Host-provided, host-localized error message (e.g. "Decision could
6019
+ * not be sent", "Agent runtime unreachable"). Required, no default.
6020
+ */
6021
+ errorMessage: string;
6022
+ };
6023
+ type MosaicApprovalPromptProps = MosaicApprovalPromptBaseProps & MosaicApprovalPromptState;
6024
+ /**
6025
+ * MosaicApprovalPrompt — production tool-call approval atom for
6026
+ * @vantageos/mosaic-blocks.
6027
+ *
6028
+ * Purely presentational: renders the requested tool + host-rendered
6029
+ * arguments + the current status (pending/responded/error), and reports an
6030
+ * approve/deny decision via callbacks. No network call, no SDK, no built-in
6031
+ * copy, no built-in arguments renderer.
6032
+ */
6033
+ declare function MosaicApprovalPrompt(props: MosaicApprovalPromptProps): React.JSX.Element;
6034
+ declare namespace MosaicApprovalPrompt {
6035
+ var displayName: string;
6036
+ }
6037
+
6038
+ /**
6039
+ * MosaicToolToggleList — presentational per-tool enable switch + approval
6040
+ * level selector, grouped into host-supplied sections.
6041
+ *
6042
+ * Differentiator (this is the whole point of the component): the tool
6043
+ * catalogue is DATA, not code. adam's `AgentForm.svelte` (builder-web)
6044
+ * hardcodes six tool checkboxes with zero approval concept
6045
+ * (`~/AgentForm.svelte:49-56,177-190`); this library has never heard of a
6046
+ * single tool name. `tools`, `approvalLevels` and `sections` are all
6047
+ * required props supplied by the host — a new tool, a renamed approval
6048
+ * level, or a reshuffled "Teamwork" section ships without touching this
6049
+ * package.
6050
+ *
6051
+ * One row per tool: name + description + enable/disable MosaicSwitch +
6052
+ * approval-level MosaicSelect-style combobox (built directly on
6053
+ * @base-ui/react/select here, same primitive as MosaicSelect, to keep the
6054
+ * per-row aria-label wiring local). Rows are grouped under host-supplied
6055
+ * section headings (`sections[].title`), each section listing the
6056
+ * `toolIds` it owns — the grouping shape itself (e.g. a "Teamwork" section
6057
+ * bundling the four VantagePeers tools) is a hosting decision, not a
6058
+ * library concept.
6059
+ *
6060
+ * Controlled component: no internal persisted state beyond the CHANGE
6061
+ * event flowing straight to `onToggleTool` / `onChangeApproval`. The host
6062
+ * owns `tools` and re-renders with the updated `enabled` /
6063
+ * `approvalLevelId` after handling the callback.
6064
+ *
6065
+ * No "use client" — prepend-use-client.mjs adds it to dist.
6066
+ * Design tokens: --foreground, --muted, --muted-foreground, --border,
6067
+ * --card, --background, --popover, --popover-foreground, --accent,
6068
+ * --accent-foreground, --ring.
6069
+ * a11y: each switch's accessible name is a required per-tool callback
6070
+ * prop (`toggleAriaLabel`); each approval selector's accessible name is
6071
+ * likewise a required per-tool callback prop (`approvalSelectAriaLabel`).
6072
+ * Approval options render with role="option" (base-ui Select.Item), the
6073
+ * trigger with role="combobox" — both managed by @base-ui/react/select.
6074
+ * Bilingual: every user-facing string (section titles, tool names/
6075
+ * descriptions, approval-level labels, aria-labels) is host-supplied data
6076
+ * or a required prop — zero hardcoded copy, zero default.
6077
+ *
6078
+ * @example
6079
+ * <MosaicToolToggleList
6080
+ * sections={[
6081
+ * { id: "teamwork", title: "Travail d'équipe", toolIds: ["send_message", "check_messages"] },
6082
+ * ]}
6083
+ * tools={[
6084
+ * { id: "send_message", name: "send_message", description: "Envoyer un message", enabled: true, approvalLevelId: "never" },
6085
+ * { id: "check_messages", name: "check_messages", description: "Vérifier les messages", enabled: false, approvalLevelId: "always" },
6086
+ * ]}
6087
+ * approvalLevels={[
6088
+ * { id: "never", label: "Ne jamais demander" },
6089
+ * { id: "always", label: "Demander à chaque appel" },
6090
+ * { id: "first", label: "Demander la première fois" },
6091
+ * ]}
6092
+ * onToggleTool={(toolId, enabled) => updateTool(toolId, { enabled })}
6093
+ * onChangeApproval={(toolId, levelId) => updateTool(toolId, { approvalLevelId: levelId })}
6094
+ * toggleAriaLabel={(toolName) => `Activer/désactiver ${toolName}`}
6095
+ * approvalSelectAriaLabel={(toolName) => `Niveau d'approbation pour ${toolName}`}
6096
+ * />
6097
+ */
6098
+
6099
+ /** One selectable approval level. Labels are host copy — no built-in set. */
6100
+ interface MosaicToolToggleListApprovalLevel {
6101
+ /** Stable identifier, matched against `tool.approvalLevelId`. */
6102
+ id: string;
6103
+ /** Host-supplied, host-localized display label. */
6104
+ label: string;
6105
+ }
6106
+ /** One tool row's data. The library knows nothing about any tool by name. */
6107
+ interface MosaicToolToggleListTool {
6108
+ /** Stable identifier, also referenced by `sections[].toolIds`. */
6109
+ id: string;
6110
+ /** Host-supplied display name (e.g. an MCP tool name). */
6111
+ name: string;
6112
+ /** Host-supplied short description of what the tool does. */
6113
+ description: string;
6114
+ /** Whether the tool is currently enabled. */
6115
+ enabled: boolean;
6116
+ /** Current approval level, matched against `approvalLevels[].id`. */
6117
+ approvalLevelId: string;
6118
+ }
6119
+ /**
6120
+ * A host-defined grouping of tools (e.g. "Teamwork" bundling the
6121
+ * VantagePeers tools). The section title and the grouping itself are
6122
+ * data — the library renders whatever grouping it is given.
6123
+ */
6124
+ interface MosaicToolToggleListSection {
6125
+ /** Stable identifier for the section. */
6126
+ id: string;
6127
+ /** Host-supplied, host-localized section heading. */
6128
+ title: string;
6129
+ /** Ordered ids of the tools that belong to this section. */
6130
+ toolIds: string[];
6131
+ }
6132
+ interface MosaicToolToggleListProps {
6133
+ /** Host-defined groupings of tools, rendered in order. */
6134
+ sections: MosaicToolToggleListSection[];
6135
+ /** Full open catalogue of tools — a PROP, never a library constant. */
6136
+ tools: MosaicToolToggleListTool[];
6137
+ /** Open catalogue of approval levels — a PROP, never a library constant. */
6138
+ approvalLevels: MosaicToolToggleListApprovalLevel[];
6139
+ /** Called when a tool's enable switch is toggled. */
6140
+ onToggleTool: (toolId: string, enabled: boolean) => void;
6141
+ /** Called when a tool's approval level is changed. */
6142
+ onChangeApproval: (toolId: string, approvalLevelId: string) => void;
6143
+ /** Per-tool accessible name for the enable/disable switch. Required, no default. */
6144
+ toggleAriaLabel: (toolName: string) => string;
6145
+ /** Per-tool accessible name for the approval-level selector. Required, no default. */
6146
+ approvalSelectAriaLabel: (toolName: string) => string;
6147
+ /** Additional Tailwind classes on the root element. */
6148
+ className?: string;
6149
+ /** React 19 ref prop — forwarded to the root element. */
6150
+ ref?: React.Ref<HTMLDivElement>;
6151
+ }
6152
+ /**
6153
+ * MosaicToolToggleList — production tool-permissions atom for
6154
+ * @vantageos/mosaic-blocks.
6155
+ *
6156
+ * Purely presentational: renders one row per tool (switch + approval
6157
+ * selector), grouped under host-supplied section headings, and reports
6158
+ * every change via callbacks. No network call, no internal persisted
6159
+ * state, no hardcoded tool catalogue.
6160
+ */
6161
+ declare function MosaicToolToggleList({ sections, tools, approvalLevels, onToggleTool, onChangeApproval, toggleAriaLabel, approvalSelectAriaLabel, className, ref, }: MosaicToolToggleListProps): React.JSX.Element;
6162
+ declare namespace MosaicToolToggleList {
6163
+ var displayName: string;
6164
+ }
6165
+
6166
+ /**
6167
+ * toolToggleListVariants — pure CVA variant functions for MosaicToolToggleList.
6168
+ *
6169
+ * Isolated in their own module so they can be re-exported from the
6170
+ * `@vantageos/mosaic-blocks/server` subpath without pulling in React.
6171
+ *
6172
+ * Zero browser / React runtime dependencies — safe in RSC / Node.js.
6173
+ */
6174
+ /** Section header container. */
6175
+ declare const toolToggleListSectionVariants: (props?: ({} & class_variance_authority_types.ClassProp) | undefined) => string;
6176
+ /** One tool row — enabled vs. disabled tone. */
6177
+ declare const toolToggleListRowVariants: (props?: ({
6178
+ enabled?: boolean | null | undefined;
6179
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
6180
+
6181
+ 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, 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, 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, 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, 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, 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, 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, badgeVariants, buttonVariants, chatMessageBubbleVariants, chatMessageContainerVariants, chatMessageToolStatusVariants, skeletonVariants, toolToggleListRowVariants, toolToggleListSectionVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };