@vantageos/mosaic-blocks 0.4.6-alpha → 0.4.8-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.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.6-alpha";
23
+ declare const version = "0.4.8-alpha";
24
24
 
25
25
  /**
26
26
  * Placeholder component — infra scaffold only.
@@ -5026,4 +5026,315 @@ interface MosaicClerkWebhookHandlerOptions {
5026
5026
  */
5027
5027
  declare function MosaicClerkWebhookHandler(req: Request, options: MosaicClerkWebhookHandlerOptions): Promise<Response>;
5028
5028
 
5029
- 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, 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 };
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
+ /**
5157
+ * MosaicUrlScraper — presentational URL-input + scraped-content preview
5158
+ *
5159
+ * Presentational atom. Renders a URL input + submit button and, below it,
5160
+ * one of three host-controlled states: a loading indicator, a scraped
5161
+ * content preview (title/description/optional image/link), or an error
5162
+ * message. The component never performs a network call: submitting a
5163
+ * syntactically-valid URL is surfaced via `onScrape(url: string)` — the
5164
+ * host owns how the page is actually fetched/scraped, how long it takes,
5165
+ * and what counts as an error (invalid URL, unreachable page, empty
5166
+ * content are all just different host-supplied `errorMessage` values).
5167
+ *
5168
+ * Local behaviour (no network involved): a client-side URL-syntax check via
5169
+ * `new URL()` runs on submit so a malformed URL is caught immediately
5170
+ * without a host round-trip. This mirrors the source app's own
5171
+ * `isValidUrl` check — it is UI validation, not a scrape.
5172
+ *
5173
+ * Pattern: MosaicDocumentUpload.tsx (data-slot, inline cn, React 19 ref
5174
+ * prop, displayName, JSDoc, pure variants module, host-controlled status
5175
+ * union as a discriminated prop type).
5176
+ * No "use client" — prepend-use-client.mjs adds it to dist.
5177
+ * Design tokens: --foreground, --muted, --muted-foreground, --border,
5178
+ * --destructive, --ring, --accent, --card, --background.
5179
+ * No icon library — uses a plain "↗" glyph for the external link, matching
5180
+ * the document-upload convention (no lucide-react runtime dependency).
5181
+ * a11y: input has a required accessible name; the external link has a
5182
+ * required per-content accessible name; the loading region uses
5183
+ * role="status".
5184
+ * Bilingual: every user-facing string (placeholder/button labels/loading
5185
+ * message/invalid-URL message/error message/reset label/link+image
5186
+ * accessible names) is a required caller-supplied prop — zero hardcoded
5187
+ * copy, zero default.
5188
+ *
5189
+ * Ported from any-debate-ai components/memory/url-scraper.tsx (rewritten
5190
+ * from scratch — no shared code, no license carried over): dropped the
5191
+ * embedded mock "AI-extracted memories" review UI (app-specific business
5192
+ * logic, same call as document-upload's dropped mock-extraction review)
5193
+ * and the network/simulation logic (violates presentational-component
5194
+ * rule), kept the URL input + scrape action + scraped-content preview +
5195
+ * error-state shape.
5196
+ *
5197
+ * Props are pushed into the `MosaicUrlScraperState` discriminated union
5198
+ * exactly where they are read — no prop is required in a status branch
5199
+ * that never renders it (e.g. `loadingMessage` only exists on the
5200
+ * "loading" variant, `content`/`resetButtonLabel`/`onReset` only on
5201
+ * "success", etc.). Known, documented exception: `imageAlt` is required
5202
+ * on the whole "success" branch, not narrowed further by
5203
+ * `content.image` presence — see the prop's own JSDoc.
5204
+ *
5205
+ * @example
5206
+ * // idle
5207
+ * <MosaicUrlScraper
5208
+ * status="idle"
5209
+ * url={url}
5210
+ * onUrlChange={setUrl}
5211
+ * onScrape={(scrapedUrl) => scrapePage(scrapedUrl)}
5212
+ * inputAriaLabel="URL de la page à aspirer"
5213
+ * inputPlaceholder="https://exemple.com/article"
5214
+ * scrapeButtonLabel="Aspirer"
5215
+ * invalidUrlMessage="Veuillez saisir une URL valide"
5216
+ * />
5217
+ *
5218
+ * @example
5219
+ * // success
5220
+ * <MosaicUrlScraper
5221
+ * {...baseProps}
5222
+ * status="success"
5223
+ * content={content}
5224
+ * openLinkAriaLabel={(pageUrl) => `Ouvrir ${pageUrl} dans un nouvel onglet`}
5225
+ * imageAlt={(title) => `Aperçu de ${title}`}
5226
+ * resetButtonLabel="Aspirer une autre page"
5227
+ * onReset={() => reset()}
5228
+ * />
5229
+ */
5230
+
5231
+ /** Host-supplied scraped page content, shown once status === "success". */
5232
+ interface MosaicUrlScraperContent {
5233
+ /** Scraped page title, displayed as-is. */
5234
+ title: string;
5235
+ /** Scraped page description/summary, displayed as-is. */
5236
+ description: string;
5237
+ /** Optional preview image URL — the image is rendered only when present. */
5238
+ image?: string;
5239
+ /** The scraped page's canonical URL, used as the external-link href. */
5240
+ url: string;
5241
+ }
5242
+ /**
5243
+ * Base props required in EVERY status — read unconditionally by the
5244
+ * component regardless of `status` (input row + local URL-syntax
5245
+ * validation, both reachable from "idle").
5246
+ */
5247
+ type MosaicUrlScraperBaseProps = {
5248
+ /** Host-controlled current input value. */
5249
+ url: string;
5250
+ /** Called with the raw input value on every keystroke. */
5251
+ onUrlChange: (url: string) => void;
5252
+ /**
5253
+ * Called with the trimmed URL once it passes local syntax validation.
5254
+ * The component performs no scrape itself — the host decides how the
5255
+ * page is fetched and how `status`/`content`/`errorMessage` are updated
5256
+ * afterward.
5257
+ */
5258
+ onScrape: (url: string) => void;
5259
+ /** Accessible name for the URL input (`aria-label`). Required, no default. */
5260
+ inputAriaLabel: string;
5261
+ /** Placeholder text for the URL input. Required, no default. */
5262
+ inputPlaceholder: string;
5263
+ /** Label for the submit button when idle/ready. Required, no default. */
5264
+ scrapeButtonLabel: string;
5265
+ /**
5266
+ * Message shown when the local `new URL()` syntax check fails on submit.
5267
+ * Required, no default — this is host copy, not an English fallback.
5268
+ * Reachable from "idle": the local check runs on the first submit,
5269
+ * before the host ever sets `status` to "loading".
5270
+ */
5271
+ invalidUrlMessage: string;
5272
+ /** Additional Tailwind classes on the root element. */
5273
+ className?: string;
5274
+ /** React 19 ref prop — forwarded to the root element. */
5275
+ ref?: React.Ref<HTMLDivElement>;
5276
+ };
5277
+ /**
5278
+ * Host-controlled scrape status. Every prop that is only ever rendered in
5279
+ * ONE status branch lives on that branch's variant — not on the base
5280
+ * props — so the type contract matches exactly what the component reads
5281
+ * (mirrors MosaicDocumentUploadFile's status-driven shape, and the
5282
+ * memory-card "a required prop must be used exactly where it's declared"
5283
+ * rule).
5284
+ */
5285
+ type MosaicUrlScraperState = {
5286
+ status: "idle";
5287
+ } | {
5288
+ status: "loading";
5289
+ /** Label for the submit button while status === "loading". Required, no default. */
5290
+ scrapingLabel: string;
5291
+ /** Message shown inside the loading region while status === "loading". Required, no default. */
5292
+ loadingMessage: string;
5293
+ } | {
5294
+ status: "success";
5295
+ content: MosaicUrlScraperContent;
5296
+ /**
5297
+ * Per-content accessible name for the external "open" link, e.g.
5298
+ * `(pageUrl) => \`Open ${pageUrl}\``. Required — no hardcoded string.
5299
+ */
5300
+ openLinkAriaLabel: (pageUrl: string) => string;
5301
+ /**
5302
+ * Per-content alt text for the preview image. Required on this
5303
+ * branch (not narrowed further by `content.image` presence — see
5304
+ * MosaicUrlScraper.tsx JSDoc for why); invoked only when
5305
+ * `content.image` is actually present.
5306
+ */
5307
+ imageAlt: (title: string) => string;
5308
+ /** Label for the reset/"scrape another" button. Required, no default. */
5309
+ resetButtonLabel: string;
5310
+ /** Called when the reset/"scrape another" button is activated. */
5311
+ onReset: () => void;
5312
+ } | {
5313
+ status: "error";
5314
+ /**
5315
+ * Host-provided, host-localized error message (e.g. "Invalid URL",
5316
+ * "Page unreachable", "Empty content"). The library never generates
5317
+ * its own error strings — every occurrence is a distinct required
5318
+ * value supplied by the caller.
5319
+ */
5320
+ errorMessage: string;
5321
+ /** Label for the reset/"scrape another" button. Required, no default. */
5322
+ resetButtonLabel: string;
5323
+ /** Called when the reset/"scrape another" button is activated. */
5324
+ onReset: () => void;
5325
+ };
5326
+ type MosaicUrlScraperProps = MosaicUrlScraperBaseProps & MosaicUrlScraperState;
5327
+ /**
5328
+ * MosaicUrlScraper — production URL-scraper atom for
5329
+ * @vantageos/mosaic-blocks.
5330
+ *
5331
+ * Purely presentational: renders the URL input, the current status
5332
+ * (loading/success/error), and reports a validated scrape request / reset
5333
+ * via callbacks. No network call, no scraping simulation, no built-in copy.
5334
+ */
5335
+ declare function MosaicUrlScraper(props: MosaicUrlScraperProps): React.JSX.Element;
5336
+ declare namespace MosaicUrlScraper {
5337
+ var displayName: string;
5338
+ }
5339
+
5340
+ 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, 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 };