@vantageos/mosaic-blocks 0.5.6-alpha → 0.5.8-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
@@ -17,10 +17,10 @@ import { Avatar } from '@base-ui/react/avatar';
17
17
  import { Input } from '@base-ui/react/input';
18
18
  import { Field } from '@base-ui/react/field';
19
19
  import { Switch } from '@base-ui/react/switch';
20
+ import * as class_variance_authority_types from 'class-variance-authority/types';
20
21
  export { Tooltip } from '@base-ui/react/tooltip';
21
- import 'class-variance-authority/types';
22
22
 
23
- declare const version = "0.5.6-alpha";
23
+ declare const version = "0.5.8-alpha";
24
24
 
25
25
  /**
26
26
  * Placeholder component — infra scaffold only.
@@ -5590,4 +5590,306 @@ declare namespace MosaicChatComposer {
5590
5590
  var displayName: string;
5591
5591
  }
5592
5592
 
5593
- 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, 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, 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, skeletonVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
5593
+ /**
5594
+ * MosaicMarkdown — presentational, dependency-free markdown renderer
5595
+ *
5596
+ * Renders a subset of markdown (headings, paragraphs, ordered/unordered
5597
+ * lists, links, bold/italic, inline code, fenced code blocks, tables,
5598
+ * blockquotes, horizontal rules) straight from a `content: string` prop.
5599
+ *
5600
+ * SECURITY — non-negotiable: `content` is assumed to come from an untrusted
5601
+ * source (an LLM's own generated text). This component NEVER parses raw HTML
5602
+ * out of that string and NEVER uses `dangerouslySetInnerHTML`: every markdown
5603
+ * token is turned into React elements built from parsed TEXT, so anything
5604
+ * that looks like an HTML tag (`<script>…</script>`, `<img onerror=…>`) is
5605
+ * rendered as an inert text node, never as an active DOM element. Link
5606
+ * `href`s are scheme-checked (`http:`/`https:`/`mailto:`/relative only), after
5607
+ * every ASCII control character is stripped from the whole string (not just
5608
+ * the edges) so a scheme obfuscated with an internal control character (e.g.
5609
+ * a TAB inserted mid-`javascript:`) cannot slip past as scheme-less —
5610
+ * `javascript:`/`data:` and any other scheme are rejected and the link
5611
+ * degrades to its plain label text. Every external link renders with
5612
+ * `rel="noopener noreferrer"` and `target="_blank"`.
5613
+ *
5614
+ * DEPENDENCY POLICY: this library's `dependencies` are currently limited to
5615
+ * `@base-ui/react` and `class-variance-authority`. A full markdown renderer
5616
+ * (react-markdown, marked, remark, streamdown…) was deliberately NOT added
5617
+ * — none of them are declared here, in `dependencies` or otherwise. Instead
5618
+ * this file implements a minimal, dependency-free block + inline parser
5619
+ * covering the required subset. See this package's PR description for the
5620
+ * explicit statement of this choice.
5621
+ *
5622
+ * Code blocks: no syntax highlighter is bundled (would be a hidden
5623
+ * dependency and/or heavy runtime cost). The optional `renderCodeBlock` prop
5624
+ * is the host's extension point — pass a highlighter of your choice
5625
+ * (Shiki, Prism, etc.) and this component defers to it entirely; omit it and
5626
+ * a plain `<pre><code>` block is rendered.
5627
+ *
5628
+ * No "use client" — prepend-use-client.mjs adds it to dist. Presentational:
5629
+ * zero network calls, zero side effects beyond rendering.
5630
+ *
5631
+ * @example
5632
+ * <MosaicMarkdown content={"# Title\n\nSome **bold** text with a [link](https://example.com)."} />
5633
+ *
5634
+ * @example
5635
+ * // Host-provided syntax highlighting
5636
+ * <MosaicMarkdown
5637
+ * content={agentReply}
5638
+ * renderCodeBlock={({ language, code }) => <MyHighlighter language={language}>{code}</MyHighlighter>}
5639
+ * />
5640
+ */
5641
+
5642
+ interface MosaicMarkdownProps {
5643
+ /**
5644
+ * Markdown source to render. Treated as UNTRUSTED (e.g. straight from an
5645
+ * LLM reply): no raw HTML in this string is ever parsed as active markup.
5646
+ */
5647
+ content: string;
5648
+ /**
5649
+ * Extension point for fenced-code-block rendering (e.g. host-side syntax
5650
+ * highlighting). When omitted, code renders in a plain `<pre><code>` block
5651
+ * with no highlighting and no bundled highlighter dependency.
5652
+ */
5653
+ renderCodeBlock?: (props: {
5654
+ language: string | undefined;
5655
+ code: string;
5656
+ }) => React.ReactNode;
5657
+ /** Additional Tailwind classes on the root element. */
5658
+ className?: string;
5659
+ /** React 19 ref prop — forwarded to the root element. */
5660
+ ref?: React.Ref<HTMLDivElement>;
5661
+ }
5662
+ /**
5663
+ * MosaicMarkdown — production markdown-rendering atom for
5664
+ * @vantageos/mosaic-blocks.
5665
+ *
5666
+ * Purely presentational: parses `content` into a minimal block/inline AST and
5667
+ * renders it as React elements. No network call, no raw-HTML injection.
5668
+ */
5669
+ declare function MosaicMarkdown({ content, renderCodeBlock, className, ref }: MosaicMarkdownProps): React.JSX.Element;
5670
+ declare namespace MosaicMarkdown {
5671
+ var displayName: string;
5672
+ }
5673
+
5674
+ /**
5675
+ * MosaicChatMessage — one chat message: role + ordered parts (text /
5676
+ * reasoning / tool call).
5677
+ *
5678
+ * Presentational only: no network call, no SDK, no markdown engine, no
5679
+ * approval UI. Three explicit extension points are exposed instead of
5680
+ * bundled dependencies:
5681
+ * - `renderText` — the host renders the text part's markdown (MVP-7
5682
+ * `MosaicMarkdown`, built in parallel). The library never picks a
5683
+ * markdown engine.
5684
+ * - `renderApproval` — required ONLY on the tool-call `"approval-requested"`
5685
+ * branch. The host renders its own approval UI (MVP-3
5686
+ * `MosaicApprovalPrompt`, built in parallel) — this library never depends
5687
+ * on a component that does not exist yet in its own package.
5688
+ * - `toolStatusLabels` — every user-facing tool-status word is host-owned
5689
+ * copy (SIN-01 i18n), no English fallback baked in.
5690
+ *
5691
+ * Tool-call lifecycle is a discriminated union on `state`, matching the
5692
+ * eve/react part contract exactly (input-streaming -> approval-requested ->
5693
+ * output-available | output-denied | output-error). Each state's own
5694
+ * required prop lives on that state's branch alone — `renderApproval` only
5695
+ * exists on `"approval-requested"`, `output` only on `"output-available"`,
5696
+ * `errorText` only on `"output-error"` (mirrors MosaicUrlScraper's
5697
+ * status-branch contract and the "no lying prop contract" guard).
5698
+ *
5699
+ * Pattern: MosaicUrlScraper.tsx (data-slot, inline cn, React 19 ref prop,
5700
+ * displayName, JSDoc, pure variants module, host-controlled discriminated
5701
+ * union). Reuses MosaicCollapsible (@base-ui/react) for the reasoning
5702
+ * disclosure instead of hand-rolled state.
5703
+ * No "use client" — prepend-use-client.mjs adds it to dist.
5704
+ * Design tokens: --foreground, --muted, --muted-foreground, --border,
5705
+ * --destructive, --emerald (status), --ring, --card.
5706
+ * No icon library — plain text/glyphs only (matches MosaicUrlScraper's "no
5707
+ * lucide-react runtime dependency" convention).
5708
+ * a11y: the reasoning disclosure is a real button (MosaicCollapsibleTrigger,
5709
+ * aria-expanded managed by @base-ui/react); tool-call status is exposed as
5710
+ * visible text, not color alone.
5711
+ * Bilingual: every user-facing string (reasoningLabel/reasoningStreamingLabel
5712
+ * /toolStatusLabels.*) is a required caller-supplied prop — zero hardcoded
5713
+ * copy, zero default.
5714
+ *
5715
+ * Ported from eve/react's components/chat/message.tsx (rewritten from
5716
+ * scratch — no shared code, no license carried over): dropped the
5717
+ * streaming-text-reveal simulation, the input-request/free-text-response UI,
5718
+ * the tool-name/action heuristics (formatToolName/describeToolAction/
5719
+ * toolCategory/...), and the connection-search special-casing — all
5720
+ * app-specific business logic outside a presentational library's scope.
5721
+ * Kept the role + parts shape and the 5-state tool-call union.
5722
+ *
5723
+ * @example
5724
+ * // text + reasoning + a completed tool call
5725
+ * <MosaicChatMessage
5726
+ * messageRole="assistant"
5727
+ * parts={[
5728
+ * { type: "reasoning", text: "Je vérifie la doc avant de répondre." },
5729
+ * { type: "text", text: "Voici la réponse." },
5730
+ * {
5731
+ * type: "tool",
5732
+ * toolCallId: "call_1",
5733
+ * toolName: "search_docs",
5734
+ * state: "output-available",
5735
+ * output: { hits: 3 },
5736
+ * },
5737
+ * ]}
5738
+ * renderText={(text) => text}
5739
+ * reasoningLabel="Raisonnement"
5740
+ * reasoningStreamingLabel="Réflexion en cours…"
5741
+ * toolStatusLabels={{
5742
+ * running: "En cours",
5743
+ * completed: "Terminé",
5744
+ * denied: "Refusé",
5745
+ * error: "Erreur",
5746
+ * }}
5747
+ * />
5748
+ *
5749
+ * @example
5750
+ * // a tool call awaiting host-rendered approval
5751
+ * <MosaicChatMessage
5752
+ * {...baseProps}
5753
+ * parts={[
5754
+ * {
5755
+ * type: "tool",
5756
+ * toolCallId: "call_2",
5757
+ * toolName: "delete_file",
5758
+ * state: "approval-requested",
5759
+ * renderApproval: (part) => <MosaicApprovalPrompt toolName={part.toolName} />,
5760
+ * },
5761
+ * ]}
5762
+ * />
5763
+ */
5764
+
5765
+ type MosaicChatMessageSenderRole = "user" | "assistant";
5766
+ /** Plain assistant/user text part. */
5767
+ interface MosaicChatMessageTextPart {
5768
+ type: "text";
5769
+ /** Raw text content — rendered through the host-supplied `renderText`. */
5770
+ text: string;
5771
+ }
5772
+ /** Repliable reasoning ("thinking") part. */
5773
+ interface MosaicChatMessageReasoningPart {
5774
+ type: "reasoning";
5775
+ /** Raw reasoning text — rendered through the host-supplied `renderText`. */
5776
+ text: string;
5777
+ /** Whether the reasoning is still streaming (forces the disclosure open). */
5778
+ isStreaming?: boolean;
5779
+ }
5780
+ /** Fields shared by every tool-call lifecycle state, read unconditionally. */
5781
+ type MosaicChatMessageToolPartBase = {
5782
+ type: "tool";
5783
+ /** Stable identifier for this tool call, used as the React key. */
5784
+ toolCallId: string;
5785
+ /** Tool name, displayed as-is next to the status label. */
5786
+ toolName: string;
5787
+ /** Tool call input payload, shown (JSON-stringified) when present. */
5788
+ input?: unknown;
5789
+ };
5790
+ /**
5791
+ * Tool-call lifecycle, a discriminated union on `state`. Each member's
5792
+ * required field lives on that member ALONE — it is required exactly where
5793
+ * the component reads it:
5794
+ * - `"input-streaming"` / `"output-denied"`: no extra field, only the shared
5795
+ * base + status label.
5796
+ * - `"approval-requested"`: `renderApproval` — the ONLY branch that needs a
5797
+ * host-rendered extension point (MVP-3, not yet built).
5798
+ * - `"output-available"`: `output` — the tool's result payload.
5799
+ * - `"output-error"`: `errorText` — the host-localized error message.
5800
+ */
5801
+ type MosaicChatMessageToolState = {
5802
+ state: "input-streaming";
5803
+ } | {
5804
+ state: "approval-requested";
5805
+ /**
5806
+ * Renders the host-owned approval UI (e.g. MVP-3
5807
+ * `MosaicApprovalPrompt`). Required on this branch only — the library
5808
+ * never imports a component that does not exist in its own package
5809
+ * yet, and never ships its own approval affordance.
5810
+ */
5811
+ renderApproval: (part: MosaicChatMessageToolPart) => React.ReactNode;
5812
+ } | {
5813
+ state: "output-available";
5814
+ /** The tool's result payload, JSON-stringified for display. */
5815
+ output: unknown;
5816
+ } | {
5817
+ state: "output-denied";
5818
+ } | {
5819
+ state: "output-error";
5820
+ /** Host-localized error message. Required, no default. */
5821
+ errorText: string;
5822
+ };
5823
+ type MosaicChatMessageToolPart = MosaicChatMessageToolPartBase & MosaicChatMessageToolState;
5824
+ type MosaicChatMessagePart = MosaicChatMessageTextPart | MosaicChatMessageReasoningPart | MosaicChatMessageToolPart;
5825
+ /** Host-owned copy for every tool-call status label. Required, no default. */
5826
+ interface MosaicChatMessageToolStatusLabels {
5827
+ running: string;
5828
+ completed: string;
5829
+ denied: string;
5830
+ error: string;
5831
+ }
5832
+ interface MosaicChatMessageProps {
5833
+ /**
5834
+ * Who sent the message — drives bubble alignment/styling. Named
5835
+ * `messageRole` (not `role`) so no host ever writes a `role="user"` /
5836
+ * `role="assistant"` JSX attribute — `"user"`/`"assistant"` are not valid
5837
+ * WAI-ARIA roles, and a linter (or a screen reader) reading a literal
5838
+ * `role` attribute cannot tell a domain enum from a DOM ARIA role.
5839
+ * Exposed on the DOM as `data-role`, never as `role`.
5840
+ */
5841
+ messageRole: MosaicChatMessageSenderRole;
5842
+ /** Ordered message parts. */
5843
+ parts: MosaicChatMessagePart[];
5844
+ /**
5845
+ * Renders a text/reasoning part's raw string. The host owns the markdown
5846
+ * engine (MVP-7 `MosaicMarkdown`) — the library never bundles one.
5847
+ * Required, no default.
5848
+ */
5849
+ renderText: (text: string) => React.ReactNode;
5850
+ /** Label on the reasoning disclosure trigger while NOT streaming. Required, no default. */
5851
+ reasoningLabel: string;
5852
+ /** Label on the reasoning disclosure trigger WHILE streaming. Required, no default. */
5853
+ reasoningStreamingLabel: string;
5854
+ /** Host-owned copy for every tool-call status. Required, no default. */
5855
+ toolStatusLabels: MosaicChatMessageToolStatusLabels;
5856
+ className?: string;
5857
+ /** React 19 ref prop — forwarded to the root element. */
5858
+ ref?: React.Ref<HTMLElement>;
5859
+ }
5860
+ /**
5861
+ * MosaicChatMessage — production chat-message atom for
5862
+ * @vantageos/mosaic-blocks.
5863
+ *
5864
+ * Purely presentational: renders one message's role-aligned bubble and its
5865
+ * ordered parts (text/reasoning/tool call). No network call, no markdown
5866
+ * engine, no approval UI — see the module JSDoc for the three extension
5867
+ * points.
5868
+ */
5869
+ declare function MosaicChatMessage({ messageRole, parts, renderText, reasoningLabel, reasoningStreamingLabel, toolStatusLabels, className, ref, }: MosaicChatMessageProps): React.JSX.Element;
5870
+ declare namespace MosaicChatMessage {
5871
+ var displayName: string;
5872
+ }
5873
+
5874
+ /**
5875
+ * chatMessageVariants — pure CVA variant functions for MosaicChatMessage.
5876
+ *
5877
+ * Isolated in their own module so they can be re-exported from the
5878
+ * `@vantageos/mosaic-blocks/server` subpath without pulling in React.
5879
+ *
5880
+ * Zero browser / React runtime dependencies — safe in RSC / Node.js.
5881
+ */
5882
+ /** Root row alignment — user messages align end, assistant messages align start. */
5883
+ declare const chatMessageContainerVariants: (props?: ({
5884
+ align?: "start" | "end" | null | undefined;
5885
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
5886
+ /** Bubble surface — user gets a bounded chat bubble, assistant flows full-width. */
5887
+ declare const chatMessageBubbleVariants: (props?: ({
5888
+ role?: "user" | "assistant" | null | undefined;
5889
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
5890
+ /** Tool-call status glyph/tone — running / completed / denied / error. */
5891
+ declare const chatMessageToolStatusVariants: (props?: ({
5892
+ status?: "error" | "running" | "completed" | "denied" | null | undefined;
5893
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
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 };