@vantageos/mosaic-blocks 0.4.5-alpha → 0.4.7-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -20,7 +20,7 @@ import { Switch } from '@base-ui/react/switch';
20
20
  export { Tooltip } from '@base-ui/react/tooltip';
21
21
  import 'class-variance-authority/types';
22
22
 
23
- declare const version = "0.4.5-alpha";
23
+ declare const version = "0.4.7-alpha";
24
24
 
25
25
  /**
26
26
  * Placeholder component — infra scaffold only.
@@ -3180,6 +3180,143 @@ declare namespace MosaicQuickAgentSelector {
3180
3180
  var displayName: string;
3181
3181
  }
3182
3182
 
3183
+ /**
3184
+ * MosaicMemoryCard — memory item card (detailed / compact variants)
3185
+ *
3186
+ * Ported from any-debate-ai's memory-card-desktop.tsx + memory-card-mobile.tsx
3187
+ * as ONE component with a `variant` prop, not two components. What actually
3188
+ * differed between the two source files:
3189
+ * - Layout density: detailed uses a leading icon chip + title/scope-badge
3190
+ * stack + separate content paragraph + tags row + footer with a labelled
3191
+ * usage count; compact folds title + content into one truncated header
3192
+ * row and drops the tags row entirely. Both variants call
3193
+ * `formatUsageCount` for the footer usage count — the caller decides
3194
+ * whether that renders a label or a bare number.
3195
+ * - Hover-reveal actions: the 3-dot menu trigger is `opacity-0
3196
+ * group-hover:opacity-100` in detailed (desktop hover affordance), always
3197
+ * visible in compact (no hover on touch).
3198
+ * - Scope badge chrome: bordered in detailed, borderless in compact.
3199
+ * Everything else (scope colors, source icon, edit/delete menu, time-ago
3200
+ * footer) is shared and modeled once.
3201
+ *
3202
+ * Pattern: MosaicAgentCard.tsx (data-slot, manual dropdown + outside-click
3203
+ * close, inline SVG icons, React 19 ref prop, displayName, JSDoc).
3204
+ * No "use client" side effects beyond menu state — prepend-use-client.mjs
3205
+ * adds the directive to dist regardless.
3206
+ * Design tokens: --card, --card-foreground, --border, --muted-foreground,
3207
+ * --accent, --accent-foreground, --destructive, --popover, --ring.
3208
+ * No icon library — inline SVGs only (no lucide-react dependency in this repo).
3209
+ * a11y: dropdown via role="menu"/"menuitem", aria-haspopup, aria-expanded,
3210
+ * required aria-label on the trigger.
3211
+ * Bilingual (SIN-01): zero user-facing strings hardcoded. Every label is a
3212
+ * required prop or a required formatter function — no optional prop with an
3213
+ * English default anywhere in this file.
3214
+ *
3215
+ * Closes T1 (bu-mcp memory wave) — mosaic-memory-card.
3216
+ *
3217
+ * @example
3218
+ * // Detailed variant (default) — full card with tags row and labelled footer
3219
+ * <MosaicMemoryCard
3220
+ * memory={memory}
3221
+ * editLabel="Edit"
3222
+ * deleteLabel="Delete"
3223
+ * moreActionsLabel="Memory actions"
3224
+ * formatScope={(scope) => t(`memory.scope.${scope}`)}
3225
+ * formatTimeAgo={(createdAt) => formatRelative(createdAt)}
3226
+ * formatUsageCount={(count) => t("memory.usageCount", { count })}
3227
+ * formatMoreTags={(count) => `+${count}`}
3228
+ * onEdit={(m) => openEditDialog(m)}
3229
+ * onDelete={(id) => deleteMemory(id)}
3230
+ * />
3231
+ *
3232
+ * @example
3233
+ * // Compact variant — condensed list row, no tags row. formatUsageCount is
3234
+ * // still called here; this host simply chooses to render the bare number.
3235
+ * <MosaicMemoryCard
3236
+ * memory={memory}
3237
+ * variant="compact"
3238
+ * editLabel="Modifier"
3239
+ * deleteLabel="Supprimer"
3240
+ * moreActionsLabel="Actions sur le souvenir"
3241
+ * formatScope={(scope) => t(`memory.scope.${scope}`)}
3242
+ * formatTimeAgo={(createdAt) => formatRelative(createdAt)}
3243
+ * formatUsageCount={(count) => `${count}`}
3244
+ * formatMoreTags={(count) => `+${count}`}
3245
+ * />
3246
+ */
3247
+
3248
+ type MosaicMemoryScope = "organization" | "workspace" | "user" | "chat";
3249
+ type MosaicMemorySource = "manual" | "document" | "url";
3250
+ interface MosaicMemoryData {
3251
+ id: string;
3252
+ title: string;
3253
+ content: string;
3254
+ scope: MosaicMemoryScope;
3255
+ source: MosaicMemorySource;
3256
+ tags: string[];
3257
+ /** Epoch milliseconds. */
3258
+ createdAt: number;
3259
+ usageCount: number;
3260
+ }
3261
+ interface MosaicMemoryCardProps {
3262
+ memory: MosaicMemoryData;
3263
+ /**
3264
+ * Layout density.
3265
+ * - `"detailed"` (default): icon chip + tags row + labelled usage footer.
3266
+ * - `"compact"`: condensed header row, no tags row, raw usage number.
3267
+ * @default "detailed"
3268
+ */
3269
+ variant?: "detailed" | "compact";
3270
+ onEdit?: (memory: MosaicMemoryData) => void;
3271
+ onDelete?: (memoryId: string) => void;
3272
+ /** Label for the "edit" menu item. Required — host-owned, no default. */
3273
+ editLabel: string;
3274
+ /** Label for the "delete" menu item. Required — host-owned, no default. */
3275
+ deleteLabel: string;
3276
+ /** aria-label for the 3-dot actions menu trigger. Required — host-owned, no default. */
3277
+ moreActionsLabel: string;
3278
+ /**
3279
+ * Formatter mapping `memory.scope` to its displayed label. Required — the
3280
+ * host owns the language (e.g. `(scope) => t(\`memory.scope.\${scope}\`)`).
3281
+ */
3282
+ formatScope: (scope: MosaicMemoryScope) => React.ReactNode;
3283
+ /**
3284
+ * Formatter producing the relative time caption from `memory.createdAt`.
3285
+ * Required — the host owns date formatting and language
3286
+ * (e.g. `(createdAt) => t("memory.timeAgo", { value: formatRelative(createdAt) })`).
3287
+ */
3288
+ formatTimeAgo: (createdAt: number) => React.ReactNode;
3289
+ /**
3290
+ * Formatter producing the labelled usage-count caption from
3291
+ * `memory.usageCount`. Applied in BOTH variants — the raw number is never
3292
+ * rendered directly. A host that wants the bare number in compact passes
3293
+ * `formatUsageCount={(count) => String(count)}`; that is the host's
3294
+ * choice, not a hidden default of the library.
3295
+ * Required — host-owned (e.g. `(count) => t("memory.usageCount", { count })`).
3296
+ */
3297
+ formatUsageCount: (count: number) => React.ReactNode;
3298
+ /**
3299
+ * Formatter producing the "+N" overflow caption when a memory has more
3300
+ * than 3 tags. Only rendered in the detailed variant. Required —
3301
+ * host-owned (e.g. `(count) => \`+\${count}\`` or a pluralized `t()` call).
3302
+ */
3303
+ formatMoreTags: (count: number) => React.ReactNode;
3304
+ className?: string;
3305
+ /** React 19 ref prop — forwarded to the root element. */
3306
+ ref?: React.Ref<HTMLDivElement>;
3307
+ }
3308
+ /**
3309
+ * MosaicMemoryCard — production memory-item card for @vantageos/mosaic-blocks.
3310
+ *
3311
+ * One component, two density variants (`detailed` default / `compact`) —
3312
+ * see file JSDoc for the exact desktop/mobile differences and how they were
3313
+ * modeled as `variant` + CVA compound variants rather than as two components.
3314
+ */
3315
+ declare function MosaicMemoryCard({ memory, variant, onEdit, onDelete, editLabel, deleteLabel, moreActionsLabel, formatScope, formatTimeAgo, formatUsageCount, formatMoreTags, className, ref, }: MosaicMemoryCardProps): React.JSX.Element;
3316
+ declare namespace MosaicMemoryCard {
3317
+ var displayName: string;
3318
+ }
3319
+
3183
3320
  /**
3184
3321
  * MosaicSelectorModal — generic searchable item picker modal
3185
3322
  *
@@ -4889,4 +5026,131 @@ interface MosaicClerkWebhookHandlerOptions {
4889
5026
  */
4890
5027
  declare function MosaicClerkWebhookHandler(req: Request, options: MosaicClerkWebhookHandlerOptions): Promise<Response>;
4891
5028
 
4892
- 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, 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, 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, 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, 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 };
5029
+ /**
5030
+ * MosaicDocumentUpload — presentational document drop-zone + file status list
5031
+ *
5032
+ * Presentational atom. Renders a drag&drop / click-to-browse zone and, below
5033
+ * it, one status row per file (uploading / success / error). The component
5034
+ * never performs a network call: file selection (drop or file-input change)
5035
+ * is surfaced via `onFilesSelected(files: File[])` — the host owns where the
5036
+ * upload goes, how progress is tracked, and how errors are produced. `files`
5037
+ * is fully host-controlled state (id, name, sizeBytes, status, optional
5038
+ * progress / errorMessage).
5039
+ *
5040
+ * Pattern: MosaicStepPipeline.tsx (data-slot, inline cn, React 19 ref prop,
5041
+ * displayName, JSDoc, pure variants module).
5042
+ * No "use client" — prepend-use-client.mjs adds it to dist.
5043
+ * Design tokens: --foreground, --muted, --muted-foreground, --border,
5044
+ * --destructive, --ring, --accent, --card, --background.
5045
+ * No icon library — uses ✓ / ✕ chars for success/error, matching the
5046
+ * step-pipeline convention (no lucide-react runtime dependency).
5047
+ * a11y: drop-zone is a labelled, keyboard-reachable button; file rows use
5048
+ * role="status" region semantics; remove buttons have a required per-file
5049
+ * accessible name.
5050
+ * Bilingual: every user-facing string (idle/drag/browse/accept-hint/status
5051
+ * labels/remove label/error message) is a required caller-supplied prop —
5052
+ * zero hardcoded copy, zero default.
5053
+ *
5054
+ * Ported from any-debate-ai components/memory/document-upload.tsx (rewritten
5055
+ * from scratch — no shared code, no license carried over): dropped the
5056
+ * embedded mock "extracted memories" review UI (app-specific business logic)
5057
+ * and the network/simulation logic (violates presentational-component rule),
5058
+ * kept the upload zone + per-file status list shape.
5059
+ *
5060
+ * @example
5061
+ * <MosaicDocumentUpload
5062
+ * files={files}
5063
+ * onFilesSelected={(selected) => uploadFiles(selected)}
5064
+ * onRemoveFile={(id) => removeFile(id)}
5065
+ * idleLabel="Glissez-déposez un fichier ici, ou cliquez pour parcourir"
5066
+ * dragActiveLabel="Déposez le fichier ici"
5067
+ * browseButtonLabel="Choisir un fichier"
5068
+ * acceptHint="PDF, DOC, DOCX, TXT, MD (10 Mo max)"
5069
+ * accept=".pdf,.doc,.docx,.txt,.md"
5070
+ * removeFileAriaLabel={(name) => `Supprimer ${name}`}
5071
+ * statusLabels={{ uploading: "Envoi en cours", success: "Envoyé", error: "Échec" }}
5072
+ * sizeLabel={(bytes) => `${(bytes / 1024).toFixed(1)} Ko`}
5073
+ * dropZoneAriaLabel="Zone de dépôt de document"
5074
+ * />
5075
+ */
5076
+
5077
+ type MosaicDocumentUploadFileStatus = "uploading" | "success" | "error";
5078
+ interface MosaicDocumentUploadFile {
5079
+ /** Stable id — used as React key and passed back to onRemoveFile. */
5080
+ id: string;
5081
+ /** File name, displayed as-is. */
5082
+ name: string;
5083
+ /** File size in bytes — formatted for display via the required sizeLabel prop. */
5084
+ sizeBytes: number;
5085
+ /** Current upload status, fully host-controlled. */
5086
+ status: MosaicDocumentUploadFileStatus;
5087
+ /** Upload progress 0-100, rendered only while status === "uploading". */
5088
+ progress?: number;
5089
+ /**
5090
+ * Host-provided, host-localized error message (e.g. "File too large",
5091
+ * "Unsupported format"). Required content when status === "error" — the
5092
+ * library never generates its own error strings.
5093
+ */
5094
+ errorMessage?: string;
5095
+ }
5096
+ interface MosaicDocumentUploadProps {
5097
+ /** Host-controlled list of files with their upload status. */
5098
+ files: MosaicDocumentUploadFile[];
5099
+ /**
5100
+ * Called with the raw browser `File[]` chosen via drag&drop or the file
5101
+ * picker. The component performs no upload itself — the host decides
5102
+ * where the files go and how `files` state is updated afterward.
5103
+ */
5104
+ onFilesSelected: (files: File[]) => void;
5105
+ /** Called with a file's id when its remove button is activated. */
5106
+ onRemoveFile: (id: string) => void;
5107
+ /** Drop-zone label shown when idle (not dragging). Required, no default. */
5108
+ idleLabel: string;
5109
+ /** Drop-zone label shown while a drag is over the zone. Required, no default. */
5110
+ dragActiveLabel: string;
5111
+ /** Label for the click-to-browse button. Required, no default. */
5112
+ browseButtonLabel: string;
5113
+ /** Supporting hint text (accepted formats / size limit). Required, no default. */
5114
+ acceptHint: string;
5115
+ /** Accessible name for the drop-zone region (`aria-label`). Required, no default. */
5116
+ dropZoneAriaLabel: string;
5117
+ /**
5118
+ * Per-file accessible name for the remove button, e.g.
5119
+ * `(name) => \`Remove ${name}\``. Required — no hardcoded "Remove" string
5120
+ * in the library.
5121
+ */
5122
+ removeFileAriaLabel: (fileName: string) => string;
5123
+ /** Status labels rendered next to each file row. All three required, no default. */
5124
+ statusLabels: {
5125
+ uploading: string;
5126
+ success: string;
5127
+ error: string;
5128
+ };
5129
+ /**
5130
+ * Formats a file's size for display, e.g. `(bytes) => \`${(bytes/1024).toFixed(1)} KB\``.
5131
+ * Required — the library never hardcodes a unit string ("KB", "Ko", ...).
5132
+ */
5133
+ sizeLabel: (sizeBytes: number) => string;
5134
+ /** Native `accept` attribute forwarded to the hidden file input. */
5135
+ accept?: string;
5136
+ /** Allow selecting/dropping more than one file at a time. @default false */
5137
+ multiple?: boolean;
5138
+ /** Additional Tailwind classes on the root element. */
5139
+ className?: string;
5140
+ /** React 19 ref prop — forwarded to the root element. */
5141
+ ref?: React.Ref<HTMLDivElement>;
5142
+ }
5143
+ /**
5144
+ * MosaicDocumentUpload — production document-upload atom for
5145
+ * @vantageos/mosaic-blocks.
5146
+ *
5147
+ * Purely presentational: renders the drop-zone and the file status list from
5148
+ * props, and reports file selection / removal via callbacks. No network
5149
+ * call, no upload simulation, no built-in copy.
5150
+ */
5151
+ declare function MosaicDocumentUpload({ files, onFilesSelected, onRemoveFile, idleLabel, dragActiveLabel, browseButtonLabel, acceptHint, dropZoneAriaLabel, removeFileAriaLabel, statusLabels, sizeLabel, accept, multiple, className, ref, }: MosaicDocumentUploadProps): React.JSX.Element;
5152
+ declare namespace MosaicDocumentUpload {
5153
+ var displayName: string;
5154
+ }
5155
+
5156
+ 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, 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, 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.4.5-alpha";
23
+ declare const version = "0.4.7-alpha";
24
24
 
25
25
  /**
26
26
  * Placeholder component — infra scaffold only.
@@ -3180,6 +3180,143 @@ declare namespace MosaicQuickAgentSelector {
3180
3180
  var displayName: string;
3181
3181
  }
3182
3182
 
3183
+ /**
3184
+ * MosaicMemoryCard — memory item card (detailed / compact variants)
3185
+ *
3186
+ * Ported from any-debate-ai's memory-card-desktop.tsx + memory-card-mobile.tsx
3187
+ * as ONE component with a `variant` prop, not two components. What actually
3188
+ * differed between the two source files:
3189
+ * - Layout density: detailed uses a leading icon chip + title/scope-badge
3190
+ * stack + separate content paragraph + tags row + footer with a labelled
3191
+ * usage count; compact folds title + content into one truncated header
3192
+ * row and drops the tags row entirely. Both variants call
3193
+ * `formatUsageCount` for the footer usage count — the caller decides
3194
+ * whether that renders a label or a bare number.
3195
+ * - Hover-reveal actions: the 3-dot menu trigger is `opacity-0
3196
+ * group-hover:opacity-100` in detailed (desktop hover affordance), always
3197
+ * visible in compact (no hover on touch).
3198
+ * - Scope badge chrome: bordered in detailed, borderless in compact.
3199
+ * Everything else (scope colors, source icon, edit/delete menu, time-ago
3200
+ * footer) is shared and modeled once.
3201
+ *
3202
+ * Pattern: MosaicAgentCard.tsx (data-slot, manual dropdown + outside-click
3203
+ * close, inline SVG icons, React 19 ref prop, displayName, JSDoc).
3204
+ * No "use client" side effects beyond menu state — prepend-use-client.mjs
3205
+ * adds the directive to dist regardless.
3206
+ * Design tokens: --card, --card-foreground, --border, --muted-foreground,
3207
+ * --accent, --accent-foreground, --destructive, --popover, --ring.
3208
+ * No icon library — inline SVGs only (no lucide-react dependency in this repo).
3209
+ * a11y: dropdown via role="menu"/"menuitem", aria-haspopup, aria-expanded,
3210
+ * required aria-label on the trigger.
3211
+ * Bilingual (SIN-01): zero user-facing strings hardcoded. Every label is a
3212
+ * required prop or a required formatter function — no optional prop with an
3213
+ * English default anywhere in this file.
3214
+ *
3215
+ * Closes T1 (bu-mcp memory wave) — mosaic-memory-card.
3216
+ *
3217
+ * @example
3218
+ * // Detailed variant (default) — full card with tags row and labelled footer
3219
+ * <MosaicMemoryCard
3220
+ * memory={memory}
3221
+ * editLabel="Edit"
3222
+ * deleteLabel="Delete"
3223
+ * moreActionsLabel="Memory actions"
3224
+ * formatScope={(scope) => t(`memory.scope.${scope}`)}
3225
+ * formatTimeAgo={(createdAt) => formatRelative(createdAt)}
3226
+ * formatUsageCount={(count) => t("memory.usageCount", { count })}
3227
+ * formatMoreTags={(count) => `+${count}`}
3228
+ * onEdit={(m) => openEditDialog(m)}
3229
+ * onDelete={(id) => deleteMemory(id)}
3230
+ * />
3231
+ *
3232
+ * @example
3233
+ * // Compact variant — condensed list row, no tags row. formatUsageCount is
3234
+ * // still called here; this host simply chooses to render the bare number.
3235
+ * <MosaicMemoryCard
3236
+ * memory={memory}
3237
+ * variant="compact"
3238
+ * editLabel="Modifier"
3239
+ * deleteLabel="Supprimer"
3240
+ * moreActionsLabel="Actions sur le souvenir"
3241
+ * formatScope={(scope) => t(`memory.scope.${scope}`)}
3242
+ * formatTimeAgo={(createdAt) => formatRelative(createdAt)}
3243
+ * formatUsageCount={(count) => `${count}`}
3244
+ * formatMoreTags={(count) => `+${count}`}
3245
+ * />
3246
+ */
3247
+
3248
+ type MosaicMemoryScope = "organization" | "workspace" | "user" | "chat";
3249
+ type MosaicMemorySource = "manual" | "document" | "url";
3250
+ interface MosaicMemoryData {
3251
+ id: string;
3252
+ title: string;
3253
+ content: string;
3254
+ scope: MosaicMemoryScope;
3255
+ source: MosaicMemorySource;
3256
+ tags: string[];
3257
+ /** Epoch milliseconds. */
3258
+ createdAt: number;
3259
+ usageCount: number;
3260
+ }
3261
+ interface MosaicMemoryCardProps {
3262
+ memory: MosaicMemoryData;
3263
+ /**
3264
+ * Layout density.
3265
+ * - `"detailed"` (default): icon chip + tags row + labelled usage footer.
3266
+ * - `"compact"`: condensed header row, no tags row, raw usage number.
3267
+ * @default "detailed"
3268
+ */
3269
+ variant?: "detailed" | "compact";
3270
+ onEdit?: (memory: MosaicMemoryData) => void;
3271
+ onDelete?: (memoryId: string) => void;
3272
+ /** Label for the "edit" menu item. Required — host-owned, no default. */
3273
+ editLabel: string;
3274
+ /** Label for the "delete" menu item. Required — host-owned, no default. */
3275
+ deleteLabel: string;
3276
+ /** aria-label for the 3-dot actions menu trigger. Required — host-owned, no default. */
3277
+ moreActionsLabel: string;
3278
+ /**
3279
+ * Formatter mapping `memory.scope` to its displayed label. Required — the
3280
+ * host owns the language (e.g. `(scope) => t(\`memory.scope.\${scope}\`)`).
3281
+ */
3282
+ formatScope: (scope: MosaicMemoryScope) => React.ReactNode;
3283
+ /**
3284
+ * Formatter producing the relative time caption from `memory.createdAt`.
3285
+ * Required — the host owns date formatting and language
3286
+ * (e.g. `(createdAt) => t("memory.timeAgo", { value: formatRelative(createdAt) })`).
3287
+ */
3288
+ formatTimeAgo: (createdAt: number) => React.ReactNode;
3289
+ /**
3290
+ * Formatter producing the labelled usage-count caption from
3291
+ * `memory.usageCount`. Applied in BOTH variants — the raw number is never
3292
+ * rendered directly. A host that wants the bare number in compact passes
3293
+ * `formatUsageCount={(count) => String(count)}`; that is the host's
3294
+ * choice, not a hidden default of the library.
3295
+ * Required — host-owned (e.g. `(count) => t("memory.usageCount", { count })`).
3296
+ */
3297
+ formatUsageCount: (count: number) => React.ReactNode;
3298
+ /**
3299
+ * Formatter producing the "+N" overflow caption when a memory has more
3300
+ * than 3 tags. Only rendered in the detailed variant. Required —
3301
+ * host-owned (e.g. `(count) => \`+\${count}\`` or a pluralized `t()` call).
3302
+ */
3303
+ formatMoreTags: (count: number) => React.ReactNode;
3304
+ className?: string;
3305
+ /** React 19 ref prop — forwarded to the root element. */
3306
+ ref?: React.Ref<HTMLDivElement>;
3307
+ }
3308
+ /**
3309
+ * MosaicMemoryCard — production memory-item card for @vantageos/mosaic-blocks.
3310
+ *
3311
+ * One component, two density variants (`detailed` default / `compact`) —
3312
+ * see file JSDoc for the exact desktop/mobile differences and how they were
3313
+ * modeled as `variant` + CVA compound variants rather than as two components.
3314
+ */
3315
+ declare function MosaicMemoryCard({ memory, variant, onEdit, onDelete, editLabel, deleteLabel, moreActionsLabel, formatScope, formatTimeAgo, formatUsageCount, formatMoreTags, className, ref, }: MosaicMemoryCardProps): React.JSX.Element;
3316
+ declare namespace MosaicMemoryCard {
3317
+ var displayName: string;
3318
+ }
3319
+
3183
3320
  /**
3184
3321
  * MosaicSelectorModal — generic searchable item picker modal
3185
3322
  *
@@ -4889,4 +5026,131 @@ interface MosaicClerkWebhookHandlerOptions {
4889
5026
  */
4890
5027
  declare function MosaicClerkWebhookHandler(req: Request, options: MosaicClerkWebhookHandlerOptions): Promise<Response>;
4891
5028
 
4892
- 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, 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, 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, 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, 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 };
5029
+ /**
5030
+ * MosaicDocumentUpload — presentational document drop-zone + file status list
5031
+ *
5032
+ * Presentational atom. Renders a drag&drop / click-to-browse zone and, below
5033
+ * it, one status row per file (uploading / success / error). The component
5034
+ * never performs a network call: file selection (drop or file-input change)
5035
+ * is surfaced via `onFilesSelected(files: File[])` — the host owns where the
5036
+ * upload goes, how progress is tracked, and how errors are produced. `files`
5037
+ * is fully host-controlled state (id, name, sizeBytes, status, optional
5038
+ * progress / errorMessage).
5039
+ *
5040
+ * Pattern: MosaicStepPipeline.tsx (data-slot, inline cn, React 19 ref prop,
5041
+ * displayName, JSDoc, pure variants module).
5042
+ * No "use client" — prepend-use-client.mjs adds it to dist.
5043
+ * Design tokens: --foreground, --muted, --muted-foreground, --border,
5044
+ * --destructive, --ring, --accent, --card, --background.
5045
+ * No icon library — uses ✓ / ✕ chars for success/error, matching the
5046
+ * step-pipeline convention (no lucide-react runtime dependency).
5047
+ * a11y: drop-zone is a labelled, keyboard-reachable button; file rows use
5048
+ * role="status" region semantics; remove buttons have a required per-file
5049
+ * accessible name.
5050
+ * Bilingual: every user-facing string (idle/drag/browse/accept-hint/status
5051
+ * labels/remove label/error message) is a required caller-supplied prop —
5052
+ * zero hardcoded copy, zero default.
5053
+ *
5054
+ * Ported from any-debate-ai components/memory/document-upload.tsx (rewritten
5055
+ * from scratch — no shared code, no license carried over): dropped the
5056
+ * embedded mock "extracted memories" review UI (app-specific business logic)
5057
+ * and the network/simulation logic (violates presentational-component rule),
5058
+ * kept the upload zone + per-file status list shape.
5059
+ *
5060
+ * @example
5061
+ * <MosaicDocumentUpload
5062
+ * files={files}
5063
+ * onFilesSelected={(selected) => uploadFiles(selected)}
5064
+ * onRemoveFile={(id) => removeFile(id)}
5065
+ * idleLabel="Glissez-déposez un fichier ici, ou cliquez pour parcourir"
5066
+ * dragActiveLabel="Déposez le fichier ici"
5067
+ * browseButtonLabel="Choisir un fichier"
5068
+ * acceptHint="PDF, DOC, DOCX, TXT, MD (10 Mo max)"
5069
+ * accept=".pdf,.doc,.docx,.txt,.md"
5070
+ * removeFileAriaLabel={(name) => `Supprimer ${name}`}
5071
+ * statusLabels={{ uploading: "Envoi en cours", success: "Envoyé", error: "Échec" }}
5072
+ * sizeLabel={(bytes) => `${(bytes / 1024).toFixed(1)} Ko`}
5073
+ * dropZoneAriaLabel="Zone de dépôt de document"
5074
+ * />
5075
+ */
5076
+
5077
+ type MosaicDocumentUploadFileStatus = "uploading" | "success" | "error";
5078
+ interface MosaicDocumentUploadFile {
5079
+ /** Stable id — used as React key and passed back to onRemoveFile. */
5080
+ id: string;
5081
+ /** File name, displayed as-is. */
5082
+ name: string;
5083
+ /** File size in bytes — formatted for display via the required sizeLabel prop. */
5084
+ sizeBytes: number;
5085
+ /** Current upload status, fully host-controlled. */
5086
+ status: MosaicDocumentUploadFileStatus;
5087
+ /** Upload progress 0-100, rendered only while status === "uploading". */
5088
+ progress?: number;
5089
+ /**
5090
+ * Host-provided, host-localized error message (e.g. "File too large",
5091
+ * "Unsupported format"). Required content when status === "error" — the
5092
+ * library never generates its own error strings.
5093
+ */
5094
+ errorMessage?: string;
5095
+ }
5096
+ interface MosaicDocumentUploadProps {
5097
+ /** Host-controlled list of files with their upload status. */
5098
+ files: MosaicDocumentUploadFile[];
5099
+ /**
5100
+ * Called with the raw browser `File[]` chosen via drag&drop or the file
5101
+ * picker. The component performs no upload itself — the host decides
5102
+ * where the files go and how `files` state is updated afterward.
5103
+ */
5104
+ onFilesSelected: (files: File[]) => void;
5105
+ /** Called with a file's id when its remove button is activated. */
5106
+ onRemoveFile: (id: string) => void;
5107
+ /** Drop-zone label shown when idle (not dragging). Required, no default. */
5108
+ idleLabel: string;
5109
+ /** Drop-zone label shown while a drag is over the zone. Required, no default. */
5110
+ dragActiveLabel: string;
5111
+ /** Label for the click-to-browse button. Required, no default. */
5112
+ browseButtonLabel: string;
5113
+ /** Supporting hint text (accepted formats / size limit). Required, no default. */
5114
+ acceptHint: string;
5115
+ /** Accessible name for the drop-zone region (`aria-label`). Required, no default. */
5116
+ dropZoneAriaLabel: string;
5117
+ /**
5118
+ * Per-file accessible name for the remove button, e.g.
5119
+ * `(name) => \`Remove ${name}\``. Required — no hardcoded "Remove" string
5120
+ * in the library.
5121
+ */
5122
+ removeFileAriaLabel: (fileName: string) => string;
5123
+ /** Status labels rendered next to each file row. All three required, no default. */
5124
+ statusLabels: {
5125
+ uploading: string;
5126
+ success: string;
5127
+ error: string;
5128
+ };
5129
+ /**
5130
+ * Formats a file's size for display, e.g. `(bytes) => \`${(bytes/1024).toFixed(1)} KB\``.
5131
+ * Required — the library never hardcodes a unit string ("KB", "Ko", ...).
5132
+ */
5133
+ sizeLabel: (sizeBytes: number) => string;
5134
+ /** Native `accept` attribute forwarded to the hidden file input. */
5135
+ accept?: string;
5136
+ /** Allow selecting/dropping more than one file at a time. @default false */
5137
+ multiple?: boolean;
5138
+ /** Additional Tailwind classes on the root element. */
5139
+ className?: string;
5140
+ /** React 19 ref prop — forwarded to the root element. */
5141
+ ref?: React.Ref<HTMLDivElement>;
5142
+ }
5143
+ /**
5144
+ * MosaicDocumentUpload — production document-upload atom for
5145
+ * @vantageos/mosaic-blocks.
5146
+ *
5147
+ * Purely presentational: renders the drop-zone and the file status list from
5148
+ * props, and reports file selection / removal via callbacks. No network
5149
+ * call, no upload simulation, no built-in copy.
5150
+ */
5151
+ declare function MosaicDocumentUpload({ files, onFilesSelected, onRemoveFile, idleLabel, dragActiveLabel, browseButtonLabel, acceptHint, dropZoneAriaLabel, removeFileAriaLabel, statusLabels, sizeLabel, accept, multiple, className, ref, }: MosaicDocumentUploadProps): React.JSX.Element;
5152
+ declare namespace MosaicDocumentUpload {
5153
+ var displayName: string;
5154
+ }
5155
+
5156
+ 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, 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, 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 };