@vantageos/mosaic-blocks 0.5.27-alpha → 0.5.29-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -21,7 +21,7 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
21
21
  import { AlertDialog } from '@base-ui/react/alert-dialog';
22
22
  export { Tooltip } from '@base-ui/react/tooltip';
23
23
 
24
- declare const version = "0.5.27-alpha";
24
+ declare const version = "0.5.29-alpha";
25
25
 
26
26
  /**
27
27
  * Placeholder component — infra scaffold only.
@@ -3748,6 +3748,106 @@ declare namespace MosaicMemoryCard {
3748
3748
  var displayName: string;
3749
3749
  }
3750
3750
 
3751
+ /**
3752
+ * MosaicMemoryDashboard — landing surface of a knowledge base: a header with
3753
+ * a title and a primary "add" action, a row of host-supplied summary
3754
+ * statistics, an optional slot for a search bar, a host-controlled view-mode
3755
+ * toggle (tiles / rows), and a slot for results.
3756
+ *
3757
+ * Pure composition — this component never fetches, searches, filters, counts,
3758
+ * or invents anything. The statistics are host data (each with its own
3759
+ * host-supplied label and value); this component renders exactly the array
3760
+ * it is given, in the order it is given, with no minimum or maximum count
3761
+ * assumed. Search and results are host-owned React nodes passed in as
3762
+ * `searchSlot` and `children` — this component does not implement a search
3763
+ * bar or a list itself.
3764
+ *
3765
+ * The active view mode is a prop (`viewMode`), never internal state invented
3766
+ * by this component — toggling it is a callback (`onViewModeChange`) that the
3767
+ * host decides how to honor.
3768
+ *
3769
+ * Every user-facing string is a required prop with no default — this library
3770
+ * carries zero words (SIN-01), bilingual FR+EN by design. `searchSlot` and
3771
+ * `children` are optional because their absence encodes a real absence of
3772
+ * state (no search bar composed / no results yet) — not a missing word.
3773
+ *
3774
+ * data-slot="memory-dashboard" on the root, data-slot="memory-dashboard-stats"
3775
+ * on the stats row, data-slot="memory-dashboard-stat" per stat,
3776
+ * data-slot="memory-dashboard-search" on the search slot wrapper (rendered
3777
+ * only when `searchSlot` is supplied), data-slot="memory-dashboard-view-toggle"
3778
+ * on the toggle group, data-slot="memory-dashboard-results" on the results
3779
+ * slot wrapper.
3780
+ *
3781
+ * Deps: @base-ui/react (via MosaicButton) + class-variance-authority only.
3782
+ */
3783
+
3784
+ type MosaicMemoryDashboardViewMode = "tiles" | "rows";
3785
+ interface MosaicMemoryDashboardStat {
3786
+ /** Host-owned statistic label — pure data, never invented by this component. */
3787
+ label: string;
3788
+ /** Host-owned statistic value — pure data, never computed by this component. */
3789
+ value: string;
3790
+ }
3791
+ interface MosaicMemoryDashboardProps {
3792
+ /** Dashboard title. Required, no default. */
3793
+ title: string;
3794
+ /** Label for the primary "add" action button. Required, no default. */
3795
+ addLabel: string;
3796
+ /** Called when the primary "add" action is activated. */
3797
+ onAdd: () => void;
3798
+ /**
3799
+ * Host-supplied summary statistics. Pure data — never fetched, computed, or
3800
+ * invented here. Rendered exactly as given, in order, with no assumed count.
3801
+ */
3802
+ stats: MosaicMemoryDashboardStat[];
3803
+ /**
3804
+ * Optional host-owned search bar node. Absence means no search bar is
3805
+ * composed for this instance — a real absence of state, not a missing word.
3806
+ */
3807
+ searchSlot?: React.ReactNode;
3808
+ /** Current view mode. Host-controlled — this component holds no internal state for it. */
3809
+ viewMode: MosaicMemoryDashboardViewMode;
3810
+ /** Called with the requested view mode when a toggle button is activated. */
3811
+ onViewModeChange: (mode: MosaicMemoryDashboardViewMode) => void;
3812
+ /** Label for the "tiles" view toggle button. Required, no default. */
3813
+ tilesViewLabel: string;
3814
+ /** Label for the "rows" view toggle button. Required, no default. */
3815
+ rowsViewLabel: string;
3816
+ /**
3817
+ * Host-owned results content, rendered in the results slot. Absence means
3818
+ * no results have been composed yet — a real absence of state.
3819
+ */
3820
+ children?: React.ReactNode;
3821
+ className?: string;
3822
+ }
3823
+ /**
3824
+ * MosaicMemoryDashboard — production knowledge-base landing surface for
3825
+ * @vantageos/mosaic-blocks.
3826
+ *
3827
+ * @example
3828
+ * <MosaicMemoryDashboard
3829
+ * title="Knowledge base"
3830
+ * addLabel="Add memory"
3831
+ * onAdd={() => openAddMemoryForm()}
3832
+ * stats={[{ label: "Total memories", value: "128" }, { label: "Namespaces", value: "6" }]}
3833
+ * searchSlot={<SearchBar />}
3834
+ * viewMode={viewMode}
3835
+ * onViewModeChange={setViewMode}
3836
+ * tilesViewLabel="Tiles"
3837
+ * rowsViewLabel="Rows"
3838
+ * >
3839
+ * <ResultsList />
3840
+ * </MosaicMemoryDashboard>
3841
+ */
3842
+ declare function MosaicMemoryDashboard({ title, addLabel, onAdd, stats, searchSlot, viewMode, onViewModeChange, tilesViewLabel, rowsViewLabel, children, className, }: MosaicMemoryDashboardProps): React.JSX.Element;
3843
+ declare namespace MosaicMemoryDashboard {
3844
+ var displayName: string;
3845
+ }
3846
+
3847
+ declare const memoryDashboardViewToggleButtonVariants: (props?: ({
3848
+ pressed?: boolean | null | undefined;
3849
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
3850
+
3751
3851
  /**
3752
3852
  * MosaicTemplateAgentCard — agent-type template preview card
3753
3853
  *
@@ -4013,9 +4113,29 @@ interface MosaicMessageCardProps {
4013
4113
  bookmarkLabel: string;
4014
4114
  /** Label for the "copy message" menu item. Required, no default. */
4015
4115
  copyMessageLabel: string;
4116
+ /**
4117
+ * Label for the sender-type badge shown next to an AI sender's name.
4118
+ * Optional and host-owned — no default, no fallback word. When the sender
4119
+ * is an AI (`message.sender.type === "ai"`) and this label is provided,
4120
+ * the badge renders with it; when omitted, no badge renders at all. The
4121
+ * library carries no English/French word of its own for this UI state.
4122
+ */
4123
+ aiSenderLabel?: string;
4124
+ /** Label for the "view thread" button, shown when the message has a parent. Required, no default. */
4125
+ viewThreadLabel: string;
4126
+ /**
4127
+ * aria-label for the like button, shown for AI-sender messages. Required —
4128
+ * the host formats/pluralizes the count, the library owns no word.
4129
+ */
4130
+ likeAriaLabel: (count: number) => string;
4131
+ /**
4132
+ * aria-label for the dislike button, shown for AI-sender messages. Required —
4133
+ * the host formats/pluralizes the count, the library owns no word.
4134
+ */
4135
+ dislikeAriaLabel: (count: number) => string;
4016
4136
  className?: string;
4017
4137
  }
4018
- declare function MosaicMessageCard({ message, onReply, onReaction, onBookmark, onCopy, showThread, compact, replyLabel, moreOptionsAriaLabel, removeBookmarkAriaLabel, bookmarkAriaLabel, removeBookmarkLabel, bookmarkLabel, copyMessageLabel, className, }: MosaicMessageCardProps): React.JSX.Element;
4138
+ declare function MosaicMessageCard({ message, onReply, onReaction, onBookmark, onCopy, showThread, compact, replyLabel, moreOptionsAriaLabel, removeBookmarkAriaLabel, bookmarkAriaLabel, removeBookmarkLabel, bookmarkLabel, copyMessageLabel, aiSenderLabel, viewThreadLabel, likeAriaLabel, dislikeAriaLabel, className, }: MosaicMessageCardProps): React.JSX.Element;
4019
4139
  declare namespace MosaicMessageCard {
4020
4140
  var displayName: string;
4021
4141
  }
@@ -4061,10 +4181,13 @@ interface MosaicMessageListProps {
4061
4181
  removeBookmarkLabel: string;
4062
4182
  bookmarkLabel: string;
4063
4183
  copyMessageLabel: string;
4184
+ viewThreadLabel: string;
4185
+ likeAriaLabel: (count: number) => string;
4186
+ dislikeAriaLabel: (count: number) => string;
4064
4187
  className?: string;
4065
4188
  }
4066
- declare function MessageListDesktop({ messages, onReply, onReaction, onBookmark, onCopy, onLoadMore, hasMore, title, isLoading, searchPlaceholder, emptyMessage, loadMoreLabel, replyLabel, moreOptionsAriaLabel, removeBookmarkAriaLabel, bookmarkAriaLabel, removeBookmarkLabel, bookmarkLabel, copyMessageLabel, className, }: MosaicMessageListProps): React.JSX.Element;
4067
- declare function MessageListMobile({ messages, onReply, onReaction, onBookmark, onCopy, onLoadMore, hasMore, title, isLoading, emptyMessage, loadMoreLabel, replyLabel, moreOptionsAriaLabel, removeBookmarkAriaLabel, bookmarkAriaLabel, removeBookmarkLabel, bookmarkLabel, copyMessageLabel, className, }: MosaicMessageListProps): React.JSX.Element;
4189
+ declare function MessageListDesktop({ messages, onReply, onReaction, onBookmark, onCopy, onLoadMore, hasMore, title, isLoading, searchPlaceholder, emptyMessage, loadMoreLabel, replyLabel, moreOptionsAriaLabel, removeBookmarkAriaLabel, bookmarkAriaLabel, removeBookmarkLabel, bookmarkLabel, copyMessageLabel, viewThreadLabel, likeAriaLabel, dislikeAriaLabel, className, }: MosaicMessageListProps): React.JSX.Element;
4190
+ declare function MessageListMobile({ messages, onReply, onReaction, onBookmark, onCopy, onLoadMore, hasMore, title, isLoading, emptyMessage, loadMoreLabel, replyLabel, moreOptionsAriaLabel, removeBookmarkAriaLabel, bookmarkAriaLabel, removeBookmarkLabel, bookmarkLabel, copyMessageLabel, viewThreadLabel, likeAriaLabel, dislikeAriaLabel, className, }: MosaicMessageListProps): React.JSX.Element;
4068
4191
  declare function MosaicMessageList(props: MosaicMessageListProps): React.JSX.Element;
4069
4192
  declare namespace MosaicMessageList {
4070
4193
  var displayName: string;
@@ -4725,13 +4848,14 @@ interface MosaicCreateOrgDialogProps {
4725
4848
  orgNameFieldLabel: string;
4726
4849
  orgNamePlaceholder: string;
4727
4850
  slugFieldLabel: string;
4851
+ slugPlaceholder: string;
4728
4852
  descriptionFieldLabel: string;
4729
4853
  descriptionPlaceholder: string;
4730
4854
  cancelLabel: string;
4731
4855
  creatingLabel: string;
4732
4856
  createLabel: string;
4733
4857
  }
4734
- declare function MosaicCreateOrgDialog({ open, onOpenChange, onCreateOrg, isLoading, title, closeAriaLabel, orgNameFieldLabel, orgNamePlaceholder, slugFieldLabel, descriptionFieldLabel, descriptionPlaceholder, cancelLabel, creatingLabel, createLabel, }: MosaicCreateOrgDialogProps): React.JSX.Element;
4858
+ declare function MosaicCreateOrgDialog({ open, onOpenChange, onCreateOrg, isLoading, title, closeAriaLabel, orgNameFieldLabel, orgNamePlaceholder, slugFieldLabel, slugPlaceholder, descriptionFieldLabel, descriptionPlaceholder, cancelLabel, creatingLabel, createLabel, }: MosaicCreateOrgDialogProps): React.JSX.Element;
4735
4859
  declare namespace MosaicCreateOrgDialog {
4736
4860
  var displayName: string;
4737
4861
  }
@@ -4835,9 +4959,15 @@ interface MosaicDashboardContentProps {
4835
4959
  views: MosaicDashboardView[];
4836
4960
  /** Currently active view id */
4837
4961
  currentView: string;
4962
+ /**
4963
+ * Label shown when `currentView` matches no entry in `views`. Rendered to
4964
+ * the end user — required host-owned string, no default. The component
4965
+ * appends `currentView` after it (a data value, not library-owned prose).
4966
+ */
4967
+ viewNotFoundLabel: string;
4838
4968
  className?: string;
4839
4969
  }
4840
- declare function MosaicDashboardContent({ views, currentView, className, }: MosaicDashboardContentProps): React.JSX.Element;
4970
+ declare function MosaicDashboardContent({ views, currentView, viewNotFoundLabel, className, }: MosaicDashboardContentProps): React.JSX.Element;
4841
4971
  declare namespace MosaicDashboardContent {
4842
4972
  var displayName: string;
4843
4973
  }
@@ -7991,6 +8121,98 @@ declare const templateCategoryChipVariants: (props?: ({
7991
8121
  selected?: boolean | null | undefined;
7992
8122
  } & class_variance_authority_types.ClassProp) | undefined) => string;
7993
8123
 
8124
+ interface MosaicEditMemoryDialogProps {
8125
+ /** Controlled open state — the host owns the truth. */
8126
+ open: boolean;
8127
+ /** Controlled state setter, called on every open/close intent (including Escape and Cancel). */
8128
+ onOpenChange: (open: boolean) => void;
8129
+ /** Dialog title, wired to `aria-labelledby`. Required — no default. */
8130
+ title: string;
8131
+ /** Dialog description, wired to `aria-describedby`. Required — no default. */
8132
+ description: string;
8133
+ /** aria-label for the close (X) button. Required — the host owns the language. */
8134
+ closeAriaLabel: string;
8135
+ /** Current memory content value — controlled. */
8136
+ content: string;
8137
+ /** Called on every keystroke in the content field. */
8138
+ onContentChange: (value: string) => void;
8139
+ /** Label for the content field. Required — no default. */
8140
+ contentLabel: string;
8141
+ /** Placeholder for the content field. */
8142
+ contentPlaceholder?: string;
8143
+ /** Host-computed validation message for the content field, or absent when valid. */
8144
+ contentError?: string;
8145
+ /** Host-supplied memory-type taxonomy — never hardcoded in the library. */
8146
+ types: MosaicSelectItem$1[];
8147
+ /** Currently selected type value — controlled. */
8148
+ type: string;
8149
+ /** Called when the host user picks a different type. */
8150
+ onTypeChange: (value: string) => void;
8151
+ /** Label for the type field. Required — no default. */
8152
+ typeLabel: string;
8153
+ /** Current tag list — controlled, single source of truth owned by the host. */
8154
+ tags: string[];
8155
+ /** Called when a tag should be added. */
8156
+ onAddTag: (tag: string) => void;
8157
+ /** Called when a tag should be removed. */
8158
+ onRemoveTag: (tag: string) => void;
8159
+ /** Label for the tags field. Required — no default. */
8160
+ tagsLabel: string;
8161
+ /** Placeholder for the tag input. Required — no default. */
8162
+ tagInputPlaceholder: string;
8163
+ /** Per-tag accessible name for the remove button. Required, no default. */
8164
+ removeTagAriaLabel: (tag: string) => string;
8165
+ /** Optional host-supplied suggested tags. */
8166
+ suggestedTags?: string[];
8167
+ /** Optional maximum number of tags. */
8168
+ maxTags?: number;
8169
+ /** True while a save request is in flight — disables both actions, swaps the save label. */
8170
+ isSaving: boolean;
8171
+ /**
8172
+ * Host-computed form validity gating the save button. This component
8173
+ * never decides validation itself — it only reflects the host's verdict.
8174
+ */
8175
+ canSave: boolean;
8176
+ /** Called when the save button is clicked and `canSave` is true. Does not close the dialog. */
8177
+ onSave: () => void;
8178
+ /** Called when the cancel button is clicked, before the dialog closes. */
8179
+ onCancel: () => void;
8180
+ /** Label for the save button while idle. Required — no default. */
8181
+ saveLabel: string;
8182
+ /** Label for the save button while `isSaving` is true. Required — no default. */
8183
+ savingLabel: string;
8184
+ /** Label for the cancel button. Required — no default. */
8185
+ cancelLabel: string;
8186
+ className?: string;
8187
+ }
8188
+ /**
8189
+ * MosaicEditMemoryDialog — production "edit a stale memory" dialog for
8190
+ * @vantageos/mosaic-blocks.
8191
+ *
8192
+ * Purely presentational and fully controlled: composes @base-ui/react/dialog
8193
+ * with MosaicTextarea + MosaicSelect + MosaicTagInput. No network call, no
8194
+ * built-in taxonomy, no built-in validation, no built-in copy.
8195
+ */
8196
+ declare function MosaicEditMemoryDialog({ open, onOpenChange, title, description, closeAriaLabel, content, onContentChange, contentLabel, contentPlaceholder, contentError, types, type, onTypeChange, typeLabel, tags, onAddTag, onRemoveTag, tagsLabel, tagInputPlaceholder, removeTagAriaLabel, suggestedTags, maxTags, isSaving, canSave, onSave, onCancel, saveLabel, savingLabel, cancelLabel, className, }: MosaicEditMemoryDialogProps): React.JSX.Element;
8197
+ declare namespace MosaicEditMemoryDialog {
8198
+ var displayName: string;
8199
+ }
8200
+
8201
+ /**
8202
+ * editMemoryDialogVariants — pure CVA variant functions for
8203
+ * MosaicEditMemoryDialog.
8204
+ *
8205
+ * Isolated in its own module so it can be re-exported from the
8206
+ * `@vantageos/mosaic-blocks/server` subpath without pulling in React or
8207
+ * @base-ui/react (which live in MosaicEditMemoryDialog.tsx but not here).
8208
+ *
8209
+ * Zero browser / React runtime dependencies — safe in RSC / Node.js.
8210
+ */
8211
+ declare const editMemoryDialogPopupVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
8212
+ declare const editMemoryDialogBackdropVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
8213
+ declare const editMemoryDialogFieldVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
8214
+ declare const editMemoryDialogErrorVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
8215
+
7994
8216
  /**
7995
8217
  * MosaicSaveTemplateModal — presentational "save as template" form modal
7996
8218
  *
@@ -8183,6 +8405,95 @@ declare const saveTemplateModalButtonVariants: (props?: ({
8183
8405
  intent?: "cancel" | "save" | null | undefined;
8184
8406
  } & class_variance_authority_types.ClassProp) | undefined) => string;
8185
8407
 
8408
+ interface MosaicAddMemoryFormProps {
8409
+ /** Current memory content value — controlled. */
8410
+ content: string;
8411
+ /** Called on every keystroke in the content field. */
8412
+ onContentChange: (value: string) => void;
8413
+ /** Label for the content field. Required, no default. */
8414
+ contentLabel: string;
8415
+ /** Placeholder for the content field. */
8416
+ contentPlaceholder?: string;
8417
+ /** Host-computed validation message for the content field, or absent when valid. */
8418
+ contentError?: string;
8419
+ /** Host-supplied type/category taxonomy — never hardcoded in the library. */
8420
+ types: MosaicSelectItem$1[];
8421
+ /** Currently selected type value — controlled. */
8422
+ type: string;
8423
+ /** Called when the host user picks a different type. */
8424
+ onTypeChange: (value: string) => void;
8425
+ /** Label for the type field. Required, no default. */
8426
+ typeLabel: string;
8427
+ /** Current tag list — controlled, single source of truth owned by the host. */
8428
+ tags: string[];
8429
+ /** Called when a tag should be added. */
8430
+ onAddTag: (tag: string) => void;
8431
+ /** Called when a tag should be removed. */
8432
+ onRemoveTag: (tag: string) => void;
8433
+ /** Label for the tags field. Required, no default. */
8434
+ tagsLabel: string;
8435
+ /** Placeholder for the tag input. Required, no default. */
8436
+ tagInputPlaceholder: string;
8437
+ /** Per-tag accessible name for the remove button. Required, no default. */
8438
+ removeTagAriaLabel: (tag: string) => string;
8439
+ /** Optional host-supplied suggested tags (e.g. derived from the chosen type). */
8440
+ suggestedTags?: string[];
8441
+ /** Optional maximum number of tags. */
8442
+ maxTags?: number;
8443
+ /** True while a submit request is in flight — announced via aria-busy, disables both actions. */
8444
+ isSubmitting: boolean;
8445
+ /**
8446
+ * Host-computed form validity gating the submit button. This component
8447
+ * never decides validation itself — it only reflects the host's verdict.
8448
+ */
8449
+ canSubmit: boolean;
8450
+ /** Called when the host user submits the form. */
8451
+ onSubmit: () => void;
8452
+ /** Called when the host user clicks Cancel. */
8453
+ onCancel: () => void;
8454
+ /** Label for the submit button while idle. Required, no default. */
8455
+ submitButtonLabel: string;
8456
+ /** Label for the submit button while isSubmitting=true. Required, no default. */
8457
+ submittingLabel: string;
8458
+ /** Label for the cancel button. Required, no default. */
8459
+ cancelButtonLabel: string;
8460
+ /** Additional Tailwind classes on the form root. */
8461
+ className?: string;
8462
+ }
8463
+ /**
8464
+ * MosaicAddMemoryForm — production "record a new memory" form for
8465
+ * @vantageos/mosaic-blocks.
8466
+ *
8467
+ * Purely presentational and fully controlled: composes MosaicTextarea +
8468
+ * MosaicSelect + MosaicTagInput. No network call, no built-in taxonomy, no
8469
+ * built-in validation, no built-in copy.
8470
+ */
8471
+ declare function MosaicAddMemoryForm({ content, onContentChange, contentLabel, contentPlaceholder, contentError, types, type, onTypeChange, typeLabel, tags, onAddTag, onRemoveTag, tagsLabel, tagInputPlaceholder, removeTagAriaLabel, suggestedTags, maxTags, isSubmitting, canSubmit, onSubmit, onCancel, submitButtonLabel, submittingLabel, cancelButtonLabel, className, }: MosaicAddMemoryFormProps): React.JSX.Element;
8472
+ declare namespace MosaicAddMemoryForm {
8473
+ var displayName: string;
8474
+ }
8475
+
8476
+ /**
8477
+ * addMemoryFormVariants — pure CVA variant functions for MosaicAddMemoryForm.
8478
+ *
8479
+ * Isolated in their own module so they can be re-exported from the
8480
+ * `@vantageos/mosaic-blocks/server` subpath without pulling in React.
8481
+ *
8482
+ * Zero browser / React runtime dependencies — safe in RSC / Node.js.
8483
+ */
8484
+ /** Form vertical layout. */
8485
+ declare const addMemoryFormRootVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
8486
+ /** Field group (label + control + helper/error) vertical layout. */
8487
+ declare const addMemoryFormFieldVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
8488
+ /** Field error text. */
8489
+ declare const addMemoryFormErrorVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
8490
+ /** Footer action row. */
8491
+ declare const addMemoryFormFooterVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
8492
+ /** Submit / cancel button variants by intent. */
8493
+ declare const addMemoryFormButtonVariants: (props?: ({
8494
+ intent?: "cancel" | "submit" | null | undefined;
8495
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
8496
+
8186
8497
  /**
8187
8498
  * MosaicTemplateList — presentational, disposition-only list of host items
8188
8499
  *
@@ -8492,4 +8803,296 @@ declare const chatSidebarThreadVariants: (props?: ({
8492
8803
  active?: boolean | null | undefined;
8493
8804
  } & class_variance_authority_types.ClassProp) | undefined) => string;
8494
8805
 
8495
- 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, MosaicAgentBuilderModal, type MosaicAgentBuilderModalProps, MosaicAgentCard, type MosaicAgentCardProps, MosaicAgentChat, type MosaicAgentChatApprovalLabels, type MosaicAgentChatApprovalRequest, type MosaicAgentChatApprovalResponsePayload, type MosaicAgentChatMessage, type MosaicAgentChatMessagePart, type MosaicAgentChatProps, type MosaicAgentChatState, type MosaicAgentChatToolPart, type MosaicAgentChatToolPartState, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, type MosaicAgentComposerMobileProps, type MosaicAgentComposerProps, type MosaicAgentData, MosaicAgentEditor, type MosaicAgentEditorProps, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, type MosaicAgentListProps, type MosaicAgentPreset, MosaicAgentPreview, type MosaicAgentPreviewAttribute, type MosaicAgentPreviewDetailedProps, type MosaicAgentPreviewProps, type MosaicAgentPreviewSummaryProps, MosaicAgentTeamPreview, type MosaicAgentTeamPreviewProps, MosaicAlertDialog, MosaicAlertDialogAction, type MosaicAlertDialogActionProps, MosaicAlertDialogCancel, type MosaicAlertDialogCancelProps, MosaicAlertDialogContent, type MosaicAlertDialogContentProps, MosaicAlertDialogDescription, type MosaicAlertDialogDescriptionProps, MosaicAlertDialogFooter, MosaicAlertDialogHeader, MosaicAlertDialogOverlay, type MosaicAlertDialogOverlayProps, MosaicAlertDialogPortal, MosaicAlertDialogTitle, type MosaicAlertDialogTitleProps, MosaicAlertDialogTrigger, MosaicAnimatedList, type MosaicAnimatedListProps, MosaicApiKeyPanel, type MosaicApiKeyPanelProps, type MosaicApiKeyPanelProvider, type MosaicApiKeyPanelState, MosaicAppSidebar, type MosaicAppSidebarProps, MosaicApprovalPrompt, type MosaicApprovalPromptProps, type MosaicApprovalPromptState, MosaicAvatar, type MosaicAvatarProps, MosaicBadge, type MosaicBadgeProps, MosaicBlurredOrb, type MosaicBlurredOrbProps, type MosaicBreadcrumb, MosaicButton, type MosaicButtonProps, MosaicCard, MosaicCardContent, type MosaicCardContentProps, MosaicCardDescription, type MosaicCardDescriptionProps, MosaicCardFooter, type MosaicCardFooterProps, MosaicCardHeader, type MosaicCardHeaderProps, type MosaicCardProps, MosaicCardTitle, type MosaicCardTitleProps, MosaicChatComposer, type MosaicChatComposerProps, type MosaicChatComposerState, MosaicChatMessage, type MosaicChatMessageAttachmentPart, type MosaicChatMessagePart, type MosaicChatMessageProps, type MosaicChatMessageReasoningPart, type MosaicChatMessageSenderRole, type MosaicChatMessageTextPart, type MosaicChatMessageToolPart, type MosaicChatMessageToolState, type MosaicChatMessageToolStatusLabels, MosaicChatSidebar, type MosaicChatSidebarProps, MosaicChatThread, type MosaicChatThreadProps, MosaicCheckbox, type MosaicCheckboxProps, type MosaicClerkMembership, MosaicClerkOrgSwitcher, type MosaicClerkOrgSwitcherProps, type MosaicClerkOrganization, MosaicClerkWebhookHandler, type MosaicClerkWebhookHandlerOptions, MosaicCollapsible, MosaicCollapsiblePanel, type MosaicCollapsiblePanelProps, type MosaicCollapsibleProps, MosaicCollapsibleTrigger, type MosaicCollapsibleTriggerProps, MosaicCombobox, type MosaicComboboxItem, type MosaicComboboxProps, type MosaicComposerModel, type MosaicComposerModule, MosaicCounter, type MosaicCounterProps, MosaicCreateOrgDialog, type MosaicCreateOrgDialogProps, MosaicDashboardContent, type MosaicDashboardContentProps, MosaicDashboardHeader, type MosaicDashboardHeaderProps, MosaicDashboardLayout, type MosaicDashboardLayoutProps, type MosaicDashboardView, MosaicDataTable, type MosaicDataTableColumn, type MosaicDataTablePagination, type MosaicDataTableProps, MosaicDeleteConfirmationDialog, type MosaicDeleteConfirmationDialogProps, MosaicDeviceProvider, type MosaicDeviceProviderProps, MosaicDocumentUpload, type MosaicDocumentUploadFile, type MosaicDocumentUploadFileStatus, type MosaicDocumentUploadProps, MosaicDrawer, type MosaicDrawerProps, MosaicDropdownMenu, type MosaicDropdownMenuItem, type MosaicDropdownMenuProps, MosaicEmptyState, type MosaicEmptyStateProps, MosaicFallingPattern, type MosaicFallingPatternProps, MosaicFeature3Col, type MosaicFeature3ColProps, MosaicFeatureCenteredMedia, type MosaicFeatureCenteredMediaProps, MosaicField, MosaicFieldControl, type MosaicFieldControlProps, MosaicFieldDescription, type MosaicFieldDescriptionProps, MosaicFieldError, type MosaicFieldErrorProps, MosaicFieldLabel, type MosaicFieldLabelProps, type MosaicFieldProps, MosaicFilterBar, type MosaicFilterBarProps, type MosaicFilterOption, MosaicFilterSidebar, type MosaicFilterSidebarProps, MosaicFooterSimple, type MosaicFooterSimpleProps, MosaicHeroSplit, type MosaicHeroSplitProps, MosaicInput, MosaicInputGroup, type MosaicInputGroupProps, type MosaicInputProps, MosaicIntegrationsBadge, type MosaicIntegrationsBadgeProps, MosaicInviteMemberDialog, type MosaicInviteMemberDialogProps, MosaicKanbanBoard, type MosaicKanbanBoardProps, MosaicKanbanColumn, type MosaicKanbanColumnProps, MosaicLogosGrid, type MosaicLogosGridProps, MosaicMainNav, type MosaicMainNavProps, MosaicMarkdown, type MosaicMarkdownProps, MosaicMarketplaceCard, type MosaicMarketplaceCardProps, 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, type MosaicModelOption, MosaicModelSelector, type MosaicModelSelectorProps, 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, MosaicPdfViewer, type MosaicPdfViewerProps, MosaicPopover, type MosaicPopoverProps, 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, MosaicResizableSplitPane, type MosaicResizableSplitPaneProps, MosaicSaveTemplateModal, type MosaicSaveTemplateModalProps, 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, MosaicTagInput, type MosaicTagInputProps, type MosaicTemplate, type MosaicTemplateAgent, MosaicTemplateAgentCard, type MosaicTemplateAgentCardProps, type MosaicTemplateAgentData, MosaicTemplateCard, type MosaicTemplateCardProps, type MosaicTemplateCategory, MosaicTemplateCategoryChips, type MosaicTemplateCategoryChipsProps, MosaicTemplateGallery, type MosaicTemplateGalleryProps, MosaicTemplateList, type MosaicTemplateListProps, type MosaicTemplateManagementItem, MosaicTemplateManagementPanel, type MosaicTemplateManagementPanelProps, type MosaicTemplateMetadata, MosaicTemplatePreview, type MosaicTemplatePreviewProps, MosaicTestimonialsGrid, type MosaicTestimonialsGridProps, MosaicTextarea, type MosaicTextareaProps, MosaicThemeProvider, type MosaicThemeProviderProps, MosaicThemeToggle, type MosaicThemeToggleProps, MosaicToast, type MosaicToastProps, MosaicToastProvider, type MosaicToastProviderPosition, type MosaicToastProviderProps, type MosaicToastVariant, MosaicToolToggleList, type MosaicToolToggleListApprovalLevel, type MosaicToolToggleListProps, type MosaicToolToggleListSection, type MosaicToolToggleListTool, MosaicTooltip, MosaicTooltipContent, type MosaicTooltipContentProps, type MosaicTooltipProps, MosaicTooltipProvider, type MosaicTooltipProviderProps, MosaicTooltipRoot, type MosaicTooltipRootProps, MosaicTooltipTrigger, type MosaicTooltipTriggerProps, MosaicUrlScraper, type MosaicUrlScraperContent, type MosaicUrlScraperProps, type MosaicUrlScraperState, MosaicUserButton, type MosaicUserButtonProps, type MosaicWorkspaceContext, type NavCta, type NavLink, type OrbPosition, type Orientation, Placeholder, type PricingCta, type SocialLink, type StatItem, type TestimonialItem, type Theme, agentBuilderModalBackdropVariants, agentBuilderModalPopupVariants, agentChatRootVariants, agentEditorVariants, agentPreviewVariants, alertDialogContentVariants, alertDialogOverlayVariants, badgeVariants, buttonVariants, chatMessageBubbleVariants, chatMessageContainerVariants, chatMessageToolStatusVariants, chatSidebarThreadVariants, drawerBackdropVariants, drawerPopupVariants, marketplaceCardVariants, pdfViewerFrameVariants, pdfViewerStatusVariants, pdfViewerToolbarButtonVariants, popoverPopupVariants, saveTemplateModalBodyVariants, saveTemplateModalButtonVariants, saveTemplateModalErrorVariants, saveTemplateModalFieldVariants, saveTemplateModalFooterVariants, skeletonVariants, splitPaneCollapseButtonVariants, splitPaneHandleVariants, splitPaneRootVariants, tagInputFieldVariants, tagInputRemoveButtonVariants, tagInputRootVariants, tagInputTagVariants, templateAgentCardBadgeVariants, templateAgentCardTagVariants, templateAgentCardVariants, templateCategoryChipVariants, templateListVariants, templateManagementRowVariants, toastCardVariants, toastDismissButtonVariants, toastProviderPositionVariants, toastTitleVariants, toolToggleListRowVariants, toolToggleListSectionVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
8806
+ /**
8807
+ * MosaicMemoryGrid — presentational, tile-disposition-only grid of host items
8808
+ *
8809
+ * The tile presentation of a knowledge base: a responsive grid of tiles, one
8810
+ * per entry. `MosaicMemoryList` is its row-disposition sibling — both take
8811
+ * the SAME `items` + `renderItem` + `emptyMessage` contract and differ ONLY
8812
+ * in the container's Tailwind layout classes (`memory-grid-variants.ts` vs.
8813
+ * `memory-list-variants.ts`).
8814
+ *
8815
+ * The grid owns disposition ONLY:
8816
+ * - `items`: the host's array of entries, each requiring only an `id`.
8817
+ * - `renderItem`: the host-supplied per-entry renderer — the grid never
8818
+ * renders a tile of its own and never hardcodes a field, a category, a
8819
+ * sort order, or any domain content (no-hardcoded-business-knowledge).
8820
+ * - `emptyMessage`: required, no default (SIN-01) — the host owns the
8821
+ * language, e.g. `t('MemoryGrid.empty')`.
8822
+ *
8823
+ * Keyboard: roving tabindex across items (native `<ul>` / `<li>` — semantic
8824
+ * list roles come from the elements themselves, no explicit `role` needed)
8825
+ * — ArrowRight/ArrowDown moves focus to the next item, ArrowLeft/ArrowUp to
8826
+ * the previous, Home/End jump to the first/last. Exactly one item is
8827
+ * `tabIndex={0}` at a time; the rest are `tabIndex={-1}`.
8828
+ */
8829
+
8830
+ interface MosaicMemoryGridProps<T extends {
8831
+ id: string;
8832
+ }> {
8833
+ /** The entries to lay out as tiles. The grid never inspects their shape beyond `id`. */
8834
+ items: T[];
8835
+ /** Host-owned renderer for a single entry — the grid owns disposition only. */
8836
+ renderItem: (item: T, index: number) => React.ReactNode;
8837
+ /** Tile density: "comfortable" (default) or "compact". Changes gap only. */
8838
+ density?: "comfortable" | "compact";
8839
+ /**
8840
+ * Message shown when `items` is empty. Required, no default — the host
8841
+ * owns the language (e.g. `t('MemoryGrid.empty')`).
8842
+ */
8843
+ emptyMessage: string;
8844
+ /** Additional Tailwind classes on the root container. */
8845
+ className?: string;
8846
+ /** Additional Tailwind classes on each tile wrapper. */
8847
+ itemClassName?: string;
8848
+ /** React 19 ref prop — forwarded to the root container. */
8849
+ ref?: React.Ref<HTMLDivElement | HTMLUListElement>;
8850
+ }
8851
+ /**
8852
+ * MosaicMemoryGrid — production tile-disposition atom for
8853
+ * @vantageos/mosaic-blocks.
8854
+ *
8855
+ * Purely presentational: no filtering, no sorting, no item rendering — the
8856
+ * host owns the entry content via `renderItem`; this component only owns
8857
+ * the tile grid layout and keyboard roving-tabindex navigation.
8858
+ */
8859
+ declare function MosaicMemoryGrid<T extends {
8860
+ id: string;
8861
+ }>({ items, renderItem, density, emptyMessage, className, itemClassName, ref, }: MosaicMemoryGridProps<T>): React.JSX.Element;
8862
+ declare namespace MosaicMemoryGrid {
8863
+ var displayName: string;
8864
+ }
8865
+
8866
+ /**
8867
+ * memoryGridVariants — pure CVA variant function for MosaicMemoryGrid.
8868
+ *
8869
+ * Isolated in its own module so it can be re-exported from the
8870
+ * `@vantageos/mosaic-blocks/server` subpath without pulling in React.
8871
+ *
8872
+ * Zero browser / React runtime dependencies — safe in RSC / Node.js.
8873
+ */
8874
+ /**
8875
+ * Root container layout — a responsive tile grid. Owns disposition ONLY;
8876
+ * item content is entirely host-supplied via `renderItem`.
8877
+ */
8878
+ declare const memoryGridVariants: (props?: ({
8879
+ density?: "compact" | "comfortable" | null | undefined;
8880
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
8881
+
8882
+ /**
8883
+ * MosaicMemoryList — presentational, row-disposition-only list of host items
8884
+ *
8885
+ * The row presentation of a knowledge base: a single-column stack of
8886
+ * divided rows, one per entry. `MosaicMemoryGrid` is its tile-disposition
8887
+ * sibling — both take the SAME `items` + `renderItem` + `emptyMessage`
8888
+ * contract and differ ONLY in the container's Tailwind layout classes
8889
+ * (`memory-list-variants.ts` vs. `memory-grid-variants.ts`).
8890
+ *
8891
+ * The list owns disposition ONLY:
8892
+ * - `items`: the host's array of entries, each requiring only an `id`.
8893
+ * - `renderItem`: the host-supplied per-entry renderer — the list never
8894
+ * renders a row of its own and never hardcodes a field, a category, a
8895
+ * sort order, or any domain content (no-hardcoded-business-knowledge).
8896
+ * - `emptyMessage`: required, no default (SIN-01) — the host owns the
8897
+ * language, e.g. `t('MemoryList.empty')`.
8898
+ *
8899
+ * Keyboard: roving tabindex across items (native `<ul>` / `<li>` — semantic
8900
+ * list roles come from the elements themselves, no explicit `role` needed)
8901
+ * — ArrowDown/ArrowRight moves focus to the next row, ArrowUp/ArrowLeft to
8902
+ * the previous, Home/End jump to the first/last. Exactly one item is
8903
+ * `tabIndex={0}` at a time; the rest are `tabIndex={-1}`.
8904
+ */
8905
+
8906
+ interface MosaicMemoryListProps<T extends {
8907
+ id: string;
8908
+ }> {
8909
+ /** The entries to lay out as rows. The list never inspects their shape beyond `id`. */
8910
+ items: T[];
8911
+ /** Host-owned renderer for a single entry — the list owns disposition only. */
8912
+ renderItem: (item: T, index: number) => React.ReactNode;
8913
+ /** Row density: "comfortable" (default) or "compact". Changes row padding only. */
8914
+ density?: "comfortable" | "compact";
8915
+ /**
8916
+ * Message shown when `items` is empty. Required, no default — the host
8917
+ * owns the language (e.g. `t('MemoryList.empty')`).
8918
+ */
8919
+ emptyMessage: string;
8920
+ /** Additional Tailwind classes on the root container. */
8921
+ className?: string;
8922
+ /** Additional Tailwind classes on each row wrapper. */
8923
+ itemClassName?: string;
8924
+ /** React 19 ref prop — forwarded to the root container. */
8925
+ ref?: React.Ref<HTMLDivElement | HTMLUListElement>;
8926
+ }
8927
+ /**
8928
+ * MosaicMemoryList — production row-disposition atom for
8929
+ * @vantageos/mosaic-blocks.
8930
+ *
8931
+ * Purely presentational: no filtering, no sorting, no item rendering — the
8932
+ * host owns the entry content via `renderItem`; this component only owns
8933
+ * the row list layout and keyboard roving-tabindex navigation.
8934
+ */
8935
+ declare function MosaicMemoryList<T extends {
8936
+ id: string;
8937
+ }>({ items, renderItem, density, emptyMessage, className, itemClassName, ref, }: MosaicMemoryListProps<T>): React.JSX.Element;
8938
+ declare namespace MosaicMemoryList {
8939
+ var displayName: string;
8940
+ }
8941
+
8942
+ /**
8943
+ * memoryListVariants — pure CVA variant function for MosaicMemoryList.
8944
+ *
8945
+ * Isolated in its own module so it can be re-exported from the
8946
+ * `@vantageos/mosaic-blocks/server` subpath without pulling in React.
8947
+ *
8948
+ * Zero browser / React runtime dependencies — safe in RSC / Node.js.
8949
+ */
8950
+ /**
8951
+ * Root container layout — a single-column, divided row stack. Owns
8952
+ * disposition ONLY; item content is entirely host-supplied via `renderItem`.
8953
+ */
8954
+ declare const memoryListVariants: (props?: ({
8955
+ density?: "compact" | "comfortable" | null | undefined;
8956
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
8957
+ /**
8958
+ * Per-row wrapper — owns the row's vertical rhythm (density-dependent
8959
+ * padding). Isolated from `memoryListVariants` because it targets the
8960
+ * `<li>` wrapper, not the `<ul>` root.
8961
+ */
8962
+ declare const memoryListItemVariants: (props?: ({
8963
+ density?: "compact" | "comfortable" | null | undefined;
8964
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
8965
+
8966
+ /**
8967
+ * MosaicMemorySearch — search bar over a host-supplied knowledge base: a
8968
+ * query input, optional filter chips (by type/tag), a clear action, and a
8969
+ * result-count indication.
8970
+ *
8971
+ * Fully controlled, presentational atom: `query` + `onQueryChange` own the
8972
+ * text; the component never searches anything itself. It has no idea what
8973
+ * "type" or "tag" means — the entire filter catalogue (`filters`) is
8974
+ * host-supplied DATA, exactly like `MosaicTemplateCategoryChips`. A client
8975
+ * with a different taxonomy (legal, healthcare, e-commerce) supplies its own
8976
+ * filter list without touching this package.
8977
+ *
8978
+ * The result count is never assembled by this component: `resultCount` is a
8979
+ * number, and `formatResultCount` is a host-supplied function that turns it
8980
+ * into a localized, pluralized string (e.g. `(n) => n === 1 ? "1 result" :
8981
+ * \`${n} results\`` or the FR equivalent). Pluralisation is a language; this
8982
+ * library speaks none (SIN-01).
8983
+ *
8984
+ * The clear action only appears once `query` is non-empty — that switch is
8985
+ * genuinely presentation state, not a missing word, so `clearButtonLabel`
8986
+ * remains a required prop with no default (the host always supplies it, the
8987
+ * button simply isn't rendered until there is something to clear).
8988
+ *
8989
+ * `filters` / `selectedFilterIds` / `onFilterToggle` are optional as a GROUP:
8990
+ * a host that has no filter feature at all renders the search bar with none
8991
+ * of the three, and no filter chip row is rendered. That optionality encodes
8992
+ * the absence of the whole filter FEATURE, not a missing word — every label
8993
+ * that IS rendered (each `filter.label`) is still host-owned data, required
8994
+ * on the filter object itself.
8995
+ *
8996
+ * No "use client" — prepend-use-client.mjs adds it to dist.
8997
+ * Design tokens: --primary, --primary-foreground, --background, --foreground,
8998
+ * --border, --muted, --muted-foreground, --input, --ring.
8999
+ * a11y: the query input is `type="search"` with an explicit `aria-label`
9000
+ * (`searchLabel`, host-owned — no host is forced to also render a visible
9001
+ * `<label>`). Each filter chip is a real `<button>` with `aria-pressed` so
9002
+ * the selection state reaches screen-reader users without relying on color.
9003
+ * The clear button carries its own required `aria-label` for the same
9004
+ * reason.
9005
+ *
9006
+ * Deps: @base-ui/react (via MosaicInput) + class-variance-authority only.
9007
+ *
9008
+ * @example
9009
+ * <MosaicMemorySearch
9010
+ * query={query}
9011
+ * onQueryChange={setQuery}
9012
+ * searchLabel="Search knowledge base"
9013
+ * searchPlaceholder="Search…"
9014
+ * clearButtonLabel="Clear search"
9015
+ * resultCount={results.length}
9016
+ * formatResultCount={(n) => (n === 1 ? "1 result" : `${n} results`)}
9017
+ * filters={[
9018
+ * { id: "type-note", label: "Note" },
9019
+ * { id: "type-decision", label: "Decision" },
9020
+ * ]}
9021
+ * selectedFilterIds={selectedFilterIds}
9022
+ * onFilterToggle={toggleFilter}
9023
+ * />
9024
+ */
9025
+
9026
+ /**
9027
+ * One selectable filter (type, tag, or any other host-defined facet). The
9028
+ * library knows nothing about any filter by name — the whole catalogue is
9029
+ * host-supplied DATA.
9030
+ */
9031
+ interface MosaicMemorySearchFilter {
9032
+ /** Stable identifier, matched against `selectedFilterIds` and passed to `onFilterToggle`. */
9033
+ id: string;
9034
+ /** Host-supplied, host-localized display label. No built-in taxonomy. */
9035
+ label: string;
9036
+ }
9037
+ interface MosaicMemorySearchProps {
9038
+ /** Current query text. Controlled by the host. */
9039
+ query: string;
9040
+ /** Called with the new query text on every keystroke. */
9041
+ onQueryChange: (query: string) => void;
9042
+ /** aria-label for the query input. Required, no default. */
9043
+ searchLabel: string;
9044
+ /** Placeholder for the query input. Required, no default. */
9045
+ searchPlaceholder: string;
9046
+ /** aria-label for the clear button. Required, no default — rendered only once `query` is non-empty. */
9047
+ clearButtonLabel: string;
9048
+ /** Total number of results for the current query/filters. Pure data — never computed here. */
9049
+ resultCount: number;
9050
+ /**
9051
+ * Derives the displayed result-count string from `resultCount`. Required —
9052
+ * the host owns pluralisation and language, this component never
9053
+ * assembles a count string itself.
9054
+ */
9055
+ formatResultCount: (count: number) => string;
9056
+ /**
9057
+ * Full open catalogue of filters — a PROP, never a library constant. Omit
9058
+ * entirely (with `selectedFilterIds` and `onFilterToggle`) when the host
9059
+ * has no filter feature; no filter chip row is then rendered.
9060
+ */
9061
+ filters?: MosaicMemorySearchFilter[];
9062
+ /** Ids of the currently selected filters. Controlled by the host. */
9063
+ selectedFilterIds?: string[];
9064
+ /** Called with the filter id when a chip is activated. */
9065
+ onFilterToggle?: (id: string) => void;
9066
+ /** Additional Tailwind classes on the root element. */
9067
+ className?: string;
9068
+ /** React 19 ref prop — forwarded to the root element. */
9069
+ ref?: React.Ref<HTMLDivElement>;
9070
+ }
9071
+ /**
9072
+ * MosaicMemorySearch — production search bar for @vantageos/mosaic-blocks.
9073
+ *
9074
+ * Purely presentational + controlled: renders the query input, an optional
9075
+ * host-supplied filter-chip row, a clear action, and a host-formatted
9076
+ * result-count string. No network call, no internal query state, no
9077
+ * hardcoded filter catalogue.
9078
+ */
9079
+ declare function MosaicMemorySearch({ query, onQueryChange, searchLabel, searchPlaceholder, clearButtonLabel, resultCount, formatResultCount, filters, selectedFilterIds, onFilterToggle, className, ref, }: MosaicMemorySearchProps): React.JSX.Element;
9080
+ declare namespace MosaicMemorySearch {
9081
+ var displayName: string;
9082
+ }
9083
+
9084
+ /**
9085
+ * memorySearchFilterChipVariants — pure CVA variant function for the
9086
+ * optional filter chips rendered by MosaicMemorySearch.
9087
+ *
9088
+ * Isolated in its own module so it can be re-exported from the
9089
+ * `@vantageos/mosaic-blocks/server` subpath without pulling in React.
9090
+ *
9091
+ * Zero browser / React runtime dependencies — safe in RSC / Node.js.
9092
+ */
9093
+ /** One filter chip button — selected vs. unselected tone. */
9094
+ declare const memorySearchFilterChipVariants: (props?: ({
9095
+ selected?: boolean | null | undefined;
9096
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
9097
+
9098
+ 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, MosaicAddMemoryForm, type MosaicAddMemoryFormProps, MosaicAgentBuilderModal, type MosaicAgentBuilderModalProps, MosaicAgentCard, type MosaicAgentCardProps, MosaicAgentChat, type MosaicAgentChatApprovalLabels, type MosaicAgentChatApprovalRequest, type MosaicAgentChatApprovalResponsePayload, type MosaicAgentChatMessage, type MosaicAgentChatMessagePart, type MosaicAgentChatProps, type MosaicAgentChatState, type MosaicAgentChatToolPart, type MosaicAgentChatToolPartState, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, type MosaicAgentComposerMobileProps, type MosaicAgentComposerProps, type MosaicAgentData, MosaicAgentEditor, type MosaicAgentEditorProps, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, type MosaicAgentListProps, type MosaicAgentPreset, MosaicAgentPreview, type MosaicAgentPreviewAttribute, type MosaicAgentPreviewDetailedProps, type MosaicAgentPreviewProps, type MosaicAgentPreviewSummaryProps, MosaicAgentTeamPreview, type MosaicAgentTeamPreviewProps, MosaicAlertDialog, MosaicAlertDialogAction, type MosaicAlertDialogActionProps, MosaicAlertDialogCancel, type MosaicAlertDialogCancelProps, MosaicAlertDialogContent, type MosaicAlertDialogContentProps, MosaicAlertDialogDescription, type MosaicAlertDialogDescriptionProps, MosaicAlertDialogFooter, MosaicAlertDialogHeader, MosaicAlertDialogOverlay, type MosaicAlertDialogOverlayProps, MosaicAlertDialogPortal, MosaicAlertDialogTitle, type MosaicAlertDialogTitleProps, MosaicAlertDialogTrigger, MosaicAnimatedList, type MosaicAnimatedListProps, MosaicApiKeyPanel, type MosaicApiKeyPanelProps, type MosaicApiKeyPanelProvider, type MosaicApiKeyPanelState, MosaicAppSidebar, type MosaicAppSidebarProps, MosaicApprovalPrompt, type MosaicApprovalPromptProps, type MosaicApprovalPromptState, MosaicAvatar, type MosaicAvatarProps, MosaicBadge, type MosaicBadgeProps, MosaicBlurredOrb, type MosaicBlurredOrbProps, type MosaicBreadcrumb, MosaicButton, type MosaicButtonProps, MosaicCard, MosaicCardContent, type MosaicCardContentProps, MosaicCardDescription, type MosaicCardDescriptionProps, MosaicCardFooter, type MosaicCardFooterProps, MosaicCardHeader, type MosaicCardHeaderProps, type MosaicCardProps, MosaicCardTitle, type MosaicCardTitleProps, MosaicChatComposer, type MosaicChatComposerProps, type MosaicChatComposerState, MosaicChatMessage, type MosaicChatMessageAttachmentPart, type MosaicChatMessagePart, type MosaicChatMessageProps, type MosaicChatMessageReasoningPart, type MosaicChatMessageSenderRole, type MosaicChatMessageTextPart, type MosaicChatMessageToolPart, type MosaicChatMessageToolState, type MosaicChatMessageToolStatusLabels, MosaicChatSidebar, type MosaicChatSidebarProps, MosaicChatThread, type MosaicChatThreadProps, MosaicCheckbox, type MosaicCheckboxProps, type MosaicClerkMembership, MosaicClerkOrgSwitcher, type MosaicClerkOrgSwitcherProps, type MosaicClerkOrganization, MosaicClerkWebhookHandler, type MosaicClerkWebhookHandlerOptions, MosaicCollapsible, MosaicCollapsiblePanel, type MosaicCollapsiblePanelProps, type MosaicCollapsibleProps, MosaicCollapsibleTrigger, type MosaicCollapsibleTriggerProps, MosaicCombobox, type MosaicComboboxItem, type MosaicComboboxProps, type MosaicComposerModel, type MosaicComposerModule, MosaicCounter, type MosaicCounterProps, MosaicCreateOrgDialog, type MosaicCreateOrgDialogProps, MosaicDashboardContent, type MosaicDashboardContentProps, MosaicDashboardHeader, type MosaicDashboardHeaderProps, MosaicDashboardLayout, type MosaicDashboardLayoutProps, type MosaicDashboardView, MosaicDataTable, type MosaicDataTableColumn, type MosaicDataTablePagination, type MosaicDataTableProps, MosaicDeleteConfirmationDialog, type MosaicDeleteConfirmationDialogProps, MosaicDeviceProvider, type MosaicDeviceProviderProps, MosaicDocumentUpload, type MosaicDocumentUploadFile, type MosaicDocumentUploadFileStatus, type MosaicDocumentUploadProps, MosaicDrawer, type MosaicDrawerProps, MosaicDropdownMenu, type MosaicDropdownMenuItem, type MosaicDropdownMenuProps, MosaicEditMemoryDialog, type MosaicEditMemoryDialogProps, MosaicEmptyState, type MosaicEmptyStateProps, MosaicFallingPattern, type MosaicFallingPatternProps, MosaicFeature3Col, type MosaicFeature3ColProps, MosaicFeatureCenteredMedia, type MosaicFeatureCenteredMediaProps, MosaicField, MosaicFieldControl, type MosaicFieldControlProps, MosaicFieldDescription, type MosaicFieldDescriptionProps, MosaicFieldError, type MosaicFieldErrorProps, MosaicFieldLabel, type MosaicFieldLabelProps, type MosaicFieldProps, MosaicFilterBar, type MosaicFilterBarProps, type MosaicFilterOption, MosaicFilterSidebar, type MosaicFilterSidebarProps, MosaicFooterSimple, type MosaicFooterSimpleProps, MosaicHeroSplit, type MosaicHeroSplitProps, MosaicInput, MosaicInputGroup, type MosaicInputGroupProps, type MosaicInputProps, MosaicIntegrationsBadge, type MosaicIntegrationsBadgeProps, MosaicInviteMemberDialog, type MosaicInviteMemberDialogProps, MosaicKanbanBoard, type MosaicKanbanBoardProps, MosaicKanbanColumn, type MosaicKanbanColumnProps, MosaicLogosGrid, type MosaicLogosGridProps, MosaicMainNav, type MosaicMainNavProps, MosaicMarkdown, type MosaicMarkdownProps, MosaicMarketplaceCard, type MosaicMarketplaceCardProps, type MosaicMarketplaceItem, MosaicMarketplaceList, MarketplaceListDesktop as MosaicMarketplaceListDesktop, MarketplaceListMobile as MosaicMarketplaceListMobile, type MosaicMarketplaceListProps, MosaicMemberList, type MosaicMemberListProps, MosaicMemoryCard, type MosaicMemoryCardProps, MosaicMemoryDashboard, type MosaicMemoryDashboardProps, type MosaicMemoryDashboardStat, type MosaicMemoryDashboardViewMode, type MosaicMemoryData, MosaicMemoryGrid, type MosaicMemoryGridProps, MosaicMemoryList, type MosaicMemoryListProps, type MosaicMemoryScope, MosaicMemorySearch, type MosaicMemorySearchFilter, type MosaicMemorySearchProps, type MosaicMemorySource, type MosaicMessage, MosaicMessageCard, type MosaicMessageCardProps, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, type MosaicMessageListProps, type MosaicMessageReactions, type MosaicMessageSender, type MosaicMessageSenderType, type MosaicModelOption, MosaicModelSelector, type MosaicModelSelectorProps, 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, MosaicPdfViewer, type MosaicPdfViewerProps, MosaicPopover, type MosaicPopoverProps, 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, MosaicResizableSplitPane, type MosaicResizableSplitPaneProps, MosaicSaveTemplateModal, type MosaicSaveTemplateModalProps, 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, MosaicTagInput, type MosaicTagInputProps, type MosaicTemplate, type MosaicTemplateAgent, MosaicTemplateAgentCard, type MosaicTemplateAgentCardProps, type MosaicTemplateAgentData, MosaicTemplateCard, type MosaicTemplateCardProps, type MosaicTemplateCategory, MosaicTemplateCategoryChips, type MosaicTemplateCategoryChipsProps, MosaicTemplateGallery, type MosaicTemplateGalleryProps, MosaicTemplateList, type MosaicTemplateListProps, type MosaicTemplateManagementItem, MosaicTemplateManagementPanel, type MosaicTemplateManagementPanelProps, type MosaicTemplateMetadata, MosaicTemplatePreview, type MosaicTemplatePreviewProps, MosaicTestimonialsGrid, type MosaicTestimonialsGridProps, MosaicTextarea, type MosaicTextareaProps, MosaicThemeProvider, type MosaicThemeProviderProps, MosaicThemeToggle, type MosaicThemeToggleProps, MosaicToast, type MosaicToastProps, MosaicToastProvider, type MosaicToastProviderPosition, type MosaicToastProviderProps, type MosaicToastVariant, MosaicToolToggleList, type MosaicToolToggleListApprovalLevel, type MosaicToolToggleListProps, type MosaicToolToggleListSection, type MosaicToolToggleListTool, MosaicTooltip, MosaicTooltipContent, type MosaicTooltipContentProps, type MosaicTooltipProps, MosaicTooltipProvider, type MosaicTooltipProviderProps, MosaicTooltipRoot, type MosaicTooltipRootProps, MosaicTooltipTrigger, type MosaicTooltipTriggerProps, MosaicUrlScraper, type MosaicUrlScraperContent, type MosaicUrlScraperProps, type MosaicUrlScraperState, MosaicUserButton, type MosaicUserButtonProps, type MosaicWorkspaceContext, type NavCta, type NavLink, type OrbPosition, type Orientation, Placeholder, type PricingCta, type SocialLink, type StatItem, type TestimonialItem, type Theme, addMemoryFormButtonVariants, addMemoryFormErrorVariants, addMemoryFormFieldVariants, addMemoryFormFooterVariants, addMemoryFormRootVariants, agentBuilderModalBackdropVariants, agentBuilderModalPopupVariants, agentChatRootVariants, agentEditorVariants, agentPreviewVariants, alertDialogContentVariants, alertDialogOverlayVariants, badgeVariants, buttonVariants, chatMessageBubbleVariants, chatMessageContainerVariants, chatMessageToolStatusVariants, chatSidebarThreadVariants, drawerBackdropVariants, drawerPopupVariants, editMemoryDialogBackdropVariants, editMemoryDialogErrorVariants, editMemoryDialogFieldVariants, editMemoryDialogPopupVariants, marketplaceCardVariants, memoryDashboardViewToggleButtonVariants, memoryGridVariants, memoryListItemVariants, memoryListVariants, memorySearchFilterChipVariants, pdfViewerFrameVariants, pdfViewerStatusVariants, pdfViewerToolbarButtonVariants, popoverPopupVariants, saveTemplateModalBodyVariants, saveTemplateModalButtonVariants, saveTemplateModalErrorVariants, saveTemplateModalFieldVariants, saveTemplateModalFooterVariants, skeletonVariants, splitPaneCollapseButtonVariants, splitPaneHandleVariants, splitPaneRootVariants, tagInputFieldVariants, tagInputRemoveButtonVariants, tagInputRootVariants, tagInputTagVariants, templateAgentCardBadgeVariants, templateAgentCardTagVariants, templateAgentCardVariants, templateCategoryChipVariants, templateListVariants, templateManagementRowVariants, toastCardVariants, toastDismissButtonVariants, toastProviderPositionVariants, toastTitleVariants, toolToggleListRowVariants, toolToggleListSectionVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };