@vantageos/mosaic-blocks 0.5.34-alpha → 0.5.36-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.
Files changed (149) hide show
  1. package/README.md +9 -8
  2. package/dist/index.cjs +1517 -101
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.d.cts +1283 -15
  5. package/dist/index.d.ts +1283 -15
  6. package/dist/index.js +1487 -102
  7. package/dist/index.js.map +1 -1
  8. package/dist/styles.css +18 -0
  9. package/package.json +38 -26
  10. package/r/mosaic-accordion.json +18 -0
  11. package/r/mosaic-activity-feed.json +16 -0
  12. package/r/mosaic-adaptive-grid.json +18 -0
  13. package/r/mosaic-adaptive-modal.json +18 -0
  14. package/r/mosaic-adaptive-navigation.json +18 -0
  15. package/r/mosaic-add-memory-form.json +25 -0
  16. package/r/mosaic-admin-only-guard.json +18 -0
  17. package/r/mosaic-agent-builder-modal.json +23 -0
  18. package/r/mosaic-agent-card.json +16 -0
  19. package/r/mosaic-agent-chat.json +26 -0
  20. package/r/mosaic-agent-composer.json +28 -0
  21. package/r/mosaic-agent-editor.json +25 -0
  22. package/r/mosaic-agent-list.json +21 -0
  23. package/r/mosaic-agent-preview.json +21 -0
  24. package/r/mosaic-alert-dialog.json +23 -0
  25. package/r/mosaic-animated-list.json +16 -0
  26. package/r/mosaic-api-key-panel.json +21 -0
  27. package/r/mosaic-app-sidebar.json +18 -0
  28. package/r/mosaic-approval-prompt.json +21 -0
  29. package/r/mosaic-artifact-canvas-adapter.json +26 -0
  30. package/r/mosaic-artifact-chart.json +18 -0
  31. package/r/mosaic-artifact-checklist.json +18 -0
  32. package/r/mosaic-artifact-data-table.json +18 -0
  33. package/r/mosaic-artifact-document.json +16 -0
  34. package/r/mosaic-artifact-library.json +18 -0
  35. package/r/mosaic-artifact-save-as-memory-form.json +24 -0
  36. package/r/mosaic-artifact-version-history.json +16 -0
  37. package/r/mosaic-avatar.json +18 -0
  38. package/r/mosaic-badge.json +23 -0
  39. package/r/mosaic-blurred-orb.json +16 -0
  40. package/r/mosaic-button.json +24 -0
  41. package/r/mosaic-callout.json +23 -0
  42. package/r/mosaic-card.json +16 -0
  43. package/r/mosaic-chat-composer.json +21 -0
  44. package/r/mosaic-chat-message.json +23 -0
  45. package/r/mosaic-chat-sidebar.json +21 -0
  46. package/r/mosaic-chat-thread.json +21 -0
  47. package/r/mosaic-checkbox.json +18 -0
  48. package/r/mosaic-clerk-org-switcher.json +18 -0
  49. package/r/mosaic-clerk-webhook-handler.json +18 -0
  50. package/r/mosaic-collapsible.json +18 -0
  51. package/r/mosaic-combobox.json +18 -0
  52. package/r/mosaic-counter.json +16 -0
  53. package/r/mosaic-dashboard-content.json +18 -0
  54. package/r/mosaic-dashboard-header.json +18 -0
  55. package/r/mosaic-dashboard-layout.json +20 -0
  56. package/r/mosaic-data-table.json +16 -0
  57. package/r/mosaic-delete-confirmation-dialog.json +18 -0
  58. package/r/mosaic-device-provider.json +16 -0
  59. package/r/mosaic-document-table.json +52 -0
  60. package/r/mosaic-document-upload.json +21 -0
  61. package/r/mosaic-drawer.json +23 -0
  62. package/r/mosaic-dropdown-menu.json +18 -0
  63. package/r/mosaic-edit-memory-dialog.json +27 -0
  64. package/r/mosaic-edit-session-dialog.json +25 -0
  65. package/r/mosaic-editable-cell.json +23 -0
  66. package/r/mosaic-empty-state.json +16 -0
  67. package/r/mosaic-falling-pattern.json +16 -0
  68. package/r/mosaic-feature-3col.json +16 -0
  69. package/r/mosaic-feature-centered-media.json +16 -0
  70. package/r/mosaic-field.json +18 -0
  71. package/r/mosaic-filter-bar.json +18 -0
  72. package/r/mosaic-filter-sidebar.json +18 -0
  73. package/r/mosaic-footer-simple.json +16 -0
  74. package/r/mosaic-hero-split.json +16 -0
  75. package/r/mosaic-input-group.json +16 -0
  76. package/r/mosaic-input.json +18 -0
  77. package/r/mosaic-integrations-badge.json +16 -0
  78. package/r/mosaic-kanban-board.json +21 -0
  79. package/r/mosaic-logos-grid.json +16 -0
  80. package/r/mosaic-main-nav.json +18 -0
  81. package/r/mosaic-markdown.json +21 -0
  82. package/r/mosaic-marketplace-card.json +24 -0
  83. package/r/mosaic-marketplace-list.json +20 -0
  84. package/r/mosaic-match-input.json +23 -0
  85. package/r/mosaic-memory-card.json +21 -0
  86. package/r/mosaic-memory-dashboard.json +23 -0
  87. package/r/mosaic-memory-grid.json +21 -0
  88. package/r/mosaic-memory-list.json +21 -0
  89. package/r/mosaic-memory-search.json +23 -0
  90. package/r/mosaic-mention-input.json +23 -0
  91. package/r/mosaic-message-card.json +16 -0
  92. package/r/mosaic-message-list.json +19 -0
  93. package/r/mosaic-message-search.json +18 -0
  94. package/r/mosaic-model-selector.json +23 -0
  95. package/r/mosaic-module-card.json +16 -0
  96. package/r/mosaic-module-library.json +18 -0
  97. package/r/mosaic-multi-tenant-provider.json +19 -0
  98. package/r/mosaic-navbar.json +16 -0
  99. package/r/mosaic-org-context-display.json +18 -0
  100. package/r/mosaic-org-panel.json +19 -0
  101. package/r/mosaic-org-profile-page.json +18 -0
  102. package/r/mosaic-org-switcher.json +16 -0
  103. package/r/mosaic-pdf-viewer.json +23 -0
  104. package/r/mosaic-popover.json +23 -0
  105. package/r/mosaic-preferences-panel.json +18 -0
  106. package/r/mosaic-pricing-card.json +16 -0
  107. package/r/mosaic-profile-panel.json +18 -0
  108. package/r/mosaic-progress.json +18 -0
  109. package/r/mosaic-quick-action-card.json +16 -0
  110. package/r/mosaic-quick-actions-menu.json +18 -0
  111. package/r/mosaic-quick-agent-selector.json +19 -0
  112. package/r/mosaic-radio-group.json +18 -0
  113. package/r/mosaic-reply-input.json +21 -0
  114. package/r/mosaic-resizable-split-pane.json +23 -0
  115. package/r/mosaic-save-chat-as-memory-form.json +25 -0
  116. package/r/mosaic-save-template-modal.json +27 -0
  117. package/r/mosaic-scroll-area.json +18 -0
  118. package/r/mosaic-select.json +18 -0
  119. package/r/mosaic-selector-modal.json +18 -0
  120. package/r/mosaic-separator.json +18 -0
  121. package/r/mosaic-session-card.json +24 -0
  122. package/r/mosaic-session-list.json +21 -0
  123. package/r/mosaic-sign-in-layout.json +18 -0
  124. package/r/mosaic-sign-up-layout.json +18 -0
  125. package/r/mosaic-skeleton.json +23 -0
  126. package/r/mosaic-slider.json +18 -0
  127. package/r/mosaic-stats-grid.json +16 -0
  128. package/r/mosaic-step-pipeline.json +21 -0
  129. package/r/mosaic-switch.json +18 -0
  130. package/r/mosaic-tabs.json +18 -0
  131. package/r/mosaic-tag-input.json +23 -0
  132. package/r/mosaic-template-agent-card.json +21 -0
  133. package/r/mosaic-template-category-chips.json +21 -0
  134. package/r/mosaic-template-gallery.json +20 -0
  135. package/r/mosaic-template-list.json +21 -0
  136. package/r/mosaic-template-management-panel.json +25 -0
  137. package/r/mosaic-testimonials-grid.json +16 -0
  138. package/r/mosaic-textarea.json +16 -0
  139. package/r/mosaic-theme-provider.json +18 -0
  140. package/r/mosaic-theme-toggle.json +16 -0
  141. package/r/mosaic-thread-indicator.json +21 -0
  142. package/r/mosaic-thread-view.json +21 -0
  143. package/r/mosaic-toast.json +28 -0
  144. package/r/mosaic-tool-toggle-list.json +23 -0
  145. package/r/mosaic-tooltip.json +18 -0
  146. package/r/mosaic-url-scraper.json +21 -0
  147. package/r/mosaic-user-button.json +18 -0
  148. package/r/use-effective-workspace-id.json +18 -0
  149. package/registry.json +179 -130
package/dist/index.d.cts CHANGED
@@ -17,11 +17,13 @@ import { Avatar } from '@base-ui/react/avatar';
17
17
  import { Input } from '@base-ui/react/input';
18
18
  import { Field } from '@base-ui/react/field';
19
19
  import { Switch } from '@base-ui/react/switch';
20
+ import { Combobox } from '@base-ui/react/combobox';
20
21
  import * as class_variance_authority_types from 'class-variance-authority/types';
21
22
  import { AlertDialog } from '@base-ui/react/alert-dialog';
23
+ import { BarChart, Bar, LineChart, Line, PieChart, Pie, Cell, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer } from 'recharts';
22
24
  export { Tooltip } from '@base-ui/react/tooltip';
23
25
 
24
- declare const version = "0.5.34-alpha";
26
+ declare const version = "0.5.36-alpha";
25
27
 
26
28
  /**
27
29
  * Placeholder component — infra scaffold only.
@@ -615,7 +617,18 @@ declare namespace MosaicCounter {
615
617
  * Ported from heyfabrika/styleui components/theme-toggle (MIT).
616
618
  * Flips `data-theme` attribute on document.documentElement.
617
619
  * Theme-reactive: reads current state from DOM on mount.
618
- * No hardcoded branding — icon is a pure SVG, all color via OKLCH CSS vars.
620
+ * No hardcoded branding — icon is a pure SVG, all color via theme tokens
621
+ * (Tailwind utilities wired from @vantageos/mosaic-tokens / mosaic-blocks
622
+ * styles.css) — never an inline literal OKLCH value.
623
+ *
624
+ * Earlier defect fixed here: the previous build used an arbitrary
625
+ * `bg-[oklch(var(--mosaic-surface,1_0_0))]` value. `--mosaic-surface` (bare,
626
+ * no suffix) is not a real token anywhere in this package — the fallback
627
+ * `1 0 0` (solid white) always won, so the button rendered a white disc in
628
+ * BOTH themes, and its `currentColor` icon (white foreground in dark mode)
629
+ * disappeared into it. Fixed by using the real wired tokens: `bg-secondary`
630
+ * (a neutral/ghost surface, distinct in both modes) + `text-foreground`
631
+ * (explicit icon colour) + `hover:bg-accent` for the ghost hover state.
619
632
  */
620
633
 
621
634
  type Theme = "light" | "dark" | "system";
@@ -1885,6 +1898,10 @@ declare function MosaicSelect({ items, value, onValueChange, placeholder, defaul
1885
1898
  * Styling: Tailwind v4 semantic tokens only.
1886
1899
  */
1887
1900
 
1901
+ type PositionerSide$1 = NonNullable<Combobox.Positioner.Props["side"]>;
1902
+ type PositionerAlign$1 = NonNullable<Combobox.Positioner.Props["align"]>;
1903
+ type PositionerCollisionBoundary$1 = Combobox.Positioner.Props["collisionBoundary"];
1904
+ type PositionerCollisionPadding$1 = Combobox.Positioner.Props["collisionPadding"];
1888
1905
  interface MosaicComboboxItem {
1889
1906
  value: string;
1890
1907
  label: string;
@@ -1909,6 +1926,27 @@ interface MosaicComboboxProps {
1909
1926
  */
1910
1927
  emptyMessage: string;
1911
1928
  className?: string;
1929
+ /**
1930
+ * Which side of the input the popup opens against. Base UI may still
1931
+ * auto-flip to avoid a collision unless `collisionAvoidance` disables it.
1932
+ * @default 'bottom'
1933
+ */
1934
+ side?: PositionerSide$1;
1935
+ /**
1936
+ * How the popup aligns relative to the requested side.
1937
+ * @default 'center'
1938
+ */
1939
+ align?: PositionerAlign$1;
1940
+ /**
1941
+ * Element/rect the popup is confined to.
1942
+ * @default 'clipping-ancestors'
1943
+ */
1944
+ collisionBoundary?: PositionerCollisionBoundary$1;
1945
+ /**
1946
+ * Space to keep between the popup and the edge of the collision boundary.
1947
+ * @default 5
1948
+ */
1949
+ collisionPadding?: PositionerCollisionPadding$1;
1912
1950
  }
1913
1951
  /**
1914
1952
  * MosaicCombobox — production Combobox atom for @vantageos/mosaic-blocks.
@@ -1925,8 +1963,35 @@ interface MosaicComboboxProps {
1925
1963
  * emptyMessage={t('Combobox.empty')}
1926
1964
  * />
1927
1965
  */
1928
- declare function MosaicCombobox({ items, value, onValueChange, defaultValue, placeholder, disabled, name, emptyMessage, className, }: MosaicComboboxProps): React.JSX.Element;
1966
+ declare function MosaicCombobox({ items, value, onValueChange, defaultValue, placeholder, disabled, name, emptyMessage, className, side, align, collisionBoundary, collisionPadding, }: MosaicComboboxProps): React.JSX.Element;
1929
1967
 
1968
+ /**
1969
+ * MosaicModelSelector — @base-ui/react Combobox primitive
1970
+ *
1971
+ * Ported from any-debate-ai components/agent-composer/ModelSelector.tsx.
1972
+ * (gh api repos/elpiarthera/any-debate-ai/contents/components/agent-composer/ModelSelector.tsx)
1973
+ *
1974
+ * The source component hard-coded AVAILABLE_MODELS + getRecommendedModels
1975
+ * from a local catalogue module. That catalogue is business knowledge that
1976
+ * changes independently of the library — it does NOT belong in
1977
+ * @vantageos/mosaic-blocks. This port strips it entirely: the host supplies
1978
+ * `models: MosaicModelOption[]`, the library only knows how to render and
1979
+ * navigate a list of options it is handed.
1980
+ *
1981
+ * Built on @base-ui/react/combobox (native in @base-ui/react@1.5.0).
1982
+ * Filtering via built-in useFilter with "contains" strategy (same recipe as
1983
+ * MosaicCombobox). Keyboard-accessible: ArrowDown/Up navigate, Enter selects,
1984
+ * Escape closes. Disabled options are visibly non-interactive
1985
+ * (aria-disabled) and never fire onValueChange.
1986
+ *
1987
+ * Controlled: `value` + `onValueChange` are owned by the host.
1988
+ * data-slot="model-selector" on the root wrapper.
1989
+ */
1990
+
1991
+ type PositionerSide = NonNullable<Combobox.Positioner.Props["side"]>;
1992
+ type PositionerAlign = NonNullable<Combobox.Positioner.Props["align"]>;
1993
+ type PositionerCollisionBoundary = Combobox.Positioner.Props["collisionBoundary"];
1994
+ type PositionerCollisionPadding = Combobox.Positioner.Props["collisionPadding"];
1930
1995
  interface MosaicModelOption {
1931
1996
  /** Unique identifier the host resolves back to its own model catalogue. */
1932
1997
  value: string;
@@ -1961,6 +2026,27 @@ interface MosaicModelSelectorProps {
1961
2026
  disabled?: boolean;
1962
2027
  name?: string;
1963
2028
  className?: string;
2029
+ /**
2030
+ * Which side of the trigger the popup opens against. Base UI may still
2031
+ * auto-flip to avoid a collision unless `collisionAvoidance` disables it.
2032
+ * @default 'bottom'
2033
+ */
2034
+ side?: PositionerSide;
2035
+ /**
2036
+ * How the popup aligns relative to the requested side.
2037
+ * @default 'center'
2038
+ */
2039
+ align?: PositionerAlign;
2040
+ /**
2041
+ * Element/rect the popup is confined to.
2042
+ * @default 'clipping-ancestors'
2043
+ */
2044
+ collisionBoundary?: PositionerCollisionBoundary;
2045
+ /**
2046
+ * Space to keep between the popup and the edge of the collision boundary.
2047
+ * @default 5
2048
+ */
2049
+ collisionPadding?: PositionerCollisionPadding;
1964
2050
  }
1965
2051
  /**
1966
2052
  * MosaicModelSelector — production model-picker atom for @vantageos/mosaic-blocks.
@@ -1979,7 +2065,7 @@ interface MosaicModelSelectorProps {
1979
2065
  * emptyMessage={t('ModelSelector.empty')}
1980
2066
  * />
1981
2067
  */
1982
- declare function MosaicModelSelector({ models, value, onValueChange, placeholder, emptyMessage, disabled, name, className, }: MosaicModelSelectorProps): React.JSX.Element;
2068
+ declare function MosaicModelSelector({ models, value, onValueChange, placeholder, emptyMessage, disabled, name, className, side, align, collisionBoundary, collisionPadding, }: MosaicModelSelectorProps): React.JSX.Element;
1983
2069
  declare namespace MosaicModelSelector {
1984
2070
  var displayName: string;
1985
2071
  }
@@ -2242,6 +2328,12 @@ interface MosaicAdaptiveNavigationProps {
2242
2328
  completeStatusLabel: string;
2243
2329
  /** Status caption shown when a step is not yet complete. Required, no default. */
2244
2330
  inProgressStatusLabel: string;
2331
+ /**
2332
+ * Visible duration badge text for an item that carries `duration`. Receives
2333
+ * the raw value in seconds; the host owns the unit word and formatting.
2334
+ * Required, no default.
2335
+ */
2336
+ formatDuration: (seconds: number) => string;
2245
2337
  className?: string;
2246
2338
  ref?: React.Ref<HTMLDivElement>;
2247
2339
  }
@@ -2265,7 +2357,7 @@ interface MosaicAdaptiveNavigationProps {
2265
2357
  * tabNavAriaLabel={t('AdaptiveNavigation.aria.tab')}
2266
2358
  * />
2267
2359
  */
2268
- declare function MosaicAdaptiveNavigation({ items, activeItem, onItemChange, expandedItems, onToggleExpanded, stepNavAriaLabel, tabNavAriaLabel, completeStatusLabel, inProgressStatusLabel, className, ref, }: MosaicAdaptiveNavigationProps): React.JSX.Element;
2360
+ declare function MosaicAdaptiveNavigation({ items, activeItem, onItemChange, expandedItems, onToggleExpanded, stepNavAriaLabel, tabNavAriaLabel, completeStatusLabel, inProgressStatusLabel, formatDuration, className, ref, }: MosaicAdaptiveNavigationProps): React.JSX.Element;
2269
2361
  declare namespace MosaicAdaptiveNavigation {
2270
2362
  var displayName: string;
2271
2363
  }
@@ -2645,6 +2737,12 @@ interface MosaicActivityFeedProps {
2645
2737
  * the language (e.g. `t('ActivityFeed.empty')`). No default, no fallback.
2646
2738
  */
2647
2739
  emptyMessage: string;
2740
+ /**
2741
+ * Visible message-count text on an activity that carries `messages`.
2742
+ * Receives the count; the host owns the unit word and word order.
2743
+ * Required, no default.
2744
+ */
2745
+ formatMessageCount: (count: number) => string;
2648
2746
  /**
2649
2747
  * Map of activity.type → icon ReactNode.
2650
2748
  * Default: generic clock icon for all types.
@@ -2660,6 +2758,8 @@ interface MosaicActivityFeedProps {
2660
2758
  }
2661
2759
  interface MosaicActivityItemProps {
2662
2760
  activity: MosaicActivity;
2761
+ /** Visible message-count text. Receives the count; host owns the unit word. Required, no default. */
2762
+ formatMessageCount: (count: number) => string;
2663
2763
  icon?: React.ReactNode;
2664
2764
  className?: string;
2665
2765
  }
@@ -2667,7 +2767,7 @@ interface MosaicActivityItemProps {
2667
2767
  * MosaicActivityItem — single row in the activity feed.
2668
2768
  * Can be used standalone outside MosaicActivityFeed.
2669
2769
  */
2670
- declare function MosaicActivityItem({ activity, icon, className }: MosaicActivityItemProps): React.JSX.Element;
2770
+ declare function MosaicActivityItem({ activity, formatMessageCount, icon, className, }: MosaicActivityItemProps): React.JSX.Element;
2671
2771
  declare namespace MosaicActivityItem {
2672
2772
  var displayName: string;
2673
2773
  }
@@ -2686,7 +2786,7 @@ declare namespace MosaicActivityItem {
2686
2786
  * ]}
2687
2787
  * />
2688
2788
  */
2689
- declare function MosaicActivityFeed({ activities, heading, viewAllHref, viewAllLabel, emptyMessage, iconMap, renderLink, className, ref, }: MosaicActivityFeedProps): React.JSX.Element;
2789
+ declare function MosaicActivityFeed({ activities, heading, viewAllHref, viewAllLabel, emptyMessage, formatMessageCount, iconMap, renderLink, className, ref, }: MosaicActivityFeedProps): React.JSX.Element;
2690
2790
  declare namespace MosaicActivityFeed {
2691
2791
  var displayName: string;
2692
2792
  }
@@ -2775,6 +2875,12 @@ interface MosaicAgentComposerProps {
2775
2875
  changeModuleLabel: (label: string) => string;
2776
2876
  /** Fallback name shown in the preview when `agentName` is empty. Required, no default. */
2777
2877
  unnamedAgentLabel: string;
2878
+ /**
2879
+ * Visible context-window text under the selected model (e.g. "128,000
2880
+ * context"). Receives the raw token count; the host owns number formatting,
2881
+ * the unit word and word order. Required, no default.
2882
+ */
2883
+ formatContextWindow: (tokens: number) => string;
2778
2884
  }
2779
2885
  interface MosaicAgentComposerDesktopProps extends MosaicAgentComposerProps {
2780
2886
  /**
@@ -2799,7 +2905,7 @@ interface MosaicAgentComposerDesktopProps extends MosaicAgentComposerProps {
2799
2905
  * Share the same props contract with MosaicAgentComposerMobile.
2800
2906
  * Use MosaicAgentComposer orchestrator to select the right variant automatically.
2801
2907
  */
2802
- declare function MosaicAgentComposerDesktop({ agentName, onAgentNameChange, customInstructions, onCustomInstructionsChange, selectedRole, selectedPersona, selectedFramework, selectedModel, onSelectRole, onSelectPersona, onSelectFramework, onSelectModel, onRemoveRole, onRemovePersona, onRemoveFramework, onSave, onCancel, canSave, isEditMode, labels, agentNameLabel, agentNamePlaceholder, instructionsPlaceholder, modelDescriptionLabel, recommendedBadgeLabel, livePreviewHeading, livePreviewSubheading, previewConfigLabel, customInstructionsPreviewLabel, selectAllModulesLabel, unnamedAgentLabel, roleSublabel, personaSublabel, frameworkSublabel, editModuleAriaLabel, removeModuleAriaLabel, selectModuleAriaLabel, changeModuleLabel, previewRequires, }: MosaicAgentComposerDesktopProps): React.JSX.Element;
2908
+ declare function MosaicAgentComposerDesktop({ agentName, onAgentNameChange, customInstructions, onCustomInstructionsChange, selectedRole, selectedPersona, selectedFramework, selectedModel, onSelectRole, onSelectPersona, onSelectFramework, onSelectModel, onRemoveRole, onRemovePersona, onRemoveFramework, onSave, onCancel, canSave, isEditMode, labels, agentNameLabel, agentNamePlaceholder, instructionsPlaceholder, modelDescriptionLabel, recommendedBadgeLabel, livePreviewHeading, livePreviewSubheading, previewConfigLabel, customInstructionsPreviewLabel, selectAllModulesLabel, unnamedAgentLabel, formatContextWindow, roleSublabel, personaSublabel, frameworkSublabel, editModuleAriaLabel, removeModuleAriaLabel, selectModuleAriaLabel, changeModuleLabel, previewRequires, }: MosaicAgentComposerDesktopProps): React.JSX.Element;
2803
2909
  declare namespace MosaicAgentComposerDesktop {
2804
2910
  var displayName: string;
2805
2911
  }
@@ -2849,7 +2955,7 @@ interface MosaicAgentComposerMobileProps extends MosaicAgentComposerProps {
2849
2955
  * Shares the same props contract as MosaicAgentComposerDesktop (plus isLoading).
2850
2956
  * Use MosaicAgentComposer orchestrator to select the right variant automatically.
2851
2957
  */
2852
- declare function MosaicAgentComposerMobile({ agentName, onAgentNameChange, customInstructions, onCustomInstructionsChange, selectedRole, selectedPersona, selectedFramework, selectedModel, onSelectRole, onSelectPersona, onSelectFramework, onSelectModel, onRemoveRole, onRemovePersona, onRemoveFramework, onSave, onCancel, canSave, isEditMode, isLoading, labels, agentNameLabel, agentNamePlaceholder, instructionsPlaceholder, recommendedBadgeLabel, requiredLabel, goBackAriaLabel, savingLabel, creatingLabel, optionalInstructionsHelp, editModuleAriaLabel, removeModuleAriaLabel, selectModuleAriaLabel, changeModuleLabel, }: MosaicAgentComposerMobileProps): React.JSX.Element;
2958
+ declare function MosaicAgentComposerMobile({ agentName, onAgentNameChange, customInstructions, onCustomInstructionsChange, selectedRole, selectedPersona, selectedFramework, selectedModel, onSelectRole, onSelectPersona, onSelectFramework, onSelectModel, onRemoveRole, onRemovePersona, onRemoveFramework, onSave, onCancel, canSave, isEditMode, isLoading, labels, agentNameLabel, agentNamePlaceholder, instructionsPlaceholder, recommendedBadgeLabel, requiredLabel, goBackAriaLabel, savingLabel, creatingLabel, optionalInstructionsHelp, editModuleAriaLabel, removeModuleAriaLabel, selectModuleAriaLabel, changeModuleLabel, formatContextWindow, }: MosaicAgentComposerMobileProps): React.JSX.Element;
2853
2959
  declare namespace MosaicAgentComposerMobile {
2854
2960
  var displayName: string;
2855
2961
  }
@@ -4611,8 +4717,12 @@ interface MosaicTemplateCardProps {
4611
4717
  previewLabel: string;
4612
4718
  /** Label for the duplicate action button. Required, no default. */
4613
4719
  duplicateLabel: string;
4720
+ /** Badge text for the agent count. Receives the count; host owns the unit word. Required, no default. */
4721
+ formatAgentCount: (count: number) => string;
4722
+ /** Badge text for the usage count. Receives the count; host owns the unit word. Required, no default. */
4723
+ formatUsageCount: (count: number) => string;
4614
4724
  }
4615
- declare function MosaicTemplateCard({ template, isSelected, onSelect, onPreview, onDuplicate, showActions, compact, previewLabel, duplicateLabel, }: MosaicTemplateCardProps): React.JSX.Element;
4725
+ declare function MosaicTemplateCard({ template, isSelected, onSelect, onPreview, onDuplicate, showActions, compact, previewLabel, duplicateLabel, formatAgentCount, formatUsageCount, }: MosaicTemplateCardProps): React.JSX.Element;
4616
4726
  declare namespace MosaicTemplateCard {
4617
4727
  var displayName: string;
4618
4728
  }
@@ -4693,6 +4803,10 @@ interface MosaicTemplateGalleryProps {
4693
4803
  /** Required host-owned strings forwarded to every MosaicTemplateCard. */
4694
4804
  previewLabel: string;
4695
4805
  duplicateLabel: string;
4806
+ /** Forwarded to every MosaicTemplateCard — required, no default. */
4807
+ formatAgentCount: (count: number) => string;
4808
+ /** Forwarded to every MosaicTemplateCard — required, no default. */
4809
+ formatUsageCount: (count: number) => string;
4696
4810
  className?: string;
4697
4811
  }
4698
4812
  declare function MosaicTemplateGallery(props: MosaicTemplateGalleryProps): React.JSX.Element;
@@ -4926,11 +5040,13 @@ declare namespace MosaicOrgRoleBadge {
4926
5040
  }
4927
5041
  interface MosaicMultiOrgIndicatorProps {
4928
5042
  orgCount: number;
5043
+ /** Visible org-count text. Receives the count; host owns the unit word. Required, no default. */
5044
+ formatOrgCount: (count: number) => string;
4929
5045
  currentOrgName?: string;
4930
5046
  onSwitchOrg?: () => void;
4931
5047
  className?: string;
4932
5048
  }
4933
- declare function MosaicMultiOrgIndicator({ orgCount, currentOrgName, onSwitchOrg, className, }: MosaicMultiOrgIndicatorProps): React.JSX.Element | null;
5049
+ declare function MosaicMultiOrgIndicator({ orgCount, formatOrgCount, currentOrgName, onSwitchOrg, className, }: MosaicMultiOrgIndicatorProps): React.JSX.Element | null;
4934
5050
  declare namespace MosaicMultiOrgIndicator {
4935
5051
  var displayName: string;
4936
5052
  }
@@ -5883,10 +5999,19 @@ declare namespace MosaicKanbanColumn {
5883
5999
  *
5884
6000
  * @example
5885
6001
  * import { ClerkProvider } from "@clerk/nextjs"
5886
- * import { getEffectiveWorkspaceId } from "@vantageos/cloud-identity"
6002
+ * import { resolveTenantIdOrAbsent } from "@vantageos/cloud-identity" // >= 0.6.0
6003
+ *
6004
+ * // Adapts cloud-identity's typed result to the (orgId) => string | null shape
6005
+ * // of the `resolveWorkspaceId` prop. cloud-identity names this "tenant".
6006
+ * const resolveWorkspaceId = (orgId: string | null) => {
6007
+ * const r = resolveTenantIdOrAbsent({ kind: "session", identity: { orgId } })
6008
+ * return r.present ? r.tenantId : null
6009
+ * }
6010
+ *
5887
6011
  * <MosaicMultiTenantProvider
5888
6012
  * clerkProvider={ClerkProvider}
5889
6013
  * publishableKey={process.env.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY}
6014
+ * resolveWorkspaceId={resolveWorkspaceId}
5890
6015
  * >
5891
6016
  * {children}
5892
6017
  * </MosaicMultiTenantProvider>
@@ -5910,7 +6035,9 @@ interface MosaicMultiTenantProviderProps {
5910
6035
  /** Clerk publishable key */
5911
6036
  publishableKey?: string;
5912
6037
  /**
5913
- * Optional workspace-ID resolver from @vantageos/cloud-identity.
6038
+ * Optional workspace-ID resolver, typically built on
6039
+ * `resolveTenantIdOrAbsent` from @vantageos/cloud-identity (see the example
6040
+ * above). cloud-identity exports no function of this exact shape.
5914
6041
  * Called with the current Clerk org ID (or null for personal workspace).
5915
6042
  * Defaults to identity pass-through when not provided.
5916
6043
  */
@@ -5930,7 +6057,8 @@ declare namespace MosaicMultiTenantProvider {
5930
6057
  *
5931
6058
  * Handles: organization.created, organizationMembership.created,
5932
6059
  * organizationMembership.deleted events and routes them through
5933
- * the cloud-identity primitive to sync with Convex.
6060
+ * your callbacks (this handler imports nothing from cloud-identity; any sync to
6061
+ * Convex happens inside the callbacks you provide).
5934
6062
  *
5935
6063
  * Usage: import and call in your Next.js App Router API route:
5936
6064
  *
@@ -10449,4 +10577,1144 @@ declare const editableCellVariants: (props?: ({
10449
10577
  disabled?: boolean | null | undefined;
10450
10578
  } & class_variance_authority_types.ClassProp) | undefined) => string;
10451
10579
 
10452
- 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, type MosaicAgentComposerDesktopProps, 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, MosaicCallout, type MosaicCalloutProps, 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, MosaicEditSessionDialog, type MosaicEditSessionDialogProps, MosaicEditableCell, type MosaicEditableCellProps, 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, MosaicMatchInput, type MosaicMatchInputProps, type MosaicMatchInputState, type MosaicMatchInputStateLabels, 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, MosaicMentionInput, type MosaicMentionInputProps, type MosaicMessage, MosaicMessageCard, type MosaicMessageCardProps, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, type MosaicMessageListProps, type MosaicMessageReactions, MosaicMessageSearch, type MosaicMessageSearchProps, 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, MosaicReplyInput, type MosaicReplyInputProps, MosaicResizableSplitPane, type MosaicResizableSplitPaneProps, MosaicSaveChatAsMemoryForm, type MosaicSaveChatAsMemoryFormProps, 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, MosaicSessionCard, type MosaicSessionCardInteractionProps, type MosaicSessionCardProps, type MosaicSessionCardVariantProps, type MosaicSessionData, MosaicSessionList, type MosaicSessionListLayout, type MosaicSessionListProps, type MosaicSessionStatus, 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, MosaicThreadIndicator, type MosaicThreadIndicatorProps, type MosaicThreadIndicatorReplyStatus, MosaicThreadView, type MosaicThreadViewMessage, type MosaicThreadViewProps, 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, calloutVariants, chatMessageBubbleVariants, chatMessageContainerVariants, chatMessageToolStatusVariants, chatSidebarThreadVariants, drawerBackdropVariants, drawerPopupVariants, editMemoryDialogBackdropVariants, editMemoryDialogErrorVariants, editMemoryDialogFieldVariants, editMemoryDialogPopupVariants, editSessionDialogBodyVariants, editSessionDialogButtonVariants, editSessionDialogErrorVariants, editSessionDialogFieldVariants, editSessionDialogFooterVariants, editableCellVariants, marketplaceCardVariants, matchStateVariants, memoryDashboardViewToggleButtonVariants, memoryGridVariants, memoryListItemVariants, memoryListVariants, memorySearchFilterChipVariants, mentionInputFieldVariants, mentionListItemVariants, mentionListVariants, pdfViewerFrameVariants, pdfViewerStatusVariants, pdfViewerToolbarButtonVariants, popoverPopupVariants, replyInputActionButtonVariants, replyInputContextVariants, replyInputRootVariants, replyInputTextareaVariants, saveChatAsMemoryFormButtonVariants, saveChatAsMemoryFormErrorVariants, saveChatAsMemoryFormFieldVariants, saveChatAsMemoryFormFooterVariants, saveChatAsMemoryFormRootVariants, saveTemplateModalBodyVariants, saveTemplateModalButtonVariants, saveTemplateModalErrorVariants, saveTemplateModalFieldVariants, saveTemplateModalFooterVariants, sessionCardVariants, sessionListItemVariants, sessionListVariants, skeletonVariants, splitPaneCollapseButtonVariants, splitPaneHandleVariants, splitPaneRootVariants, tagInputFieldVariants, tagInputRemoveButtonVariants, tagInputRootVariants, tagInputTagVariants, templateAgentCardBadgeVariants, templateAgentCardTagVariants, templateAgentCardVariants, templateCategoryChipVariants, templateListVariants, templateManagementRowVariants, threadIndicatorCountVariants, threadIndicatorRootVariants, threadViewEmptyVariants, threadViewRepliesVariants, threadViewReplyVariants, threadViewRootMessageVariants, threadViewRootVariants, toastCardVariants, toastDismissButtonVariants, toastProviderPositionVariants, toastTitleVariants, toolToggleListRowVariants, toolToggleListSectionVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
10580
+ /**
10581
+ * artifact-canvas-adapter — dual-source contract.
10582
+ *
10583
+ * The adapter normalizes an artifact from EITHER runtime source into one
10584
+ * internal shape (`NormalizedArtifact`) so a single presentation layer
10585
+ * renders under both:
10586
+ *
10587
+ * (a) @ai-sdk-tools/artifacts — `useArtifacts()` client shape
10588
+ * (b) MCP Apps ui:// bridge — GA nested `_meta.ui.resourceUri` tool result
10589
+ *
10590
+ * Never widen this file to a third shape without adding its own
10591
+ * `normalizeFrom*` function and a dedicated integration test proving the
10592
+ * new source traverses the adapter at runtime — see D6 (mcp-doctor) for the
10593
+ * static form-check this shape must keep satisfying.
10594
+ */
10595
+ type ArtifactType = "document" | "data-table" | "checklist" | "chart";
10596
+ interface NormalizedArtifact {
10597
+ id: string;
10598
+ type: ArtifactType;
10599
+ title: string;
10600
+ /** Raw source-specific payload, kept for the type-specific renderer. */
10601
+ data: Record<string, unknown>;
10602
+ }
10603
+ interface AiSdkArtifactEntry {
10604
+ id: string;
10605
+ type: string;
10606
+ data: Record<string, unknown>;
10607
+ }
10608
+ interface AiSdkArtifactsSource {
10609
+ kind: "ai-sdk-artifacts";
10610
+ artifacts: AiSdkArtifactEntry[];
10611
+ activeId: string | null;
10612
+ }
10613
+ /**
10614
+ * The GA-nested MCP Apps UI key, exactly the form D6 (mcp-doctor) classifies
10615
+ * as `present`/conforming: `_meta: { ui: { resourceUri } }`. Community
10616
+ * (`io.modelcontextprotocol/ui`) and flat (`ui/resourceUri`) forms are
10617
+ * rejected by the normalizer — see `normalizeFromMcpToolResult`.
10618
+ */
10619
+ interface McpToolResultMeta {
10620
+ ui: {
10621
+ resourceUri: string;
10622
+ };
10623
+ }
10624
+ interface McpToolResult {
10625
+ structuredContent: Record<string, unknown>;
10626
+ _meta: {
10627
+ ui: {
10628
+ resourceUri: string;
10629
+ };
10630
+ };
10631
+ }
10632
+ interface McpUiSource {
10633
+ kind: "mcp-ui";
10634
+ toolResult: McpToolResult;
10635
+ }
10636
+ type ArtifactCanvasSource = AiSdkArtifactsSource | McpUiSource;
10637
+
10638
+ /**
10639
+ * MosaicArtifactCanvasAdapter — dual-source artifact runtime chrome.
10640
+ *
10641
+ * Absorbs the 4 any-debate-ai runtime concerns (canvas-toggle, artifact-canvas,
10642
+ * artifact-renderer, artifact-toolbar) behind ONE presentation layer that
10643
+ * renders under either runtime source:
10644
+ *
10645
+ * (a) @ai-sdk-tools/artifacts — pass `source={{ kind: "ai-sdk-artifacts", ... }}`
10646
+ * (b) MCP Apps ui:// bridge — pass `source={{ kind: "mcp-ui", ... }}`
10647
+ *
10648
+ * Both are normalized by `normalizeArtifact` (./normalize.ts) into one
10649
+ * `NormalizedArtifact` shape before this component ever touches them — this
10650
+ * component itself never branches on `source.kind` beyond that single call.
10651
+ *
10652
+ * i18n: zero hardcoded user-facing strings (mosaic-blocks doctrine — see
10653
+ * src/__tests__/i18n-no-hardcoded-literals.test.ts). Every label is a
10654
+ * required prop; the host owns the language.
10655
+ *
10656
+ * data-slot="artifact-canvas-adapter" on the root, "artifact-canvas-toggle"
10657
+ * on the toggle button, "artifact-canvas-toolbar" on the toolbar,
10658
+ * "artifact-canvas-body" on the rendered artifact region.
10659
+ */
10660
+
10661
+ interface MosaicArtifactCanvasAdapterLabels {
10662
+ /** Accessible name for the collapsed-state toggle button. */
10663
+ toggleLabel: string;
10664
+ /** Accessible name for the canvas close button. */
10665
+ closeLabel: string;
10666
+ /** Region heading shown in the toolbar when the canvas is open. */
10667
+ toolbarHeading: string;
10668
+ /** Heading shown when no artifact is active. */
10669
+ emptyTitle: string;
10670
+ /** Body copy shown when no artifact is active. */
10671
+ emptyBody: string;
10672
+ /** Heading shown when the source resolves to no renderable artifact. */
10673
+ notFoundTitle: string;
10674
+ /** Body copy shown when the source resolves to no renderable artifact. */
10675
+ notFoundBody: string;
10676
+ /** Localizes the artifact type badge, e.g. (t) => ({ document: "Document", ... })[t]. */
10677
+ typeLabel: (type: ArtifactType) => string;
10678
+ }
10679
+ interface MosaicArtifactCanvasAdapterProps {
10680
+ /** Either runtime source; `null` renders the empty state. */
10681
+ source: ArtifactCanvasSource | null;
10682
+ isOpen: boolean;
10683
+ onToggle: () => void;
10684
+ onClose: () => void;
10685
+ labels: MosaicArtifactCanvasAdapterLabels;
10686
+ className?: string;
10687
+ ref?: React.Ref<HTMLDivElement>;
10688
+ }
10689
+ declare function MosaicArtifactCanvasAdapter({ source, isOpen, onToggle, onClose, labels, className, ref, }: MosaicArtifactCanvasAdapterProps): React.JSX.Element;
10690
+ declare namespace MosaicArtifactCanvasAdapter {
10691
+ var displayName: string;
10692
+ }
10693
+
10694
+ /** Source (a): @ai-sdk-tools/artifacts `useArtifacts()` shape. */
10695
+ declare function normalizeFromAiSdkArtifacts(source: AiSdkArtifactsSource): NormalizedArtifact | null;
10696
+ /**
10697
+ * Source (b): MCP Apps ui:// bridge. Requires the GA-nested key
10698
+ * `_meta.ui.resourceUri` (matches mcp-doctor D6 `present`/conforming state).
10699
+ * The artifact type is the last path segment of the resourceUri
10700
+ * (`ui://artifact-canvas/document` -> "document"); `structuredContent` is
10701
+ * the artifact payload, same shape family as the ai-sdk-artifacts entry.
10702
+ */
10703
+ declare function normalizeFromMcpToolResult(source: McpUiSource): NormalizedArtifact | null;
10704
+ /** Single entry point: dispatches to the right normalizer by `source.kind`. */
10705
+ declare function normalizeArtifact(source: ArtifactCanvasSource): NormalizedArtifact | null;
10706
+
10707
+ /**
10708
+ * MosaicArtifactDocument — dumb, contract-agnostic document artifact renderer
10709
+ *
10710
+ * Renders a normalized document artifact payload. Owns no knowledge of its
10711
+ * runtime source (@ai-sdk-tools/artifacts vs the MCP Apps ui:// bridge) —
10712
+ * it consumes the same `data` shape either source normalizes to, one level
10713
+ * below `NormalizedArtifact["data"]` in `artifact-canvas-adapter`.
10714
+ *
10715
+ * Read-only presentation. Ported from any-debate-ai's DocumentArtifact,
10716
+ * stripped of editing state (inline edit mode, autosave, markdown toolbar)
10717
+ * to keep this a pure render component, per the C1 adapter contract.
10718
+ *
10719
+ * data-slot="artifact-document" on the root, "artifact-document-section"
10720
+ * per section, "artifact-document-tag" per tag.
10721
+ *
10722
+ * i18n: zero hardcoded user-facing strings — every label is a required
10723
+ * prop (mosaic-blocks doctrine, see src/__tests__/i18n-no-hardcoded-literals.test.ts).
10724
+ */
10725
+
10726
+ interface MosaicArtifactDocumentSection {
10727
+ id: string;
10728
+ title: string;
10729
+ content: string;
10730
+ order: number;
10731
+ }
10732
+ interface MosaicArtifactDocumentData {
10733
+ title: string;
10734
+ content: string;
10735
+ sections?: MosaicArtifactDocumentSection[];
10736
+ metadata?: {
10737
+ updatedAt?: string;
10738
+ tags?: string[];
10739
+ };
10740
+ }
10741
+ interface MosaicArtifactDocumentLabels {
10742
+ /** Accessible text for the "Document" type badge. */
10743
+ typeBadgeLabel: string;
10744
+ /** Heading above the sections list. */
10745
+ sectionsHeading: string;
10746
+ /** Prefix label shown before the tags list. */
10747
+ tagsLabel: string;
10748
+ /** Formats the last-updated line, e.g. (date) => `Updated ${date}`. */
10749
+ updatedLabel: (formattedDate: string) => string;
10750
+ /** Shown in place of the content when it is blank. */
10751
+ emptyContentMessage: string;
10752
+ /** Formats a section's character count, e.g. (n) => `${n} chars`. */
10753
+ charsLabel: (count: number) => string;
10754
+ }
10755
+ interface MosaicArtifactDocumentProps {
10756
+ data: MosaicArtifactDocumentData;
10757
+ labels: MosaicArtifactDocumentLabels;
10758
+ className?: string;
10759
+ ref?: React.Ref<HTMLDivElement>;
10760
+ }
10761
+ /**
10762
+ * MosaicArtifactDocument — read-only document artifact renderer.
10763
+ *
10764
+ * @example
10765
+ * <MosaicArtifactDocument
10766
+ * data={{ title: "Launch plan", content: "..." }}
10767
+ * labels={{
10768
+ * typeBadgeLabel: "Document",
10769
+ * sectionsHeading: "Sections",
10770
+ * tagsLabel: "Tags:",
10771
+ * updatedLabel: (d) => `Updated ${d}`,
10772
+ * emptyContentMessage: "This document is empty.",
10773
+ * charsLabel: (n) => `${n} chars`,
10774
+ * }}
10775
+ * />
10776
+ */
10777
+ declare function MosaicArtifactDocument({ data, labels, className, ref, }: MosaicArtifactDocumentProps): React.JSX.Element;
10778
+ declare namespace MosaicArtifactDocument {
10779
+ var displayName: string;
10780
+ }
10781
+
10782
+ /**
10783
+ * MosaicArtifactDataTable — dumb, contract-agnostic data-table artifact renderer
10784
+ *
10785
+ * Renders a normalized data-table artifact payload on top of the existing
10786
+ * `MosaicDataTable` atom (reuse-first — no re-implementation of sort/render
10787
+ * logic). Owns no knowledge of its runtime source (@ai-sdk-tools/artifacts vs
10788
+ * the MCP Apps ui:// bridge); it consumes the same `data` shape either source
10789
+ * normalizes to.
10790
+ *
10791
+ * Read-only presentation. Ported from any-debate-ai's DataTableArtifact,
10792
+ * stripped of inline-edit/add-row/delete-row/search state to keep this a
10793
+ * pure render component, per the C1 adapter contract.
10794
+ *
10795
+ * data-slot="artifact-data-table" on the root.
10796
+ *
10797
+ * i18n: zero hardcoded user-facing strings — every label is a required
10798
+ * prop (mosaic-blocks doctrine, see src/__tests__/i18n-no-hardcoded-literals.test.ts).
10799
+ */
10800
+
10801
+ interface MosaicArtifactDataTableColumn {
10802
+ id: string;
10803
+ name: string;
10804
+ type: "string" | "number" | "boolean";
10805
+ width?: number;
10806
+ }
10807
+ interface MosaicArtifactDataTableData {
10808
+ title: string;
10809
+ columns: MosaicArtifactDataTableColumn[];
10810
+ rows: Record<string, unknown>[];
10811
+ metadata?: {
10812
+ sortBy?: string;
10813
+ sortOrder?: "asc" | "desc";
10814
+ };
10815
+ }
10816
+ interface MosaicArtifactDataTableLabels {
10817
+ /** Accessible text for the "Data Table" type badge. */
10818
+ typeBadgeLabel: string;
10819
+ /** Formats the row/column count badge, e.g. (rows, cols) => `${rows} rows × ${cols} cols`. */
10820
+ rowsColsLabel: (rows: number, cols: number) => string;
10821
+ /** Shown when there are no rows. */
10822
+ emptyMessage: string;
10823
+ /** Boolean-column cell label for `true`. */
10824
+ yesLabel: string;
10825
+ /** Boolean-column cell label for `false`. */
10826
+ noLabel: string;
10827
+ }
10828
+ interface MosaicArtifactDataTableProps {
10829
+ data: MosaicArtifactDataTableData;
10830
+ labels: MosaicArtifactDataTableLabels;
10831
+ className?: string;
10832
+ ref?: React.Ref<HTMLDivElement>;
10833
+ }
10834
+ /**
10835
+ * MosaicArtifactDataTable — read-only data-table artifact renderer.
10836
+ *
10837
+ * @example
10838
+ * <MosaicArtifactDataTable
10839
+ * data={{ title: "Q3 pipeline", columns: [...], rows: [...] }}
10840
+ * labels={{
10841
+ * typeBadgeLabel: "Data Table",
10842
+ * rowsColsLabel: (r, c) => `${r} rows × ${c} cols`,
10843
+ * emptyMessage: "No rows.",
10844
+ * yesLabel: "Yes",
10845
+ * noLabel: "No",
10846
+ * }}
10847
+ * />
10848
+ */
10849
+ declare function MosaicArtifactDataTable({ data, labels, className, ref, }: MosaicArtifactDataTableProps): React.JSX.Element;
10850
+ declare namespace MosaicArtifactDataTable {
10851
+ var displayName: string;
10852
+ }
10853
+
10854
+ /**
10855
+ * MosaicArtifactChart — dumb, contract-agnostic chart artifact renderer
10856
+ *
10857
+ * Renders a normalized chart artifact payload with Recharts (already the
10858
+ * charting library mosaic-blocks standardizes on). Owns no knowledge of its
10859
+ * runtime source (@ai-sdk-tools/artifacts vs the MCP Apps ui:// bridge); it
10860
+ * consumes the same `data` shape either source normalizes to.
10861
+ *
10862
+ * Read-only presentation. Ported from any-debate-ai's ChartArtifact,
10863
+ * stripped of the type-switcher/refresh/download toolbar to keep this a
10864
+ * pure render component, per the C1 adapter contract.
10865
+ *
10866
+ * `recharts` is a genuinely OPTIONAL peer dependency (see package.json
10867
+ * peerDependenciesMeta) — only hosts rendering chart artifacts need it.
10868
+ * mosaic-blocks does not bundle it: this component follows the repo's
10869
+ * canonical optional-peer pattern (dependency injection, see
10870
+ * MosaicUserButton/MosaicMultiTenantProvider) instead of a static top-level
10871
+ * `import ... from "recharts"`, which would make recharts a hard runtime
10872
+ * requirement and contradict the "optional" contract — a caller without
10873
+ * recharts installed would crash at module-resolution time. Only
10874
+ * `import type` is used below: type-only imports are erased at build time,
10875
+ * so no runtime dependency on recharts exists in the published bundle.
10876
+ * Callers that DO want charts pass the recharts primitives via the
10877
+ * `recharts` prop; callers that don't render `labels.unavailableMessage`.
10878
+ *
10879
+ * data-slot="artifact-chart" on the root.
10880
+ *
10881
+ * i18n: zero hardcoded user-facing strings — every label is a required
10882
+ * prop (mosaic-blocks doctrine, see src/__tests__/i18n-no-hardcoded-literals.test.ts).
10883
+ */
10884
+
10885
+ type MosaicArtifactChartType = "bar" | "line" | "pie";
10886
+ interface MosaicArtifactChartConfig {
10887
+ xAxis?: string;
10888
+ colors?: string[];
10889
+ legend?: boolean;
10890
+ grid?: boolean;
10891
+ }
10892
+ interface MosaicArtifactChartData {
10893
+ title: string;
10894
+ type: MosaicArtifactChartType;
10895
+ data: Record<string, unknown>[];
10896
+ config?: MosaicArtifactChartConfig;
10897
+ metadata?: {
10898
+ dataSource?: string;
10899
+ description?: string;
10900
+ };
10901
+ }
10902
+ interface MosaicArtifactChartLabels {
10903
+ /** Formats the chart-type badge, e.g. (type) => `${type} Chart`. */
10904
+ typeBadgeLabel: (type: MosaicArtifactChartType) => string;
10905
+ /** Formats the point-count badge, e.g. (n) => `${n} points`. */
10906
+ pointsLabel: (count: number) => string;
10907
+ /** Shown when `data.type` is not one of bar/line/pie. */
10908
+ unsupportedTypeMessage: (type: string) => string;
10909
+ /** Shown when the `recharts` prop is not supplied (optional peer absent). */
10910
+ unavailableMessage: string;
10911
+ }
10912
+ /**
10913
+ * Recharts primitives injected by the caller. Optional peer dependency —
10914
+ * omit entirely when the host app does not render charts; the component
10915
+ * then renders `labels.unavailableMessage` instead of crashing.
10916
+ *
10917
+ * @example
10918
+ * import * as Recharts from "recharts"
10919
+ * <MosaicArtifactChart data={data} labels={labels} recharts={Recharts} />
10920
+ */
10921
+ interface MosaicArtifactChartRecharts {
10922
+ BarChart: typeof BarChart;
10923
+ Bar: typeof Bar;
10924
+ LineChart: typeof LineChart;
10925
+ Line: typeof Line;
10926
+ PieChart: typeof PieChart;
10927
+ Pie: typeof Pie;
10928
+ Cell: typeof Cell;
10929
+ XAxis: typeof XAxis;
10930
+ YAxis: typeof YAxis;
10931
+ CartesianGrid: typeof CartesianGrid;
10932
+ Tooltip: typeof Tooltip;
10933
+ Legend: typeof Legend;
10934
+ ResponsiveContainer: typeof ResponsiveContainer;
10935
+ }
10936
+ interface MosaicArtifactChartProps {
10937
+ data: MosaicArtifactChartData;
10938
+ labels: MosaicArtifactChartLabels;
10939
+ /** recharts primitives — omit when the optional recharts peer is absent. */
10940
+ recharts?: MosaicArtifactChartRecharts;
10941
+ className?: string;
10942
+ ref?: React.Ref<HTMLDivElement>;
10943
+ }
10944
+ /**
10945
+ * MosaicArtifactChart — read-only chart artifact renderer (bar/line/pie).
10946
+ *
10947
+ * @example
10948
+ * <MosaicArtifactChart
10949
+ * data={{ title: "Q3 revenue", type: "bar", data: [{ month: "Jul", value: 100 }] }}
10950
+ * labels={{
10951
+ * typeBadgeLabel: (t) => `${t} Chart`,
10952
+ * pointsLabel: (n) => `${n} points`,
10953
+ * unsupportedTypeMessage: (t) => `Unsupported chart type: ${t}`,
10954
+ * unavailableMessage: "Charts unavailable",
10955
+ * }}
10956
+ * recharts={Recharts}
10957
+ * />
10958
+ */
10959
+ declare function MosaicArtifactChart({ data, labels, recharts, className, ref, }: MosaicArtifactChartProps): React.JSX.Element;
10960
+ declare namespace MosaicArtifactChart {
10961
+ var displayName: string;
10962
+ }
10963
+
10964
+ /**
10965
+ * MosaicArtifactChecklist — dumb, contract-agnostic checklist artifact renderer
10966
+ *
10967
+ * Renders a normalized checklist artifact payload on top of the existing
10968
+ * `MosaicProgress` atom (reuse-first). Owns no knowledge of its runtime
10969
+ * source (@ai-sdk-tools/artifacts vs the MCP Apps ui:// bridge); it consumes
10970
+ * the same `data` shape either source normalizes to.
10971
+ *
10972
+ * Read-only presentation. Ported from any-debate-ai's ChecklistArtifact,
10973
+ * stripped of the toggle/add/delete/bulk-action state to keep this a pure
10974
+ * render component, per the C1 adapter contract.
10975
+ *
10976
+ * data-slot="artifact-checklist" on the root, "artifact-checklist-item" per item.
10977
+ *
10978
+ * i18n: zero hardcoded user-facing strings — every label is a required
10979
+ * prop (mosaic-blocks doctrine, see src/__tests__/i18n-no-hardcoded-literals.test.ts).
10980
+ */
10981
+
10982
+ type MosaicArtifactChecklistPriority = "low" | "medium" | "high";
10983
+ interface MosaicArtifactChecklistItem {
10984
+ id: string;
10985
+ text: string;
10986
+ completed: boolean;
10987
+ priority?: MosaicArtifactChecklistPriority;
10988
+ dueDate?: number | string;
10989
+ assignee?: string;
10990
+ notes?: string;
10991
+ }
10992
+ interface MosaicArtifactChecklistData {
10993
+ title: string;
10994
+ description?: string;
10995
+ items: MosaicArtifactChecklistItem[];
10996
+ metadata?: {
10997
+ category?: string;
10998
+ };
10999
+ }
11000
+ interface MosaicArtifactChecklistLabels {
11001
+ /** Accessible text for the "Checklist" type badge. */
11002
+ typeBadgeLabel: string;
11003
+ /** Formats the header completed/total badge, e.g. (c, t) => `${c}/${t}`. */
11004
+ progressLabel: (completed: number, total: number) => string;
11005
+ /** Formats the progress-section summary line. */
11006
+ completedOfTotalLabel: (completed: number, total: number, percent: number) => string;
11007
+ /** Shown when there are no items. */
11008
+ emptyMessage: string;
11009
+ /** Localizes an item's priority badge. */
11010
+ priorityLabel: (priority: MosaicArtifactChecklistPriority) => string;
11011
+ }
11012
+ interface MosaicArtifactChecklistProps {
11013
+ data: MosaicArtifactChecklistData;
11014
+ labels: MosaicArtifactChecklistLabels;
11015
+ className?: string;
11016
+ ref?: React.Ref<HTMLDivElement>;
11017
+ }
11018
+ /**
11019
+ * MosaicArtifactChecklist — read-only checklist artifact renderer.
11020
+ *
11021
+ * @example
11022
+ * <MosaicArtifactChecklist
11023
+ * data={{ title: "Launch checklist", items: [{ id: "i1", text: "Ship PR", completed: false }] }}
11024
+ * labels={{
11025
+ * typeBadgeLabel: "Checklist",
11026
+ * progressLabel: (c, t) => `${c}/${t}`,
11027
+ * completedOfTotalLabel: (c, t, p) => `${c} of ${t} completed (${p}%)`,
11028
+ * emptyMessage: "No items yet.",
11029
+ * priorityLabel: (p) => ({ low: "Low", medium: "Medium", high: "High" })[p],
11030
+ * }}
11031
+ * />
11032
+ */
11033
+ declare function MosaicArtifactChecklist({ data, labels, className, ref, }: MosaicArtifactChecklistProps): React.JSX.Element;
11034
+ declare namespace MosaicArtifactChecklist {
11035
+ var displayName: string;
11036
+ }
11037
+
11038
+ /**
11039
+ * MosaicArtifactLibrary — org-scoped list/search of saved artifacts, opening
11040
+ * a selected one through the C1 adapter (MosaicArtifactCanvasAdapter) + C2
11041
+ * renderers.
11042
+ *
11043
+ * Reuse: composed from the closest any-debate-ai pattern —
11044
+ * components/artifacts/organization/ArtifactLibrary.tsx (search + type
11045
+ * filter + grid/list of saved artifacts) — stripped of its bulk-actions,
11046
+ * folders/tags organizer (`artifactOrganizer`), framer-motion, and shadcn/ui
11047
+ * deps to keep this a pure, contract-agnostic list component per the C1
11048
+ * adapter's own doctrine. Persistence, org-scoping, and folders/tags are the
11049
+ * host's concern: this component accepts a flat `items` array plus
11050
+ * `onSelect`/`source` props — no backend, no hardcoded business data.
11051
+ *
11052
+ * data-slot="artifact-library" on the root, "artifact-library-search" on
11053
+ * the search input, "artifact-library-list" on the item list,
11054
+ * "artifact-library-item" per item, "artifact-library-canvas" on the
11055
+ * forwarded MosaicArtifactCanvasAdapter.
11056
+ *
11057
+ * i18n: zero hardcoded user-facing strings (mosaic-blocks doctrine — see
11058
+ * src/__tests__/i18n-no-hardcoded-literals.test.ts). Every label is a
11059
+ * required prop; the host owns the language.
11060
+ */
11061
+
11062
+ interface MosaicArtifactLibraryItem {
11063
+ id: string;
11064
+ type: ArtifactType;
11065
+ title: string;
11066
+ /** Host-formatted "last updated" string (locale/timezone owned by the host). */
11067
+ updatedAtLabel: string;
11068
+ }
11069
+ interface MosaicArtifactLibraryProps {
11070
+ /** Saved artifacts to list/search. Host-supplied — no backend, no org logic baked in. */
11071
+ items: MosaicArtifactLibraryItem[];
11072
+ selectedId: string | null;
11073
+ onSelect: (id: string) => void;
11074
+ /** Runtime source for the currently selected artifact; `null` renders the adapter's empty state. */
11075
+ source: ArtifactCanvasSource | null;
11076
+ isCanvasOpen: boolean;
11077
+ onToggleCanvas: () => void;
11078
+ onCloseCanvas: () => void;
11079
+ /** Section heading. Required, no default. */
11080
+ title: string;
11081
+ /** Search input placeholder. Required, no default. */
11082
+ searchPlaceholder: string;
11083
+ /**
11084
+ * Accessible name for the search input. Required, no default — the
11085
+ * placeholder alone is never a substitute for an accessible name (it
11086
+ * disappears once a value is typed and is not reliably exposed by every
11087
+ * assistive technology), so this prop is mandatory and applied verbatim
11088
+ * via aria-label.
11089
+ */
11090
+ searchAriaLabel: string;
11091
+ /** Message shown when the filtered item list is empty. Required, no default. */
11092
+ emptyMessage: string;
11093
+ /** Localizes an item's type badge. Required, no default. */
11094
+ typeLabel: (type: ArtifactType) => string;
11095
+ /** Formats the visible item count, e.g. (n) => `${n} artifacts`. Required, no default. */
11096
+ countLabel: (n: number) => string;
11097
+ /** Forwarded verbatim to MosaicArtifactCanvasAdapter. */
11098
+ adapterLabels: MosaicArtifactCanvasAdapterLabels;
11099
+ className?: string;
11100
+ }
11101
+ declare function MosaicArtifactLibrary({ items, selectedId, onSelect, source, isCanvasOpen, onToggleCanvas, onCloseCanvas, title, searchPlaceholder, searchAriaLabel, emptyMessage, typeLabel, countLabel, adapterLabels, className, }: MosaicArtifactLibraryProps): React.JSX.Element;
11102
+ declare namespace MosaicArtifactLibrary {
11103
+ var displayName: string;
11104
+ }
11105
+
11106
+ /**
11107
+ * MosaicArtifactSaveAsMemoryForm — presentational "capitalise this artifact
11108
+ * into memory" form: the artifact → memory bridge, sibling of
11109
+ * MosaicSaveChatAsMemoryForm (chat → memory) in the same product family.
11110
+ *
11111
+ * Reuse: composed from the closest any-debate-ai pattern —
11112
+ * components/artifacts/save-artifact-as-memory-form.tsx — stripped of its
11113
+ * AdaptiveModal wrapper (host owns the shell/overlay), shadcn/ui deps,
11114
+ * mock-AI-extracted-learnings array, and hardcoded userRole-gated scope
11115
+ * options, to keep this a pure, contract-agnostic form component: prop-
11116
+ * driven, no backend, no hardcoded business data, same doctrine as
11117
+ * MosaicSaveChatAsMemoryForm / MosaicAddMemoryForm.
11118
+ *
11119
+ * Presentational atom composed from existing mosaic-blocks primitives:
11120
+ * MosaicInput + MosaicTagInput. This component never invents a new form
11121
+ * field or tag chip — it assembles the ones the library already ships.
11122
+ *
11123
+ * Zero extraction, zero I/O: the component does NOT read the artifact, does
11124
+ * NOT summarize it and does NOT decide what is worth remembering — it
11125
+ * renders whatever the host already extracted as fully controlled
11126
+ * `learnings`/`title`/`tags`/`scope` values, and routes save/cancel through
11127
+ * host callbacks. No network call of any kind lives in this component.
11128
+ *
11129
+ * Fully controlled: `title`/`learnings`/`scope`/`tags` are single-source-
11130
+ * of-truth values supplied by the host, every change is reported via a
11131
+ * callback. The component keeps no internal form state.
11132
+ *
11133
+ * Validation belongs to the host (SIN-01 + doctrine "the host decides"):
11134
+ * `canSave` is a host-computed boolean gating the save button, and
11135
+ * `titleError` is a host-computed string — this component only *displays*
11136
+ * an error, it never decides whether one exists. When an error string is
11137
+ * supplied, the title field gets `aria-invalid="true"` and
11138
+ * `aria-describedby` pointing at the rendered error text; the field is
11139
+ * `aria-invalid="false"` otherwise, so the absence of an error is never
11140
+ * ambiguous.
11141
+ *
11142
+ * Memory scope is a host-supplied `scopeOptions` list (e.g. gated by the
11143
+ * host's own role/permission model) — this component never hardcodes
11144
+ * "admin"/"member" or any org-scoped business rule; it renders whatever
11145
+ * options the host passes.
11146
+ *
11147
+ * isSaving sets `aria-busy="true"` on the save button and disables both
11148
+ * actions — a save-in-progress is announced, never silent.
11149
+ *
11150
+ * data-slot="artifact-save-as-memory-form" on the form root.
11151
+ * Bilingual: every user-facing string (labels/placeholders/errors/button
11152
+ * labels/type labels) is a required host-supplied prop — zero hardcoded
11153
+ * copy, zero default (SIN-01).
11154
+ *
11155
+ * No "use client" in source — prepend-use-client.mjs adds it to dist.
11156
+ * Design tokens: --border, --destructive, --foreground, --muted-foreground,
11157
+ * --secondary, --secondary-foreground.
11158
+ *
11159
+ * @example
11160
+ * <MosaicArtifactSaveAsMemoryForm
11161
+ * artifact={artifact}
11162
+ * typeLabel={(type) => typeLabels[type]}
11163
+ * title={title}
11164
+ * onTitleChange={setTitle}
11165
+ * titleLabel="Memory Title"
11166
+ * titleError={titleError}
11167
+ * learnings={learnings}
11168
+ * onEditLearning={(i, value) => editLearning(i, value)}
11169
+ * onRemoveLearning={(i) => removeLearning(i)}
11170
+ * learningsLabel="AI-Extracted Learnings"
11171
+ * editLearningAriaLabel={(i) => `Edit learning ${i + 1}`}
11172
+ * removeLearningAriaLabel={(i) => `Remove learning ${i + 1}`}
11173
+ * scope={scope}
11174
+ * onScopeChange={setScope}
11175
+ * scopeLabel="Memory Scope"
11176
+ * scopeOptions={scopeOptions}
11177
+ * tags={tags}
11178
+ * onAddTag={(t) => setTags((prev) => [...prev, t])}
11179
+ * onRemoveTag={(t) => setTags((prev) => prev.filter((x) => x !== t))}
11180
+ * tagsLabel="Tags"
11181
+ * tagInputPlaceholder="Add a tag…"
11182
+ * removeTagAriaLabel={(t) => `Remove ${t}`}
11183
+ * isSaving={isSaving}
11184
+ * canSave={canSave}
11185
+ * onSave={handleSave}
11186
+ * onCancel={() => setOpen(false)}
11187
+ * saveLabel="Save to Memory"
11188
+ * savingLabel="Saving…"
11189
+ * cancelLabel="Cancel"
11190
+ * />
11191
+ */
11192
+ type MosaicArtifactSaveAsMemoryArtifactType = "document" | "data-table" | "checklist" | "chart";
11193
+ interface MosaicArtifactSaveAsMemoryArtifact {
11194
+ id: string;
11195
+ type: MosaicArtifactSaveAsMemoryArtifactType;
11196
+ title: string;
11197
+ content: string;
11198
+ preview?: string;
11199
+ }
11200
+ interface MosaicArtifactSaveAsMemoryScopeOption {
11201
+ value: string;
11202
+ label: string;
11203
+ }
11204
+ interface MosaicArtifactSaveAsMemoryFormProps {
11205
+ /** The artifact being capitalised into memory — host-supplied, read-only preview. */
11206
+ artifact: MosaicArtifactSaveAsMemoryArtifact;
11207
+ /** Localizes the artifact type badge. Required, no default. */
11208
+ typeLabel: (type: MosaicArtifactSaveAsMemoryArtifactType) => string;
11209
+ /** Current memory title value — controlled. */
11210
+ title: string;
11211
+ /** Called on every keystroke in the title field. */
11212
+ onTitleChange: (value: string) => void;
11213
+ /** Label for the title field. Required, no default. */
11214
+ titleLabel: string;
11215
+ /** Placeholder for the title field. */
11216
+ titlePlaceholder?: string;
11217
+ /** Host-computed validation message for the title field, or absent when valid. */
11218
+ titleError?: string;
11219
+ /**
11220
+ * Host-supplied, pre-extracted learnings — controlled. This component
11221
+ * never extracts or generates learnings; the host (or its own AI
11222
+ * extraction pipeline) is the sole source of this list.
11223
+ */
11224
+ learnings: string[];
11225
+ /** Called when the host user edits a learning at the given index. */
11226
+ onEditLearning: (index: number) => void;
11227
+ /** Called when the host user removes a learning at the given index. */
11228
+ onRemoveLearning: (index: number) => void;
11229
+ /** Label for the learnings section. Required, no default. */
11230
+ learningsLabel: string;
11231
+ /** Optional helper text under the learnings label. */
11232
+ learningsDescription?: string;
11233
+ /** Per-learning accessible name for the edit button. Required, no default. */
11234
+ editLearningAriaLabel: (index: number) => string;
11235
+ /** Per-learning accessible name for the remove button. Required, no default. */
11236
+ removeLearningAriaLabel: (index: number) => string;
11237
+ /** Current memory scope value — controlled. */
11238
+ scope: string;
11239
+ /** Called when the host user changes the memory scope. */
11240
+ onScopeChange: (value: string) => void;
11241
+ /** Label for the scope selector. Required, no default. */
11242
+ scopeLabel: string;
11243
+ /**
11244
+ * Host-supplied scope options (e.g. gated by the host's own role/
11245
+ * permission model). This component never hardcodes which scopes are
11246
+ * available — it renders exactly the options the host passes.
11247
+ */
11248
+ scopeOptions: MosaicArtifactSaveAsMemoryScopeOption[];
11249
+ /** Current tag list — controlled, single source of truth owned by the host. */
11250
+ tags: string[];
11251
+ /** Called when a tag should be added. */
11252
+ onAddTag: (tag: string) => void;
11253
+ /** Called when a tag should be removed. */
11254
+ onRemoveTag: (tag: string) => void;
11255
+ /** Label for the tags field. Required, no default. */
11256
+ tagsLabel: string;
11257
+ /** Placeholder for the tag input. Required, no default. */
11258
+ tagInputPlaceholder: string;
11259
+ /** Per-tag accessible name for the remove button. Required, no default. */
11260
+ removeTagAriaLabel: (tag: string) => string;
11261
+ /** Optional host-supplied suggested tags. */
11262
+ suggestedTags?: string[];
11263
+ /** Optional maximum number of tags. */
11264
+ maxTags?: number;
11265
+ /** True while a save request is in flight — announced via aria-busy, disables both actions. */
11266
+ isSaving: boolean;
11267
+ /**
11268
+ * Host-computed form validity gating the save button. This component
11269
+ * never decides validation itself — it only reflects the host's verdict.
11270
+ */
11271
+ canSave: boolean;
11272
+ /** Called when the host user saves the form. */
11273
+ onSave: () => void;
11274
+ /** Called when the host user clicks Cancel. */
11275
+ onCancel: () => void;
11276
+ /** Label for the save button while idle. Required, no default. */
11277
+ saveLabel: string;
11278
+ /** Label for the save button while isSaving=true. Required, no default. */
11279
+ savingLabel: string;
11280
+ /** Label for the cancel button. Required, no default. */
11281
+ cancelLabel: string;
11282
+ /** Additional Tailwind classes on the form root. */
11283
+ className?: string;
11284
+ }
11285
+ /**
11286
+ * MosaicArtifactSaveAsMemoryForm — production "save this artifact as a
11287
+ * memory" form for @vantageos/mosaic-blocks.
11288
+ *
11289
+ * Purely presentational and fully controlled: composes MosaicInput +
11290
+ * MosaicTagInput. No network call, no extraction logic, no built-in
11291
+ * validation, no built-in copy.
11292
+ */
11293
+ declare function MosaicArtifactSaveAsMemoryForm({ artifact, typeLabel, title, onTitleChange, titleLabel, titlePlaceholder, titleError, learnings, onEditLearning, onRemoveLearning, learningsLabel, learningsDescription, editLearningAriaLabel, removeLearningAriaLabel, scope, onScopeChange, scopeLabel, scopeOptions, tags, onAddTag, onRemoveTag, tagsLabel, tagInputPlaceholder, removeTagAriaLabel, suggestedTags, maxTags, isSaving, canSave, onSave, onCancel, saveLabel, savingLabel, cancelLabel, className, }: MosaicArtifactSaveAsMemoryFormProps): React.JSX.Element;
11294
+ declare namespace MosaicArtifactSaveAsMemoryForm {
11295
+ var displayName: string;
11296
+ }
11297
+
11298
+ /**
11299
+ * artifactSaveAsMemoryFormVariants — pure CVA variant functions for
11300
+ * MosaicArtifactSaveAsMemoryForm.
11301
+ *
11302
+ * Isolated in their own module so they can be re-exported from the
11303
+ * `@vantageos/mosaic-blocks/server` subpath without pulling in React.
11304
+ *
11305
+ * Zero browser / React runtime dependencies — safe in RSC / Node.js.
11306
+ */
11307
+ /** Form vertical layout. */
11308
+ declare const artifactSaveAsMemoryFormRootVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
11309
+ /** Artifact preview card. */
11310
+ declare const artifactSaveAsMemoryFormPreviewVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
11311
+ /** Field group (label + control + helper/error) vertical layout. */
11312
+ declare const artifactSaveAsMemoryFormFieldVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
11313
+ /** Field error text. */
11314
+ declare const artifactSaveAsMemoryFormErrorVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
11315
+ /** Learning row (extracted insight + edit/remove actions). */
11316
+ declare const artifactSaveAsMemoryFormLearningVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
11317
+ /** Footer action row. */
11318
+ declare const artifactSaveAsMemoryFormFooterVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
11319
+ /** Save / cancel button variants by intent. */
11320
+ declare const artifactSaveAsMemoryFormButtonVariants: (props?: ({
11321
+ intent?: "ghost" | "cancel" | "save" | null | undefined;
11322
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
11323
+
11324
+ interface MosaicArtifactVersionHistoryVersion {
11325
+ id: string;
11326
+ /** Host-formatted version marker, e.g. "v3". */
11327
+ versionLabel: string;
11328
+ /** Host-formatted author name. */
11329
+ authorLabel: string;
11330
+ /** Host-formatted relative/absolute timestamp, e.g. "2 days ago". */
11331
+ timestampLabel: string;
11332
+ /** Host-formatted change-type badge text, e.g. "Edited". */
11333
+ changeTypeLabel: string;
11334
+ /** Optional host-formatted change description/commit message. */
11335
+ descriptionLabel?: string;
11336
+ /** True for the version that is currently live — hides the restore action. */
11337
+ isCurrent: boolean;
11338
+ }
11339
+ interface MosaicArtifactVersionHistoryBaseProps {
11340
+ /** Versions to render, host-ordered (newest-first is the caller's choice). */
11341
+ versions: MosaicArtifactVersionHistoryVersion[];
11342
+ selectedId: string | null;
11343
+ onSelectVersion: (id: string) => void;
11344
+ /** Section heading. Required, no default. */
11345
+ title: string;
11346
+ /** Message shown when there are no versions. Required, no default. */
11347
+ emptyMessage: string;
11348
+ /** Badge text for the current/latest version. Required, no default. */
11349
+ currentLabel: string;
11350
+ /** Accessible name for a version's select button. Required, no default. */
11351
+ selectAriaLabel: (version: MosaicArtifactVersionHistoryVersion) => string;
11352
+ className?: string;
11353
+ }
11354
+ /**
11355
+ * Discriminated union on `onRestoreVersion` — the restore control only ever
11356
+ * renders on the branch where a restore handler is supplied, so its label +
11357
+ * accessible-name formatter are required EXACTLY there, never on the
11358
+ * read-only branch. Requiring them unconditionally would force every
11359
+ * read-only host to supply values the component never displays (the "lying
11360
+ * prop contract" this retrofit closes — see the `no-lying-prop-contract`
11361
+ * guard and the `MosaicMemoryCardVariantProps` precedent in
11362
+ * `memory-card/MosaicMemoryCard.tsx`).
11363
+ */
11364
+ type MosaicArtifactVersionHistoryRestoreProps = {
11365
+ /** Restores a version. */
11366
+ onRestoreVersion: (id: string) => void;
11367
+ /** Restore button visible text. Required — the control renders whenever `onRestoreVersion` is provided. */
11368
+ restoreLabel: string;
11369
+ /**
11370
+ * Accessible name for a version's restore button, DISTINCT per
11371
+ * version — a bare icon/shared label is never a substitute for an
11372
+ * accessible name distinguishing which version is restored (see the
11373
+ * C3 library's searchAriaLabel lesson). Required — the control
11374
+ * renders whenever `onRestoreVersion` is provided.
11375
+ */
11376
+ restoreAriaLabel: (version: MosaicArtifactVersionHistoryVersion) => string;
11377
+ } | {
11378
+ /** Omit to render a read-only history — no restore control at all. */
11379
+ onRestoreVersion?: undefined;
11380
+ };
11381
+ type MosaicArtifactVersionHistoryProps = MosaicArtifactVersionHistoryBaseProps & MosaicArtifactVersionHistoryRestoreProps;
11382
+ declare function MosaicArtifactVersionHistory(props: MosaicArtifactVersionHistoryProps): React.JSX.Element;
11383
+ declare namespace MosaicArtifactVersionHistory {
11384
+ var displayName: string;
11385
+ }
11386
+
11387
+ /**
11388
+ * MosaicOrgContextDisplay — active organization (cloisonnement) indicator +
11389
+ * switcher, EveVantage M3 C6.
11390
+ *
11391
+ * Reuse: ported from any-debate-ai —
11392
+ * components/organization/org-context-display.tsx — stripped of its
11393
+ * `mockOrgContext` fixture, `useDevice` project-local import path, and
11394
+ * shadcn/ui `Button`. The role badge is reused from this repo's own
11395
+ * `MosaicOrgRoleBadge` (`org-panel/MosaicOrgPanel.tsx`) rather than a second
11396
+ * port of `role-badge.tsx` — the component already ships here.
11397
+ *
11398
+ * The panel is a pure, prop-driven display: the host supplies the active
11399
+ * organization state (`org`) plus, when the host allows switching, an
11400
+ * `onSwitchOrg` handler. There is no backend, no fetch, no hardcoded org
11401
+ * data — the host owns fetching the org, computing membership, and driving
11402
+ * the switch flow (dialog, route change, etc.) from `onSwitchOrg`.
11403
+ *
11404
+ * The role badge and member-count caption are hidden below the `md`
11405
+ * breakpoint via Tailwind (`hidden md:...`), never via a `useDevice()`
11406
+ * JS branch — this repo's device hooks resolve via `matchMedia`, which the
11407
+ * jsdom test environment always reports as non-matching, so a JS-branched
11408
+ * "desktop-only" element would be permanently hidden under test.
11409
+ *
11410
+ * data-slot="org-context-display" on the root.
11411
+ *
11412
+ * i18n: zero hardcoded user-facing strings (mosaic-blocks doctrine — see
11413
+ * src/__tests__/i18n-no-hardcoded-literals.test.ts). Every label is a
11414
+ * required prop; the host owns the language.
11415
+ */
11416
+
11417
+ interface MosaicOrgContextInfo {
11418
+ id: string;
11419
+ name: string;
11420
+ avatarUrl?: string;
11421
+ memberCount: number;
11422
+ role: MosaicOrgRole;
11423
+ }
11424
+ interface MosaicOrgContextDisplayBaseProps {
11425
+ /** The currently active organization (the cloisonnement/partitioning state this display reflects). */
11426
+ org: MosaicOrgContextInfo;
11427
+ /** Host-owned display label for `org.role` (e.g. "Admin" / "Administrateur"). Required, no default. */
11428
+ roleLabel: string;
11429
+ /** Host-owned description rendered as the role badge's `title` tooltip. Required, no default. */
11430
+ roleDescription: string;
11431
+ /** Host-formatted member-count caption, e.g. `(count) => `${count} members`` or a pluralized `t()` call. Required, no default. */
11432
+ memberCountLabel: (count: number) => React.ReactNode;
11433
+ className?: string;
11434
+ }
11435
+ /**
11436
+ * Discriminated union on `onSwitchOrg` — the switch control only ever
11437
+ * renders on the branch where a switch handler is supplied, so its
11438
+ * accessible-name prop is required EXACTLY there, never on the read-only
11439
+ * branch. See `MosaicArtifactVersionHistoryRestoreProps` (C6 retrofit) and
11440
+ * `MosaicMemoryCardVariantProps` for the same repo-wide pattern.
11441
+ */
11442
+ type MosaicOrgContextDisplaySwitchProps = {
11443
+ /** Invoked when the host should present the org-switch UI. */
11444
+ onSwitchOrg: () => void;
11445
+ /**
11446
+ * Accessible name for the switch control, reflecting the currently
11447
+ * active org (e.g. `Switch organization, current: ${org.name}`).
11448
+ * Required — the control renders whenever `onSwitchOrg` is provided.
11449
+ */
11450
+ switchAriaLabel: string;
11451
+ } | {
11452
+ /** Omit to render a read-only display — no switch control at all. */
11453
+ onSwitchOrg?: undefined;
11454
+ };
11455
+ type MosaicOrgContextDisplayProps = MosaicOrgContextDisplayBaseProps & MosaicOrgContextDisplaySwitchProps;
11456
+ declare function MosaicOrgContextDisplay(props: MosaicOrgContextDisplayProps): React.JSX.Element;
11457
+ declare namespace MosaicOrgContextDisplay {
11458
+ var displayName: string;
11459
+ }
11460
+
11461
+ /**
11462
+ * MosaicAdminOnlyGuard — permission gate that renders `children` for admins,
11463
+ * an access-denied card for non-admins, and a loading fallback while
11464
+ * permissions resolve, EveVantage M3 C7.
11465
+ *
11466
+ * Reuse: ported from any-debate-ai —
11467
+ * components/organization/admin-only-guard.tsx — stripped of its
11468
+ * `next/navigation` `useRouter`, its mock `useOrganizationContext` Clerk
11469
+ * fixture, its `useDevice()` JS branch, and its shadcn/ui `Button` / `lucide-react`
11470
+ * icon imports. Button primitive reused from this repo's own `MosaicButton`
11471
+ * (`src/components/button/Button.tsx`) rather than a fresh port.
11472
+ *
11473
+ * The gate is a pure, prop-driven display: the host supplies `isAdmin` and
11474
+ * `isLoaded` (from wherever it resolves organization membership) and, when it
11475
+ * wants an exit affordance on the denied state, an `onExit` handler. There is
11476
+ * no backend, no fetch, no router — the host owns navigation from `onExit`.
11477
+ *
11478
+ * Responsive sizing (icon dimensions) is done via Tailwind breakpoints
11479
+ * (`size-16 md:size-20`), never via a `useDevice()` JS branch — see
11480
+ * `MosaicOrgContextDisplay` for the rationale (jsdom's `matchMedia` always
11481
+ * reports non-matching, so a JS-branched "desktop-only" size is permanently
11482
+ * wrong under test).
11483
+ *
11484
+ * data-slot="admin-only-guard" on the denied-state root.
11485
+ *
11486
+ * i18n: zero hardcoded user-facing strings (mosaic-blocks doctrine — see
11487
+ * src/__tests__/i18n-no-hardcoded-literals.test.ts). Every label is a
11488
+ * required prop; the host owns the language.
11489
+ */
11490
+
11491
+ interface MosaicAdminOnlyGuardBaseProps {
11492
+ /** Content rendered only when `isAdmin` is true. */
11493
+ children: React.ReactNode;
11494
+ /** Whether the current user holds the admin role. */
11495
+ isAdmin: boolean;
11496
+ /** Whether permission resolution has completed. `false` renders `loadingFallback`. */
11497
+ isLoaded: boolean;
11498
+ /** Host-owned title for the access-denied card (e.g. "Admin Access Required"). Required, no default. */
11499
+ title: string;
11500
+ /** Host-owned description for the access-denied card. Required, no default. */
11501
+ description: string;
11502
+ /** Host-owned label for the required-role badge (e.g. "Required role: Admin"). Required, no default. */
11503
+ requiredRoleLabel: string;
11504
+ /** Rendered while `isLoaded` is false. Defaults to a minimal spinner div. */
11505
+ loadingFallback?: React.ReactNode;
11506
+ className?: string;
11507
+ }
11508
+ /**
11509
+ * Discriminated union on `onExit` — the exit button only ever renders on
11510
+ * the branch where an exit handler is supplied, so its accessible-name
11511
+ * props are required EXACTLY there, never on the branch without a handler.
11512
+ * See `MosaicOrgContextDisplaySwitchProps` for the same repo-wide pattern.
11513
+ */
11514
+ type MosaicAdminOnlyGuardExitProps = {
11515
+ /** Invoked only by the exit button's click on the denied state. Never called automatically — not on mount, not when permissions finish loading; the host owns navigation. */
11516
+ onExit: () => void;
11517
+ /** Visible label on the exit button (e.g. "Back to Dashboard"). Required — the button renders whenever `onExit` is provided. */
11518
+ exitLabel: string;
11519
+ /** Accessible name for the exit button. Required — the button renders whenever `onExit` is provided. */
11520
+ exitAriaLabel: string;
11521
+ } | {
11522
+ /** Omit to render the denied card with no exit button. */
11523
+ onExit?: undefined;
11524
+ };
11525
+ type MosaicAdminOnlyGuardProps = MosaicAdminOnlyGuardBaseProps & MosaicAdminOnlyGuardExitProps;
11526
+ declare function MosaicAdminOnlyGuard(props: MosaicAdminOnlyGuardProps): React.JSX.Element;
11527
+ declare namespace MosaicAdminOnlyGuard {
11528
+ var displayName: string;
11529
+ }
11530
+
11531
+ /**
11532
+ * The tabs of a document-review panel, named by ROLE (never by a business noun).
11533
+ *
11534
+ * - "compare" document and fields side by side — the INITIAL tab.
11535
+ * - "document" the document alone.
11536
+ * - "row" the row's fields alone.
11537
+ */
11538
+ type ReviewPanelTab = "compare" | "document" | "row";
11539
+ declare const REVIEW_PANEL_TABS: readonly ReviewPanelTab[];
11540
+ /** A panel opens on Compare: reading the document and editing the fields at once is the point. */
11541
+ declare const INITIAL_REVIEW_PANEL_TAB: ReviewPanelTab;
11542
+
11543
+ type NavDirection = "prev" | "next";
11544
+ declare function isEditableTarget(target: EventTarget | null): boolean;
11545
+ /** Neighbour row id, or null at either end or when the current id is not listed. */
11546
+ declare function neighbourRowId(orderedRowIds: readonly string[], currentRowId: string, direction: NavDirection): string | null;
11547
+
11548
+ /**
11549
+ * Generic column model. Ships no field name and no label of its own: ids, labels
11550
+ * and accessors all come from the host.
11551
+ */
11552
+ type FieldValue = string | number | boolean | null;
11553
+ interface ReviewColumn<T> {
11554
+ /** Stable column id. */
11555
+ id: string;
11556
+ /** Host-supplied label (the host owns the language). */
11557
+ label: string;
11558
+ /** Whether the column is shown before the user changes anything. */
11559
+ defaultVisible: boolean;
11560
+ /** Reads this column's value from a row. */
11561
+ accessor: (row: T) => FieldValue;
11562
+ /** False for derived columns that must never be typed by hand. Defaults to true. */
11563
+ editable?: boolean;
11564
+ }
11565
+ /** Explicit visibility per column id; an absent id falls back to `defaultVisible`. */
11566
+ type ColumnVisibility = Readonly<Record<string, boolean>>;
11567
+ declare function initialColumnVisibility<T>(columns: readonly ReviewColumn<T>[]): ColumnVisibility;
11568
+ declare function toggleColumnVisibility<T>(columns: readonly ReviewColumn<T>[], visibility: ColumnVisibility, id: string): ColumnVisibility;
11569
+ /** Columns to show, in column order. An unknown id in `visibility` throws, naming it. */
11570
+ declare function visibleColumns<T>(columns: readonly ReviewColumn<T>[], visibility: ColumnVisibility): ReviewColumn<T>[];
11571
+
11572
+ /**
11573
+ * The write path of a field correction: validate, write, and on failure hand back
11574
+ * the row from BEFORE.
11575
+ *
11576
+ * A failed write must never leave the screen showing a value the store does not
11577
+ * hold. The function is pure with respect to its input: it never mutates the row,
11578
+ * it returns a new one, so the caller replaces what it displays with what comes
11579
+ * back and has no decision to take.
11580
+ *
11581
+ * Provenance: the ORIGINAL value is kept (the first one, across successive
11582
+ * corrections), next to the corrected value, who made it, when, and the host's
11583
+ * provenance tag.
11584
+ */
11585
+
11586
+ interface CorrectionRecord {
11587
+ original: FieldValue;
11588
+ corrected: FieldValue;
11589
+ by: string;
11590
+ /** ISO-8601 instant. */
11591
+ at: string;
11592
+ provenance: string;
11593
+ }
11594
+ interface ReviewRow {
11595
+ id: string;
11596
+ values: Readonly<Record<string, FieldValue>>;
11597
+ corrections?: Readonly<Record<string, CorrectionRecord>>;
11598
+ }
11599
+ /** What the correction UI hands to the host, and what the host passes on to the writer. */
11600
+ interface FieldCorrectionRequest {
11601
+ rowId: string;
11602
+ field: string;
11603
+ /** The user's raw input. */
11604
+ input: string;
11605
+ by: string;
11606
+ provenance: string;
11607
+ }
11608
+ /**
11609
+ * `value` is the value as the store re-read it. It is OPTIONAL on purpose: a store
11610
+ * that does not echo it yields an unconfirmed result, never a silent success.
11611
+ * Presence is what counts (`"value" in response`): `null` confirms an erasure.
11612
+ */
11613
+ type FieldWriteResponse = {
11614
+ ok: true;
11615
+ value?: FieldValue;
11616
+ } | {
11617
+ ok: false;
11618
+ message: string;
11619
+ };
11620
+ type FieldValidation = {
11621
+ ok: true;
11622
+ value: FieldValue;
11623
+ } | {
11624
+ ok: false;
11625
+ message: string;
11626
+ };
11627
+ type FieldValidator = (field: string, input: string, row: ReviewRow) => FieldValidation;
11628
+ interface ApplyFieldCorrectionArgs extends Omit<FieldCorrectionRequest, "rowId"> {
11629
+ row: ReviewRow;
11630
+ write: (request: FieldCorrectionRequest) => Promise<FieldWriteResponse>;
11631
+ /** Defaults to accepting the raw input as the value. */
11632
+ validate?: FieldValidator;
11633
+ /** Injectable clock, ISO-8601. Defaults to the current instant. */
11634
+ now?: () => string;
11635
+ }
11636
+ type FieldCorrectionResult = {
11637
+ ok: true;
11638
+ row: ReviewRow;
11639
+ confirmed: boolean;
11640
+ } | {
11641
+ ok: false;
11642
+ row: ReviewRow;
11643
+ message: string;
11644
+ };
11645
+ declare function applyFieldCorrection(args: ApplyFieldCorrectionArgs): Promise<FieldCorrectionResult>;
11646
+ /** Three outcomes, never two: "uncertain" is a write that succeeded but was not read back. */
11647
+ declare function correctionOutcome(result: FieldCorrectionResult): "ok" | "uncertain" | "failed";
11648
+
11649
+ interface MosaicDocumentTableRowContext {
11650
+ rowId: string;
11651
+ /** Row ids in display order — what prev/next navigation walks. */
11652
+ orderedRowIds: string[];
11653
+ /** Select another row (the panel stays open on it). */
11654
+ selectRow: (rowId: string) => void;
11655
+ /** Close the panel. */
11656
+ closeRow: () => void;
11657
+ }
11658
+ interface MosaicDocumentTableProps<T> {
11659
+ columns: ReviewColumn<T>[];
11660
+ rows: T[];
11661
+ getRowId: (row: T) => string;
11662
+ /** Overrides the model's `defaultVisible` per column id. */
11663
+ columnVisibility?: ColumnVisibility;
11664
+ /** Controlled selection. Omit for internal state. */
11665
+ selectedRowId?: string | null;
11666
+ onSelectedRowChange?: (rowId: string | null) => void;
11667
+ /** Rendered for the selected row. */
11668
+ renderPanel?: (row: T, context: MosaicDocumentTableRowContext) => React.ReactNode;
11669
+ /** Required — the host owns the language. */
11670
+ emptyMessage: string;
11671
+ className?: string;
11672
+ }
11673
+ declare function MosaicDocumentTable<T>({ columns, rows, getRowId, columnVisibility, selectedRowId: controlledSelectedRowId, onSelectedRowChange, renderPanel, emptyMessage, className, }: MosaicDocumentTableProps<T>): React.JSX.Element;
11674
+ declare namespace MosaicDocumentTable {
11675
+ var displayName: string;
11676
+ }
11677
+
11678
+ interface MosaicDocumentCriteriaPanelLabels {
11679
+ tabCompare: string;
11680
+ tabDocument: string;
11681
+ tabRow: string;
11682
+ previous: string;
11683
+ next: string;
11684
+ documentLoading: string;
11685
+ documentError: string;
11686
+ collapse: string;
11687
+ resize: string;
11688
+ /** Accessible name of a field's editor, from its column label. */
11689
+ editField: (columnLabel: string) => string;
11690
+ }
11691
+ interface MosaicDocumentCriteriaPanelProps<T> {
11692
+ row: T;
11693
+ rowId: string;
11694
+ /** The column model; the fields shown are its visible columns. */
11695
+ columns: ReviewColumn<T>[];
11696
+ /** Overrides the model's `defaultVisible` per column id. */
11697
+ columnVisibility?: ColumnVisibility;
11698
+ documentUrl: string;
11699
+ /** Row ids in display order. */
11700
+ orderedRowIds: readonly string[];
11701
+ onNavigate: (rowId: string) => void;
11702
+ /** Receives the correction request, with actor and provenance. */
11703
+ onCorrect: (request: FieldCorrectionRequest) => unknown;
11704
+ /** Who is correcting. */
11705
+ actor: string;
11706
+ /** Provenance tag recorded with every correction made from this panel. */
11707
+ correctionProvenance: string;
11708
+ /** Provenance label shown next to a field (source name, corrected by…), or null for none. */
11709
+ provenanceLabel: (row: T, column: ReviewColumn<T>) => string | null;
11710
+ labels: MosaicDocumentCriteriaPanelLabels;
11711
+ /** Defaults to Compare. */
11712
+ defaultTab?: ReviewPanelTab;
11713
+ className?: string;
11714
+ }
11715
+ declare function MosaicDocumentCriteriaPanel<T>({ row, rowId, columns, columnVisibility, documentUrl, orderedRowIds, onNavigate, onCorrect, actor, correctionProvenance, provenanceLabel, labels, defaultTab, className, }: MosaicDocumentCriteriaPanelProps<T>): React.JSX.Element;
11716
+ declare namespace MosaicDocumentCriteriaPanel {
11717
+ var displayName: string;
11718
+ }
11719
+
11720
+ export { type AiSdkArtifactEntry, type AiSdkArtifactsSource, type ApplyFieldCorrectionArgs, type ArtifactCanvasSource, type ArtifactType, type Breakpoint, type ColumnVisibility, type CorrectionRecord, type DeviceContextValue, type Feature3ColItem, type FeatureItem, type FieldCorrectionRequest, type FieldCorrectionResult, type FieldValidation, type FieldValidator, type FieldValue, type FieldWriteResponse, type FooterColumn, type FooterLink, type HeroCta, INITIAL_REVIEW_PANEL_TAB, type LogoItem, type McpToolResult, type McpToolResultMeta, type McpUiSource, 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, MosaicAdminOnlyGuard, type MosaicAdminOnlyGuardBaseProps, type MosaicAdminOnlyGuardExitProps, type MosaicAdminOnlyGuardProps, 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, type MosaicAgentComposerDesktopProps, 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, MosaicArtifactCanvasAdapter, type MosaicArtifactCanvasAdapterLabels, type MosaicArtifactCanvasAdapterProps, MosaicArtifactChart, type MosaicArtifactChartConfig, type MosaicArtifactChartData, type MosaicArtifactChartLabels, type MosaicArtifactChartProps, type MosaicArtifactChartType, MosaicArtifactChecklist, type MosaicArtifactChecklistData, type MosaicArtifactChecklistItem, type MosaicArtifactChecklistLabels, type MosaicArtifactChecklistPriority, type MosaicArtifactChecklistProps, MosaicArtifactDataTable, type MosaicArtifactDataTableColumn, type MosaicArtifactDataTableData, type MosaicArtifactDataTableLabels, type MosaicArtifactDataTableProps, MosaicArtifactDocument, type MosaicArtifactDocumentData, type MosaicArtifactDocumentLabels, type MosaicArtifactDocumentProps, type MosaicArtifactDocumentSection, MosaicArtifactLibrary, type MosaicArtifactLibraryItem, type MosaicArtifactLibraryProps, type MosaicArtifactSaveAsMemoryArtifact, type MosaicArtifactSaveAsMemoryArtifactType, MosaicArtifactSaveAsMemoryForm, type MosaicArtifactSaveAsMemoryFormProps, type MosaicArtifactSaveAsMemoryScopeOption, MosaicArtifactVersionHistory, type MosaicArtifactVersionHistoryBaseProps, type MosaicArtifactVersionHistoryProps, type MosaicArtifactVersionHistoryRestoreProps, type MosaicArtifactVersionHistoryVersion, MosaicAvatar, type MosaicAvatarProps, MosaicBadge, type MosaicBadgeProps, MosaicBlurredOrb, type MosaicBlurredOrbProps, type MosaicBreadcrumb, MosaicButton, type MosaicButtonProps, MosaicCallout, type MosaicCalloutProps, 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, MosaicDocumentCriteriaPanel, type MosaicDocumentCriteriaPanelLabels, type MosaicDocumentCriteriaPanelProps, MosaicDocumentTable, type MosaicDocumentTableProps, type MosaicDocumentTableRowContext, MosaicDocumentUpload, type MosaicDocumentUploadFile, type MosaicDocumentUploadFileStatus, type MosaicDocumentUploadProps, MosaicDrawer, type MosaicDrawerProps, MosaicDropdownMenu, type MosaicDropdownMenuItem, type MosaicDropdownMenuProps, MosaicEditMemoryDialog, type MosaicEditMemoryDialogProps, MosaicEditSessionDialog, type MosaicEditSessionDialogProps, MosaicEditableCell, type MosaicEditableCellProps, 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, MosaicMatchInput, type MosaicMatchInputProps, type MosaicMatchInputState, type MosaicMatchInputStateLabels, 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, MosaicMentionInput, type MosaicMentionInputProps, type MosaicMessage, MosaicMessageCard, type MosaicMessageCardProps, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, type MosaicMessageListProps, type MosaicMessageReactions, MosaicMessageSearch, type MosaicMessageSearchProps, 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, MosaicOrgContextDisplay, type MosaicOrgContextDisplayBaseProps, type MosaicOrgContextDisplayProps, type MosaicOrgContextDisplaySwitchProps, type MosaicOrgContextInfo, 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, MosaicReplyInput, type MosaicReplyInputProps, MosaicResizableSplitPane, type MosaicResizableSplitPaneProps, MosaicSaveChatAsMemoryForm, type MosaicSaveChatAsMemoryFormProps, 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, MosaicSessionCard, type MosaicSessionCardInteractionProps, type MosaicSessionCardProps, type MosaicSessionCardVariantProps, type MosaicSessionData, MosaicSessionList, type MosaicSessionListLayout, type MosaicSessionListProps, type MosaicSessionStatus, 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, MosaicThreadIndicator, type MosaicThreadIndicatorProps, type MosaicThreadIndicatorReplyStatus, MosaicThreadView, type MosaicThreadViewMessage, type MosaicThreadViewProps, 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 NavDirection, type NavLink, type NormalizedArtifact, type OrbPosition, type Orientation, Placeholder, type PricingCta, REVIEW_PANEL_TABS, type ReviewColumn, type ReviewPanelTab, type ReviewRow, type SocialLink, type StatItem, type TestimonialItem, type Theme, addMemoryFormButtonVariants, addMemoryFormErrorVariants, addMemoryFormFieldVariants, addMemoryFormFooterVariants, addMemoryFormRootVariants, agentBuilderModalBackdropVariants, agentBuilderModalPopupVariants, agentChatRootVariants, agentEditorVariants, agentPreviewVariants, alertDialogContentVariants, alertDialogOverlayVariants, applyFieldCorrection, artifactSaveAsMemoryFormButtonVariants, artifactSaveAsMemoryFormErrorVariants, artifactSaveAsMemoryFormFieldVariants, artifactSaveAsMemoryFormFooterVariants, artifactSaveAsMemoryFormLearningVariants, artifactSaveAsMemoryFormPreviewVariants, artifactSaveAsMemoryFormRootVariants, badgeVariants, buttonVariants, calloutVariants, chatMessageBubbleVariants, chatMessageContainerVariants, chatMessageToolStatusVariants, chatSidebarThreadVariants, correctionOutcome, drawerBackdropVariants, drawerPopupVariants, editMemoryDialogBackdropVariants, editMemoryDialogErrorVariants, editMemoryDialogFieldVariants, editMemoryDialogPopupVariants, editSessionDialogBodyVariants, editSessionDialogButtonVariants, editSessionDialogErrorVariants, editSessionDialogFieldVariants, editSessionDialogFooterVariants, editableCellVariants, initialColumnVisibility, isEditableTarget, marketplaceCardVariants, matchStateVariants, memoryDashboardViewToggleButtonVariants, memoryGridVariants, memoryListItemVariants, memoryListVariants, memorySearchFilterChipVariants, mentionInputFieldVariants, mentionListItemVariants, mentionListVariants, neighbourRowId, normalizeArtifact, normalizeFromAiSdkArtifacts, normalizeFromMcpToolResult, pdfViewerFrameVariants, pdfViewerStatusVariants, pdfViewerToolbarButtonVariants, popoverPopupVariants, replyInputActionButtonVariants, replyInputContextVariants, replyInputRootVariants, replyInputTextareaVariants, saveChatAsMemoryFormButtonVariants, saveChatAsMemoryFormErrorVariants, saveChatAsMemoryFormFieldVariants, saveChatAsMemoryFormFooterVariants, saveChatAsMemoryFormRootVariants, saveTemplateModalBodyVariants, saveTemplateModalButtonVariants, saveTemplateModalErrorVariants, saveTemplateModalFieldVariants, saveTemplateModalFooterVariants, sessionCardVariants, sessionListItemVariants, sessionListVariants, skeletonVariants, splitPaneCollapseButtonVariants, splitPaneHandleVariants, splitPaneRootVariants, tagInputFieldVariants, tagInputRemoveButtonVariants, tagInputRootVariants, tagInputTagVariants, templateAgentCardBadgeVariants, templateAgentCardTagVariants, templateAgentCardVariants, templateCategoryChipVariants, templateListVariants, templateManagementRowVariants, threadIndicatorCountVariants, threadIndicatorRootVariants, threadViewEmptyVariants, threadViewRepliesVariants, threadViewReplyVariants, threadViewRootMessageVariants, threadViewRootVariants, toastCardVariants, toastDismissButtonVariants, toastProviderPositionVariants, toastTitleVariants, toggleColumnVisibility, toolToggleListRowVariants, toolToggleListSectionVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version, visibleColumns };