@vantageos/mosaic-blocks 0.1.0-alpha.1 → 0.2.0-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +110 -0
- package/README.md +466 -108
- package/dist/index.cjs +8376 -705
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2281 -40
- package/dist/index.d.ts +2281 -40
- package/dist/index.js +8308 -703
- package/dist/index.js.map +1 -1
- package/dist/styles.css +21 -0
- package/package.json +48 -5
- package/registry.json +536 -2
package/dist/index.d.cts
CHANGED
|
@@ -22,8 +22,10 @@ declare const buttonVariants: (props?: ({
|
|
|
22
22
|
variant?: "link" | "default" | "secondary" | "ghost" | "destructive" | "outline" | null | undefined;
|
|
23
23
|
size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
|
|
24
24
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
25
|
-
interface MosaicButtonProps extends Button.Props, VariantProps<typeof buttonVariants> {
|
|
25
|
+
interface MosaicButtonProps extends Omit<Button.Props, "ref">, VariantProps<typeof buttonVariants> {
|
|
26
26
|
className?: string;
|
|
27
|
+
/** ref is typed as HTMLElement to preserve the original public API surface */
|
|
28
|
+
ref?: React.Ref<HTMLElement>;
|
|
27
29
|
}
|
|
28
30
|
/**
|
|
29
31
|
* MosaicButton — production Button atom for @vantageos/mosaic-blocks.
|
|
@@ -35,7 +37,10 @@ interface MosaicButtonProps extends Button.Props, VariantProps<typeof buttonVari
|
|
|
35
37
|
* <MosaicButton variant="secondary" size="lg">Save</MosaicButton>
|
|
36
38
|
* <MosaicButton variant="destructive" disabled>Delete</MosaicButton>
|
|
37
39
|
*/
|
|
38
|
-
declare
|
|
40
|
+
declare function MosaicButton({ className, variant, size, ref, ...props }: MosaicButtonProps): React.JSX.Element;
|
|
41
|
+
declare namespace MosaicButton {
|
|
42
|
+
var displayName: string;
|
|
43
|
+
}
|
|
39
44
|
|
|
40
45
|
/**
|
|
41
46
|
* MosaicNavbar — scroll-aware fixed navbar
|
|
@@ -62,6 +67,7 @@ interface MosaicNavbarProps {
|
|
|
62
67
|
/** Optional CTA button */
|
|
63
68
|
cta?: NavCta;
|
|
64
69
|
className?: string;
|
|
70
|
+
ref?: React.Ref<HTMLElement>;
|
|
65
71
|
}
|
|
66
72
|
/**
|
|
67
73
|
* MosaicNavbar — fixed top navbar with scroll-aware hide-on-scroll-down and
|
|
@@ -74,7 +80,10 @@ interface MosaicNavbarProps {
|
|
|
74
80
|
* cta={{ label: "Get started", href: "#start" }}
|
|
75
81
|
* />
|
|
76
82
|
*/
|
|
77
|
-
declare
|
|
83
|
+
declare function MosaicNavbar({ logo, links, cta, className, ref }: MosaicNavbarProps): React.JSX.Element;
|
|
84
|
+
declare namespace MosaicNavbar {
|
|
85
|
+
var displayName: string;
|
|
86
|
+
}
|
|
78
87
|
|
|
79
88
|
/**
|
|
80
89
|
* MosaicHeroSplit — split hero section
|
|
@@ -103,6 +112,7 @@ interface MosaicHeroSplitProps {
|
|
|
103
112
|
/** Right-column media slot — accepts img, video, SVG, or any node */
|
|
104
113
|
media?: React.ReactNode;
|
|
105
114
|
className?: string;
|
|
115
|
+
ref?: React.Ref<HTMLElement>;
|
|
106
116
|
}
|
|
107
117
|
/**
|
|
108
118
|
* MosaicHeroSplit — two-column hero: copy on left, media on right.
|
|
@@ -117,7 +127,10 @@ interface MosaicHeroSplitProps {
|
|
|
117
127
|
* media={<img src="/hero.png" alt="Product screenshot" className="w-full rounded-2xl" />}
|
|
118
128
|
* />
|
|
119
129
|
*/
|
|
120
|
-
declare
|
|
130
|
+
declare function MosaicHeroSplit({ eyebrow, title, subtitle, cta, ctaSecondary, media, className, ref, }: MosaicHeroSplitProps): React.JSX.Element;
|
|
131
|
+
declare namespace MosaicHeroSplit {
|
|
132
|
+
var displayName: string;
|
|
133
|
+
}
|
|
121
134
|
|
|
122
135
|
/**
|
|
123
136
|
* MosaicFeatureCenteredMedia — centered feature section with media
|
|
@@ -142,6 +155,7 @@ interface MosaicFeatureCenteredMediaProps {
|
|
|
142
155
|
/** Media slot — centered below or beside the text */
|
|
143
156
|
media?: React.ReactNode;
|
|
144
157
|
className?: string;
|
|
158
|
+
ref?: React.Ref<HTMLElement>;
|
|
145
159
|
}
|
|
146
160
|
/**
|
|
147
161
|
* MosaicFeatureCenteredMedia — centered heading + body, optional feature grid,
|
|
@@ -155,7 +169,10 @@ interface MosaicFeatureCenteredMediaProps {
|
|
|
155
169
|
* media={<img src="/feature.png" alt="Feature screenshot" className="w-full rounded-2xl" />}
|
|
156
170
|
* />
|
|
157
171
|
*/
|
|
158
|
-
declare
|
|
172
|
+
declare function MosaicFeatureCenteredMedia({ title, body, features, media, className, ref, }: MosaicFeatureCenteredMediaProps): React.JSX.Element;
|
|
173
|
+
declare namespace MosaicFeatureCenteredMedia {
|
|
174
|
+
var displayName: string;
|
|
175
|
+
}
|
|
159
176
|
|
|
160
177
|
/**
|
|
161
178
|
* MosaicStatsGrid — statistics grid section
|
|
@@ -180,6 +197,7 @@ interface MosaicStatsGridProps {
|
|
|
180
197
|
/** Optional section subtext */
|
|
181
198
|
subtext?: React.ReactNode;
|
|
182
199
|
className?: string;
|
|
200
|
+
ref?: React.Ref<HTMLElement>;
|
|
183
201
|
}
|
|
184
202
|
/**
|
|
185
203
|
* MosaicStatsGrid — border-grid layout for 2–6 stats. Values are plain strings;
|
|
@@ -195,7 +213,10 @@ interface MosaicStatsGridProps {
|
|
|
195
213
|
* ]}
|
|
196
214
|
* />
|
|
197
215
|
*/
|
|
198
|
-
declare
|
|
216
|
+
declare function MosaicStatsGrid({ stats, heading, subtext, className, ref }: MosaicStatsGridProps): React.JSX.Element;
|
|
217
|
+
declare namespace MosaicStatsGrid {
|
|
218
|
+
var displayName: string;
|
|
219
|
+
}
|
|
199
220
|
|
|
200
221
|
/**
|
|
201
222
|
* MosaicPricingCard — single pricing tier card
|
|
@@ -222,6 +243,7 @@ interface MosaicPricingCardProps {
|
|
|
222
243
|
/** Highlighted tier — renders with accent border + tinted background */
|
|
223
244
|
highlighted?: boolean;
|
|
224
245
|
className?: string;
|
|
246
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
225
247
|
}
|
|
226
248
|
/**
|
|
227
249
|
* MosaicPricingCard — a single pricing tier. Compose multiple inside a flex/grid
|
|
@@ -236,7 +258,10 @@ interface MosaicPricingCardProps {
|
|
|
236
258
|
* highlighted
|
|
237
259
|
* />
|
|
238
260
|
*/
|
|
239
|
-
declare
|
|
261
|
+
declare function MosaicPricingCard({ tier, price, features, cta, highlighted, className, ref, }: MosaicPricingCardProps): React.JSX.Element;
|
|
262
|
+
declare namespace MosaicPricingCard {
|
|
263
|
+
var displayName: string;
|
|
264
|
+
}
|
|
240
265
|
|
|
241
266
|
/**
|
|
242
267
|
* MosaicLogosGrid — logo cloud / partner logos grid
|
|
@@ -245,6 +270,10 @@ declare const MosaicPricingCard: React.ForwardRefExoticComponent<MosaicPricingCa
|
|
|
245
270
|
* Adapted: fully props-driven logos array (name, src, width, height).
|
|
246
271
|
* No next/image dependency (lib-portable), uses native <img> with role.
|
|
247
272
|
* No motion/react dependency — CSS opacity transition only.
|
|
273
|
+
*
|
|
274
|
+
* T4 addition: opt-in `stagger` prop for staggered reveal animation.
|
|
275
|
+
* The `mosaic-logo-in` keyframe ships statically in styles.css (no runtime injection).
|
|
276
|
+
* Requires importing `@vantageos/mosaic-blocks/styles.css`. Respects prefers-reduced-motion.
|
|
248
277
|
*/
|
|
249
278
|
|
|
250
279
|
interface LogoItem {
|
|
@@ -262,11 +291,23 @@ interface MosaicLogosGridProps {
|
|
|
262
291
|
logos: LogoItem[];
|
|
263
292
|
/** Optional heading text above the grid */
|
|
264
293
|
heading?: React.ReactNode;
|
|
294
|
+
/**
|
|
295
|
+
* Opt-in staggered reveal animation.
|
|
296
|
+
* - `true` → default step of 80ms between items
|
|
297
|
+
* - `number` → explicit ms step between items
|
|
298
|
+
* - `false` / `undefined` → no animation (default, fully backward-compatible)
|
|
299
|
+
* Respects prefers-reduced-motion: no delay applied when reduced motion is set.
|
|
300
|
+
* Requires importing `@vantageos/mosaic-blocks/styles.css` for the keyframe.
|
|
301
|
+
*/
|
|
302
|
+
stagger?: boolean | number;
|
|
265
303
|
className?: string;
|
|
304
|
+
ref?: React.Ref<HTMLElement>;
|
|
266
305
|
}
|
|
267
306
|
/**
|
|
268
307
|
* MosaicLogosGrid — wrapping flex grid of partner/integration logos.
|
|
269
308
|
* Pass `heading` for a "Trusted by" label above the logos.
|
|
309
|
+
* Pass `stagger` (true or ms number) for a staggered reveal animation.
|
|
310
|
+
* The `mosaic-logo-in` keyframe is defined in styles.css (static, SSR-safe).
|
|
270
311
|
*
|
|
271
312
|
* @example
|
|
272
313
|
* <MosaicLogosGrid
|
|
@@ -275,9 +316,13 @@ interface MosaicLogosGridProps {
|
|
|
275
316
|
* { name: "Notion", src: "/logos/notion.svg", width: 100, height: 40 },
|
|
276
317
|
* { name: "Slack", src: "/logos/slack.svg", width: 80, height: 80 },
|
|
277
318
|
* ]}
|
|
319
|
+
* stagger={80}
|
|
278
320
|
* />
|
|
279
321
|
*/
|
|
280
|
-
declare
|
|
322
|
+
declare function MosaicLogosGrid({ logos, heading, stagger, className, ref }: MosaicLogosGridProps): React.JSX.Element;
|
|
323
|
+
declare namespace MosaicLogosGrid {
|
|
324
|
+
var displayName: string;
|
|
325
|
+
}
|
|
281
326
|
|
|
282
327
|
/**
|
|
283
328
|
* MosaicTestimonialsGrid — testimonials masonry-style grid
|
|
@@ -308,6 +353,7 @@ interface MosaicTestimonialsGridProps {
|
|
|
308
353
|
/** Optional section heading */
|
|
309
354
|
heading?: React.ReactNode;
|
|
310
355
|
className?: string;
|
|
356
|
+
ref?: React.Ref<HTMLElement>;
|
|
311
357
|
}
|
|
312
358
|
/**
|
|
313
359
|
* MosaicTestimonialsGrid — masonry-style testimonial grid.
|
|
@@ -322,7 +368,10 @@ interface MosaicTestimonialsGridProps {
|
|
|
322
368
|
* ]}
|
|
323
369
|
* />
|
|
324
370
|
*/
|
|
325
|
-
declare
|
|
371
|
+
declare function MosaicTestimonialsGrid({ testimonials, heading, className, ref, }: MosaicTestimonialsGridProps): React.JSX.Element;
|
|
372
|
+
declare namespace MosaicTestimonialsGrid {
|
|
373
|
+
var displayName: string;
|
|
374
|
+
}
|
|
326
375
|
|
|
327
376
|
/**
|
|
328
377
|
* MosaicFooterSimple — simple multi-column footer
|
|
@@ -360,6 +409,7 @@ interface MosaicFooterSimpleProps {
|
|
|
360
409
|
/** Optional social icon links */
|
|
361
410
|
social?: SocialLink[];
|
|
362
411
|
className?: string;
|
|
412
|
+
ref?: React.Ref<HTMLElement>;
|
|
363
413
|
}
|
|
364
414
|
/**
|
|
365
415
|
* MosaicFooterSimple — footer with columns of links, optional logo, social
|
|
@@ -376,7 +426,61 @@ interface MosaicFooterSimpleProps {
|
|
|
376
426
|
* legal="© 2026 Mosaic. All rights reserved."
|
|
377
427
|
* />
|
|
378
428
|
*/
|
|
379
|
-
declare
|
|
429
|
+
declare function MosaicFooterSimple({ columns, legal, logo, social, className, ref, }: MosaicFooterSimpleProps): React.JSX.Element;
|
|
430
|
+
declare namespace MosaicFooterSimple {
|
|
431
|
+
var displayName: string;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* MosaicFeature3Col — 3-column feature grid section
|
|
436
|
+
*
|
|
437
|
+
* Distinct from MosaicFeatureCenteredMedia (single centered layout).
|
|
438
|
+
* Layout: optional header, then a 3-col responsive grid of feature cells.
|
|
439
|
+
* Each cell has an optional icon slot, title, and body.
|
|
440
|
+
* No hardcoded branding. OKLCH semantic classes only.
|
|
441
|
+
* React-19 ref-as-prop (no forwardRef).
|
|
442
|
+
*/
|
|
443
|
+
|
|
444
|
+
interface Feature3ColItem {
|
|
445
|
+
/** Stable unique identifier for this feature */
|
|
446
|
+
id: string;
|
|
447
|
+
/** Feature title */
|
|
448
|
+
title: string;
|
|
449
|
+
/** Feature body / description */
|
|
450
|
+
body: string;
|
|
451
|
+
/** Optional icon node rendered above the title */
|
|
452
|
+
icon?: React.ReactNode;
|
|
453
|
+
}
|
|
454
|
+
interface MosaicFeature3ColProps {
|
|
455
|
+
/** Optional section heading */
|
|
456
|
+
heading?: string;
|
|
457
|
+
/** Optional section subtext */
|
|
458
|
+
subtext?: string;
|
|
459
|
+
/** Array of feature cells */
|
|
460
|
+
features: Feature3ColItem[];
|
|
461
|
+
className?: string;
|
|
462
|
+
/** Forwarded to the root <section> element (React-19 ref-as-prop) */
|
|
463
|
+
ref?: React.Ref<HTMLElement>;
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
* MosaicFeature3Col — 3-column feature grid with optional heading + subtext.
|
|
467
|
+
* Responsive: 1 column on mobile, 3 at md+.
|
|
468
|
+
*
|
|
469
|
+
* @example
|
|
470
|
+
* <MosaicFeature3Col
|
|
471
|
+
* heading="Why teams choose us"
|
|
472
|
+
* subtext="Built for speed and scale."
|
|
473
|
+
* features={[
|
|
474
|
+
* { id: "f1", title: "Fast", body: "Deploy in seconds.", icon: <SpeedIcon /> },
|
|
475
|
+
* { id: "f2", title: "Reliable", body: "99.9% uptime SLA." },
|
|
476
|
+
* { id: "f3", title: "Secure", body: "Enterprise-grade by default." },
|
|
477
|
+
* ]}
|
|
478
|
+
* />
|
|
479
|
+
*/
|
|
480
|
+
declare function MosaicFeature3Col({ heading, subtext, features, className, ref, }: MosaicFeature3ColProps): React.JSX.Element;
|
|
481
|
+
declare namespace MosaicFeature3Col {
|
|
482
|
+
var displayName: string;
|
|
483
|
+
}
|
|
380
484
|
|
|
381
485
|
/**
|
|
382
486
|
* MosaicCounter — animated metric count-up
|
|
@@ -395,6 +499,7 @@ interface MosaicCounterProps {
|
|
|
395
499
|
/** Optional format function applied to the current number */
|
|
396
500
|
format?: (value: number) => string;
|
|
397
501
|
className?: string;
|
|
502
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
398
503
|
}
|
|
399
504
|
/**
|
|
400
505
|
* MosaicCounter — counts up from 0 to `value` on mount using requestAnimationFrame.
|
|
@@ -403,7 +508,10 @@ interface MosaicCounterProps {
|
|
|
403
508
|
* @example
|
|
404
509
|
* <MosaicCounter value={10000} duration={2000} format={(v) => `${Math.round(v).toLocaleString()}+`} />
|
|
405
510
|
*/
|
|
406
|
-
declare
|
|
511
|
+
declare function MosaicCounter({ value, duration, format, className, ref, }: MosaicCounterProps): React.JSX.Element;
|
|
512
|
+
declare namespace MosaicCounter {
|
|
513
|
+
var displayName: string;
|
|
514
|
+
}
|
|
407
515
|
|
|
408
516
|
/**
|
|
409
517
|
* MosaicThemeToggle — light / dark / system theme toggle
|
|
@@ -426,6 +534,7 @@ interface MosaicThemeToggleProps {
|
|
|
426
534
|
className?: string;
|
|
427
535
|
/** aria-label for the toggle button */
|
|
428
536
|
label?: string;
|
|
537
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
429
538
|
}
|
|
430
539
|
/**
|
|
431
540
|
* MosaicThemeToggle — cycles through themes, setting `data-theme` on
|
|
@@ -434,7 +543,10 @@ interface MosaicThemeToggleProps {
|
|
|
434
543
|
* @example
|
|
435
544
|
* <MosaicThemeToggle onChange={(t) => console.log("theme:", t)} />
|
|
436
545
|
*/
|
|
437
|
-
declare
|
|
546
|
+
declare function MosaicThemeToggle({ themes, onChange, className, label, ref, }: MosaicThemeToggleProps): React.JSX.Element;
|
|
547
|
+
declare namespace MosaicThemeToggle {
|
|
548
|
+
var displayName: string;
|
|
549
|
+
}
|
|
438
550
|
|
|
439
551
|
/**
|
|
440
552
|
* MosaicBlurredOrb — decorative blurred gradient orb background
|
|
@@ -466,6 +578,7 @@ interface MosaicBlurredOrbProps {
|
|
|
466
578
|
/** Opacity 0–1 (default 0.6) */
|
|
467
579
|
opacity?: number;
|
|
468
580
|
className?: string;
|
|
581
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
469
582
|
}
|
|
470
583
|
/**
|
|
471
584
|
* MosaicBlurredOrb — absolutely-positioned blurred gradient blob.
|
|
@@ -481,7 +594,10 @@ interface MosaicBlurredOrbProps {
|
|
|
481
594
|
* <YourContent />
|
|
482
595
|
* </div>
|
|
483
596
|
*/
|
|
484
|
-
declare
|
|
597
|
+
declare function MosaicBlurredOrb({ colors, size, position, blur, opacity, className, ref, }: MosaicBlurredOrbProps): React.JSX.Element;
|
|
598
|
+
declare namespace MosaicBlurredOrb {
|
|
599
|
+
var displayName: string;
|
|
600
|
+
}
|
|
485
601
|
|
|
486
602
|
/**
|
|
487
603
|
* MosaicAnimatedList — staggered reveal list
|
|
@@ -501,6 +617,7 @@ interface MosaicAnimatedListProps {
|
|
|
501
617
|
className?: string;
|
|
502
618
|
/** Wrapper element tag (default "ul") */
|
|
503
619
|
as?: "ul" | "ol" | "div";
|
|
620
|
+
ref?: React.Ref<HTMLUListElement & HTMLOListElement & HTMLDivElement>;
|
|
504
621
|
}
|
|
505
622
|
/**
|
|
506
623
|
* MosaicAnimatedList — wraps children in a list, stagger-revealing each item
|
|
@@ -513,7 +630,10 @@ interface MosaicAnimatedListProps {
|
|
|
513
630
|
* <li>Third feature</li>
|
|
514
631
|
* </MosaicAnimatedList>
|
|
515
632
|
*/
|
|
516
|
-
declare
|
|
633
|
+
declare function MosaicAnimatedList({ stagger, children, className, as: Tag, ref, }: MosaicAnimatedListProps): React.JSX.Element;
|
|
634
|
+
declare namespace MosaicAnimatedList {
|
|
635
|
+
var displayName: string;
|
|
636
|
+
}
|
|
517
637
|
|
|
518
638
|
/**
|
|
519
639
|
* MosaicIntegrationsBadge — integration badge / pill
|
|
@@ -534,6 +654,7 @@ interface MosaicIntegrationsBadgeProps {
|
|
|
534
654
|
/** Link target (default "_blank" for external links) */
|
|
535
655
|
target?: React.HTMLAttributeAnchorTarget;
|
|
536
656
|
className?: string;
|
|
657
|
+
ref?: React.Ref<HTMLAnchorElement & HTMLSpanElement>;
|
|
537
658
|
}
|
|
538
659
|
/**
|
|
539
660
|
* MosaicIntegrationsBadge — pill-shaped badge showing a logo + label.
|
|
@@ -546,7 +667,10 @@ interface MosaicIntegrationsBadgeProps {
|
|
|
546
667
|
* href="https://stripe.com"
|
|
547
668
|
* />
|
|
548
669
|
*/
|
|
549
|
-
declare
|
|
670
|
+
declare function MosaicIntegrationsBadge({ label, logo, href, target, className, ref, }: MosaicIntegrationsBadgeProps): React.JSX.Element;
|
|
671
|
+
declare namespace MosaicIntegrationsBadge {
|
|
672
|
+
var displayName: string;
|
|
673
|
+
}
|
|
550
674
|
|
|
551
675
|
/**
|
|
552
676
|
* MosaicFallingPattern — animated grid/dot background pattern
|
|
@@ -572,6 +696,7 @@ interface MosaicFallingPatternProps {
|
|
|
572
696
|
/** Animation duration for one full cycle in ms (default 4000) */
|
|
573
697
|
animationDuration?: number;
|
|
574
698
|
className?: string;
|
|
699
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
575
700
|
}
|
|
576
701
|
/**
|
|
577
702
|
* MosaicFallingPattern — decorative animated dot-grid background.
|
|
@@ -583,7 +708,10 @@ interface MosaicFallingPatternProps {
|
|
|
583
708
|
* <YourContent className="relative z-10" />
|
|
584
709
|
* </div>
|
|
585
710
|
*/
|
|
586
|
-
declare
|
|
711
|
+
declare function MosaicFallingPattern({ density, color, animationDuration, className, ref, }: MosaicFallingPatternProps): React.JSX.Element;
|
|
712
|
+
declare namespace MosaicFallingPattern {
|
|
713
|
+
var displayName: string;
|
|
714
|
+
}
|
|
587
715
|
|
|
588
716
|
/**
|
|
589
717
|
* useMediaQuery — SSR-safe media query hook
|
|
@@ -617,6 +745,7 @@ declare function useMediaQuery(query: string): boolean;
|
|
|
617
745
|
|
|
618
746
|
interface MosaicCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
619
747
|
className?: string;
|
|
748
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
620
749
|
}
|
|
621
750
|
/**
|
|
622
751
|
* MosaicCard — root container with rounded border and background.
|
|
@@ -628,33 +757,57 @@ interface MosaicCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
628
757
|
* <MosaicCardFooter>…</MosaicCardFooter>
|
|
629
758
|
* </MosaicCard>
|
|
630
759
|
*/
|
|
631
|
-
declare
|
|
760
|
+
declare function MosaicCard({ className, ref, ...props }: MosaicCardProps): React.JSX.Element;
|
|
761
|
+
declare namespace MosaicCard {
|
|
762
|
+
var displayName: string;
|
|
763
|
+
}
|
|
632
764
|
interface MosaicCardHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
633
765
|
className?: string;
|
|
766
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
767
|
+
}
|
|
768
|
+
declare function MosaicCardHeader({ className, ref, ...props }: MosaicCardHeaderProps): React.JSX.Element;
|
|
769
|
+
declare namespace MosaicCardHeader {
|
|
770
|
+
var displayName: string;
|
|
634
771
|
}
|
|
635
|
-
declare const MosaicCardHeader: React.ForwardRefExoticComponent<MosaicCardHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
636
772
|
interface MosaicCardTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
637
773
|
className?: string;
|
|
774
|
+
ref?: React.Ref<HTMLHeadingElement>;
|
|
775
|
+
}
|
|
776
|
+
declare function MosaicCardTitle({ className, ref, ...props }: MosaicCardTitleProps): React.JSX.Element;
|
|
777
|
+
declare namespace MosaicCardTitle {
|
|
778
|
+
var displayName: string;
|
|
638
779
|
}
|
|
639
|
-
declare const MosaicCardTitle: React.ForwardRefExoticComponent<MosaicCardTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
640
780
|
interface MosaicCardDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
641
781
|
className?: string;
|
|
782
|
+
ref?: React.Ref<HTMLParagraphElement>;
|
|
783
|
+
}
|
|
784
|
+
declare function MosaicCardDescription({ className, ref, ...props }: MosaicCardDescriptionProps): React.JSX.Element;
|
|
785
|
+
declare namespace MosaicCardDescription {
|
|
786
|
+
var displayName: string;
|
|
642
787
|
}
|
|
643
|
-
declare const MosaicCardDescription: React.ForwardRefExoticComponent<MosaicCardDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
644
788
|
interface MosaicCardContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
645
789
|
className?: string;
|
|
790
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
791
|
+
}
|
|
792
|
+
declare function MosaicCardContent({ className, ref, ...props }: MosaicCardContentProps): React.JSX.Element;
|
|
793
|
+
declare namespace MosaicCardContent {
|
|
794
|
+
var displayName: string;
|
|
646
795
|
}
|
|
647
|
-
declare const MosaicCardContent: React.ForwardRefExoticComponent<MosaicCardContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
648
796
|
interface MosaicCardFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
649
797
|
className?: string;
|
|
798
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
799
|
+
}
|
|
800
|
+
declare function MosaicCardFooter({ className, ref, ...props }: MosaicCardFooterProps): React.JSX.Element;
|
|
801
|
+
declare namespace MosaicCardFooter {
|
|
802
|
+
var displayName: string;
|
|
650
803
|
}
|
|
651
|
-
declare const MosaicCardFooter: React.ForwardRefExoticComponent<MosaicCardFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
652
804
|
|
|
653
805
|
declare const badgeVariants: (props?: ({
|
|
654
806
|
variant?: "default" | "secondary" | "destructive" | "outline" | null | undefined;
|
|
655
807
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
656
808
|
interface MosaicBadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
|
|
657
809
|
className?: string;
|
|
810
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
658
811
|
}
|
|
659
812
|
/**
|
|
660
813
|
* MosaicBadge — inline status/label badge.
|
|
@@ -664,7 +817,10 @@ interface MosaicBadgeProps extends React.HTMLAttributes<HTMLSpanElement>, Varian
|
|
|
664
817
|
* <MosaicBadge variant="destructive">Error</MosaicBadge>
|
|
665
818
|
* <MosaicBadge variant="outline">Beta</MosaicBadge>
|
|
666
819
|
*/
|
|
667
|
-
declare
|
|
820
|
+
declare function MosaicBadge({ className, variant, ref, ...props }: MosaicBadgeProps): React.JSX.Element;
|
|
821
|
+
declare namespace MosaicBadge {
|
|
822
|
+
var displayName: string;
|
|
823
|
+
}
|
|
668
824
|
|
|
669
825
|
/**
|
|
670
826
|
* MosaicAvatar — built on @base-ui/react/avatar
|
|
@@ -692,13 +848,16 @@ interface MosaicAvatarProps extends Avatar.Root.Props {
|
|
|
692
848
|
* <MosaicAvatar src="/user.png" alt="John" fallback="JD" />
|
|
693
849
|
* <MosaicAvatar fallback="AB" />
|
|
694
850
|
*/
|
|
695
|
-
declare
|
|
851
|
+
declare function MosaicAvatar({ src, alt, fallback, className, ref, ...props }: MosaicAvatarProps): React.JSX.Element;
|
|
852
|
+
declare namespace MosaicAvatar {
|
|
853
|
+
var displayName: string;
|
|
854
|
+
}
|
|
696
855
|
|
|
697
856
|
/**
|
|
698
857
|
* MosaicInput — built on @base-ui/react/input
|
|
699
858
|
*
|
|
700
859
|
* Uses the Input primitive from @base-ui/react/input which renders a native
|
|
701
|
-
* <input> element with Field integration and
|
|
860
|
+
* <input> element with Field integration and ref-as-prop (React 19).
|
|
702
861
|
* data-slot="input".
|
|
703
862
|
*
|
|
704
863
|
* Design tokens: Tailwind v4 semantic classes (bg-background, border-border,
|
|
@@ -718,7 +877,10 @@ interface MosaicInputProps extends Input.Props {
|
|
|
718
877
|
* <MosaicInput placeholder="Search…" />
|
|
719
878
|
* <MosaicInput type="email" value={email} onChange={handleChange} />
|
|
720
879
|
*/
|
|
721
|
-
declare
|
|
880
|
+
declare function MosaicInput({ className, ref, ...props }: MosaicInputProps): React.JSX.Element;
|
|
881
|
+
declare namespace MosaicInput {
|
|
882
|
+
var displayName: string;
|
|
883
|
+
}
|
|
722
884
|
|
|
723
885
|
/**
|
|
724
886
|
* MosaicInputGroup — composition wrapper for MosaicInput with addons
|
|
@@ -737,6 +899,7 @@ interface MosaicInputGroupProps extends Omit<React.HTMLAttributes<HTMLDivElement
|
|
|
737
899
|
suffix?: React.ReactNode;
|
|
738
900
|
className?: string;
|
|
739
901
|
children: React.ReactNode;
|
|
902
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
740
903
|
}
|
|
741
904
|
/**
|
|
742
905
|
* MosaicInputGroup — wraps MosaicInput with optional prefix/suffix addons.
|
|
@@ -753,7 +916,10 @@ interface MosaicInputGroupProps extends Omit<React.HTMLAttributes<HTMLDivElement
|
|
|
753
916
|
* <MosaicInput placeholder="yoursite" />
|
|
754
917
|
* </MosaicInputGroup>
|
|
755
918
|
*/
|
|
756
|
-
declare
|
|
919
|
+
declare function MosaicInputGroup({ prefix, suffix, className, children, ref, ...props }: MosaicInputGroupProps): React.JSX.Element;
|
|
920
|
+
declare namespace MosaicInputGroup {
|
|
921
|
+
var displayName: string;
|
|
922
|
+
}
|
|
757
923
|
|
|
758
924
|
/**
|
|
759
925
|
* MosaicField — @base-ui/react Field primitive
|
|
@@ -767,30 +933,51 @@ declare const MosaicInputGroup: React.ForwardRefExoticComponent<MosaicInputGroup
|
|
|
767
933
|
|
|
768
934
|
interface MosaicFieldProps extends React.ComponentPropsWithoutRef<typeof Field.Root> {
|
|
769
935
|
className?: string;
|
|
936
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
937
|
+
}
|
|
938
|
+
declare function MosaicFieldRoot({ className, children, ref, ...props }: MosaicFieldProps): React.JSX.Element;
|
|
939
|
+
declare namespace MosaicFieldRoot {
|
|
940
|
+
var displayName: string;
|
|
770
941
|
}
|
|
771
942
|
interface MosaicFieldLabelProps extends React.ComponentPropsWithoutRef<typeof Field.Label> {
|
|
772
943
|
className?: string;
|
|
944
|
+
ref?: React.Ref<HTMLLabelElement>;
|
|
945
|
+
}
|
|
946
|
+
declare function MosaicFieldLabel({ className, children, ref, ...props }: MosaicFieldLabelProps): React.JSX.Element;
|
|
947
|
+
declare namespace MosaicFieldLabel {
|
|
948
|
+
var displayName: string;
|
|
773
949
|
}
|
|
774
|
-
declare const MosaicFieldLabel: React.ForwardRefExoticComponent<MosaicFieldLabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
775
950
|
interface MosaicFieldControlProps extends React.ComponentPropsWithoutRef<typeof Field.Control> {
|
|
776
951
|
className?: string;
|
|
952
|
+
ref?: React.Ref<HTMLElement>;
|
|
953
|
+
}
|
|
954
|
+
declare function MosaicFieldControl({ className, ref, ...props }: MosaicFieldControlProps): React.JSX.Element;
|
|
955
|
+
declare namespace MosaicFieldControl {
|
|
956
|
+
var displayName: string;
|
|
777
957
|
}
|
|
778
|
-
declare const MosaicFieldControl: React.ForwardRefExoticComponent<MosaicFieldControlProps & React.RefAttributes<HTMLElement>>;
|
|
779
958
|
interface MosaicFieldDescriptionProps extends React.ComponentPropsWithoutRef<typeof Field.Description> {
|
|
780
959
|
className?: string;
|
|
960
|
+
ref?: React.Ref<HTMLParagraphElement>;
|
|
961
|
+
}
|
|
962
|
+
declare function MosaicFieldDescription({ className, children, ref, ...props }: MosaicFieldDescriptionProps): React.JSX.Element;
|
|
963
|
+
declare namespace MosaicFieldDescription {
|
|
964
|
+
var displayName: string;
|
|
781
965
|
}
|
|
782
|
-
declare const MosaicFieldDescription: React.ForwardRefExoticComponent<MosaicFieldDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
783
966
|
interface MosaicFieldErrorProps extends React.ComponentPropsWithoutRef<typeof Field.Error> {
|
|
784
967
|
className?: string;
|
|
785
968
|
/** Force-show the error even without native validity state */
|
|
786
969
|
show?: boolean;
|
|
970
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
971
|
+
}
|
|
972
|
+
declare function MosaicFieldError({ className, children, show: _show, ref, ...props }: MosaicFieldErrorProps): React.JSX.Element;
|
|
973
|
+
declare namespace MosaicFieldError {
|
|
974
|
+
var displayName: string;
|
|
787
975
|
}
|
|
788
|
-
declare const
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
Error: React.ForwardRefExoticComponent<MosaicFieldErrorProps & React.RefAttributes<HTMLDivElement>>;
|
|
976
|
+
declare const MosaicField: typeof MosaicFieldRoot & {
|
|
977
|
+
Label: typeof MosaicFieldLabel;
|
|
978
|
+
Control: typeof MosaicFieldControl;
|
|
979
|
+
Description: typeof MosaicFieldDescription;
|
|
980
|
+
Error: typeof MosaicFieldError;
|
|
794
981
|
};
|
|
795
982
|
|
|
796
983
|
/**
|
|
@@ -806,6 +993,7 @@ declare const MosaicField: React.ForwardRefExoticComponent<MosaicFieldProps & Re
|
|
|
806
993
|
|
|
807
994
|
interface MosaicSwitchProps extends React.ComponentPropsWithoutRef<typeof Switch.Root> {
|
|
808
995
|
className?: string;
|
|
996
|
+
ref?: React.Ref<HTMLElement>;
|
|
809
997
|
}
|
|
810
998
|
/**
|
|
811
999
|
* MosaicSwitch — production Switch atom for @vantageos/mosaic-blocks.
|
|
@@ -820,7 +1008,10 @@ interface MosaicSwitchProps extends React.ComponentPropsWithoutRef<typeof Switch
|
|
|
820
1008
|
* // Controlled
|
|
821
1009
|
* <MosaicSwitch checked={enabled} onCheckedChange={setEnabled} aria-label="Notifications" />
|
|
822
1010
|
*/
|
|
823
|
-
declare
|
|
1011
|
+
declare function MosaicSwitch({ className, ref, ...props }: MosaicSwitchProps): React.JSX.Element;
|
|
1012
|
+
declare namespace MosaicSwitch {
|
|
1013
|
+
var displayName: string;
|
|
1014
|
+
}
|
|
824
1015
|
|
|
825
1016
|
/**
|
|
826
1017
|
* MosaicSelect — @base-ui/react Select primitive
|
|
@@ -833,14 +1024,14 @@ declare const MosaicSwitch: React.ForwardRefExoticComponent<MosaicSwitchProps &
|
|
|
833
1024
|
* Styling: Tailwind v4 semantic tokens only.
|
|
834
1025
|
*/
|
|
835
1026
|
|
|
836
|
-
interface MosaicSelectItem {
|
|
1027
|
+
interface MosaicSelectItem$1 {
|
|
837
1028
|
value: string;
|
|
838
1029
|
label: string;
|
|
839
1030
|
disabled?: boolean;
|
|
840
1031
|
}
|
|
841
1032
|
interface MosaicSelectProps {
|
|
842
1033
|
/** List of options to display */
|
|
843
|
-
items: MosaicSelectItem[];
|
|
1034
|
+
items: MosaicSelectItem$1[];
|
|
844
1035
|
/** Controlled value */
|
|
845
1036
|
value?: string;
|
|
846
1037
|
/** Callback when value changes. Receives null when selection is cleared. */
|
|
@@ -965,4 +1156,2054 @@ interface MosaicDropdownMenuProps {
|
|
|
965
1156
|
*/
|
|
966
1157
|
declare function MosaicDropdownMenu({ trigger, items, onItemSelect, open, onOpenChange, className, }: MosaicDropdownMenuProps): React.JSX.Element;
|
|
967
1158
|
|
|
968
|
-
|
|
1159
|
+
/**
|
|
1160
|
+
* MosaicDeviceProvider — responsive device context (PC-01)
|
|
1161
|
+
*
|
|
1162
|
+
* Ported (source: private upstream) contexts/DeviceProvider.tsx +
|
|
1163
|
+
* hooks/responsive/*.ts (branch: dev).
|
|
1164
|
+
*
|
|
1165
|
+
* Provides a single context with breakpoint flags, orientation, and viewport
|
|
1166
|
+
* size. All adaptive components consume this via useDevice().
|
|
1167
|
+
*
|
|
1168
|
+
* Stripped: debugResponsive import (dev-only console logger, not portable).
|
|
1169
|
+
* Animation: none (context-only).
|
|
1170
|
+
* Framer-motion: N/A.
|
|
1171
|
+
* SSR: guarded via typeof window checks in each hook.
|
|
1172
|
+
*/
|
|
1173
|
+
|
|
1174
|
+
type Orientation = "portrait" | "landscape";
|
|
1175
|
+
type Breakpoint = "sm" | "md" | "lg" | "xl";
|
|
1176
|
+
interface DeviceContextValue {
|
|
1177
|
+
isMobile: boolean;
|
|
1178
|
+
isTablet: boolean;
|
|
1179
|
+
isDesktop: boolean;
|
|
1180
|
+
isSmUp: boolean;
|
|
1181
|
+
isMdUp: boolean;
|
|
1182
|
+
isLgUp: boolean;
|
|
1183
|
+
isXlUp: boolean;
|
|
1184
|
+
orientation: Orientation;
|
|
1185
|
+
viewport: {
|
|
1186
|
+
width: number;
|
|
1187
|
+
height: number;
|
|
1188
|
+
};
|
|
1189
|
+
isBreakpoint: (bp: Breakpoint) => boolean;
|
|
1190
|
+
}
|
|
1191
|
+
/**
|
|
1192
|
+
* useBreakpoint — returns true when viewport >= breakpoint (min-width media query).
|
|
1193
|
+
* SSR-safe: initialises to false on server. Subscribes to matchMedia change events.
|
|
1194
|
+
*/
|
|
1195
|
+
declare function useBreakpoint(breakpoint: Breakpoint): boolean;
|
|
1196
|
+
/** Returns true when viewport is mobile (< md). */
|
|
1197
|
+
declare function useIsMobile(): boolean;
|
|
1198
|
+
/** Returns true when viewport is tablet (md ≤ width < lg). */
|
|
1199
|
+
declare function useIsTablet(): boolean;
|
|
1200
|
+
/** Returns true when viewport is desktop (≥ lg). */
|
|
1201
|
+
declare function useIsDesktop(): boolean;
|
|
1202
|
+
/**
|
|
1203
|
+
* useViewport — debounced resize listener returning { width, height }.
|
|
1204
|
+
* Initialises to { 0, 0 } on SSR.
|
|
1205
|
+
*/
|
|
1206
|
+
declare function useViewport(): {
|
|
1207
|
+
width: number;
|
|
1208
|
+
height: number;
|
|
1209
|
+
};
|
|
1210
|
+
/**
|
|
1211
|
+
* useOrientation — returns "portrait" | "landscape".
|
|
1212
|
+
* Listens to both resize and orientationchange for full coverage.
|
|
1213
|
+
*/
|
|
1214
|
+
declare function useOrientation(): Orientation;
|
|
1215
|
+
interface MosaicDeviceProviderProps {
|
|
1216
|
+
children: React.ReactNode;
|
|
1217
|
+
}
|
|
1218
|
+
/**
|
|
1219
|
+
* MosaicDeviceProvider — wrap your app (or subtree) to enable useDevice().
|
|
1220
|
+
*
|
|
1221
|
+
* @example
|
|
1222
|
+
* <MosaicDeviceProvider>
|
|
1223
|
+
* <App />
|
|
1224
|
+
* </MosaicDeviceProvider>
|
|
1225
|
+
*/
|
|
1226
|
+
declare function MosaicDeviceProvider({ children }: MosaicDeviceProviderProps): React.JSX.Element;
|
|
1227
|
+
declare namespace MosaicDeviceProvider {
|
|
1228
|
+
var displayName: string;
|
|
1229
|
+
}
|
|
1230
|
+
/**
|
|
1231
|
+
* useDevice — consume the device context.
|
|
1232
|
+
* Must be used inside <MosaicDeviceProvider>.
|
|
1233
|
+
*/
|
|
1234
|
+
declare function useDevice(): DeviceContextValue;
|
|
1235
|
+
|
|
1236
|
+
/**
|
|
1237
|
+
* MosaicAdaptiveGrid — device-aware CSS grid wrapper (PC-02)
|
|
1238
|
+
*
|
|
1239
|
+
* Ported (source: private upstream) components/adaptive/AdaptiveGrid.tsx
|
|
1240
|
+
*
|
|
1241
|
+
* Reads isMobile/isTablet/isDesktop from useDevice() and applies the correct
|
|
1242
|
+
* column count via inline CSS variables (avoids Tailwind JIT dynamic class issues).
|
|
1243
|
+
* Zero debate coupling. Fully generic.
|
|
1244
|
+
*
|
|
1245
|
+
* Framer-motion: N/A (layout-only).
|
|
1246
|
+
*/
|
|
1247
|
+
|
|
1248
|
+
interface MosaicAdaptiveGridProps {
|
|
1249
|
+
children: React.ReactNode;
|
|
1250
|
+
/** Grid columns on mobile (default 1) */
|
|
1251
|
+
mobileColumns?: number;
|
|
1252
|
+
/** Grid columns on tablet (default 2) */
|
|
1253
|
+
tabletColumns?: number;
|
|
1254
|
+
/** Grid columns on desktop (default 3) */
|
|
1255
|
+
desktopColumns?: number;
|
|
1256
|
+
/** Gap between cells (Tailwind gap class, default "gap-4") */
|
|
1257
|
+
gap?: string;
|
|
1258
|
+
className?: string;
|
|
1259
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
1260
|
+
}
|
|
1261
|
+
/**
|
|
1262
|
+
* MosaicAdaptiveGrid — responsive grid that switches column count based on
|
|
1263
|
+
* the device breakpoint provided by MosaicDeviceProvider.
|
|
1264
|
+
*
|
|
1265
|
+
* @example
|
|
1266
|
+
* <MosaicDeviceProvider>
|
|
1267
|
+
* <MosaicAdaptiveGrid mobileColumns={1} tabletColumns={2} desktopColumns={3}>
|
|
1268
|
+
* <Card />
|
|
1269
|
+
* <Card />
|
|
1270
|
+
* <Card />
|
|
1271
|
+
* </MosaicAdaptiveGrid>
|
|
1272
|
+
* </MosaicDeviceProvider>
|
|
1273
|
+
*/
|
|
1274
|
+
declare function MosaicAdaptiveGrid({ children, mobileColumns, tabletColumns, desktopColumns, gap, className, ref, }: MosaicAdaptiveGridProps): React.JSX.Element;
|
|
1275
|
+
declare namespace MosaicAdaptiveGrid {
|
|
1276
|
+
var displayName: string;
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
/**
|
|
1280
|
+
* MosaicAdaptiveModal — Dialog on desktop, bottom sheet on mobile (PC-03)
|
|
1281
|
+
*
|
|
1282
|
+
* Ported (source: private upstream) components/adaptive/AdaptiveModal.tsx
|
|
1283
|
+
*
|
|
1284
|
+
* Implementation: uses native <dialog> element for a11y (keyboard focus trap
|
|
1285
|
+
* handled by browser on showModal, Escape auto-closes).
|
|
1286
|
+
* - Desktop: centered modal overlay + dialog panel
|
|
1287
|
+
* - Mobile: bottom sheet (CSS slide-up)
|
|
1288
|
+
*
|
|
1289
|
+
* Framer-motion replaced with CSS transitions + @keyframes.
|
|
1290
|
+
* Respects prefers-reduced-motion.
|
|
1291
|
+
* No Radix/Vaul dependency — lib-portable.
|
|
1292
|
+
*/
|
|
1293
|
+
|
|
1294
|
+
interface MosaicAdaptiveModalProps {
|
|
1295
|
+
isOpen: boolean;
|
|
1296
|
+
onClose: () => void;
|
|
1297
|
+
title: string;
|
|
1298
|
+
children: React.ReactNode;
|
|
1299
|
+
className?: string;
|
|
1300
|
+
description?: string;
|
|
1301
|
+
}
|
|
1302
|
+
/**
|
|
1303
|
+
* MosaicAdaptiveModal — unified modal/sheet. On desktop renders a centered
|
|
1304
|
+
* dialog; on mobile renders a bottom-sheet drawer. Single API for both.
|
|
1305
|
+
*
|
|
1306
|
+
* @example
|
|
1307
|
+
* <MosaicAdaptiveModal isOpen={open} onClose={() => setOpen(false)} title="Settings">
|
|
1308
|
+
* <p>Modal body content</p>
|
|
1309
|
+
* </MosaicAdaptiveModal>
|
|
1310
|
+
*/
|
|
1311
|
+
declare function MosaicAdaptiveModal({ isOpen, onClose, title, children, className, description, }: MosaicAdaptiveModalProps): React.JSX.Element | null;
|
|
1312
|
+
declare namespace MosaicAdaptiveModal {
|
|
1313
|
+
var displayName: string;
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
/**
|
|
1317
|
+
* MosaicAdaptiveNavigation — tabs on desktop, accordion on mobile (PC-04)
|
|
1318
|
+
*
|
|
1319
|
+
* Ported (source: private upstream) components/adaptive/AdaptiveNavigation.tsx
|
|
1320
|
+
*
|
|
1321
|
+
* Desktop: horizontal tab strip (custom Tailwind tabs — no Radix dep).
|
|
1322
|
+
* Mobile: accordion-style collapsible list with step indicators.
|
|
1323
|
+
* Zero debate coupling. Generic items[] prop.
|
|
1324
|
+
*
|
|
1325
|
+
* Framer-motion: N/A (CSS transitions only).
|
|
1326
|
+
* Icons: inline SVG (no lucide dep).
|
|
1327
|
+
*/
|
|
1328
|
+
|
|
1329
|
+
interface MosaicNavigationItem {
|
|
1330
|
+
id: string;
|
|
1331
|
+
title: string;
|
|
1332
|
+
/** Optional duration label (e.g. seconds) */
|
|
1333
|
+
duration?: number;
|
|
1334
|
+
/** Whether this step is complete (shows checkmark) */
|
|
1335
|
+
isComplete?: boolean;
|
|
1336
|
+
/** Content rendered inside accordion panel (mobile only) */
|
|
1337
|
+
children?: React.ReactNode;
|
|
1338
|
+
}
|
|
1339
|
+
interface MosaicAdaptiveNavigationProps {
|
|
1340
|
+
items: MosaicNavigationItem[];
|
|
1341
|
+
activeItem: string;
|
|
1342
|
+
onItemChange: (id: string) => void;
|
|
1343
|
+
/** Controlled expanded set for accordion (mobile). If uncontrolled, pass undefined. */
|
|
1344
|
+
expandedItems?: Set<string>;
|
|
1345
|
+
onToggleExpanded?: (id: string) => void;
|
|
1346
|
+
className?: string;
|
|
1347
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
1348
|
+
}
|
|
1349
|
+
/**
|
|
1350
|
+
* MosaicAdaptiveNavigation — step navigation that adapts by device.
|
|
1351
|
+
* Desktop: tab strip. Mobile: expandable accordion with step indicators.
|
|
1352
|
+
*
|
|
1353
|
+
* @example
|
|
1354
|
+
* const [active, setActive] = useState(items[0].id);
|
|
1355
|
+
* const [expanded, setExpanded] = useState(new Set<string>());
|
|
1356
|
+
* const toggle = (id: string) =>
|
|
1357
|
+
* setExpanded(prev => { const s = new Set(prev); s.has(id) ? s.delete(id) : s.add(id); return s; });
|
|
1358
|
+
*
|
|
1359
|
+
* <MosaicAdaptiveNavigation
|
|
1360
|
+
* items={items}
|
|
1361
|
+
* activeItem={active}
|
|
1362
|
+
* onItemChange={setActive}
|
|
1363
|
+
* expandedItems={expanded}
|
|
1364
|
+
* onToggleExpanded={toggle}
|
|
1365
|
+
* />
|
|
1366
|
+
*/
|
|
1367
|
+
declare function MosaicAdaptiveNavigation({ items, activeItem, onItemChange, expandedItems, onToggleExpanded, className, ref, }: MosaicAdaptiveNavigationProps): React.JSX.Element;
|
|
1368
|
+
declare namespace MosaicAdaptiveNavigation {
|
|
1369
|
+
var displayName: string;
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
/**
|
|
1373
|
+
* MosaicAppSidebar — collapsible nav sidebar + mobile drawer (PC-06)
|
|
1374
|
+
*
|
|
1375
|
+
* Ported (source: private upstream) components/dashboard/DashboardSidebar.tsx
|
|
1376
|
+
*
|
|
1377
|
+
* Features:
|
|
1378
|
+
* - Collapsible: 64px icon-only / 280–320px expanded
|
|
1379
|
+
* - Submenu support (nested nav items)
|
|
1380
|
+
* - Quick Actions section (pluggable via props)
|
|
1381
|
+
* - Recent Activity section (pluggable via props)
|
|
1382
|
+
* - Footer status slot
|
|
1383
|
+
* - Mobile: renders full-width when inside AdaptiveModal drawer
|
|
1384
|
+
*
|
|
1385
|
+
* Generalized: ALL hardcoded debate nav items, hrefs, branding stripped.
|
|
1386
|
+
* Now fully props-driven via navItems[], quickActions[], recentItems[], logoSlot.
|
|
1387
|
+
* Removed: next/navigation (usePathname, useRouter) → replaced with activePath prop +
|
|
1388
|
+
* onNavigate callback so consumers can wire their router.
|
|
1389
|
+
* Removed: ScrollArea radix dep → native overflow-y-auto with custom scrollbar.
|
|
1390
|
+
*
|
|
1391
|
+
* Framer-motion fully replaced with CSS transitions + keyframes.
|
|
1392
|
+
* Icons: inline SVG (no lucide dep) for structural icons; nav icons are caller-provided.
|
|
1393
|
+
* Respects prefers-reduced-motion.
|
|
1394
|
+
*/
|
|
1395
|
+
|
|
1396
|
+
interface MosaicSidebarNavItem {
|
|
1397
|
+
/** Stable unique ID */
|
|
1398
|
+
id: string;
|
|
1399
|
+
label: string;
|
|
1400
|
+
href: string;
|
|
1401
|
+
/** Icon ReactNode (any SVG/component) */
|
|
1402
|
+
icon?: React.ReactNode;
|
|
1403
|
+
/** Badge label (e.g. count or "New") */
|
|
1404
|
+
badge?: string;
|
|
1405
|
+
/** Nested submenu items */
|
|
1406
|
+
submenu?: Array<{
|
|
1407
|
+
id: string;
|
|
1408
|
+
label: string;
|
|
1409
|
+
href: string;
|
|
1410
|
+
icon?: React.ReactNode;
|
|
1411
|
+
}>;
|
|
1412
|
+
}
|
|
1413
|
+
interface MosaicSidebarQuickAction {
|
|
1414
|
+
id: string;
|
|
1415
|
+
label: string;
|
|
1416
|
+
icon?: React.ReactNode;
|
|
1417
|
+
onClick: () => void;
|
|
1418
|
+
}
|
|
1419
|
+
interface MosaicSidebarRecentItem {
|
|
1420
|
+
id: string;
|
|
1421
|
+
title: string;
|
|
1422
|
+
time: string;
|
|
1423
|
+
count?: number;
|
|
1424
|
+
}
|
|
1425
|
+
interface MosaicSidebarFooterStatus {
|
|
1426
|
+
label: string;
|
|
1427
|
+
sublabel?: string;
|
|
1428
|
+
icon?: React.ReactNode;
|
|
1429
|
+
}
|
|
1430
|
+
interface MosaicAppSidebarProps {
|
|
1431
|
+
isCollapsed: boolean;
|
|
1432
|
+
onToggleCollapse: () => void;
|
|
1433
|
+
/** Current active path — used to highlight active nav items */
|
|
1434
|
+
activePath?: string;
|
|
1435
|
+
/** Called when a nav item is clicked (use to close mobile drawer, push router, etc.) */
|
|
1436
|
+
onNavigate?: (href: string) => void;
|
|
1437
|
+
/** Navigation items (main nav) */
|
|
1438
|
+
navItems?: MosaicSidebarNavItem[];
|
|
1439
|
+
/** Quick action buttons */
|
|
1440
|
+
quickActions?: MosaicSidebarQuickAction[];
|
|
1441
|
+
/** Recent activity items */
|
|
1442
|
+
recentItems?: MosaicSidebarRecentItem[];
|
|
1443
|
+
/** Logo / brand slot (shown in header when expanded) */
|
|
1444
|
+
logoSlot?: React.ReactNode;
|
|
1445
|
+
/** Footer status pill */
|
|
1446
|
+
footerStatus?: MosaicSidebarFooterStatus;
|
|
1447
|
+
className?: string;
|
|
1448
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
1449
|
+
}
|
|
1450
|
+
/**
|
|
1451
|
+
* MosaicAppSidebar — collapsible sidebar with nav, quick actions, recent items, footer.
|
|
1452
|
+
* Props-driven: no hardcoded routes or branding. Wires to MosaicDeviceProvider.
|
|
1453
|
+
*
|
|
1454
|
+
* @example
|
|
1455
|
+
* <MosaicDeviceProvider>
|
|
1456
|
+
* <MosaicAppSidebar
|
|
1457
|
+
* isCollapsed={collapsed}
|
|
1458
|
+
* onToggleCollapse={() => setCollapsed(c => !c)}
|
|
1459
|
+
* activePath={router.pathname}
|
|
1460
|
+
* onNavigate={(href) => { router.push(href); }}
|
|
1461
|
+
* navItems={[{ id: "home", label: "Home", href: "/", icon: <HomeIcon /> }]}
|
|
1462
|
+
* logoSlot={<img src="/logo.svg" alt="Brand" className="h-6 w-auto" />}
|
|
1463
|
+
* />
|
|
1464
|
+
* </MosaicDeviceProvider>
|
|
1465
|
+
*/
|
|
1466
|
+
declare function MosaicAppSidebar({ isCollapsed, onToggleCollapse, activePath, onNavigate, navItems, quickActions, recentItems, logoSlot, footerStatus, className, ref, }: MosaicAppSidebarProps): React.JSX.Element;
|
|
1467
|
+
declare namespace MosaicAppSidebar {
|
|
1468
|
+
var displayName: string;
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
/**
|
|
1472
|
+
* MosaicDashboardLayout — full app shell (PC-05)
|
|
1473
|
+
*
|
|
1474
|
+
* Ported (source: private upstream) components/dashboard/DashboardLayout.tsx
|
|
1475
|
+
*
|
|
1476
|
+
* Features:
|
|
1477
|
+
* - Sticky header with title, subtitle, optional breadcrumbs, actions slot
|
|
1478
|
+
* - Desktop: persistent sidebar (MosaicAppSidebar)
|
|
1479
|
+
* - Mobile: hamburger button → AdaptiveModal drawer containing sidebar
|
|
1480
|
+
* - headerActions slot: replaces debate-specific OrgSwitcher/TokenBalance/QuickActionsMenu
|
|
1481
|
+
* - Fully props-driven, zero hardcoded branding
|
|
1482
|
+
*
|
|
1483
|
+
* Framer-motion (header animation) replaced with CSS keyframe.
|
|
1484
|
+
* Breadcrumb: rendered with semantic <nav>/<ol> (no Radix dep).
|
|
1485
|
+
* next/link removed — breadcrumbs use <a> by default; renderLink prop for router consumers.
|
|
1486
|
+
* ScrollArea Radix removed — native overflow-auto.
|
|
1487
|
+
* Respects prefers-reduced-motion.
|
|
1488
|
+
*/
|
|
1489
|
+
|
|
1490
|
+
interface MosaicBreadcrumb {
|
|
1491
|
+
label: string;
|
|
1492
|
+
href?: string;
|
|
1493
|
+
}
|
|
1494
|
+
interface MosaicDashboardLayoutProps {
|
|
1495
|
+
children: React.ReactNode;
|
|
1496
|
+
title?: string;
|
|
1497
|
+
subtitle?: string;
|
|
1498
|
+
breadcrumbs?: MosaicBreadcrumb[];
|
|
1499
|
+
/** Slot for header-right actions (theme toggle, avatar, etc.) */
|
|
1500
|
+
actions?: React.ReactNode;
|
|
1501
|
+
/** Props forwarded to MosaicAppSidebar (navItems, quickActions, etc.) */
|
|
1502
|
+
sidebarProps?: Omit<MosaicAppSidebarProps, "isCollapsed" | "onToggleCollapse">;
|
|
1503
|
+
/** Whether sidebar starts collapsed (default false) */
|
|
1504
|
+
defaultSidebarCollapsed?: boolean;
|
|
1505
|
+
/** Mobile modal title (default "Navigation") */
|
|
1506
|
+
mobileSidebarTitle?: string;
|
|
1507
|
+
/**
|
|
1508
|
+
* Custom link renderer for breadcrumbs (e.g. Next.js Link).
|
|
1509
|
+
* Default: native <a>.
|
|
1510
|
+
*/
|
|
1511
|
+
renderLink?: (href: string, children: React.ReactNode) => React.ReactNode;
|
|
1512
|
+
className?: string;
|
|
1513
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
1514
|
+
}
|
|
1515
|
+
/**
|
|
1516
|
+
* MosaicDashboardLayout — full-height app shell with persistent sidebar (desktop)
|
|
1517
|
+
* and drawer sidebar (mobile). All content via props/children.
|
|
1518
|
+
*
|
|
1519
|
+
* @example
|
|
1520
|
+
* <MosaicDeviceProvider>
|
|
1521
|
+
* <MosaicDashboardLayout
|
|
1522
|
+
* title="Dashboard"
|
|
1523
|
+
* subtitle="Overview"
|
|
1524
|
+
* breadcrumbs={[{ label: "Home", href: "/" }, { label: "Dashboard" }]}
|
|
1525
|
+
* actions={<ThemeToggle />}
|
|
1526
|
+
* sidebarProps={{
|
|
1527
|
+
* navItems: [...],
|
|
1528
|
+
* logoSlot: <img src="/logo.svg" alt="Brand" />,
|
|
1529
|
+
* }}
|
|
1530
|
+
* >
|
|
1531
|
+
* <DashboardContent />
|
|
1532
|
+
* </MosaicDashboardLayout>
|
|
1533
|
+
* </MosaicDeviceProvider>
|
|
1534
|
+
*/
|
|
1535
|
+
declare function MosaicDashboardLayout({ children, title, subtitle, breadcrumbs, actions, sidebarProps, defaultSidebarCollapsed, mobileSidebarTitle, renderLink, className, ref, }: MosaicDashboardLayoutProps): React.JSX.Element;
|
|
1536
|
+
declare namespace MosaicDashboardLayout {
|
|
1537
|
+
var displayName: string;
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
/**
|
|
1541
|
+
* MosaicQuickActionCard — 6-accent action card grid (PC-07)
|
|
1542
|
+
*
|
|
1543
|
+
* Ported (source: private upstream) components/dashboard/QuickActions.tsx
|
|
1544
|
+
*
|
|
1545
|
+
* Renders a grid of action cards. Each card: icon slot, title, description,
|
|
1546
|
+
* accent color variant (6 presets: yellow, blue, green, purple, orange, cyan).
|
|
1547
|
+
* Cards have hover scale (CSS) + stagger reveal (CSS keyframes).
|
|
1548
|
+
*
|
|
1549
|
+
* Generalized: hardcoded debate hrefs stripped; externalized as actions[] prop.
|
|
1550
|
+
* Icon: caller-provided ReactNode (any SVG/component).
|
|
1551
|
+
* Link: uses <a> by default; provide renderLink prop for router-aware links.
|
|
1552
|
+
*
|
|
1553
|
+
* Framer-motion replaced with CSS keyframe stagger (precedent: MosaicAnimatedList).
|
|
1554
|
+
* Respects prefers-reduced-motion.
|
|
1555
|
+
* Icons: caller-provided (no lucide dep).
|
|
1556
|
+
*/
|
|
1557
|
+
|
|
1558
|
+
type MosaicActionAccent = "yellow" | "blue" | "green" | "purple" | "orange" | "cyan" | "gray";
|
|
1559
|
+
interface MosaicQuickAction$1 {
|
|
1560
|
+
/** Stable unique identifier for this action */
|
|
1561
|
+
id: string;
|
|
1562
|
+
title: string;
|
|
1563
|
+
description: string;
|
|
1564
|
+
/** Icon node — caller provides any SVG or component (no lucide dep) */
|
|
1565
|
+
icon: React.ReactNode;
|
|
1566
|
+
href: string;
|
|
1567
|
+
/** Accent color preset (default "blue") */
|
|
1568
|
+
accent?: MosaicActionAccent;
|
|
1569
|
+
}
|
|
1570
|
+
interface MosaicQuickActionCardProps {
|
|
1571
|
+
actions: MosaicQuickAction$1[];
|
|
1572
|
+
/** Section heading (optional) */
|
|
1573
|
+
heading?: string;
|
|
1574
|
+
/** Custom columns (default: 2 mobile, 3 desktop) */
|
|
1575
|
+
columns?: {
|
|
1576
|
+
mobile?: number;
|
|
1577
|
+
desktop?: number;
|
|
1578
|
+
};
|
|
1579
|
+
/**
|
|
1580
|
+
* Custom link renderer — use for Next.js Link or router-aware navigation.
|
|
1581
|
+
* Receives href + children, must return a valid anchor-like element.
|
|
1582
|
+
* Default: native <a>.
|
|
1583
|
+
*/
|
|
1584
|
+
renderLink?: (href: string, children: React.ReactNode) => React.ReactNode;
|
|
1585
|
+
className?: string;
|
|
1586
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
1587
|
+
}
|
|
1588
|
+
/**
|
|
1589
|
+
* MosaicQuickActionCard — grid of action cards with 6 accent variants.
|
|
1590
|
+
* Each card links to an href. Fully props-driven; no hardcoded routes.
|
|
1591
|
+
*
|
|
1592
|
+
* @example
|
|
1593
|
+
* <MosaicQuickActionCard
|
|
1594
|
+
* heading="Quick Actions"
|
|
1595
|
+
* actions={[
|
|
1596
|
+
* { id: "create", title: "Create", description: "Start new item", icon: <PlusIcon />, href: "/create", accent: "green" },
|
|
1597
|
+
* ]}
|
|
1598
|
+
* />
|
|
1599
|
+
*/
|
|
1600
|
+
declare function MosaicQuickActionCard({ actions, heading, columns, renderLink, className, ref, }: MosaicQuickActionCardProps): React.JSX.Element;
|
|
1601
|
+
declare namespace MosaicQuickActionCard {
|
|
1602
|
+
var displayName: string;
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
/**
|
|
1606
|
+
* MosaicActivityFeed — stagger-reveal activity list with status badges (PC-08)
|
|
1607
|
+
*
|
|
1608
|
+
* Ported (source: private upstream) components/dashboard/RecentActivity.tsx
|
|
1609
|
+
*
|
|
1610
|
+
* Feed card with stagger-reveal rows. Each row (MosaicActivityItem):
|
|
1611
|
+
* - icon slot (caller-provided ReactNode)
|
|
1612
|
+
* - title, description
|
|
1613
|
+
* - participant avatar stack (initials fallback)
|
|
1614
|
+
* - message count
|
|
1615
|
+
* - status badge (active / completed / archived + accent colors)
|
|
1616
|
+
* - timestamp
|
|
1617
|
+
*
|
|
1618
|
+
* Generalized: hardcoded debate mock data stripped; externalized as activities[].
|
|
1619
|
+
* "View All" link slot via viewAllHref prop + optional renderLink.
|
|
1620
|
+
*
|
|
1621
|
+
* Framer-motion replaced with CSS stagger (precedent: MosaicAnimatedList).
|
|
1622
|
+
* Respects prefers-reduced-motion.
|
|
1623
|
+
* Icons: inline SVG (no lucide dep).
|
|
1624
|
+
*/
|
|
1625
|
+
|
|
1626
|
+
type MosaicActivityStatus = "active" | "completed" | "archived";
|
|
1627
|
+
interface MosaicActivity {
|
|
1628
|
+
/** Stable unique identifier */
|
|
1629
|
+
id: string;
|
|
1630
|
+
/** Activity category string (used to pick icon if iconMap provided) */
|
|
1631
|
+
type: string;
|
|
1632
|
+
title: string;
|
|
1633
|
+
description?: string;
|
|
1634
|
+
timestamp: string;
|
|
1635
|
+
status: MosaicActivityStatus;
|
|
1636
|
+
/** Array of participant labels (shown as initials avatars) */
|
|
1637
|
+
participants?: string[];
|
|
1638
|
+
/** Number of messages/events in this activity */
|
|
1639
|
+
messages?: number;
|
|
1640
|
+
}
|
|
1641
|
+
interface MosaicActivityFeedProps {
|
|
1642
|
+
activities: MosaicActivity[];
|
|
1643
|
+
/** Section heading */
|
|
1644
|
+
heading?: string;
|
|
1645
|
+
/** Href for "View All" link */
|
|
1646
|
+
viewAllHref?: string;
|
|
1647
|
+
/**
|
|
1648
|
+
* Map of activity.type → icon ReactNode.
|
|
1649
|
+
* Default: generic clock icon for all types.
|
|
1650
|
+
*/
|
|
1651
|
+
iconMap?: Record<string, React.ReactNode>;
|
|
1652
|
+
/**
|
|
1653
|
+
* Custom link renderer (e.g. Next.js Link).
|
|
1654
|
+
* Default: native <a>.
|
|
1655
|
+
*/
|
|
1656
|
+
renderLink?: (href: string, children: React.ReactNode) => React.ReactNode;
|
|
1657
|
+
className?: string;
|
|
1658
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
1659
|
+
}
|
|
1660
|
+
interface MosaicActivityItemProps {
|
|
1661
|
+
activity: MosaicActivity;
|
|
1662
|
+
icon?: React.ReactNode;
|
|
1663
|
+
className?: string;
|
|
1664
|
+
}
|
|
1665
|
+
/**
|
|
1666
|
+
* MosaicActivityItem — single row in the activity feed.
|
|
1667
|
+
* Can be used standalone outside MosaicActivityFeed.
|
|
1668
|
+
*/
|
|
1669
|
+
declare function MosaicActivityItem({ activity, icon, className }: MosaicActivityItemProps): React.JSX.Element;
|
|
1670
|
+
declare namespace MosaicActivityItem {
|
|
1671
|
+
var displayName: string;
|
|
1672
|
+
}
|
|
1673
|
+
/**
|
|
1674
|
+
* MosaicActivityFeed — scrollable card listing recent activities with stagger reveal.
|
|
1675
|
+
*
|
|
1676
|
+
* @example
|
|
1677
|
+
* <MosaicActivityFeed
|
|
1678
|
+
* heading="Recent Activity"
|
|
1679
|
+
* viewAllHref="/history"
|
|
1680
|
+
* activities={[
|
|
1681
|
+
* { id: "1", type: "task", title: "Published report", description: "PDF export", timestamp: "2h ago", status: "completed" },
|
|
1682
|
+
* ]}
|
|
1683
|
+
* />
|
|
1684
|
+
*/
|
|
1685
|
+
declare function MosaicActivityFeed({ activities, heading, viewAllHref, iconMap, renderLink, className, ref, }: MosaicActivityFeedProps): React.JSX.Element;
|
|
1686
|
+
declare namespace MosaicActivityFeed {
|
|
1687
|
+
var displayName: string;
|
|
1688
|
+
}
|
|
1689
|
+
|
|
1690
|
+
interface MosaicComposerModule {
|
|
1691
|
+
name: string;
|
|
1692
|
+
description?: string;
|
|
1693
|
+
/** Short supplementary text (traits, expertise, step count, etc.) */
|
|
1694
|
+
detail?: string;
|
|
1695
|
+
icon?: string;
|
|
1696
|
+
tags?: string[];
|
|
1697
|
+
}
|
|
1698
|
+
interface MosaicComposerModel {
|
|
1699
|
+
name: string;
|
|
1700
|
+
provider?: string;
|
|
1701
|
+
contextWindow?: number;
|
|
1702
|
+
recommended?: boolean;
|
|
1703
|
+
pricingLabel?: string;
|
|
1704
|
+
}
|
|
1705
|
+
interface MosaicAgentComposerProps {
|
|
1706
|
+
agentName: string;
|
|
1707
|
+
onAgentNameChange: (name: string) => void;
|
|
1708
|
+
customInstructions: string;
|
|
1709
|
+
onCustomInstructionsChange: (instructions: string) => void;
|
|
1710
|
+
selectedRole?: MosaicComposerModule;
|
|
1711
|
+
selectedPersona?: MosaicComposerModule;
|
|
1712
|
+
selectedFramework?: MosaicComposerModule;
|
|
1713
|
+
selectedModel?: MosaicComposerModel;
|
|
1714
|
+
onSelectRole: () => void;
|
|
1715
|
+
onSelectPersona: () => void;
|
|
1716
|
+
onSelectFramework: () => void;
|
|
1717
|
+
onSelectModel: () => void;
|
|
1718
|
+
onRemoveRole: () => void;
|
|
1719
|
+
onRemovePersona: () => void;
|
|
1720
|
+
onRemoveFramework: () => void;
|
|
1721
|
+
onSave: () => void;
|
|
1722
|
+
onCancel?: () => void;
|
|
1723
|
+
canSave: boolean;
|
|
1724
|
+
isEditMode?: boolean;
|
|
1725
|
+
/** Labels override — localize or rename slots */
|
|
1726
|
+
labels?: {
|
|
1727
|
+
role?: string;
|
|
1728
|
+
persona?: string;
|
|
1729
|
+
framework?: string;
|
|
1730
|
+
model?: string;
|
|
1731
|
+
customInstructions?: string;
|
|
1732
|
+
saveLabel?: string;
|
|
1733
|
+
cancelLabel?: string;
|
|
1734
|
+
heading?: string;
|
|
1735
|
+
subheading?: string;
|
|
1736
|
+
headingEdit?: string;
|
|
1737
|
+
subheadingEdit?: string;
|
|
1738
|
+
};
|
|
1739
|
+
}
|
|
1740
|
+
/**
|
|
1741
|
+
* MosaicAgentComposerDesktop — two-column composer (desktop half of responsive pair).
|
|
1742
|
+
* Share the same props contract with MosaicAgentComposerMobile.
|
|
1743
|
+
* Use MosaicAgentComposer orchestrator to select the right variant automatically.
|
|
1744
|
+
*/
|
|
1745
|
+
declare function MosaicAgentComposerDesktop({ agentName, onAgentNameChange, customInstructions, onCustomInstructionsChange, selectedRole, selectedPersona, selectedFramework, selectedModel, onSelectRole, onSelectPersona, onSelectFramework, onSelectModel, onRemoveRole, onRemovePersona, onRemoveFramework, onSave, onCancel, canSave, isEditMode, labels, }: MosaicAgentComposerProps): React.JSX.Element;
|
|
1746
|
+
declare namespace MosaicAgentComposerDesktop {
|
|
1747
|
+
var displayName: string;
|
|
1748
|
+
}
|
|
1749
|
+
|
|
1750
|
+
/**
|
|
1751
|
+
* MosaicAgentComposerMobile — single-col composer, mobile variant (PC-10)
|
|
1752
|
+
*
|
|
1753
|
+
* Ported (source: private upstream) components/agent-composer/AgentComposerMobile.tsx
|
|
1754
|
+
*
|
|
1755
|
+
* Single-column scrollable form with:
|
|
1756
|
+
* - Sticky header with back button (edit mode) + title
|
|
1757
|
+
* - 4 module slots (role, persona, framework, model)
|
|
1758
|
+
* - Custom instructions textarea
|
|
1759
|
+
* - Sticky bottom CTA bar (Create / Save + Cancel)
|
|
1760
|
+
* - isLoading prop for async feedback
|
|
1761
|
+
* - Full ARIA attributes (aria-required, aria-invalid, aria-describedby)
|
|
1762
|
+
*
|
|
1763
|
+
* Shares MosaicAgentComposerProps with Desktop variant (same contract, minor extensions).
|
|
1764
|
+
* No device detection — parent (MosaicAgentComposer) routes device → variant.
|
|
1765
|
+
*
|
|
1766
|
+
* Framer-motion: N/A.
|
|
1767
|
+
* Icons: inline SVG (no lucide dep).
|
|
1768
|
+
*/
|
|
1769
|
+
|
|
1770
|
+
interface MosaicAgentComposerMobileProps extends MosaicAgentComposerProps {
|
|
1771
|
+
/** Show loading state on submit button */
|
|
1772
|
+
isLoading?: boolean;
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
/**
|
|
1776
|
+
* MosaicAgentComposerMobile — single-column composer (mobile half of responsive pair).
|
|
1777
|
+
* Shares the same props contract as MosaicAgentComposerDesktop (plus isLoading).
|
|
1778
|
+
* Use MosaicAgentComposer orchestrator to select the right variant automatically.
|
|
1779
|
+
*/
|
|
1780
|
+
declare function MosaicAgentComposerMobile({ agentName, onAgentNameChange, customInstructions, onCustomInstructionsChange, selectedRole, selectedPersona, selectedFramework, selectedModel, onSelectRole, onSelectPersona, onSelectFramework, onSelectModel, onRemoveRole, onRemovePersona, onRemoveFramework, onSave, onCancel, canSave, isEditMode, isLoading, labels, }: MosaicAgentComposerMobileProps): React.JSX.Element;
|
|
1781
|
+
declare namespace MosaicAgentComposerMobile {
|
|
1782
|
+
var displayName: string;
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
/**
|
|
1786
|
+
* MosaicAgentComposer — device-adaptive composer that renders the Desktop
|
|
1787
|
+
* variant on lg+ and the Mobile variant below lg.
|
|
1788
|
+
*
|
|
1789
|
+
* Wrap in MosaicDeviceProvider. All props flow through unchanged.
|
|
1790
|
+
*
|
|
1791
|
+
* @example
|
|
1792
|
+
* <MosaicDeviceProvider>
|
|
1793
|
+
* <MosaicAgentComposer
|
|
1794
|
+
* agentName={name}
|
|
1795
|
+
* onAgentNameChange={setName}
|
|
1796
|
+
* customInstructions={instructions}
|
|
1797
|
+
* onCustomInstructionsChange={setInstructions}
|
|
1798
|
+
* selectedRole={role}
|
|
1799
|
+
* onSelectRole={openRolePicker}
|
|
1800
|
+
* onRemoveRole={clearRole}
|
|
1801
|
+
* selectedPersona={persona}
|
|
1802
|
+
* onSelectPersona={openPersonaPicker}
|
|
1803
|
+
* onRemovePersona={clearPersona}
|
|
1804
|
+
* selectedFramework={framework}
|
|
1805
|
+
* onSelectFramework={openFrameworkPicker}
|
|
1806
|
+
* onRemoveFramework={clearFramework}
|
|
1807
|
+
* selectedModel={model}
|
|
1808
|
+
* onSelectModel={openModelPicker}
|
|
1809
|
+
* onRemoveModel={clearModel}
|
|
1810
|
+
* onSave={handleSave}
|
|
1811
|
+
* canSave={canSave}
|
|
1812
|
+
* />
|
|
1813
|
+
* </MosaicDeviceProvider>
|
|
1814
|
+
*/
|
|
1815
|
+
declare function MosaicAgentComposer(props: MosaicAgentComposerMobileProps): React.JSX.Element;
|
|
1816
|
+
declare namespace MosaicAgentComposer {
|
|
1817
|
+
var displayName: string;
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1820
|
+
/**
|
|
1821
|
+
* MosaicModuleCard — selected-module display card (PC-11)
|
|
1822
|
+
*
|
|
1823
|
+
* Ported (source: private upstream) components/agent-composer/ModuleCard.tsx
|
|
1824
|
+
*
|
|
1825
|
+
* Displays a selected module (role / persona / framework / any custom type)
|
|
1826
|
+
* with name, description, optional tags/details string, and edit/remove actions.
|
|
1827
|
+
* Used inside AgentComposer Desktop + Mobile variants.
|
|
1828
|
+
*
|
|
1829
|
+
* Generalized: removed debate-specific types (Role, Persona, ThinkingFramework)
|
|
1830
|
+
* in favour of a generic MosaicModuleData interface.
|
|
1831
|
+
* Removed useDevice dependency (parent controls layout context).
|
|
1832
|
+
*
|
|
1833
|
+
* Framer-motion: N/A.
|
|
1834
|
+
* Icons: inline SVG (no lucide dep).
|
|
1835
|
+
*/
|
|
1836
|
+
|
|
1837
|
+
interface MosaicModuleData {
|
|
1838
|
+
name: string;
|
|
1839
|
+
description?: string;
|
|
1840
|
+
/** Short detail string shown below description (e.g. "3 steps", "Expertise: UX, Research") */
|
|
1841
|
+
details?: string;
|
|
1842
|
+
/** Optional emoji or short string icon displayed in the card */
|
|
1843
|
+
icon?: string;
|
|
1844
|
+
/** Optional array of tag strings shown as badges */
|
|
1845
|
+
tags?: string[];
|
|
1846
|
+
}
|
|
1847
|
+
type MosaicModuleType = "role" | "persona" | "framework" | string;
|
|
1848
|
+
interface MosaicModuleCardProps {
|
|
1849
|
+
type: MosaicModuleType;
|
|
1850
|
+
module: MosaicModuleData;
|
|
1851
|
+
onRemove?: () => void;
|
|
1852
|
+
onEdit?: () => void;
|
|
1853
|
+
isSelected?: boolean;
|
|
1854
|
+
isCustom?: boolean;
|
|
1855
|
+
className?: string;
|
|
1856
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
1857
|
+
}
|
|
1858
|
+
/**
|
|
1859
|
+
* MosaicModuleCard — filled-state card for a selected module slot.
|
|
1860
|
+
* Shows name, description, optional details, icon, tags, and edit/remove actions.
|
|
1861
|
+
*
|
|
1862
|
+
* @example
|
|
1863
|
+
* <MosaicModuleCard
|
|
1864
|
+
* type="role"
|
|
1865
|
+
* module={{ name: "Product Manager", description: "Drives product strategy", tags: ["strategy", "roadmap"] }}
|
|
1866
|
+
* onEdit={() => openRolePicker()}
|
|
1867
|
+
* onRemove={() => clearRole()}
|
|
1868
|
+
* />
|
|
1869
|
+
*/
|
|
1870
|
+
declare function MosaicModuleCard({ type: _type, module, onRemove, onEdit, isSelected, isCustom, className, ref, }: MosaicModuleCardProps): React.JSX.Element;
|
|
1871
|
+
declare namespace MosaicModuleCard {
|
|
1872
|
+
var displayName: string;
|
|
1873
|
+
}
|
|
1874
|
+
|
|
1875
|
+
/**
|
|
1876
|
+
* MosaicThemeProvider — next-themes wrapper (generic)
|
|
1877
|
+
*
|
|
1878
|
+
* Ported from components/theme-provider.tsx
|
|
1879
|
+
*
|
|
1880
|
+
* Thin wrapper that accepts next-themes ThemeProvider as a peer dependency.
|
|
1881
|
+
* Consumers who use next-themes can pass it directly; otherwise falls back to
|
|
1882
|
+
* a plain div wrapper for SSR compatibility.
|
|
1883
|
+
*
|
|
1884
|
+
* This avoids a hard dep on next-themes in mosaic-blocks itself.
|
|
1885
|
+
*/
|
|
1886
|
+
|
|
1887
|
+
interface MosaicThemeProviderProps {
|
|
1888
|
+
children: React.ReactNode;
|
|
1889
|
+
/** next-themes ThemeProvider component — injected by caller */
|
|
1890
|
+
provider?: React.ComponentType<{
|
|
1891
|
+
children: React.ReactNode;
|
|
1892
|
+
[key: string]: unknown;
|
|
1893
|
+
}>;
|
|
1894
|
+
attribute?: string;
|
|
1895
|
+
defaultTheme?: string;
|
|
1896
|
+
enableSystem?: boolean;
|
|
1897
|
+
disableTransitionOnChange?: boolean;
|
|
1898
|
+
storageKey?: string;
|
|
1899
|
+
themes?: string[];
|
|
1900
|
+
forcedTheme?: string;
|
|
1901
|
+
[key: string]: unknown;
|
|
1902
|
+
}
|
|
1903
|
+
/**
|
|
1904
|
+
* MosaicThemeProvider — wraps children with a theme provider.
|
|
1905
|
+
*
|
|
1906
|
+
* Pass `provider` = ThemeProvider from "next-themes" (or any compatible
|
|
1907
|
+
* theme provider) to enable full theme switching. If omitted, renders
|
|
1908
|
+
* children directly (no theme context).
|
|
1909
|
+
*
|
|
1910
|
+
* @example
|
|
1911
|
+
* import { ThemeProvider } from "next-themes"
|
|
1912
|
+
* <MosaicThemeProvider provider={ThemeProvider} attribute="class" defaultTheme="system" enableSystem>
|
|
1913
|
+
* {children}
|
|
1914
|
+
* </MosaicThemeProvider>
|
|
1915
|
+
*/
|
|
1916
|
+
declare function MosaicThemeProvider({ children, provider: Provider, ...props }: MosaicThemeProviderProps): React.JSX.Element;
|
|
1917
|
+
declare namespace MosaicThemeProvider {
|
|
1918
|
+
var displayName: string;
|
|
1919
|
+
}
|
|
1920
|
+
|
|
1921
|
+
interface MosaicDeleteConfirmationDialogProps {
|
|
1922
|
+
/** Whether the dialog is open */
|
|
1923
|
+
open: boolean;
|
|
1924
|
+
/** Called when the open state should change */
|
|
1925
|
+
onOpenChange: (open: boolean) => void;
|
|
1926
|
+
/** Called when the user confirms deletion */
|
|
1927
|
+
onConfirm: () => void;
|
|
1928
|
+
/** Human-readable name of the item to be deleted */
|
|
1929
|
+
itemName: string;
|
|
1930
|
+
/** Type label shown in the title and button ("agent", "template", etc.) */
|
|
1931
|
+
itemType?: string;
|
|
1932
|
+
/** Override the title text */
|
|
1933
|
+
title?: string;
|
|
1934
|
+
/** Override the description text */
|
|
1935
|
+
description?: string;
|
|
1936
|
+
/** Override the cancel button label */
|
|
1937
|
+
cancelLabel?: string;
|
|
1938
|
+
/** Override the confirm button label */
|
|
1939
|
+
confirmLabel?: string;
|
|
1940
|
+
}
|
|
1941
|
+
declare function MosaicDeleteConfirmationDialog({ open, onOpenChange, onConfirm, itemName, itemType, title, description, cancelLabel, confirmLabel, }: MosaicDeleteConfirmationDialogProps): React.JSX.Element;
|
|
1942
|
+
declare namespace MosaicDeleteConfirmationDialog {
|
|
1943
|
+
var displayName: string;
|
|
1944
|
+
}
|
|
1945
|
+
|
|
1946
|
+
interface MosaicSelectItem {
|
|
1947
|
+
value: string;
|
|
1948
|
+
label: string;
|
|
1949
|
+
}
|
|
1950
|
+
interface MosaicPreference {
|
|
1951
|
+
id: string;
|
|
1952
|
+
label: string;
|
|
1953
|
+
description?: string;
|
|
1954
|
+
type: "select" | "toggle";
|
|
1955
|
+
value: string | boolean;
|
|
1956
|
+
/** For type="select" — list of options */
|
|
1957
|
+
options?: MosaicSelectItem[];
|
|
1958
|
+
}
|
|
1959
|
+
interface MosaicPreferenceGroup {
|
|
1960
|
+
id: string;
|
|
1961
|
+
title: string;
|
|
1962
|
+
description?: string;
|
|
1963
|
+
preferences: MosaicPreference[];
|
|
1964
|
+
}
|
|
1965
|
+
interface MosaicPreferencesPanelProps {
|
|
1966
|
+
/** Grouped preference sections */
|
|
1967
|
+
groups: MosaicPreferenceGroup[];
|
|
1968
|
+
/** Called with updated key/value when a preference changes */
|
|
1969
|
+
onChange: (id: string, value: string | boolean) => void;
|
|
1970
|
+
/** Called when user clicks Save */
|
|
1971
|
+
onSave: () => void;
|
|
1972
|
+
/** Whether the save action is pending */
|
|
1973
|
+
isSaving?: boolean;
|
|
1974
|
+
/** Label for the save button (default "Save Preferences") */
|
|
1975
|
+
saveLabel?: string;
|
|
1976
|
+
className?: string;
|
|
1977
|
+
}
|
|
1978
|
+
declare function MosaicPreferencesPanel({ groups, onChange, onSave, isSaving, saveLabel, className, }: MosaicPreferencesPanelProps): React.JSX.Element;
|
|
1979
|
+
declare namespace MosaicPreferencesPanel {
|
|
1980
|
+
var displayName: string;
|
|
1981
|
+
}
|
|
1982
|
+
|
|
1983
|
+
/**
|
|
1984
|
+
* MosaicProfilePanel — generic user profile form
|
|
1985
|
+
*
|
|
1986
|
+
* Ported from components/settings/profile-panel.tsx
|
|
1987
|
+
*
|
|
1988
|
+
* Fully controlled via props. No internal toast calls, no API calls.
|
|
1989
|
+
* Consumers wire onSave, onAvatarUpload, onChange externally.
|
|
1990
|
+
* Avatar upload trigger is a slot (optional). No Radix Avatar dep — CSS initials fallback.
|
|
1991
|
+
*/
|
|
1992
|
+
|
|
1993
|
+
interface MosaicProfileField {
|
|
1994
|
+
id: string;
|
|
1995
|
+
label: string;
|
|
1996
|
+
type?: "text" | "email" | "textarea" | "password";
|
|
1997
|
+
value: string;
|
|
1998
|
+
placeholder?: string;
|
|
1999
|
+
readOnly?: boolean;
|
|
2000
|
+
}
|
|
2001
|
+
interface MosaicProfilePanelProps {
|
|
2002
|
+
/** Display name — used for avatar initials fallback */
|
|
2003
|
+
displayName?: string;
|
|
2004
|
+
/** Avatar image URL */
|
|
2005
|
+
avatarSrc?: string;
|
|
2006
|
+
/** Profile fields to render */
|
|
2007
|
+
fields?: MosaicProfileField[];
|
|
2008
|
+
/** Called when a field value changes */
|
|
2009
|
+
onFieldChange?: (id: string, value: string) => void;
|
|
2010
|
+
/** Called when user clicks Save */
|
|
2011
|
+
onSave: () => void;
|
|
2012
|
+
/** Whether save is pending */
|
|
2013
|
+
isSaving?: boolean;
|
|
2014
|
+
/** Called when user clicks the avatar upload button */
|
|
2015
|
+
onAvatarUpload?: () => void;
|
|
2016
|
+
/** Custom sections to render below the form */
|
|
2017
|
+
extraSections?: React.ReactNode;
|
|
2018
|
+
/** Label for the save button */
|
|
2019
|
+
saveLabel?: string;
|
|
2020
|
+
/** Security section: called when user clicks "Change Password" */
|
|
2021
|
+
onChangePassword?: () => void;
|
|
2022
|
+
className?: string;
|
|
2023
|
+
}
|
|
2024
|
+
declare function MosaicProfilePanel({ displayName, avatarSrc, fields, onFieldChange, onSave, isSaving, onAvatarUpload, extraSections, saveLabel, onChangePassword, className, }: MosaicProfilePanelProps): React.JSX.Element;
|
|
2025
|
+
declare namespace MosaicProfilePanel {
|
|
2026
|
+
var displayName: string;
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
/**
|
|
2030
|
+
* MosaicMainNav — generic responsive top-nav
|
|
2031
|
+
*
|
|
2032
|
+
* Ported from components/layout/main-nav.tsx
|
|
2033
|
+
*
|
|
2034
|
+
* Desktop: inline horizontal link strip.
|
|
2035
|
+
* Mobile: hamburger → slide-out drawer (pure CSS, no Radix Sheet dep).
|
|
2036
|
+
* All nav items, branding, and hrefs are props — zero hardcoded debate routes.
|
|
2037
|
+
* next/link replaced with `renderLink` prop (default: <a> tag).
|
|
2038
|
+
* Respects prefers-reduced-motion.
|
|
2039
|
+
*/
|
|
2040
|
+
|
|
2041
|
+
interface MosaicNavItem {
|
|
2042
|
+
href: string;
|
|
2043
|
+
label: string;
|
|
2044
|
+
/** Lucide-compatible icon component */
|
|
2045
|
+
icon?: React.ElementType;
|
|
2046
|
+
/** If true, only rendered when isAdmin=true */
|
|
2047
|
+
adminOnly?: boolean;
|
|
2048
|
+
/** Whether this item is currently active */
|
|
2049
|
+
isActive?: boolean;
|
|
2050
|
+
}
|
|
2051
|
+
interface MosaicMainNavProps {
|
|
2052
|
+
items?: MosaicNavItem[];
|
|
2053
|
+
/** Current pathname for active-state matching (if items don't carry isActive) */
|
|
2054
|
+
activePath?: string;
|
|
2055
|
+
/** When true, adminOnly items are shown */
|
|
2056
|
+
isAdmin?: boolean;
|
|
2057
|
+
/** Custom link renderer (e.g. Next.js Link). Defaults to <a>. */
|
|
2058
|
+
renderLink?: (item: MosaicNavItem, children: React.ReactNode, className: string, onClick?: () => void) => React.ReactNode;
|
|
2059
|
+
/** Mobile drawer title */
|
|
2060
|
+
drawerTitle?: string;
|
|
2061
|
+
/** Mobile drawer subtitle */
|
|
2062
|
+
drawerSubtitle?: string;
|
|
2063
|
+
className?: string;
|
|
2064
|
+
}
|
|
2065
|
+
declare function MosaicMainNav({ items, activePath, isAdmin, renderLink, drawerTitle, drawerSubtitle, className, }: MosaicMainNavProps): React.JSX.Element;
|
|
2066
|
+
declare namespace MosaicMainNav {
|
|
2067
|
+
var displayName: string;
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2070
|
+
/**
|
|
2071
|
+
* MosaicAgentCard — generic agent/resource card with status toggle
|
|
2072
|
+
*
|
|
2073
|
+
* Ported from components/agent-management/AgentCard.tsx
|
|
2074
|
+
*
|
|
2075
|
+
* Features:
|
|
2076
|
+
* - Status indicator bar (top) + colored dot (model type)
|
|
2077
|
+
* - Active/inactive badge + toggle button
|
|
2078
|
+
* - 3-dot dropdown menu (activate/deactivate, edit, delete)
|
|
2079
|
+
* - Accent dot color per agent type via props
|
|
2080
|
+
*
|
|
2081
|
+
* Framer-motion replaced with CSS transitions.
|
|
2082
|
+
* toast/router removed — all actions are callbacks.
|
|
2083
|
+
* next/navigation removed.
|
|
2084
|
+
*/
|
|
2085
|
+
|
|
2086
|
+
interface MosaicAgentData {
|
|
2087
|
+
id: string;
|
|
2088
|
+
name: string;
|
|
2089
|
+
description?: string;
|
|
2090
|
+
type?: string;
|
|
2091
|
+
isActive?: boolean;
|
|
2092
|
+
createdAt?: string | Date;
|
|
2093
|
+
/** Tailwind bg class for the accent dot (e.g. "bg-green-500") */
|
|
2094
|
+
accentColor?: string;
|
|
2095
|
+
/** Whether edit/delete actions are available */
|
|
2096
|
+
isEditable?: boolean;
|
|
2097
|
+
}
|
|
2098
|
+
interface MosaicAgentCardProps {
|
|
2099
|
+
agent: MosaicAgentData;
|
|
2100
|
+
onToggleStatus?: (agentId: string) => void;
|
|
2101
|
+
onDelete?: (agentId: string) => void;
|
|
2102
|
+
onEdit?: (agentId: string) => void;
|
|
2103
|
+
/** Whether a toggle/save action is in progress */
|
|
2104
|
+
isLoading?: boolean;
|
|
2105
|
+
className?: string;
|
|
2106
|
+
}
|
|
2107
|
+
declare function MosaicAgentCard({ agent, onToggleStatus, onDelete, onEdit, isLoading, className, }: MosaicAgentCardProps): React.JSX.Element;
|
|
2108
|
+
declare namespace MosaicAgentCard {
|
|
2109
|
+
var displayName: string;
|
|
2110
|
+
}
|
|
2111
|
+
|
|
2112
|
+
/**
|
|
2113
|
+
* MosaicQuickAgentSelector — compact agent picker with pill tags + add dropdown/drawer
|
|
2114
|
+
*
|
|
2115
|
+
* Ported from components/agent-management/QuickAgentSelector.tsx
|
|
2116
|
+
*
|
|
2117
|
+
* Features:
|
|
2118
|
+
* - Scrollable list of selected agent pills with remove button
|
|
2119
|
+
* - Desktop: dropdown panel
|
|
2120
|
+
* - Mobile: bottom drawer via MosaicAdaptiveModal
|
|
2121
|
+
* - "Create custom" action slot
|
|
2122
|
+
*
|
|
2123
|
+
* framer-motion replaced with CSS transitions.
|
|
2124
|
+
* sonner toast removed — actions are callbacks.
|
|
2125
|
+
* Drawer replaced with MosaicAdaptiveModal (wave-1 component).
|
|
2126
|
+
*/
|
|
2127
|
+
|
|
2128
|
+
interface MosaicQuickAgent {
|
|
2129
|
+
id: string;
|
|
2130
|
+
/** Display name */
|
|
2131
|
+
name: string;
|
|
2132
|
+
/** Short type key (e.g. "GPT-4") */
|
|
2133
|
+
type: string;
|
|
2134
|
+
/** Description shown in the picker list */
|
|
2135
|
+
description?: string;
|
|
2136
|
+
/** Tailwind bg class for the accent dot */
|
|
2137
|
+
accentColor?: string;
|
|
2138
|
+
isActive?: boolean;
|
|
2139
|
+
}
|
|
2140
|
+
interface MosaicQuickAgentSelectorProps {
|
|
2141
|
+
/** Currently selected agents */
|
|
2142
|
+
selectedAgents: MosaicQuickAgent[];
|
|
2143
|
+
/** Available agents to pick from (already-selected ones hidden) */
|
|
2144
|
+
availableAgents?: MosaicQuickAgent[];
|
|
2145
|
+
onAddAgent: (agentId: string) => void;
|
|
2146
|
+
onRemoveAgent: (agentId: string) => void;
|
|
2147
|
+
/** Called when user clicks "Create custom" / "Configure" CTA */
|
|
2148
|
+
onOpenBuilder?: () => void;
|
|
2149
|
+
/** Max number of agents allowed */
|
|
2150
|
+
maxAgents?: number;
|
|
2151
|
+
/** Label for the add button */
|
|
2152
|
+
addLabel?: string;
|
|
2153
|
+
/** Label for the create-custom CTA */
|
|
2154
|
+
createLabel?: string;
|
|
2155
|
+
className?: string;
|
|
2156
|
+
}
|
|
2157
|
+
declare function MosaicQuickAgentSelector({ selectedAgents, availableAgents, onAddAgent, onRemoveAgent, onOpenBuilder, maxAgents, addLabel, createLabel, className, }: MosaicQuickAgentSelectorProps): React.JSX.Element;
|
|
2158
|
+
declare namespace MosaicQuickAgentSelector {
|
|
2159
|
+
var displayName: string;
|
|
2160
|
+
}
|
|
2161
|
+
|
|
2162
|
+
/**
|
|
2163
|
+
* MosaicSelectorModal — generic searchable item picker modal
|
|
2164
|
+
*
|
|
2165
|
+
* Ported from components/agent-config/FrameworkSelector / PersonaSelector / RoleSelector
|
|
2166
|
+
* combined into a single generic pattern.
|
|
2167
|
+
*
|
|
2168
|
+
* Features:
|
|
2169
|
+
* - Search bar
|
|
2170
|
+
* - Optional tab/category filter
|
|
2171
|
+
* - Card grid (1 or 2 columns) with selection state
|
|
2172
|
+
* - Multi-step stepper support (prev/next) when used inside AgentBuilderModal
|
|
2173
|
+
* - "Preview" slot for selected item detail
|
|
2174
|
+
*
|
|
2175
|
+
* Domain data (items, categories) are fully externalized via props.
|
|
2176
|
+
* framer-motion replaced with CSS transitions.
|
|
2177
|
+
* Rendered inside MosaicAdaptiveModal (wave-1).
|
|
2178
|
+
*/
|
|
2179
|
+
|
|
2180
|
+
interface MosaicSelectorItem {
|
|
2181
|
+
id: string;
|
|
2182
|
+
name: string;
|
|
2183
|
+
description?: string;
|
|
2184
|
+
tags?: string[];
|
|
2185
|
+
/** Optional icon or emoji */
|
|
2186
|
+
icon?: React.ReactNode;
|
|
2187
|
+
/** Category key for tab filtering */
|
|
2188
|
+
category?: string;
|
|
2189
|
+
/** Additional metadata to surface in cards */
|
|
2190
|
+
meta?: Record<string, string | number | boolean>;
|
|
2191
|
+
}
|
|
2192
|
+
interface MosaicSelectorCategory {
|
|
2193
|
+
id: string;
|
|
2194
|
+
label: string;
|
|
2195
|
+
}
|
|
2196
|
+
interface MosaicSelectorModalProps {
|
|
2197
|
+
isOpen: boolean;
|
|
2198
|
+
onClose: () => void;
|
|
2199
|
+
/** Dialog title */
|
|
2200
|
+
title: string;
|
|
2201
|
+
/** Optional description under title */
|
|
2202
|
+
description?: string;
|
|
2203
|
+
items: MosaicSelectorItem[];
|
|
2204
|
+
/** Currently selected item id */
|
|
2205
|
+
selectedId?: string;
|
|
2206
|
+
onSelect: (item: MosaicSelectorItem) => void;
|
|
2207
|
+
/** If provided, renders category tabs */
|
|
2208
|
+
categories?: MosaicSelectorCategory[];
|
|
2209
|
+
/** Search placeholder text */
|
|
2210
|
+
searchPlaceholder?: string;
|
|
2211
|
+
/** Number of columns in the grid (1 or 2, default 2) */
|
|
2212
|
+
columns?: 1 | 2;
|
|
2213
|
+
/** Slot rendered alongside selected item for preview */
|
|
2214
|
+
renderPreview?: (item: MosaicSelectorItem) => React.ReactNode;
|
|
2215
|
+
/** Confirm button label (default "Select") */
|
|
2216
|
+
confirmLabel?: string;
|
|
2217
|
+
/** Cancel button label (default "Cancel") */
|
|
2218
|
+
cancelLabel?: string;
|
|
2219
|
+
className?: string;
|
|
2220
|
+
}
|
|
2221
|
+
declare function MosaicSelectorModal({ isOpen, onClose, title, description, items, selectedId, onSelect, categories, searchPlaceholder, columns, renderPreview, confirmLabel, cancelLabel, }: MosaicSelectorModalProps): React.JSX.Element;
|
|
2222
|
+
declare namespace MosaicSelectorModal {
|
|
2223
|
+
var displayName: string;
|
|
2224
|
+
}
|
|
2225
|
+
|
|
2226
|
+
/**
|
|
2227
|
+
* MosaicMessageCard — generic message/chat card
|
|
2228
|
+
*
|
|
2229
|
+
* Ported from components/messages/message-card.tsx
|
|
2230
|
+
*
|
|
2231
|
+
* Features:
|
|
2232
|
+
* - Sender avatar (initials fallback) + name + type badge
|
|
2233
|
+
* - Message content + relative timestamp
|
|
2234
|
+
* - Like/dislike reactions, reply count, bookmark, copy, reply actions
|
|
2235
|
+
* - Compact mode
|
|
2236
|
+
*
|
|
2237
|
+
* Stripped: ChatMessage type from lib/chat/types, sonner toast, formatRelativeTime util.
|
|
2238
|
+
* Reactions managed as uncontrolled local state (callbacks still fire).
|
|
2239
|
+
*/
|
|
2240
|
+
|
|
2241
|
+
type MosaicMessageSenderType = "user" | "ai" | "system";
|
|
2242
|
+
interface MosaicMessageSender {
|
|
2243
|
+
id: string;
|
|
2244
|
+
name: string;
|
|
2245
|
+
type: MosaicMessageSenderType;
|
|
2246
|
+
avatarUrl?: string;
|
|
2247
|
+
/** Tailwind bg class for the avatar (e.g. "bg-green-500") */
|
|
2248
|
+
accentColor?: string;
|
|
2249
|
+
}
|
|
2250
|
+
interface MosaicMessageReactions {
|
|
2251
|
+
likes?: number;
|
|
2252
|
+
dislikes?: number;
|
|
2253
|
+
}
|
|
2254
|
+
interface MosaicMessage {
|
|
2255
|
+
id: string;
|
|
2256
|
+
content: string;
|
|
2257
|
+
sender: MosaicMessageSender;
|
|
2258
|
+
timestamp: string | number | Date;
|
|
2259
|
+
reactions?: MosaicMessageReactions;
|
|
2260
|
+
replyCount?: number;
|
|
2261
|
+
parentMessageId?: string;
|
|
2262
|
+
bookmarked?: boolean;
|
|
2263
|
+
}
|
|
2264
|
+
interface MosaicMessageCardProps {
|
|
2265
|
+
message: MosaicMessage;
|
|
2266
|
+
onReply?: (messageId: string) => void;
|
|
2267
|
+
onReaction?: (messageId: string, type: "like" | "dislike") => void;
|
|
2268
|
+
onBookmark?: (messageId: string) => void;
|
|
2269
|
+
onCopy?: (messageId: string, content: string) => void;
|
|
2270
|
+
showThread?: boolean;
|
|
2271
|
+
compact?: boolean;
|
|
2272
|
+
className?: string;
|
|
2273
|
+
}
|
|
2274
|
+
declare function MosaicMessageCard({ message, onReply, onReaction, onBookmark, onCopy, showThread, compact, className, }: MosaicMessageCardProps): React.JSX.Element;
|
|
2275
|
+
declare namespace MosaicMessageCard {
|
|
2276
|
+
var displayName: string;
|
|
2277
|
+
}
|
|
2278
|
+
|
|
2279
|
+
/**
|
|
2280
|
+
* MosaicMessageList — responsive message list (desktop + mobile responsive-pair)
|
|
2281
|
+
*
|
|
2282
|
+
* Ported from components/messages/message-list.tsx +
|
|
2283
|
+
* messages/desktop/message-list-desktop.tsx +
|
|
2284
|
+
* messages/mobile/message-list-mobile.tsx
|
|
2285
|
+
*
|
|
2286
|
+
* Orchestrator reads useDevice → Desktop/Mobile variant.
|
|
2287
|
+
* Desktop: scrollable card list with sticky header + search.
|
|
2288
|
+
* Mobile: compact card list with sticky "Load more" button.
|
|
2289
|
+
*
|
|
2290
|
+
* Props-driven — no internal state for messages (fully controlled).
|
|
2291
|
+
* sonner toast removed.
|
|
2292
|
+
*/
|
|
2293
|
+
|
|
2294
|
+
interface MosaicMessageListProps {
|
|
2295
|
+
messages: MosaicMessage[];
|
|
2296
|
+
onReply?: (messageId: string) => void;
|
|
2297
|
+
onReaction?: (messageId: string, type: "like" | "dislike") => void;
|
|
2298
|
+
onBookmark?: (messageId: string) => void;
|
|
2299
|
+
onCopy?: (messageId: string, content: string) => void;
|
|
2300
|
+
onLoadMore?: () => void;
|
|
2301
|
+
hasMore?: boolean;
|
|
2302
|
+
/** Optional title for the list header */
|
|
2303
|
+
title?: string;
|
|
2304
|
+
/** Whether messages are loading */
|
|
2305
|
+
isLoading?: boolean;
|
|
2306
|
+
className?: string;
|
|
2307
|
+
}
|
|
2308
|
+
declare function MessageListDesktop({ messages, onReply, onReaction, onBookmark, onCopy, onLoadMore, hasMore, title, isLoading, className, }: MosaicMessageListProps): React.JSX.Element;
|
|
2309
|
+
declare function MessageListMobile({ messages, onReply, onReaction, onBookmark, onCopy, onLoadMore, hasMore, title, isLoading, className, }: MosaicMessageListProps): React.JSX.Element;
|
|
2310
|
+
declare function MosaicMessageList(props: MosaicMessageListProps): React.JSX.Element;
|
|
2311
|
+
declare namespace MosaicMessageList {
|
|
2312
|
+
var displayName: string;
|
|
2313
|
+
}
|
|
2314
|
+
|
|
2315
|
+
interface MosaicFilterOption {
|
|
2316
|
+
id: string;
|
|
2317
|
+
label: string;
|
|
2318
|
+
count?: number | null;
|
|
2319
|
+
}
|
|
2320
|
+
interface MosaicFilterSidebarProps {
|
|
2321
|
+
isCollapsed: boolean;
|
|
2322
|
+
onToggleCollapse: () => void;
|
|
2323
|
+
/** Top-level filter tabs (e.g. All / Favorites / Templates) */
|
|
2324
|
+
filters?: MosaicFilterOption[];
|
|
2325
|
+
selectedFilter: string;
|
|
2326
|
+
onFilterChange: (filterId: string) => void;
|
|
2327
|
+
/** Category list */
|
|
2328
|
+
categories?: MosaicFilterOption[];
|
|
2329
|
+
selectedCategory: string;
|
|
2330
|
+
onCategoryChange: (categoryId: string) => void;
|
|
2331
|
+
/** Optional title for the sidebar */
|
|
2332
|
+
title?: string;
|
|
2333
|
+
className?: string;
|
|
2334
|
+
}
|
|
2335
|
+
declare function MosaicFilterSidebar({ isCollapsed, onToggleCollapse, filters, selectedFilter, onFilterChange, categories, selectedCategory, onCategoryChange, title, className, }: MosaicFilterSidebarProps): React.JSX.Element;
|
|
2336
|
+
declare namespace MosaicFilterSidebar {
|
|
2337
|
+
var displayName: string;
|
|
2338
|
+
}
|
|
2339
|
+
|
|
2340
|
+
/**
|
|
2341
|
+
* MosaicAgentList — responsive agent list with filter sidebar (responsive-pair)
|
|
2342
|
+
*
|
|
2343
|
+
* Ported from components/agents/ (agent-list.tsx + desktop/agent-list-desktop.tsx +
|
|
2344
|
+
* mobile/agent-list-mobile.tsx + AgentFilterSidebar.tsx)
|
|
2345
|
+
*
|
|
2346
|
+
* Features:
|
|
2347
|
+
* - Desktop: two-column layout (MosaicFilterSidebar + agent grid)
|
|
2348
|
+
* - Mobile: stacked layout with filter sheet (MosaicAdaptiveModal)
|
|
2349
|
+
* - Search, filter, category — fully controlled via props
|
|
2350
|
+
* - Renders MosaicAgentCard for each agent
|
|
2351
|
+
*
|
|
2352
|
+
* All debate-specific deps stripped (OrgSwitcher, TokenBalance, QuickActionsMenu,
|
|
2353
|
+
* next/navigation router push).
|
|
2354
|
+
*/
|
|
2355
|
+
|
|
2356
|
+
interface MosaicAgentListProps {
|
|
2357
|
+
agents: MosaicAgentData[];
|
|
2358
|
+
filters?: MosaicFilterOption[];
|
|
2359
|
+
selectedFilter: string;
|
|
2360
|
+
onFilterChange: (id: string) => void;
|
|
2361
|
+
categories?: MosaicFilterOption[];
|
|
2362
|
+
selectedCategory: string;
|
|
2363
|
+
onCategoryChange: (id: string) => void;
|
|
2364
|
+
onToggleStatus?: (agentId: string) => void;
|
|
2365
|
+
onDeleteAgent?: (agentId: string) => void;
|
|
2366
|
+
onEditAgent?: (agentId: string) => void;
|
|
2367
|
+
onCreateAgent?: () => void;
|
|
2368
|
+
/** Slot for header-right actions (e.g. OrgSwitcher) */
|
|
2369
|
+
headerActions?: React.ReactNode;
|
|
2370
|
+
title?: string;
|
|
2371
|
+
searchPlaceholder?: string;
|
|
2372
|
+
createLabel?: string;
|
|
2373
|
+
className?: string;
|
|
2374
|
+
}
|
|
2375
|
+
declare function AgentListDesktop({ agents, filters, selectedFilter, onFilterChange, categories, selectedCategory, onCategoryChange, onToggleStatus, onDeleteAgent, onEditAgent, onCreateAgent, headerActions, title, searchPlaceholder, createLabel, }: MosaicAgentListProps): React.JSX.Element;
|
|
2376
|
+
declare function AgentListMobile({ agents, filters, selectedFilter, onFilterChange, categories, selectedCategory, onCategoryChange, onToggleStatus, onDeleteAgent, onEditAgent, onCreateAgent, title, searchPlaceholder, createLabel, }: MosaicAgentListProps): React.JSX.Element;
|
|
2377
|
+
declare function MosaicAgentList(props: MosaicAgentListProps): React.JSX.Element;
|
|
2378
|
+
declare namespace MosaicAgentList {
|
|
2379
|
+
var displayName: string;
|
|
2380
|
+
}
|
|
2381
|
+
|
|
2382
|
+
/**
|
|
2383
|
+
* MosaicMarketplaceList — responsive marketplace grid/list (responsive-pair)
|
|
2384
|
+
*
|
|
2385
|
+
* Ported from components/marketplace/ (marketplace-list.tsx +
|
|
2386
|
+
* desktop/marketplace-list-desktop.tsx + mobile/marketplace-list-mobile.tsx +
|
|
2387
|
+
* MarketplaceFilterSidebar.tsx)
|
|
2388
|
+
*
|
|
2389
|
+
* Features:
|
|
2390
|
+
* - Desktop: filter sidebar + card grid
|
|
2391
|
+
* - Mobile: compact list + filter sheet
|
|
2392
|
+
* - Install/uninstall action callbacks
|
|
2393
|
+
* - Rating stars, download count, price, category badges
|
|
2394
|
+
*
|
|
2395
|
+
* Reuses MosaicFilterSidebar for filter sidebar.
|
|
2396
|
+
* All mock data stripped — items are props.
|
|
2397
|
+
*/
|
|
2398
|
+
|
|
2399
|
+
interface MosaicMarketplaceItem {
|
|
2400
|
+
id: string;
|
|
2401
|
+
title: string;
|
|
2402
|
+
description?: string;
|
|
2403
|
+
category: string;
|
|
2404
|
+
rating?: number;
|
|
2405
|
+
downloads?: number;
|
|
2406
|
+
price?: string;
|
|
2407
|
+
isInstalled?: boolean;
|
|
2408
|
+
/** Tailwind accent class for the icon bg (e.g. "bg-purple-500/10 text-purple-500") */
|
|
2409
|
+
accentClass?: string;
|
|
2410
|
+
/** Icon node to render */
|
|
2411
|
+
icon?: React.ReactNode;
|
|
2412
|
+
tags?: string[];
|
|
2413
|
+
}
|
|
2414
|
+
interface MosaicMarketplaceListProps {
|
|
2415
|
+
items: MosaicMarketplaceItem[];
|
|
2416
|
+
filters?: MosaicFilterOption[];
|
|
2417
|
+
selectedFilter: string;
|
|
2418
|
+
onFilterChange: (id: string) => void;
|
|
2419
|
+
categories?: MosaicFilterOption[];
|
|
2420
|
+
selectedCategory: string;
|
|
2421
|
+
onCategoryChange: (id: string) => void;
|
|
2422
|
+
onInstall?: (itemId: string) => void;
|
|
2423
|
+
onUninstall?: (itemId: string) => void;
|
|
2424
|
+
onPreview?: (itemId: string) => void;
|
|
2425
|
+
title?: string;
|
|
2426
|
+
searchPlaceholder?: string;
|
|
2427
|
+
installLabel?: string;
|
|
2428
|
+
uninstallLabel?: string;
|
|
2429
|
+
className?: string;
|
|
2430
|
+
}
|
|
2431
|
+
declare function MarketplaceListDesktop(props: MosaicMarketplaceListProps): React.JSX.Element;
|
|
2432
|
+
declare function MarketplaceListMobile(props: MosaicMarketplaceListProps): React.JSX.Element;
|
|
2433
|
+
declare function MosaicMarketplaceList(props: MosaicMarketplaceListProps): React.JSX.Element;
|
|
2434
|
+
declare namespace MosaicMarketplaceList {
|
|
2435
|
+
var displayName: string;
|
|
2436
|
+
}
|
|
2437
|
+
|
|
2438
|
+
/**
|
|
2439
|
+
* MosaicTemplateGallery — generic template browser (responsive-pair)
|
|
2440
|
+
*
|
|
2441
|
+
* Ported from components/templates/ (TemplateGallery, TemplateCard,
|
|
2442
|
+
* TemplatePreview, TemplateSelectorModal, QuickStartPanel, AgentTeamPreview)
|
|
2443
|
+
* Combined into a single composable module.
|
|
2444
|
+
*
|
|
2445
|
+
* Exports:
|
|
2446
|
+
* MosaicTemplateGallery — responsive orchestrator (main entry point)
|
|
2447
|
+
* MosaicTemplateCard — individual card
|
|
2448
|
+
* MosaicTemplatePreview — detail preview panel
|
|
2449
|
+
* MosaicQuickStartPanel — quick-start scenario / preset grid
|
|
2450
|
+
* MosaicAgentTeamPreview — visual agent team display
|
|
2451
|
+
*
|
|
2452
|
+
* All domain types (DebateTemplate, AgentTeamPreset, etc.) replaced with
|
|
2453
|
+
* generic MosaicTemplate*, MosaicAgentPreset, MosaicScenario types.
|
|
2454
|
+
* framer-motion replaced with CSS transitions.
|
|
2455
|
+
*/
|
|
2456
|
+
|
|
2457
|
+
interface MosaicTemplateAgent {
|
|
2458
|
+
id: string;
|
|
2459
|
+
name: string;
|
|
2460
|
+
type?: string;
|
|
2461
|
+
accentColor?: string;
|
|
2462
|
+
}
|
|
2463
|
+
interface MosaicTemplateMetadata {
|
|
2464
|
+
usageCount?: number;
|
|
2465
|
+
tags?: string[];
|
|
2466
|
+
createdBy?: string;
|
|
2467
|
+
createdAt?: string | Date;
|
|
2468
|
+
}
|
|
2469
|
+
interface MosaicTemplate {
|
|
2470
|
+
id: string;
|
|
2471
|
+
name: string;
|
|
2472
|
+
description?: string;
|
|
2473
|
+
category: string;
|
|
2474
|
+
agents?: MosaicTemplateAgent[];
|
|
2475
|
+
metadata?: MosaicTemplateMetadata;
|
|
2476
|
+
/** "debate" | "collaboration" | "analysis" | string */
|
|
2477
|
+
type?: string;
|
|
2478
|
+
}
|
|
2479
|
+
interface MosaicScenario {
|
|
2480
|
+
id: string;
|
|
2481
|
+
title: string;
|
|
2482
|
+
description?: string;
|
|
2483
|
+
icon?: React.ReactNode;
|
|
2484
|
+
tags?: string[];
|
|
2485
|
+
}
|
|
2486
|
+
interface MosaicAgentPreset {
|
|
2487
|
+
id: string;
|
|
2488
|
+
name: string;
|
|
2489
|
+
description?: string;
|
|
2490
|
+
agents?: MosaicTemplateAgent[];
|
|
2491
|
+
}
|
|
2492
|
+
interface MosaicTemplateCardProps {
|
|
2493
|
+
template: MosaicTemplate;
|
|
2494
|
+
isSelected?: boolean;
|
|
2495
|
+
onSelect: (template: MosaicTemplate) => void;
|
|
2496
|
+
onPreview?: (template: MosaicTemplate) => void;
|
|
2497
|
+
onDuplicate?: (template: MosaicTemplate) => void;
|
|
2498
|
+
showActions?: boolean;
|
|
2499
|
+
compact?: boolean;
|
|
2500
|
+
}
|
|
2501
|
+
declare function MosaicTemplateCard({ template, isSelected, onSelect, onPreview, onDuplicate, showActions, compact, }: MosaicTemplateCardProps): React.JSX.Element;
|
|
2502
|
+
declare namespace MosaicTemplateCard {
|
|
2503
|
+
var displayName: string;
|
|
2504
|
+
}
|
|
2505
|
+
interface MosaicTemplatePreviewProps {
|
|
2506
|
+
template: MosaicTemplate;
|
|
2507
|
+
onSelect: (template: MosaicTemplate) => void;
|
|
2508
|
+
onClose?: () => void;
|
|
2509
|
+
selectLabel?: string;
|
|
2510
|
+
}
|
|
2511
|
+
declare function MosaicTemplatePreview({ template, onSelect, onClose, selectLabel, }: MosaicTemplatePreviewProps): React.JSX.Element;
|
|
2512
|
+
declare namespace MosaicTemplatePreview {
|
|
2513
|
+
var displayName: string;
|
|
2514
|
+
}
|
|
2515
|
+
interface MosaicAgentTeamPreviewProps {
|
|
2516
|
+
agents: MosaicTemplateAgent[];
|
|
2517
|
+
label?: string;
|
|
2518
|
+
}
|
|
2519
|
+
declare function MosaicAgentTeamPreview({ agents, label }: MosaicAgentTeamPreviewProps): React.JSX.Element;
|
|
2520
|
+
declare namespace MosaicAgentTeamPreview {
|
|
2521
|
+
var displayName: string;
|
|
2522
|
+
}
|
|
2523
|
+
interface MosaicQuickStartPanelProps {
|
|
2524
|
+
scenarios?: MosaicScenario[];
|
|
2525
|
+
presets?: MosaicAgentPreset[];
|
|
2526
|
+
onSelectScenario: (scenario: MosaicScenario) => void;
|
|
2527
|
+
onSelectPreset: (preset: MosaicAgentPreset) => void;
|
|
2528
|
+
onStartFromScratch?: () => void;
|
|
2529
|
+
scenariosTitle?: string;
|
|
2530
|
+
presetsTitle?: string;
|
|
2531
|
+
scratchLabel?: string;
|
|
2532
|
+
className?: string;
|
|
2533
|
+
}
|
|
2534
|
+
declare function MosaicQuickStartPanel({ scenarios, presets, onSelectScenario, onSelectPreset, onStartFromScratch, scenariosTitle, presetsTitle, scratchLabel, className, }: MosaicQuickStartPanelProps): React.JSX.Element;
|
|
2535
|
+
declare namespace MosaicQuickStartPanel {
|
|
2536
|
+
var displayName: string;
|
|
2537
|
+
}
|
|
2538
|
+
interface MosaicTemplateGalleryProps {
|
|
2539
|
+
templates: MosaicTemplate[];
|
|
2540
|
+
selectedTemplate?: MosaicTemplate;
|
|
2541
|
+
onSelectTemplate: (template: MosaicTemplate) => void;
|
|
2542
|
+
onPreviewTemplate?: (template: MosaicTemplate) => void;
|
|
2543
|
+
onDuplicateTemplate?: (template: MosaicTemplate) => void;
|
|
2544
|
+
filters?: MosaicFilterOption[];
|
|
2545
|
+
selectedFilter: string;
|
|
2546
|
+
onFilterChange: (id: string) => void;
|
|
2547
|
+
categories?: MosaicFilterOption[];
|
|
2548
|
+
selectedCategory: string;
|
|
2549
|
+
onCategoryChange: (id: string) => void;
|
|
2550
|
+
showActions?: boolean;
|
|
2551
|
+
title?: string;
|
|
2552
|
+
searchPlaceholder?: string;
|
|
2553
|
+
className?: string;
|
|
2554
|
+
}
|
|
2555
|
+
declare function MosaicTemplateGallery(props: MosaicTemplateGalleryProps): React.JSX.Element;
|
|
2556
|
+
declare namespace MosaicTemplateGallery {
|
|
2557
|
+
var displayName: string;
|
|
2558
|
+
}
|
|
2559
|
+
|
|
2560
|
+
/**
|
|
2561
|
+
* MosaicModuleLibrary — generic module/framework/persona/role library (responsive-pair)
|
|
2562
|
+
*
|
|
2563
|
+
* Ported from components/module-libraries/ (FrameworkLibrary, PersonaLibrary,
|
|
2564
|
+
* RoleLibrary + desktop/mobile variants + forms + editor modals)
|
|
2565
|
+
* Combined into a single generic pattern.
|
|
2566
|
+
*
|
|
2567
|
+
* "Module" = any reusable item in a library (framework, persona, role, skill, etc.)
|
|
2568
|
+
* Labels and field configs are fully prop-driven.
|
|
2569
|
+
*
|
|
2570
|
+
* Exports:
|
|
2571
|
+
* MosaicModuleLibrary — responsive orchestrator
|
|
2572
|
+
* MosaicModuleForm — create/edit form for a module
|
|
2573
|
+
*
|
|
2574
|
+
* All domain-specific hooks (useFrameworkManager) stripped.
|
|
2575
|
+
* Data + CRUD callbacks are props.
|
|
2576
|
+
*/
|
|
2577
|
+
|
|
2578
|
+
interface MosaicModuleItem {
|
|
2579
|
+
id: string;
|
|
2580
|
+
name: string;
|
|
2581
|
+
description?: string;
|
|
2582
|
+
icon?: string;
|
|
2583
|
+
tags?: string[];
|
|
2584
|
+
/** Steps or methodology items */
|
|
2585
|
+
steps?: string[];
|
|
2586
|
+
/** Best-for use cases */
|
|
2587
|
+
bestFor?: string[];
|
|
2588
|
+
/** Whether this item was created by the user (editable/deletable) */
|
|
2589
|
+
isCustom?: boolean;
|
|
2590
|
+
[key: string]: unknown;
|
|
2591
|
+
}
|
|
2592
|
+
interface MosaicModuleFormField {
|
|
2593
|
+
id: string;
|
|
2594
|
+
label: string;
|
|
2595
|
+
type: "text" | "textarea" | "emoji" | "tag-list";
|
|
2596
|
+
placeholder?: string;
|
|
2597
|
+
description?: string;
|
|
2598
|
+
required?: boolean;
|
|
2599
|
+
}
|
|
2600
|
+
interface MosaicModuleLibraryProps {
|
|
2601
|
+
/** All items in the library (system + custom) */
|
|
2602
|
+
items: MosaicModuleItem[];
|
|
2603
|
+
/** Whether items are loading */
|
|
2604
|
+
isLoading?: boolean;
|
|
2605
|
+
onCreateItem: (data: Omit<MosaicModuleItem, "id">) => void;
|
|
2606
|
+
onUpdateItem: (id: string, data: Partial<MosaicModuleItem>) => void;
|
|
2607
|
+
onDeleteItem: (id: string) => void;
|
|
2608
|
+
/** Tabs to switch between (e.g. "My Modules" vs "System") */
|
|
2609
|
+
tabs?: Array<{
|
|
2610
|
+
id: string;
|
|
2611
|
+
label: string;
|
|
2612
|
+
}>;
|
|
2613
|
+
/** Filter function for each tab */
|
|
2614
|
+
tabFilter?: (item: MosaicModuleItem, tabId: string) => boolean;
|
|
2615
|
+
/** Additional form fields beyond name/description */
|
|
2616
|
+
formFields?: MosaicModuleFormField[];
|
|
2617
|
+
title?: string;
|
|
2618
|
+
createLabel?: string;
|
|
2619
|
+
searchPlaceholder?: string;
|
|
2620
|
+
emptyMessage?: string;
|
|
2621
|
+
className?: string;
|
|
2622
|
+
}
|
|
2623
|
+
interface MosaicModuleFormProps {
|
|
2624
|
+
item?: MosaicModuleItem;
|
|
2625
|
+
mode: "create" | "edit";
|
|
2626
|
+
formFields?: MosaicModuleFormField[];
|
|
2627
|
+
onSave: (data: Omit<MosaicModuleItem, "id"> | MosaicModuleItem) => void;
|
|
2628
|
+
onCancel: () => void;
|
|
2629
|
+
}
|
|
2630
|
+
declare function MosaicModuleForm({ item, mode, formFields, onSave, onCancel, }: MosaicModuleFormProps): React.JSX.Element;
|
|
2631
|
+
declare namespace MosaicModuleForm {
|
|
2632
|
+
var displayName: string;
|
|
2633
|
+
}
|
|
2634
|
+
declare function MosaicModuleLibrary(props: MosaicModuleLibraryProps): React.JSX.Element;
|
|
2635
|
+
declare namespace MosaicModuleLibrary {
|
|
2636
|
+
var displayName: string;
|
|
2637
|
+
}
|
|
2638
|
+
|
|
2639
|
+
/**
|
|
2640
|
+
* MosaicOrgPanel — generic multi-tenant organization management shell
|
|
2641
|
+
*
|
|
2642
|
+
* Ported from components/organization/ (OrgOverview desktop/mobile,
|
|
2643
|
+
* OrgSettings desktop/mobile, MemberList desktop/mobile, role-badge,
|
|
2644
|
+
* multi-org-indicator, create/invite dialogs)
|
|
2645
|
+
*
|
|
2646
|
+
* IMPORTANT: All Clerk/Convex calls STRIPPED. This is a PURE PRESENTATIONAL
|
|
2647
|
+
* shell. Data + handlers come entirely via props. Auth wiring is T1.5.
|
|
2648
|
+
*
|
|
2649
|
+
* Exports:
|
|
2650
|
+
* MosaicOrgPanel — responsive org management (tabs: overview/members/settings)
|
|
2651
|
+
* MosaicOrgRoleBadge — member role badge
|
|
2652
|
+
* MosaicMultiOrgIndicator — multi-org count badge
|
|
2653
|
+
* MosaicCreateOrgDialog — create org form modal
|
|
2654
|
+
* MosaicInviteMemberDialog — invite member form modal
|
|
2655
|
+
* MosaicMemberList — responsive member list (responsive-pair)
|
|
2656
|
+
*/
|
|
2657
|
+
|
|
2658
|
+
type MosaicOrgRole = "admin" | "member" | "owner";
|
|
2659
|
+
interface MosaicOrgMember {
|
|
2660
|
+
id: string;
|
|
2661
|
+
name: string;
|
|
2662
|
+
email: string;
|
|
2663
|
+
avatarUrl?: string;
|
|
2664
|
+
role: MosaicOrgRole;
|
|
2665
|
+
joinedAt?: string | number | Date;
|
|
2666
|
+
}
|
|
2667
|
+
interface MosaicOrgStats {
|
|
2668
|
+
totalMembers?: number;
|
|
2669
|
+
totalItems?: number;
|
|
2670
|
+
storageUsed?: number;
|
|
2671
|
+
storageTotal?: number;
|
|
2672
|
+
[key: string]: number | undefined;
|
|
2673
|
+
}
|
|
2674
|
+
interface MosaicOrgInfo {
|
|
2675
|
+
id: string;
|
|
2676
|
+
name: string;
|
|
2677
|
+
slug?: string;
|
|
2678
|
+
description?: string;
|
|
2679
|
+
avatarUrl?: string;
|
|
2680
|
+
stats?: MosaicOrgStats;
|
|
2681
|
+
}
|
|
2682
|
+
interface MosaicStatItem {
|
|
2683
|
+
id: string;
|
|
2684
|
+
label: string;
|
|
2685
|
+
value: string | number;
|
|
2686
|
+
icon?: React.ReactNode;
|
|
2687
|
+
description?: string;
|
|
2688
|
+
}
|
|
2689
|
+
interface MosaicOrgRoleBadgeProps {
|
|
2690
|
+
role: MosaicOrgRole;
|
|
2691
|
+
className?: string;
|
|
2692
|
+
}
|
|
2693
|
+
declare function MosaicOrgRoleBadge({ role, className }: MosaicOrgRoleBadgeProps): React.JSX.Element;
|
|
2694
|
+
declare namespace MosaicOrgRoleBadge {
|
|
2695
|
+
var displayName: string;
|
|
2696
|
+
}
|
|
2697
|
+
interface MosaicMultiOrgIndicatorProps {
|
|
2698
|
+
orgCount: number;
|
|
2699
|
+
currentOrgName?: string;
|
|
2700
|
+
onSwitchOrg?: () => void;
|
|
2701
|
+
className?: string;
|
|
2702
|
+
}
|
|
2703
|
+
declare function MosaicMultiOrgIndicator({ orgCount, currentOrgName, onSwitchOrg, className, }: MosaicMultiOrgIndicatorProps): React.JSX.Element | null;
|
|
2704
|
+
declare namespace MosaicMultiOrgIndicator {
|
|
2705
|
+
var displayName: string;
|
|
2706
|
+
}
|
|
2707
|
+
interface MosaicCreateOrgDialogProps {
|
|
2708
|
+
open: boolean;
|
|
2709
|
+
onOpenChange: (open: boolean) => void;
|
|
2710
|
+
onCreateOrg: (data: {
|
|
2711
|
+
name: string;
|
|
2712
|
+
slug: string;
|
|
2713
|
+
description?: string;
|
|
2714
|
+
}) => void | Promise<void>;
|
|
2715
|
+
isLoading?: boolean;
|
|
2716
|
+
title?: string;
|
|
2717
|
+
}
|
|
2718
|
+
declare function MosaicCreateOrgDialog({ open, onOpenChange, onCreateOrg, isLoading, title, }: MosaicCreateOrgDialogProps): React.JSX.Element;
|
|
2719
|
+
declare namespace MosaicCreateOrgDialog {
|
|
2720
|
+
var displayName: string;
|
|
2721
|
+
}
|
|
2722
|
+
interface MosaicInviteMemberDialogProps {
|
|
2723
|
+
open: boolean;
|
|
2724
|
+
onOpenChange: (open: boolean) => void;
|
|
2725
|
+
onInvite: (data: {
|
|
2726
|
+
email: string;
|
|
2727
|
+
role: MosaicOrgRole;
|
|
2728
|
+
}) => void | Promise<void>;
|
|
2729
|
+
isLoading?: boolean;
|
|
2730
|
+
roles?: Array<{
|
|
2731
|
+
value: MosaicOrgRole;
|
|
2732
|
+
label: string;
|
|
2733
|
+
}>;
|
|
2734
|
+
title?: string;
|
|
2735
|
+
}
|
|
2736
|
+
declare function MosaicInviteMemberDialog({ open, onOpenChange, onInvite, isLoading, roles, title, }: MosaicInviteMemberDialogProps): React.JSX.Element;
|
|
2737
|
+
declare namespace MosaicInviteMemberDialog {
|
|
2738
|
+
var displayName: string;
|
|
2739
|
+
}
|
|
2740
|
+
interface MosaicMemberListProps {
|
|
2741
|
+
members: MosaicOrgMember[];
|
|
2742
|
+
currentUserId?: string;
|
|
2743
|
+
onChangeRole?: (memberId: string, role: MosaicOrgRole) => void;
|
|
2744
|
+
onRemoveMember?: (memberId: string) => void;
|
|
2745
|
+
onInvite?: () => void;
|
|
2746
|
+
roles?: Array<{
|
|
2747
|
+
value: MosaicOrgRole;
|
|
2748
|
+
label: string;
|
|
2749
|
+
}>;
|
|
2750
|
+
isLoading?: boolean;
|
|
2751
|
+
searchPlaceholder?: string;
|
|
2752
|
+
className?: string;
|
|
2753
|
+
}
|
|
2754
|
+
declare function MosaicMemberList({ members, currentUserId, onChangeRole, onRemoveMember, onInvite, roles, isLoading, searchPlaceholder, className, }: MosaicMemberListProps): React.JSX.Element;
|
|
2755
|
+
declare namespace MosaicMemberList {
|
|
2756
|
+
var displayName: string;
|
|
2757
|
+
}
|
|
2758
|
+
interface MosaicOrgPanelTab {
|
|
2759
|
+
id: string;
|
|
2760
|
+
label: string;
|
|
2761
|
+
content: React.ReactNode;
|
|
2762
|
+
}
|
|
2763
|
+
interface MosaicOrgPanelProps {
|
|
2764
|
+
org: MosaicOrgInfo;
|
|
2765
|
+
tabs?: MosaicOrgPanelTab[];
|
|
2766
|
+
defaultTab?: string;
|
|
2767
|
+
/** Header-right slot (actions, invite button, etc.) */
|
|
2768
|
+
headerActions?: React.ReactNode;
|
|
2769
|
+
className?: string;
|
|
2770
|
+
}
|
|
2771
|
+
declare function MosaicOrgPanel({ org, tabs, defaultTab, headerActions, className, }: MosaicOrgPanelProps): React.JSX.Element;
|
|
2772
|
+
declare namespace MosaicOrgPanel {
|
|
2773
|
+
var displayName: string;
|
|
2774
|
+
}
|
|
2775
|
+
|
|
2776
|
+
/**
|
|
2777
|
+
* MosaicDashboardContent — generic dashboard content area with view switcher
|
|
2778
|
+
*
|
|
2779
|
+
* Ported from components/dashboard/DashboardContent.tsx
|
|
2780
|
+
*
|
|
2781
|
+
* Features:
|
|
2782
|
+
* - Tab-based view switcher (currentView → renders matching content slot)
|
|
2783
|
+
* - Responsive padding (mobile vs desktop)
|
|
2784
|
+
* - Slot-based content: consumers pass views[] with id + content
|
|
2785
|
+
*
|
|
2786
|
+
* framer-motion replaced with CSS keyframe fade-in.
|
|
2787
|
+
* All debate-specific sub-components (SessionList, AgentLibrary) stripped.
|
|
2788
|
+
* Content is purely prop-driven via views[].
|
|
2789
|
+
*/
|
|
2790
|
+
|
|
2791
|
+
interface MosaicDashboardView {
|
|
2792
|
+
id: string;
|
|
2793
|
+
label?: string;
|
|
2794
|
+
content: React.ReactNode;
|
|
2795
|
+
}
|
|
2796
|
+
interface MosaicDashboardContentProps {
|
|
2797
|
+
/** Available views */
|
|
2798
|
+
views: MosaicDashboardView[];
|
|
2799
|
+
/** Currently active view id */
|
|
2800
|
+
currentView: string;
|
|
2801
|
+
className?: string;
|
|
2802
|
+
}
|
|
2803
|
+
declare function MosaicDashboardContent({ views, currentView, className, }: MosaicDashboardContentProps): React.JSX.Element;
|
|
2804
|
+
declare namespace MosaicDashboardContent {
|
|
2805
|
+
var displayName: string;
|
|
2806
|
+
}
|
|
2807
|
+
|
|
2808
|
+
/**
|
|
2809
|
+
* MosaicDashboardHeader — generic sticky dashboard header
|
|
2810
|
+
*
|
|
2811
|
+
* Ported from components/dashboard/DashboardHeader.tsx
|
|
2812
|
+
*
|
|
2813
|
+
* Features:
|
|
2814
|
+
* - Sticky backdrop-blur header
|
|
2815
|
+
* - Title + subtitle
|
|
2816
|
+
* - Desktop: inline search bar
|
|
2817
|
+
* - Mobile: compact search icon button
|
|
2818
|
+
* - Notification bell with count badge
|
|
2819
|
+
* - Right-side actions slot (theme toggle, avatar, etc.)
|
|
2820
|
+
*
|
|
2821
|
+
* framer-motion (header entrance + spinning sparkle) replaced with CSS.
|
|
2822
|
+
* next/link removed — links are callbacks.
|
|
2823
|
+
* All debate-specific actions stripped.
|
|
2824
|
+
*/
|
|
2825
|
+
|
|
2826
|
+
interface MosaicDashboardHeaderProps {
|
|
2827
|
+
title?: string;
|
|
2828
|
+
subtitle?: string;
|
|
2829
|
+
/** Notification count (0 = no badge) */
|
|
2830
|
+
notificationCount?: number;
|
|
2831
|
+
onNotificationsClick?: () => void;
|
|
2832
|
+
onSearchChange?: (query: string) => void;
|
|
2833
|
+
/** Right-side slot (theme toggle, avatar, quick actions, etc.) */
|
|
2834
|
+
actions?: React.ReactNode;
|
|
2835
|
+
/** Logo/brand slot (left of title) */
|
|
2836
|
+
logoSlot?: React.ReactNode;
|
|
2837
|
+
className?: string;
|
|
2838
|
+
}
|
|
2839
|
+
declare function MosaicDashboardHeader({ title, subtitle, notificationCount, onNotificationsClick, onSearchChange, actions, logoSlot, className, }: MosaicDashboardHeaderProps): React.JSX.Element;
|
|
2840
|
+
declare namespace MosaicDashboardHeader {
|
|
2841
|
+
var displayName: string;
|
|
2842
|
+
}
|
|
2843
|
+
|
|
2844
|
+
/**
|
|
2845
|
+
* MosaicOrgSwitcher — presentational org picker dropdown
|
|
2846
|
+
*
|
|
2847
|
+
* Ported from components/dashboard/OrgSwitcher.tsx (which used Clerk's
|
|
2848
|
+
* OrganizationSwitcher). Clerk STRIPPED. Pure presentational shell.
|
|
2849
|
+
*
|
|
2850
|
+
* Features:
|
|
2851
|
+
* - Dropdown with list of organizations
|
|
2852
|
+
* - Current org name + avatar/initials displayed in trigger
|
|
2853
|
+
* - Optional "Create organization" action at bottom
|
|
2854
|
+
*
|
|
2855
|
+
* Data comes entirely via props. Auth wiring is T1.5.
|
|
2856
|
+
*/
|
|
2857
|
+
|
|
2858
|
+
interface MosaicOrg {
|
|
2859
|
+
id: string;
|
|
2860
|
+
name: string;
|
|
2861
|
+
avatarUrl?: string;
|
|
2862
|
+
slug?: string;
|
|
2863
|
+
}
|
|
2864
|
+
interface MosaicOrgSwitcherProps {
|
|
2865
|
+
organizations?: MosaicOrg[];
|
|
2866
|
+
currentOrgId?: string;
|
|
2867
|
+
onSelectOrg?: (orgId: string) => void;
|
|
2868
|
+
onCreateOrg?: () => void;
|
|
2869
|
+
createOrgLabel?: string;
|
|
2870
|
+
className?: string;
|
|
2871
|
+
}
|
|
2872
|
+
declare function MosaicOrgSwitcher({ organizations, currentOrgId, onSelectOrg, onCreateOrg, createOrgLabel, className, }: MosaicOrgSwitcherProps): React.JSX.Element | null;
|
|
2873
|
+
declare namespace MosaicOrgSwitcher {
|
|
2874
|
+
var displayName: string;
|
|
2875
|
+
}
|
|
2876
|
+
|
|
2877
|
+
/**
|
|
2878
|
+
* MosaicQuickActionsMenu — generic dropdown quick-actions button
|
|
2879
|
+
*
|
|
2880
|
+
* Ported from components/dashboard/QuickActionsMenu.tsx
|
|
2881
|
+
*
|
|
2882
|
+
* Features:
|
|
2883
|
+
* - Dropdown menu triggered by a "+" button
|
|
2884
|
+
* - Action items with icon + label
|
|
2885
|
+
* - Separator support
|
|
2886
|
+
* - Mobile-aware width
|
|
2887
|
+
* - All hrefs/routes are props (no next/link hardcoded)
|
|
2888
|
+
*
|
|
2889
|
+
* next/Link removed → renderItem prop or href + onClick.
|
|
2890
|
+
* All debate-specific actions stripped — items are generic props.
|
|
2891
|
+
*/
|
|
2892
|
+
|
|
2893
|
+
interface MosaicQuickAction {
|
|
2894
|
+
id: string;
|
|
2895
|
+
label: string;
|
|
2896
|
+
icon?: React.ReactNode;
|
|
2897
|
+
onClick?: () => void;
|
|
2898
|
+
href?: string;
|
|
2899
|
+
/** If true, renders a separator BEFORE this item */
|
|
2900
|
+
separator?: boolean;
|
|
2901
|
+
}
|
|
2902
|
+
interface MosaicQuickActionsMenuProps {
|
|
2903
|
+
actions?: MosaicQuickAction[];
|
|
2904
|
+
/** Trigger button label (hidden on mobile when icon-only) */
|
|
2905
|
+
label?: string;
|
|
2906
|
+
/** Custom trigger icon */
|
|
2907
|
+
triggerIcon?: React.ReactNode;
|
|
2908
|
+
/** Menu header label */
|
|
2909
|
+
menuTitle?: string;
|
|
2910
|
+
/** Custom link renderer for href items */
|
|
2911
|
+
renderLink?: (action: MosaicQuickAction, children: React.ReactNode, className: string) => React.ReactNode;
|
|
2912
|
+
className?: string;
|
|
2913
|
+
}
|
|
2914
|
+
declare function MosaicQuickActionsMenu({ actions, label, triggerIcon, menuTitle, renderLink, className, }: MosaicQuickActionsMenuProps): React.JSX.Element;
|
|
2915
|
+
declare namespace MosaicQuickActionsMenu {
|
|
2916
|
+
var displayName: string;
|
|
2917
|
+
}
|
|
2918
|
+
|
|
2919
|
+
/**
|
|
2920
|
+
* MosaicSignInLayout — sign-in page layout, themed, mobile-first.
|
|
2921
|
+
*
|
|
2922
|
+
* Wraps Clerk <SignIn> with OKLCH-token appearance prop. Clerk is injected as a
|
|
2923
|
+
* peer prop so mosaic-blocks does not bundle @clerk/nextjs directly.
|
|
2924
|
+
*
|
|
2925
|
+
* @example
|
|
2926
|
+
* import { SignIn } from "@clerk/nextjs"
|
|
2927
|
+
* <MosaicSignInLayout clerkSignIn={SignIn} />
|
|
2928
|
+
*/
|
|
2929
|
+
|
|
2930
|
+
interface MosaicSignInLayoutProps {
|
|
2931
|
+
/** Clerk <SignIn> component — injected by caller to avoid bundling Clerk */
|
|
2932
|
+
clerkSignIn: React.ComponentType<{
|
|
2933
|
+
appearance?: Record<string, unknown>;
|
|
2934
|
+
signUpUrl?: string;
|
|
2935
|
+
fallbackRedirectUrl?: string;
|
|
2936
|
+
[key: string]: unknown;
|
|
2937
|
+
}>;
|
|
2938
|
+
/** URL for sign-up page */
|
|
2939
|
+
signUpUrl?: string;
|
|
2940
|
+
/** URL to redirect after successful sign-in */
|
|
2941
|
+
afterSignInUrl?: string;
|
|
2942
|
+
/** Optional headline above the Clerk widget */
|
|
2943
|
+
headline?: string;
|
|
2944
|
+
/** Optional sub-headline */
|
|
2945
|
+
subheadline?: string;
|
|
2946
|
+
className?: string;
|
|
2947
|
+
}
|
|
2948
|
+
declare function MosaicSignInLayout({ clerkSignIn: ClerkSignIn, signUpUrl, afterSignInUrl, headline, subheadline, className, }: MosaicSignInLayoutProps): React.JSX.Element;
|
|
2949
|
+
declare namespace MosaicSignInLayout {
|
|
2950
|
+
var displayName: string;
|
|
2951
|
+
}
|
|
2952
|
+
|
|
2953
|
+
/**
|
|
2954
|
+
* MosaicSignUpLayout — sign-up page layout, themed, mobile-first.
|
|
2955
|
+
*
|
|
2956
|
+
* Wraps Clerk <SignUp> with OKLCH-token appearance prop. Clerk is injected as a
|
|
2957
|
+
* peer prop so mosaic-blocks does not bundle @clerk/nextjs directly.
|
|
2958
|
+
*
|
|
2959
|
+
* @example
|
|
2960
|
+
* import { SignUp } from "@clerk/nextjs"
|
|
2961
|
+
* <MosaicSignUpLayout clerkSignUp={SignUp} />
|
|
2962
|
+
*/
|
|
2963
|
+
|
|
2964
|
+
interface MosaicSignUpLayoutProps {
|
|
2965
|
+
/** Clerk <SignUp> component — injected by caller to avoid bundling Clerk */
|
|
2966
|
+
clerkSignUp: React.ComponentType<{
|
|
2967
|
+
appearance?: Record<string, unknown>;
|
|
2968
|
+
signInUrl?: string;
|
|
2969
|
+
fallbackRedirectUrl?: string;
|
|
2970
|
+
[key: string]: unknown;
|
|
2971
|
+
}>;
|
|
2972
|
+
/** URL for sign-in page */
|
|
2973
|
+
signInUrl?: string;
|
|
2974
|
+
/** URL to redirect after successful sign-up */
|
|
2975
|
+
afterSignUpUrl?: string;
|
|
2976
|
+
/** Optional headline above the Clerk widget */
|
|
2977
|
+
headline?: string;
|
|
2978
|
+
/** Optional sub-headline */
|
|
2979
|
+
subheadline?: string;
|
|
2980
|
+
className?: string;
|
|
2981
|
+
}
|
|
2982
|
+
declare function MosaicSignUpLayout({ clerkSignUp: ClerkSignUp, signInUrl, afterSignUpUrl, headline, subheadline, className, }: MosaicSignUpLayoutProps): React.JSX.Element;
|
|
2983
|
+
declare namespace MosaicSignUpLayout {
|
|
2984
|
+
var displayName: string;
|
|
2985
|
+
}
|
|
2986
|
+
|
|
2987
|
+
/**
|
|
2988
|
+
* MosaicClerkOrgSwitcher — Clerk-backed org switcher (live org data from Clerk).
|
|
2989
|
+
*
|
|
2990
|
+
* Wraps @clerk/nextjs <OrganizationSwitcher> with OKLCH-token appearance prop.
|
|
2991
|
+
* Clerk is injected as a peer prop.
|
|
2992
|
+
*
|
|
2993
|
+
* DISTINCT from MosaicOrgSwitcher (presentational, orgs via props — no Clerk dep).
|
|
2994
|
+
* Use this component when you need live Clerk org data; use MosaicOrgSwitcher
|
|
2995
|
+
* for pure presentational rendering driven by your own data.
|
|
2996
|
+
*
|
|
2997
|
+
* @example
|
|
2998
|
+
* import { OrganizationSwitcher } from "@clerk/nextjs"
|
|
2999
|
+
* <MosaicClerkOrgSwitcher clerkOrgSwitcher={OrganizationSwitcher} />
|
|
3000
|
+
*/
|
|
3001
|
+
|
|
3002
|
+
interface MosaicClerkOrgSwitcherProps {
|
|
3003
|
+
/**
|
|
3004
|
+
* Clerk <OrganizationSwitcher> component — injected by caller.
|
|
3005
|
+
* Clerk-backed (live org data). Distinct from MosaicOrgSwitcher (presentational).
|
|
3006
|
+
*/
|
|
3007
|
+
clerkOrgSwitcher: React.ComponentType<{
|
|
3008
|
+
appearance?: Record<string, unknown>;
|
|
3009
|
+
afterCreateOrganizationUrl?: string;
|
|
3010
|
+
afterSelectOrganizationUrl?: string;
|
|
3011
|
+
afterLeaveOrganizationUrl?: string;
|
|
3012
|
+
hidePersonal?: boolean;
|
|
3013
|
+
[key: string]: unknown;
|
|
3014
|
+
}>;
|
|
3015
|
+
/** URL to redirect after creating an org */
|
|
3016
|
+
afterCreateOrganizationUrl?: string;
|
|
3017
|
+
/** URL to redirect after selecting an org */
|
|
3018
|
+
afterSelectOrganizationUrl?: string;
|
|
3019
|
+
/** URL to redirect after leaving an org */
|
|
3020
|
+
afterLeaveOrganizationUrl?: string;
|
|
3021
|
+
/** Hide personal workspace from the switcher */
|
|
3022
|
+
hidePersonal?: boolean;
|
|
3023
|
+
className?: string;
|
|
3024
|
+
}
|
|
3025
|
+
declare function MosaicClerkOrgSwitcher({ clerkOrgSwitcher: ClerkOrgSwitcher, afterCreateOrganizationUrl, afterSelectOrganizationUrl, afterLeaveOrganizationUrl, hidePersonal, className, }: MosaicClerkOrgSwitcherProps): React.JSX.Element;
|
|
3026
|
+
declare namespace MosaicClerkOrgSwitcher {
|
|
3027
|
+
var displayName: string;
|
|
3028
|
+
}
|
|
3029
|
+
|
|
3030
|
+
/**
|
|
3031
|
+
* MosaicUserButton — Clerk <UserButton> with OKLCH-token appearance.
|
|
3032
|
+
*
|
|
3033
|
+
* Wraps @clerk/nextjs <UserButton>. Clerk is injected as a peer prop so
|
|
3034
|
+
* mosaic-blocks does not bundle @clerk/nextjs directly.
|
|
3035
|
+
*
|
|
3036
|
+
* @example
|
|
3037
|
+
* import { UserButton } from "@clerk/nextjs"
|
|
3038
|
+
* <MosaicUserButton clerkUserButton={UserButton} />
|
|
3039
|
+
*/
|
|
3040
|
+
|
|
3041
|
+
interface MosaicUserButtonProps {
|
|
3042
|
+
/** Clerk <UserButton> component — injected by caller to avoid bundling Clerk */
|
|
3043
|
+
clerkUserButton: React.ComponentType<{
|
|
3044
|
+
appearance?: Record<string, unknown>;
|
|
3045
|
+
afterSignOutUrl?: string;
|
|
3046
|
+
showName?: boolean;
|
|
3047
|
+
[key: string]: unknown;
|
|
3048
|
+
}>;
|
|
3049
|
+
/** URL to redirect after sign-out */
|
|
3050
|
+
afterSignOutUrl?: string;
|
|
3051
|
+
/** Show the user's name next to avatar */
|
|
3052
|
+
showName?: boolean;
|
|
3053
|
+
className?: string;
|
|
3054
|
+
}
|
|
3055
|
+
declare function MosaicUserButton({ clerkUserButton: ClerkUserButton, afterSignOutUrl, showName, className, }: MosaicUserButtonProps): React.JSX.Element;
|
|
3056
|
+
declare namespace MosaicUserButton {
|
|
3057
|
+
var displayName: string;
|
|
3058
|
+
}
|
|
3059
|
+
|
|
3060
|
+
/**
|
|
3061
|
+
* MosaicOrgProfilePage — Clerk <OrganizationProfile> with OKLCH appearance.
|
|
3062
|
+
*
|
|
3063
|
+
* Wraps @clerk/nextjs <OrganizationProfile> for team management. Clerk is
|
|
3064
|
+
* injected as a peer prop so mosaic-blocks does not bundle @clerk/nextjs.
|
|
3065
|
+
*
|
|
3066
|
+
* @example
|
|
3067
|
+
* import { OrganizationProfile } from "@clerk/nextjs"
|
|
3068
|
+
* <MosaicOrgProfilePage clerkOrgProfile={OrganizationProfile} />
|
|
3069
|
+
*/
|
|
3070
|
+
|
|
3071
|
+
interface MosaicOrgProfilePageProps {
|
|
3072
|
+
/** Clerk <OrganizationProfile> component — injected by caller */
|
|
3073
|
+
clerkOrgProfile: React.ComponentType<{
|
|
3074
|
+
appearance?: Record<string, unknown>;
|
|
3075
|
+
routing?: "hash" | "path" | "virtual";
|
|
3076
|
+
path?: string;
|
|
3077
|
+
[key: string]: unknown;
|
|
3078
|
+
}>;
|
|
3079
|
+
/** Routing mode for Clerk's internal navigation */
|
|
3080
|
+
routing?: "hash" | "path" | "virtual";
|
|
3081
|
+
/** Base path when routing="path" */
|
|
3082
|
+
path?: string;
|
|
3083
|
+
className?: string;
|
|
3084
|
+
}
|
|
3085
|
+
declare function MosaicOrgProfilePage({ clerkOrgProfile: ClerkOrgProfile, routing, path, className, }: MosaicOrgProfilePageProps): React.JSX.Element;
|
|
3086
|
+
declare namespace MosaicOrgProfilePage {
|
|
3087
|
+
var displayName: string;
|
|
3088
|
+
}
|
|
3089
|
+
|
|
3090
|
+
/**
|
|
3091
|
+
* MosaicMultiTenantProvider — wraps <ClerkProvider> with cloud-identity
|
|
3092
|
+
* workspace-scope context.
|
|
3093
|
+
*
|
|
3094
|
+
* Clerk and the workspace-id resolver are injected as peer props so
|
|
3095
|
+
* mosaic-blocks does not bundle @clerk/nextjs or @vantageos/cloud-identity.
|
|
3096
|
+
*
|
|
3097
|
+
* @example
|
|
3098
|
+
* import { ClerkProvider } from "@clerk/nextjs"
|
|
3099
|
+
* import { getEffectiveWorkspaceId } from "@vantageos/cloud-identity"
|
|
3100
|
+
* <MosaicMultiTenantProvider
|
|
3101
|
+
* clerkProvider={ClerkProvider}
|
|
3102
|
+
* publishableKey={process.env.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY}
|
|
3103
|
+
* >
|
|
3104
|
+
* {children}
|
|
3105
|
+
* </MosaicMultiTenantProvider>
|
|
3106
|
+
*/
|
|
3107
|
+
|
|
3108
|
+
interface MosaicWorkspaceContext {
|
|
3109
|
+
workspaceId: string | null;
|
|
3110
|
+
isLoading: boolean;
|
|
3111
|
+
}
|
|
3112
|
+
/** Access the resolved workspace ID from any child component. */
|
|
3113
|
+
declare function useMosaicWorkspace(): MosaicWorkspaceContext;
|
|
3114
|
+
interface MosaicMultiTenantProviderProps {
|
|
3115
|
+
children: React.ReactNode;
|
|
3116
|
+
/** Clerk <ClerkProvider> component — injected by caller */
|
|
3117
|
+
clerkProvider: React.ComponentType<{
|
|
3118
|
+
publishableKey?: string;
|
|
3119
|
+
appearance?: Record<string, unknown>;
|
|
3120
|
+
children?: React.ReactNode;
|
|
3121
|
+
[key: string]: unknown;
|
|
3122
|
+
}>;
|
|
3123
|
+
/** Clerk publishable key */
|
|
3124
|
+
publishableKey?: string;
|
|
3125
|
+
/**
|
|
3126
|
+
* Optional workspace-ID resolver from @vantageos/cloud-identity.
|
|
3127
|
+
* Called with the current Clerk org ID (or null for personal workspace).
|
|
3128
|
+
* Defaults to identity pass-through when not provided.
|
|
3129
|
+
*/
|
|
3130
|
+
resolveWorkspaceId?: (orgId: string | null) => Promise<string | null> | string | null;
|
|
3131
|
+
/** Initial org ID hint (e.g. from URL slug) */
|
|
3132
|
+
initialOrgId?: string | null;
|
|
3133
|
+
/** Clerk appearance override */
|
|
3134
|
+
appearance?: Record<string, unknown>;
|
|
3135
|
+
}
|
|
3136
|
+
declare function MosaicMultiTenantProvider({ children, clerkProvider: ClerkProvider, publishableKey, resolveWorkspaceId, initialOrgId, appearance, }: MosaicMultiTenantProviderProps): React.JSX.Element;
|
|
3137
|
+
declare namespace MosaicMultiTenantProvider {
|
|
3138
|
+
var displayName: string;
|
|
3139
|
+
}
|
|
3140
|
+
|
|
3141
|
+
/**
|
|
3142
|
+
* MosaicClerkWebhookHandler — template handler for Clerk → Convex sync.
|
|
3143
|
+
*
|
|
3144
|
+
* Handles: organization.created, organizationMembership.created,
|
|
3145
|
+
* organizationMembership.deleted events and routes them through
|
|
3146
|
+
* the cloud-identity primitive to sync with Convex.
|
|
3147
|
+
*
|
|
3148
|
+
* Usage: import and call in your Next.js App Router API route:
|
|
3149
|
+
*
|
|
3150
|
+
* @example
|
|
3151
|
+
* // app/api/webhooks/clerk/route.ts
|
|
3152
|
+
* import { MosaicClerkWebhookHandler } from "@vantageos/mosaic-blocks"
|
|
3153
|
+
*
|
|
3154
|
+
* export async function POST(req: Request) {
|
|
3155
|
+
* return MosaicClerkWebhookHandler(req, {
|
|
3156
|
+
* webhookSecret: process.env.CLERK_WEBHOOK_SECRET!,
|
|
3157
|
+
* onOrganizationCreated: async (org) => { ... },
|
|
3158
|
+
* onMembershipCreated: async (data) => { ... },
|
|
3159
|
+
* onMembershipDeleted: async (data) => { ... },
|
|
3160
|
+
* })
|
|
3161
|
+
* }
|
|
3162
|
+
*
|
|
3163
|
+
* Note: svix is an optional peer dependency required only for webhook signature
|
|
3164
|
+
* verification. Install it in your app: `npm install svix`
|
|
3165
|
+
* If svix is absent at runtime, this handler throws an explicit Error with
|
|
3166
|
+
* installation instructions.
|
|
3167
|
+
*/
|
|
3168
|
+
interface MosaicClerkOrganization {
|
|
3169
|
+
id: string;
|
|
3170
|
+
name: string;
|
|
3171
|
+
slug: string | null;
|
|
3172
|
+
imageUrl: string;
|
|
3173
|
+
createdAt: number;
|
|
3174
|
+
updatedAt: number;
|
|
3175
|
+
publicMetadata: Record<string, unknown>;
|
|
3176
|
+
}
|
|
3177
|
+
interface MosaicClerkMembership {
|
|
3178
|
+
id: string;
|
|
3179
|
+
role: string;
|
|
3180
|
+
publicMetadata: Record<string, unknown>;
|
|
3181
|
+
organization: MosaicClerkOrganization;
|
|
3182
|
+
publicUserData: {
|
|
3183
|
+
userId: string;
|
|
3184
|
+
firstName: string | null;
|
|
3185
|
+
lastName: string | null;
|
|
3186
|
+
imageUrl: string;
|
|
3187
|
+
identifier: string;
|
|
3188
|
+
};
|
|
3189
|
+
}
|
|
3190
|
+
interface MosaicClerkWebhookHandlerOptions {
|
|
3191
|
+
/** Clerk webhook signing secret (CLERK_WEBHOOK_SECRET env var) */
|
|
3192
|
+
webhookSecret: string;
|
|
3193
|
+
/** Called when an organization is created in Clerk */
|
|
3194
|
+
onOrganizationCreated?: (org: MosaicClerkOrganization) => Promise<void> | void;
|
|
3195
|
+
/** Called when a member joins an organization */
|
|
3196
|
+
onMembershipCreated?: (data: MosaicClerkMembership) => Promise<void> | void;
|
|
3197
|
+
/** Called when a member leaves or is removed from an organization */
|
|
3198
|
+
onMembershipDeleted?: (data: MosaicClerkMembership) => Promise<void> | void;
|
|
3199
|
+
}
|
|
3200
|
+
/**
|
|
3201
|
+
* MosaicClerkWebhookHandler — verifies and dispatches Clerk webhook events.
|
|
3202
|
+
*
|
|
3203
|
+
* Returns a `Response` compatible with Next.js App Router route handlers.
|
|
3204
|
+
* svix is an optional peer dependency and must be installed in the consuming
|
|
3205
|
+
* app (`npm install svix`). Throws an explicit Error if svix is not installed.
|
|
3206
|
+
*/
|
|
3207
|
+
declare function MosaicClerkWebhookHandler(req: Request, options: MosaicClerkWebhookHandlerOptions): Promise<Response>;
|
|
3208
|
+
|
|
3209
|
+
export { type Breakpoint, type DeviceContextValue, type Feature3ColItem, type FeatureItem, type FooterColumn, type FooterLink, type HeroCta, type LogoItem, type MosaicActionAccent, type MosaicActivity, MosaicActivityFeed, type MosaicActivityFeedProps, MosaicActivityItem, type MosaicActivityItemProps, type MosaicActivityStatus, MosaicAdaptiveGrid, type MosaicAdaptiveGridProps, MosaicAdaptiveModal, type MosaicAdaptiveModalProps, MosaicAdaptiveNavigation, type MosaicAdaptiveNavigationProps, MosaicAgentCard, type MosaicAgentCardProps, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, type MosaicAgentComposerMobileProps, type MosaicAgentComposerProps, type MosaicAgentData, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, type MosaicAgentListProps, type MosaicAgentPreset, MosaicAgentTeamPreview, type MosaicAgentTeamPreviewProps, MosaicAnimatedList, type MosaicAnimatedListProps, MosaicAppSidebar, type MosaicAppSidebarProps, MosaicAvatar, type MosaicAvatarProps, MosaicBadge, type MosaicBadgeProps, MosaicBlurredOrb, type MosaicBlurredOrbProps, type MosaicBreadcrumb, MosaicButton, type MosaicButtonProps, MosaicCard, MosaicCardContent, type MosaicCardContentProps, MosaicCardDescription, type MosaicCardDescriptionProps, MosaicCardFooter, type MosaicCardFooterProps, MosaicCardHeader, type MosaicCardHeaderProps, type MosaicCardProps, MosaicCardTitle, type MosaicCardTitleProps, type MosaicClerkMembership, MosaicClerkOrgSwitcher, type MosaicClerkOrgSwitcherProps, type MosaicClerkOrganization, MosaicClerkWebhookHandler, type MosaicClerkWebhookHandlerOptions, 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, MosaicDeleteConfirmationDialog, type MosaicDeleteConfirmationDialogProps, MosaicDeviceProvider, type MosaicDeviceProviderProps, MosaicDropdownMenu, type MosaicDropdownMenuItem, type MosaicDropdownMenuProps, MosaicFallingPattern, type MosaicFallingPatternProps, MosaicFeature3Col, type MosaicFeature3ColProps, MosaicFeatureCenteredMedia, type MosaicFeatureCenteredMediaProps, MosaicField, MosaicFieldControl, type MosaicFieldControlProps, MosaicFieldDescription, type MosaicFieldDescriptionProps, MosaicFieldError, type MosaicFieldErrorProps, MosaicFieldLabel, type MosaicFieldLabelProps, type MosaicFieldProps, type MosaicFilterOption, MosaicFilterSidebar, type MosaicFilterSidebarProps, MosaicFooterSimple, type MosaicFooterSimpleProps, MosaicHeroSplit, type MosaicHeroSplitProps, MosaicInput, MosaicInputGroup, type MosaicInputGroupProps, type MosaicInputProps, MosaicIntegrationsBadge, type MosaicIntegrationsBadgeProps, MosaicInviteMemberDialog, type MosaicInviteMemberDialogProps, MosaicLogosGrid, type MosaicLogosGridProps, MosaicMainNav, type MosaicMainNavProps, type MosaicMarketplaceItem, MosaicMarketplaceList, MarketplaceListDesktop as MosaicMarketplaceListDesktop, MarketplaceListMobile as MosaicMarketplaceListMobile, type MosaicMarketplaceListProps, MosaicMemberList, type MosaicMemberListProps, type MosaicMessage, MosaicMessageCard, type MosaicMessageCardProps, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, type MosaicMessageListProps, type MosaicMessageReactions, type MosaicMessageSender, type MosaicMessageSenderType, MosaicModuleCard, type MosaicModuleCardProps, type MosaicModuleData, MosaicModuleForm, type MosaicModuleFormField, type MosaicModuleFormProps, type MosaicModuleItem, MosaicModuleLibrary, type MosaicModuleLibraryProps, type MosaicModuleType, MosaicMultiOrgIndicator, type MosaicMultiOrgIndicatorProps, MosaicMultiTenantProvider, type MosaicMultiTenantProviderProps, type MosaicNavItem, MosaicNavbar, type MosaicNavbarProps, type MosaicNavigationItem, type MosaicOrg, type MosaicOrgInfo, type MosaicOrgMember, MosaicOrgPanel, type MosaicOrgPanelProps, type MosaicOrgPanelTab, MosaicOrgProfilePage, type MosaicOrgProfilePageProps, type MosaicOrgRole, MosaicOrgRoleBadge, type MosaicOrgRoleBadgeProps, type MosaicOrgStats, MosaicOrgSwitcher, type MosaicOrgSwitcherProps, type MosaicSelectItem as MosaicPrefSelectItem, type MosaicPreference, type MosaicPreferenceGroup, MosaicPreferencesPanel, type MosaicPreferencesPanelProps, MosaicPricingCard, type MosaicPricingCardProps, type MosaicProfileField, MosaicProfilePanel, type MosaicProfilePanelProps, type MosaicQuickAction$1 as MosaicQuickAction, MosaicQuickActionCard, type MosaicQuickActionCardProps, MosaicQuickActionsMenu, type MosaicQuickAction as MosaicQuickActionsMenuItem, type MosaicQuickActionsMenuProps, type MosaicQuickAgent, MosaicQuickAgentSelector, type MosaicQuickAgentSelectorProps, MosaicQuickStartPanel, type MosaicQuickStartPanelProps, type MosaicScenario, MosaicSelect, type MosaicSelectItem$1 as MosaicSelectItem, type MosaicSelectProps, type MosaicSelectorCategory, type MosaicSelectorItem, MosaicSelectorModal, type MosaicSelectorModalProps, type MosaicSidebarFooterStatus, type MosaicSidebarNavItem, type MosaicSidebarQuickAction, type MosaicSidebarRecentItem, MosaicSignInLayout, type MosaicSignInLayoutProps, MosaicSignUpLayout, type MosaicSignUpLayoutProps, type MosaicStatItem, MosaicStatsGrid, type MosaicStatsGridProps, MosaicSwitch, type MosaicSwitchProps, type MosaicTemplate, type MosaicTemplateAgent, MosaicTemplateCard, type MosaicTemplateCardProps, MosaicTemplateGallery, type MosaicTemplateGalleryProps, type MosaicTemplateMetadata, MosaicTemplatePreview, type MosaicTemplatePreviewProps, MosaicTestimonialsGrid, type MosaicTestimonialsGridProps, MosaicThemeProvider, type MosaicThemeProviderProps, MosaicThemeToggle, type MosaicThemeToggleProps, MosaicUserButton, type MosaicUserButtonProps, type MosaicWorkspaceContext, type NavCta, type NavLink, type OrbPosition, type Orientation, Placeholder, type PricingCta, type SocialLink, type StatItem, type TestimonialItem, type Theme, badgeVariants, buttonVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
|