@vantageos/mosaic-blocks 0.5.1-alpha → 0.5.6-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/README.md +3 -3
- package/dist/index.cjs +124 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +128 -2
- package/dist/index.d.ts +128 -2
- package/dist/index.js +125 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -20,7 +20,7 @@ import { Switch } from '@base-ui/react/switch';
|
|
|
20
20
|
export { Tooltip } from '@base-ui/react/tooltip';
|
|
21
21
|
import 'class-variance-authority/types';
|
|
22
22
|
|
|
23
|
-
declare const version = "0.5.
|
|
23
|
+
declare const version = "0.5.6-alpha";
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Placeholder component — infra scaffold only.
|
|
@@ -5464,4 +5464,130 @@ declare namespace MosaicChatThread {
|
|
|
5464
5464
|
var displayName: string;
|
|
5465
5465
|
}
|
|
5466
5466
|
|
|
5467
|
-
|
|
5467
|
+
/**
|
|
5468
|
+
* MosaicChatComposer — presentational, controlled chat input + send/stop button
|
|
5469
|
+
*
|
|
5470
|
+
* Presentational atom. Renders a multi-line, auto-growing textarea plus a
|
|
5471
|
+
* single action button whose ROLE flips between "send" and "stop" depending
|
|
5472
|
+
* on `status` — the STOP button (cancel the in-flight agent response) is the
|
|
5473
|
+
* library's differentiator versus a plain send-only composer. The component
|
|
5474
|
+
* performs no network call and holds no message state: the current text is
|
|
5475
|
+
* fully host-controlled (`value` + `onValueChange`), and both `onSubmit(text)`
|
|
5476
|
+
* (idle) and `onStop()` (responding) are pure prop callbacks.
|
|
5477
|
+
*
|
|
5478
|
+
* Local behaviour (no network involved): Enter (without Shift) submits the
|
|
5479
|
+
* trimmed value while `status === "idle"`; Shift+Enter inserts a newline; the
|
|
5480
|
+
* textarea auto-grows with the content up to a max height, then scrolls.
|
|
5481
|
+
*
|
|
5482
|
+
* Pattern: MosaicUrlScraper.tsx (data-slot, inline cn, React 19 ref prop,
|
|
5483
|
+
* displayName, JSDoc, pure variants module, host-controlled status union as
|
|
5484
|
+
* a discriminated prop type).
|
|
5485
|
+
* No "use client" — prepend-use-client.mjs adds it to dist.
|
|
5486
|
+
* Design tokens: --foreground, --background, --muted-foreground, --border,
|
|
5487
|
+
* --ring, --card.
|
|
5488
|
+
* No icon library — plain glyphs ("↑" send / "■" stop), matching the
|
|
5489
|
+
* document-upload / url-scraper convention (no lucide-react runtime
|
|
5490
|
+
* dependency). Glyphs are `aria-hidden`; the accessible name comes from the
|
|
5491
|
+
* required `sendButtonAriaLabel` / `stopButtonAriaLabel` props.
|
|
5492
|
+
* a11y: the textarea has a required accessible name (`textareaAriaLabel`);
|
|
5493
|
+
* the action button's accessible name flips with `status`; an
|
|
5494
|
+
* `aria-live="polite"` region announces the current action-button label so
|
|
5495
|
+
* an assistive-technology user is told when send becomes stop (and back).
|
|
5496
|
+
* Bilingual: every user-facing string (`textareaAriaLabel`, `placeholder`,
|
|
5497
|
+
* `sendButtonAriaLabel`, `stopButtonAriaLabel`) is a required caller-supplied
|
|
5498
|
+
* prop — zero hardcoded copy, zero default.
|
|
5499
|
+
*
|
|
5500
|
+
* Props are pushed into the `MosaicChatComposerState` discriminated union
|
|
5501
|
+
* exactly where they are read: `onSubmit`/`sendButtonAriaLabel` only exist on
|
|
5502
|
+
* the "idle" variant (the send button, and the only branch Enter submits
|
|
5503
|
+
* from); `onStop`/`stopButtonAriaLabel` only exist on the "responding"
|
|
5504
|
+
* variant (the stop button) — declaring `stopButtonAriaLabel` on the base
|
|
5505
|
+
* props would force every host to supply a label that is never displayed
|
|
5506
|
+
* while idle, which is exactly the "lying prop contract" this library
|
|
5507
|
+
* forbids.
|
|
5508
|
+
*
|
|
5509
|
+
* Ported from any-eve-tpl components/chat/composer.tsx (rewritten from
|
|
5510
|
+
* scratch — no shared code, no license carried over): dropped the
|
|
5511
|
+
* `disabledReason`/`isPreparing`/tooltip-wrapping/character-limit business
|
|
5512
|
+
* logic (app-specific), kept the textarea + auto-submit-on-Enter + send/stop
|
|
5513
|
+
* action shape, and promoted the STOP button from "one branch among three"
|
|
5514
|
+
* to a first-class discriminated state (host-controlled, not a boolean
|
|
5515
|
+
* `isBusy` prop carrying unused fields).
|
|
5516
|
+
*
|
|
5517
|
+
* @example
|
|
5518
|
+
* // idle — can submit
|
|
5519
|
+
* <MosaicChatComposer
|
|
5520
|
+
* status="idle"
|
|
5521
|
+
* value={value}
|
|
5522
|
+
* onValueChange={setValue}
|
|
5523
|
+
* onSubmit={(text) => send(text)}
|
|
5524
|
+
* textareaAriaLabel="Message à eve"
|
|
5525
|
+
* placeholder="Demandez ce que vous voulez à eve..."
|
|
5526
|
+
* sendButtonAriaLabel="Envoyer le message"
|
|
5527
|
+
* />
|
|
5528
|
+
*
|
|
5529
|
+
* @example
|
|
5530
|
+
* // responding — can stop (the differentiator)
|
|
5531
|
+
* <MosaicChatComposer
|
|
5532
|
+
* {...baseProps}
|
|
5533
|
+
* status="responding"
|
|
5534
|
+
* onStop={() => abortResponse()}
|
|
5535
|
+
* stopButtonAriaLabel="Arrêter la réponse"
|
|
5536
|
+
* />
|
|
5537
|
+
*/
|
|
5538
|
+
|
|
5539
|
+
/**
|
|
5540
|
+
* Base props required in EVERY status — read unconditionally by the
|
|
5541
|
+
* component regardless of `status` (the textarea itself, reachable from both
|
|
5542
|
+
* "idle" and "responding").
|
|
5543
|
+
*/
|
|
5544
|
+
type MosaicChatComposerBaseProps = {
|
|
5545
|
+
/** Host-controlled current textarea value. */
|
|
5546
|
+
value: string;
|
|
5547
|
+
/** Called with the raw textarea value on every keystroke. */
|
|
5548
|
+
onValueChange: (value: string) => void;
|
|
5549
|
+
/** Accessible name for the textarea (`aria-label`). Required, no default. */
|
|
5550
|
+
textareaAriaLabel: string;
|
|
5551
|
+
/** Placeholder text for the textarea. Required, no default. */
|
|
5552
|
+
placeholder: string;
|
|
5553
|
+
/** Disables the textarea (e.g. host-level connectivity loss). */
|
|
5554
|
+
disabled?: boolean;
|
|
5555
|
+
/** Additional Tailwind classes on the root element. */
|
|
5556
|
+
className?: string;
|
|
5557
|
+
/** React 19 ref prop — forwarded to the root element. */
|
|
5558
|
+
ref?: React.Ref<HTMLFormElement>;
|
|
5559
|
+
};
|
|
5560
|
+
/**
|
|
5561
|
+
* Host-controlled composer status. `onSubmit` + `sendButtonAriaLabel` are
|
|
5562
|
+
* required only while the composer CAN send ("idle"); `onStop` +
|
|
5563
|
+
* `stopButtonAriaLabel` are required only while the agent IS responding
|
|
5564
|
+
* ("responding") — each field lives exactly on the branch that renders it.
|
|
5565
|
+
*/
|
|
5566
|
+
type MosaicChatComposerState = {
|
|
5567
|
+
status: "idle";
|
|
5568
|
+
/** Called with the trimmed value on Enter (no Shift) or send-button click. */
|
|
5569
|
+
onSubmit: (text: string) => void;
|
|
5570
|
+
/** Accessible name for the send button. Required, no default. */
|
|
5571
|
+
sendButtonAriaLabel: string;
|
|
5572
|
+
} | {
|
|
5573
|
+
status: "responding";
|
|
5574
|
+
/** Called when the stop button is activated — the differentiator. */
|
|
5575
|
+
onStop: () => void;
|
|
5576
|
+
/** Accessible name for the stop button. Required, no default. */
|
|
5577
|
+
stopButtonAriaLabel: string;
|
|
5578
|
+
};
|
|
5579
|
+
type MosaicChatComposerProps = MosaicChatComposerBaseProps & MosaicChatComposerState;
|
|
5580
|
+
/**
|
|
5581
|
+
* MosaicChatComposer — production chat-input atom for
|
|
5582
|
+
* @vantageos/mosaic-blocks.
|
|
5583
|
+
*
|
|
5584
|
+
* Purely presentational: renders a controlled, auto-growing textarea and a
|
|
5585
|
+
* single action button whose role (send/stop) is driven by `status`. No
|
|
5586
|
+
* network call, no message history, no built-in copy.
|
|
5587
|
+
*/
|
|
5588
|
+
declare function MosaicChatComposer(props: MosaicChatComposerProps): React.JSX.Element;
|
|
5589
|
+
declare namespace MosaicChatComposer {
|
|
5590
|
+
var displayName: string;
|
|
5591
|
+
}
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ import { Switch } from '@base-ui/react/switch';
|
|
|
20
20
|
export { Tooltip } from '@base-ui/react/tooltip';
|
|
21
21
|
import 'class-variance-authority/types';
|
|
22
22
|
|
|
23
|
-
declare const version = "0.5.
|
|
23
|
+
declare const version = "0.5.6-alpha";
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Placeholder component — infra scaffold only.
|
|
@@ -5464,4 +5464,130 @@ declare namespace MosaicChatThread {
|
|
|
5464
5464
|
var displayName: string;
|
|
5465
5465
|
}
|
|
5466
5466
|
|
|
5467
|
-
|
|
5467
|
+
/**
|
|
5468
|
+
* MosaicChatComposer — presentational, controlled chat input + send/stop button
|
|
5469
|
+
*
|
|
5470
|
+
* Presentational atom. Renders a multi-line, auto-growing textarea plus a
|
|
5471
|
+
* single action button whose ROLE flips between "send" and "stop" depending
|
|
5472
|
+
* on `status` — the STOP button (cancel the in-flight agent response) is the
|
|
5473
|
+
* library's differentiator versus a plain send-only composer. The component
|
|
5474
|
+
* performs no network call and holds no message state: the current text is
|
|
5475
|
+
* fully host-controlled (`value` + `onValueChange`), and both `onSubmit(text)`
|
|
5476
|
+
* (idle) and `onStop()` (responding) are pure prop callbacks.
|
|
5477
|
+
*
|
|
5478
|
+
* Local behaviour (no network involved): Enter (without Shift) submits the
|
|
5479
|
+
* trimmed value while `status === "idle"`; Shift+Enter inserts a newline; the
|
|
5480
|
+
* textarea auto-grows with the content up to a max height, then scrolls.
|
|
5481
|
+
*
|
|
5482
|
+
* Pattern: MosaicUrlScraper.tsx (data-slot, inline cn, React 19 ref prop,
|
|
5483
|
+
* displayName, JSDoc, pure variants module, host-controlled status union as
|
|
5484
|
+
* a discriminated prop type).
|
|
5485
|
+
* No "use client" — prepend-use-client.mjs adds it to dist.
|
|
5486
|
+
* Design tokens: --foreground, --background, --muted-foreground, --border,
|
|
5487
|
+
* --ring, --card.
|
|
5488
|
+
* No icon library — plain glyphs ("↑" send / "■" stop), matching the
|
|
5489
|
+
* document-upload / url-scraper convention (no lucide-react runtime
|
|
5490
|
+
* dependency). Glyphs are `aria-hidden`; the accessible name comes from the
|
|
5491
|
+
* required `sendButtonAriaLabel` / `stopButtonAriaLabel` props.
|
|
5492
|
+
* a11y: the textarea has a required accessible name (`textareaAriaLabel`);
|
|
5493
|
+
* the action button's accessible name flips with `status`; an
|
|
5494
|
+
* `aria-live="polite"` region announces the current action-button label so
|
|
5495
|
+
* an assistive-technology user is told when send becomes stop (and back).
|
|
5496
|
+
* Bilingual: every user-facing string (`textareaAriaLabel`, `placeholder`,
|
|
5497
|
+
* `sendButtonAriaLabel`, `stopButtonAriaLabel`) is a required caller-supplied
|
|
5498
|
+
* prop — zero hardcoded copy, zero default.
|
|
5499
|
+
*
|
|
5500
|
+
* Props are pushed into the `MosaicChatComposerState` discriminated union
|
|
5501
|
+
* exactly where they are read: `onSubmit`/`sendButtonAriaLabel` only exist on
|
|
5502
|
+
* the "idle" variant (the send button, and the only branch Enter submits
|
|
5503
|
+
* from); `onStop`/`stopButtonAriaLabel` only exist on the "responding"
|
|
5504
|
+
* variant (the stop button) — declaring `stopButtonAriaLabel` on the base
|
|
5505
|
+
* props would force every host to supply a label that is never displayed
|
|
5506
|
+
* while idle, which is exactly the "lying prop contract" this library
|
|
5507
|
+
* forbids.
|
|
5508
|
+
*
|
|
5509
|
+
* Ported from any-eve-tpl components/chat/composer.tsx (rewritten from
|
|
5510
|
+
* scratch — no shared code, no license carried over): dropped the
|
|
5511
|
+
* `disabledReason`/`isPreparing`/tooltip-wrapping/character-limit business
|
|
5512
|
+
* logic (app-specific), kept the textarea + auto-submit-on-Enter + send/stop
|
|
5513
|
+
* action shape, and promoted the STOP button from "one branch among three"
|
|
5514
|
+
* to a first-class discriminated state (host-controlled, not a boolean
|
|
5515
|
+
* `isBusy` prop carrying unused fields).
|
|
5516
|
+
*
|
|
5517
|
+
* @example
|
|
5518
|
+
* // idle — can submit
|
|
5519
|
+
* <MosaicChatComposer
|
|
5520
|
+
* status="idle"
|
|
5521
|
+
* value={value}
|
|
5522
|
+
* onValueChange={setValue}
|
|
5523
|
+
* onSubmit={(text) => send(text)}
|
|
5524
|
+
* textareaAriaLabel="Message à eve"
|
|
5525
|
+
* placeholder="Demandez ce que vous voulez à eve..."
|
|
5526
|
+
* sendButtonAriaLabel="Envoyer le message"
|
|
5527
|
+
* />
|
|
5528
|
+
*
|
|
5529
|
+
* @example
|
|
5530
|
+
* // responding — can stop (the differentiator)
|
|
5531
|
+
* <MosaicChatComposer
|
|
5532
|
+
* {...baseProps}
|
|
5533
|
+
* status="responding"
|
|
5534
|
+
* onStop={() => abortResponse()}
|
|
5535
|
+
* stopButtonAriaLabel="Arrêter la réponse"
|
|
5536
|
+
* />
|
|
5537
|
+
*/
|
|
5538
|
+
|
|
5539
|
+
/**
|
|
5540
|
+
* Base props required in EVERY status — read unconditionally by the
|
|
5541
|
+
* component regardless of `status` (the textarea itself, reachable from both
|
|
5542
|
+
* "idle" and "responding").
|
|
5543
|
+
*/
|
|
5544
|
+
type MosaicChatComposerBaseProps = {
|
|
5545
|
+
/** Host-controlled current textarea value. */
|
|
5546
|
+
value: string;
|
|
5547
|
+
/** Called with the raw textarea value on every keystroke. */
|
|
5548
|
+
onValueChange: (value: string) => void;
|
|
5549
|
+
/** Accessible name for the textarea (`aria-label`). Required, no default. */
|
|
5550
|
+
textareaAriaLabel: string;
|
|
5551
|
+
/** Placeholder text for the textarea. Required, no default. */
|
|
5552
|
+
placeholder: string;
|
|
5553
|
+
/** Disables the textarea (e.g. host-level connectivity loss). */
|
|
5554
|
+
disabled?: boolean;
|
|
5555
|
+
/** Additional Tailwind classes on the root element. */
|
|
5556
|
+
className?: string;
|
|
5557
|
+
/** React 19 ref prop — forwarded to the root element. */
|
|
5558
|
+
ref?: React.Ref<HTMLFormElement>;
|
|
5559
|
+
};
|
|
5560
|
+
/**
|
|
5561
|
+
* Host-controlled composer status. `onSubmit` + `sendButtonAriaLabel` are
|
|
5562
|
+
* required only while the composer CAN send ("idle"); `onStop` +
|
|
5563
|
+
* `stopButtonAriaLabel` are required only while the agent IS responding
|
|
5564
|
+
* ("responding") — each field lives exactly on the branch that renders it.
|
|
5565
|
+
*/
|
|
5566
|
+
type MosaicChatComposerState = {
|
|
5567
|
+
status: "idle";
|
|
5568
|
+
/** Called with the trimmed value on Enter (no Shift) or send-button click. */
|
|
5569
|
+
onSubmit: (text: string) => void;
|
|
5570
|
+
/** Accessible name for the send button. Required, no default. */
|
|
5571
|
+
sendButtonAriaLabel: string;
|
|
5572
|
+
} | {
|
|
5573
|
+
status: "responding";
|
|
5574
|
+
/** Called when the stop button is activated — the differentiator. */
|
|
5575
|
+
onStop: () => void;
|
|
5576
|
+
/** Accessible name for the stop button. Required, no default. */
|
|
5577
|
+
stopButtonAriaLabel: string;
|
|
5578
|
+
};
|
|
5579
|
+
type MosaicChatComposerProps = MosaicChatComposerBaseProps & MosaicChatComposerState;
|
|
5580
|
+
/**
|
|
5581
|
+
* MosaicChatComposer — production chat-input atom for
|
|
5582
|
+
* @vantageos/mosaic-blocks.
|
|
5583
|
+
*
|
|
5584
|
+
* Purely presentational: renders a controlled, auto-growing textarea and a
|
|
5585
|
+
* single action button whose role (send/stop) is driven by `status`. No
|
|
5586
|
+
* network call, no message history, no built-in copy.
|
|
5587
|
+
*/
|
|
5588
|
+
declare function MosaicChatComposer(props: MosaicChatComposerProps): React.JSX.Element;
|
|
5589
|
+
declare namespace MosaicChatComposer {
|
|
5590
|
+
var displayName: string;
|
|
5591
|
+
}
|
|
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 };
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
|
3
3
|
import { Button } from '@base-ui/react/button';
|
|
4
4
|
import { cva } from 'class-variance-authority';
|
|
5
5
|
import * as React28 from 'react';
|
|
6
|
-
import { useState, useEffect, useRef, useId, useLayoutEffect } from 'react';
|
|
6
|
+
import { useState, useEffect, useRef, useId, useLayoutEffect, useCallback } from 'react';
|
|
7
7
|
import { Accordion } from '@base-ui/react/accordion';
|
|
8
8
|
export { Accordion } from '@base-ui/react/accordion';
|
|
9
9
|
import { Checkbox } from '@base-ui/react/checkbox';
|
|
@@ -27,7 +27,7 @@ import { Menu } from '@base-ui/react/menu';
|
|
|
27
27
|
import { AlertDialog } from '@base-ui/react/alert-dialog';
|
|
28
28
|
|
|
29
29
|
// src/version.ts
|
|
30
|
-
var version = "0.5.
|
|
30
|
+
var version = "0.5.6-alpha";
|
|
31
31
|
function Placeholder({ label = "mosaic-blocks placeholder" }) {
|
|
32
32
|
return /* @__PURE__ */ jsx("div", { "data-mosaic-block": "placeholder", children: label });
|
|
33
33
|
}
|
|
@@ -11541,7 +11541,129 @@ function MosaicChatThread({
|
|
|
11541
11541
|
);
|
|
11542
11542
|
}
|
|
11543
11543
|
MosaicChatThread.displayName = "MosaicChatThread";
|
|
11544
|
+
var chatComposerRootVariants = cva([
|
|
11545
|
+
"min-w-0 rounded-[14px] border border-border bg-card shadow-sm transition-colors",
|
|
11546
|
+
"focus-within:ring-[1px] focus-within:ring-ring"
|
|
11547
|
+
]);
|
|
11548
|
+
var chatComposerTextareaVariants = cva([
|
|
11549
|
+
"max-h-40 min-h-12 w-full resize-none bg-transparent px-3 pt-3 pb-1 text-sm outline-none",
|
|
11550
|
+
"placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-60"
|
|
11551
|
+
]);
|
|
11552
|
+
var chatComposerActionButtonVariants = cva(
|
|
11553
|
+
["inline-flex size-7 shrink-0 items-center justify-center rounded-md transition-colors"],
|
|
11554
|
+
{
|
|
11555
|
+
variants: {
|
|
11556
|
+
tone: {
|
|
11557
|
+
send: "bg-foreground text-background hover:bg-foreground/90 disabled:cursor-not-allowed disabled:opacity-30",
|
|
11558
|
+
stop: "cursor-pointer bg-foreground/15 text-foreground hover:bg-foreground/25"
|
|
11559
|
+
}
|
|
11560
|
+
},
|
|
11561
|
+
defaultVariants: {
|
|
11562
|
+
tone: "send"
|
|
11563
|
+
}
|
|
11564
|
+
}
|
|
11565
|
+
);
|
|
11566
|
+
function cn74(...classes) {
|
|
11567
|
+
return classes.filter(Boolean).join(" ");
|
|
11568
|
+
}
|
|
11569
|
+
function MosaicChatComposer(props) {
|
|
11570
|
+
const {
|
|
11571
|
+
value,
|
|
11572
|
+
onValueChange,
|
|
11573
|
+
textareaAriaLabel,
|
|
11574
|
+
placeholder,
|
|
11575
|
+
disabled = false,
|
|
11576
|
+
className,
|
|
11577
|
+
ref
|
|
11578
|
+
} = props;
|
|
11579
|
+
const textareaRef = useRef(null);
|
|
11580
|
+
const trimmedValue = value.trim();
|
|
11581
|
+
useEffect(() => {
|
|
11582
|
+
const textarea = textareaRef.current;
|
|
11583
|
+
if (!textarea) {
|
|
11584
|
+
return;
|
|
11585
|
+
}
|
|
11586
|
+
textarea.style.height = "auto";
|
|
11587
|
+
textarea.style.height = `${textarea.scrollHeight}px`;
|
|
11588
|
+
}, [value]);
|
|
11589
|
+
const submitValue = useCallback(() => {
|
|
11590
|
+
if (props.status !== "idle") {
|
|
11591
|
+
return;
|
|
11592
|
+
}
|
|
11593
|
+
const text = value.trim();
|
|
11594
|
+
if (!text || disabled) {
|
|
11595
|
+
return;
|
|
11596
|
+
}
|
|
11597
|
+
props.onSubmit(text);
|
|
11598
|
+
}, [disabled, props, value]);
|
|
11599
|
+
const handleSubmit = useCallback(
|
|
11600
|
+
(event) => {
|
|
11601
|
+
event.preventDefault();
|
|
11602
|
+
submitValue();
|
|
11603
|
+
},
|
|
11604
|
+
[submitValue]
|
|
11605
|
+
);
|
|
11606
|
+
const handleKeyDown = useCallback(
|
|
11607
|
+
(event) => {
|
|
11608
|
+
if (event.key === "Enter" && !event.shiftKey) {
|
|
11609
|
+
event.preventDefault();
|
|
11610
|
+
submitValue();
|
|
11611
|
+
}
|
|
11612
|
+
},
|
|
11613
|
+
[submitValue]
|
|
11614
|
+
);
|
|
11615
|
+
const currentActionLabel = props.status === "responding" ? props.stopButtonAriaLabel : props.sendButtonAriaLabel;
|
|
11616
|
+
return /* @__PURE__ */ jsxs(
|
|
11617
|
+
"form",
|
|
11618
|
+
{
|
|
11619
|
+
ref,
|
|
11620
|
+
"data-slot": "chat-composer",
|
|
11621
|
+
className: cn74(chatComposerRootVariants(), className),
|
|
11622
|
+
onSubmit: handleSubmit,
|
|
11623
|
+
children: [
|
|
11624
|
+
/* @__PURE__ */ jsx(
|
|
11625
|
+
"textarea",
|
|
11626
|
+
{
|
|
11627
|
+
"data-slot": "chat-composer-input",
|
|
11628
|
+
"aria-label": textareaAriaLabel,
|
|
11629
|
+
className: chatComposerTextareaVariants(),
|
|
11630
|
+
disabled,
|
|
11631
|
+
onChange: (event) => onValueChange(event.target.value),
|
|
11632
|
+
onKeyDown: handleKeyDown,
|
|
11633
|
+
placeholder,
|
|
11634
|
+
ref: textareaRef,
|
|
11635
|
+
rows: 1,
|
|
11636
|
+
value
|
|
11637
|
+
}
|
|
11638
|
+
),
|
|
11639
|
+
/* @__PURE__ */ jsx("div", { className: "flex min-h-9 items-center justify-end gap-2 px-3 pt-1 pb-2", children: props.status === "responding" ? /* @__PURE__ */ jsx(
|
|
11640
|
+
"button",
|
|
11641
|
+
{
|
|
11642
|
+
"aria-label": props.stopButtonAriaLabel,
|
|
11643
|
+
className: chatComposerActionButtonVariants({ tone: "stop" }),
|
|
11644
|
+
"data-slot": "chat-composer-stop-button",
|
|
11645
|
+
onClick: props.onStop,
|
|
11646
|
+
type: "button",
|
|
11647
|
+
children: /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: "\u25A0" })
|
|
11648
|
+
}
|
|
11649
|
+
) : /* @__PURE__ */ jsx(
|
|
11650
|
+
"button",
|
|
11651
|
+
{
|
|
11652
|
+
"aria-label": props.sendButtonAriaLabel,
|
|
11653
|
+
className: chatComposerActionButtonVariants({ tone: "send" }),
|
|
11654
|
+
"data-slot": "chat-composer-send-button",
|
|
11655
|
+
disabled: disabled || trimmedValue.length === 0,
|
|
11656
|
+
type: "submit",
|
|
11657
|
+
children: /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: "\u2191" })
|
|
11658
|
+
}
|
|
11659
|
+
) }),
|
|
11660
|
+
/* @__PURE__ */ jsx("span", { "aria-live": "polite", className: "sr-only", "data-slot": "chat-composer-status-announcer", children: currentActionLabel })
|
|
11661
|
+
]
|
|
11662
|
+
}
|
|
11663
|
+
);
|
|
11664
|
+
}
|
|
11665
|
+
MosaicChatComposer.displayName = "MosaicChatComposer";
|
|
11544
11666
|
|
|
11545
|
-
export { MosaicAccordion, MosaicAccordionItem, MosaicAccordionPanel, MosaicAccordionTrigger, MosaicActivityFeed, MosaicActivityItem, MosaicAdaptiveGrid, MosaicAdaptiveModal, MosaicAdaptiveNavigation, MosaicAgentCard, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, MosaicAgentTeamPreview, MosaicAnimatedList, MosaicAppSidebar, MosaicAvatar, MosaicBadge, MosaicBlurredOrb, MosaicButton, MosaicCard, MosaicCardContent, MosaicCardDescription, MosaicCardFooter, MosaicCardHeader, MosaicCardTitle, MosaicChatThread, MosaicCheckbox, MosaicClerkOrgSwitcher, MosaicClerkWebhookHandler, MosaicCollapsible, MosaicCollapsiblePanel, MosaicCollapsibleTrigger, MosaicCombobox, MosaicCounter, MosaicCreateOrgDialog, MosaicDashboardContent, MosaicDashboardHeader, MosaicDashboardLayout, MosaicDataTable, MosaicDeleteConfirmationDialog, MosaicDeviceProvider, MosaicDocumentUpload, MosaicDropdownMenu, MosaicEmptyState, MosaicFallingPattern, MosaicFeature3Col, MosaicFeatureCenteredMedia, MosaicField, MosaicFieldControl, MosaicFieldDescription, MosaicFieldError, MosaicFieldLabel, MosaicFilterBar, MosaicFilterSidebar, MosaicFooterSimple, MosaicHeroSplit, MosaicInput, MosaicInputGroup, MosaicIntegrationsBadge, MosaicInviteMemberDialog, MosaicKanbanBoard, MosaicKanbanColumn, MosaicLogosGrid, MosaicMainNav, MosaicMarketplaceList, MarketplaceListDesktop as MosaicMarketplaceListDesktop, MarketplaceListMobile as MosaicMarketplaceListMobile, MosaicMemberList, MosaicMemoryCard, MosaicMessageCard, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, MosaicModuleCard, MosaicModuleForm, MosaicModuleLibrary, MosaicMultiOrgIndicator, MosaicMultiTenantProvider, MosaicNavbar, MosaicOrgPanel, MosaicOrgProfilePage, MosaicOrgRoleBadge, MosaicOrgSwitcher, MosaicPreferencesPanel, MosaicPricingCard, MosaicProfilePanel, MosaicProgress, MosaicQuickActionCard, MosaicQuickActionsMenu, MosaicQuickAgentSelector, MosaicQuickStartPanel, MosaicRadioGroup, MosaicRadioGroupItem, MosaicScrollArea, MosaicSelect, MosaicSelectorModal, MosaicSeparator, MosaicSignInLayout, MosaicSignUpLayout, MosaicSkeleton, MosaicSlider, MosaicStatsGrid, MosaicStepPipeline, MosaicSwitch, MosaicTabs, MosaicTabsList, MosaicTabsPanel, MosaicTabsTrigger, MosaicTemplateCard, MosaicTemplateGallery, MosaicTemplatePreview, MosaicTestimonialsGrid, MosaicTextarea, MosaicThemeProvider, MosaicThemeToggle, MosaicTooltip, MosaicTooltipContent, MosaicTooltipProvider, MosaicTooltipRoot, MosaicTooltipTrigger, MosaicUrlScraper, MosaicUserButton, Placeholder, badgeVariants, buttonVariants, skeletonVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
|
|
11667
|
+
export { MosaicAccordion, MosaicAccordionItem, MosaicAccordionPanel, MosaicAccordionTrigger, MosaicActivityFeed, MosaicActivityItem, MosaicAdaptiveGrid, MosaicAdaptiveModal, MosaicAdaptiveNavigation, MosaicAgentCard, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, MosaicAgentTeamPreview, MosaicAnimatedList, MosaicAppSidebar, MosaicAvatar, MosaicBadge, MosaicBlurredOrb, MosaicButton, MosaicCard, MosaicCardContent, MosaicCardDescription, MosaicCardFooter, MosaicCardHeader, MosaicCardTitle, MosaicChatComposer, MosaicChatThread, MosaicCheckbox, MosaicClerkOrgSwitcher, MosaicClerkWebhookHandler, MosaicCollapsible, MosaicCollapsiblePanel, MosaicCollapsibleTrigger, MosaicCombobox, MosaicCounter, MosaicCreateOrgDialog, MosaicDashboardContent, MosaicDashboardHeader, MosaicDashboardLayout, MosaicDataTable, MosaicDeleteConfirmationDialog, MosaicDeviceProvider, MosaicDocumentUpload, MosaicDropdownMenu, MosaicEmptyState, MosaicFallingPattern, MosaicFeature3Col, MosaicFeatureCenteredMedia, MosaicField, MosaicFieldControl, MosaicFieldDescription, MosaicFieldError, MosaicFieldLabel, MosaicFilterBar, MosaicFilterSidebar, MosaicFooterSimple, MosaicHeroSplit, MosaicInput, MosaicInputGroup, MosaicIntegrationsBadge, MosaicInviteMemberDialog, MosaicKanbanBoard, MosaicKanbanColumn, MosaicLogosGrid, MosaicMainNav, MosaicMarketplaceList, MarketplaceListDesktop as MosaicMarketplaceListDesktop, MarketplaceListMobile as MosaicMarketplaceListMobile, MosaicMemberList, MosaicMemoryCard, MosaicMessageCard, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, MosaicModuleCard, MosaicModuleForm, MosaicModuleLibrary, MosaicMultiOrgIndicator, MosaicMultiTenantProvider, MosaicNavbar, MosaicOrgPanel, MosaicOrgProfilePage, MosaicOrgRoleBadge, MosaicOrgSwitcher, MosaicPreferencesPanel, MosaicPricingCard, MosaicProfilePanel, MosaicProgress, MosaicQuickActionCard, MosaicQuickActionsMenu, MosaicQuickAgentSelector, MosaicQuickStartPanel, MosaicRadioGroup, MosaicRadioGroupItem, MosaicScrollArea, MosaicSelect, MosaicSelectorModal, MosaicSeparator, MosaicSignInLayout, MosaicSignUpLayout, MosaicSkeleton, MosaicSlider, MosaicStatsGrid, MosaicStepPipeline, MosaicSwitch, MosaicTabs, MosaicTabsList, MosaicTabsPanel, MosaicTabsTrigger, MosaicTemplateCard, MosaicTemplateGallery, MosaicTemplatePreview, MosaicTestimonialsGrid, MosaicTextarea, MosaicThemeProvider, MosaicThemeToggle, MosaicTooltip, MosaicTooltipContent, MosaicTooltipProvider, MosaicTooltipRoot, MosaicTooltipTrigger, MosaicUrlScraper, MosaicUserButton, Placeholder, badgeVariants, buttonVariants, skeletonVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
|
|
11546
11668
|
//# sourceMappingURL=index.js.map
|
|
11547
11669
|
//# sourceMappingURL=index.js.map
|