@vantageos/mosaic-blocks 0.5.23-alpha → 0.5.24-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/README.md +3 -3
- package/dist/index.cjs +560 -419
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +72 -2
- package/dist/index.d.ts +72 -2
- package/dist/index.js +522 -384
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
var button = require('@base-ui/react/button');
|
|
6
6
|
var classVarianceAuthority = require('class-variance-authority');
|
|
7
|
-
var
|
|
7
|
+
var React30 = require('react');
|
|
8
8
|
var accordion = require('@base-ui/react/accordion');
|
|
9
9
|
var checkbox = require('@base-ui/react/checkbox');
|
|
10
10
|
var collapsible = require('@base-ui/react/collapsible');
|
|
@@ -23,8 +23,8 @@ var _switch = require('@base-ui/react/switch');
|
|
|
23
23
|
var select = require('@base-ui/react/select');
|
|
24
24
|
var combobox = require('@base-ui/react/combobox');
|
|
25
25
|
var menu = require('@base-ui/react/menu');
|
|
26
|
-
var alertDialog = require('@base-ui/react/alert-dialog');
|
|
27
26
|
var dialog = require('@base-ui/react/dialog');
|
|
27
|
+
var alertDialog = require('@base-ui/react/alert-dialog');
|
|
28
28
|
|
|
29
29
|
function _interopNamespace(e) {
|
|
30
30
|
if (e && e.__esModule) return e;
|
|
@@ -44,10 +44,10 @@ function _interopNamespace(e) {
|
|
|
44
44
|
return Object.freeze(n);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
var
|
|
47
|
+
var React30__namespace = /*#__PURE__*/_interopNamespace(React30);
|
|
48
48
|
|
|
49
49
|
// src/version.ts
|
|
50
|
-
var version = "0.5.
|
|
50
|
+
var version = "0.5.24-alpha";
|
|
51
51
|
function Placeholder({ label = "mosaic-blocks placeholder" }) {
|
|
52
52
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-mosaic-block": "placeholder", children: label });
|
|
53
53
|
}
|
|
@@ -178,11 +178,11 @@ function MosaicNavbar({
|
|
|
178
178
|
className,
|
|
179
179
|
ref
|
|
180
180
|
}) {
|
|
181
|
-
const [isScrolled, setIsScrolled] =
|
|
182
|
-
const [isHidden, setIsHidden] =
|
|
183
|
-
const [isOpen, setIsOpen] =
|
|
184
|
-
const lastScrollY =
|
|
185
|
-
|
|
181
|
+
const [isScrolled, setIsScrolled] = React30__namespace.useState(false);
|
|
182
|
+
const [isHidden, setIsHidden] = React30__namespace.useState(false);
|
|
183
|
+
const [isOpen, setIsOpen] = React30__namespace.useState(false);
|
|
184
|
+
const lastScrollY = React30__namespace.useRef(0);
|
|
185
|
+
React30__namespace.useEffect(() => {
|
|
186
186
|
const handleScroll = () => {
|
|
187
187
|
const current = window.scrollY;
|
|
188
188
|
setIsScrolled(current > 50);
|
|
@@ -197,7 +197,7 @@ function MosaicNavbar({
|
|
|
197
197
|
window.addEventListener("scroll", handleScroll, { passive: true });
|
|
198
198
|
return () => window.removeEventListener("scroll", handleScroll);
|
|
199
199
|
}, []);
|
|
200
|
-
|
|
200
|
+
React30__namespace.useEffect(() => {
|
|
201
201
|
document.body.style.overflow = isOpen ? "hidden" : "";
|
|
202
202
|
return () => {
|
|
203
203
|
document.body.style.overflow = "";
|
|
@@ -725,10 +725,10 @@ function MosaicCounter({
|
|
|
725
725
|
className,
|
|
726
726
|
ref
|
|
727
727
|
}) {
|
|
728
|
-
const [current, setCurrent] =
|
|
729
|
-
const rafRef =
|
|
730
|
-
const startTimeRef =
|
|
731
|
-
|
|
728
|
+
const [current, setCurrent] = React30__namespace.useState(0);
|
|
729
|
+
const rafRef = React30__namespace.useRef(0);
|
|
730
|
+
const startTimeRef = React30__namespace.useRef(null);
|
|
731
|
+
React30__namespace.useEffect(() => {
|
|
732
732
|
const prefersReduced = typeof window !== "undefined" && typeof window.matchMedia === "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
733
733
|
if (prefersReduced) {
|
|
734
734
|
setCurrent(value);
|
|
@@ -784,12 +784,12 @@ function MosaicThemeToggle({
|
|
|
784
784
|
switchToDarkLabel,
|
|
785
785
|
ref
|
|
786
786
|
}) {
|
|
787
|
-
const [theme, setTheme] =
|
|
787
|
+
const [theme, setTheme] = React30__namespace.useState(() => {
|
|
788
788
|
if (typeof document === "undefined") return themes[0];
|
|
789
789
|
const current = document.documentElement.getAttribute("data-theme");
|
|
790
790
|
return current && themes.includes(current) ? current : themes[0];
|
|
791
791
|
});
|
|
792
|
-
const applyTheme =
|
|
792
|
+
const applyTheme = React30__namespace.useCallback(
|
|
793
793
|
(next) => {
|
|
794
794
|
const resolved = next === "system" ? getSystemTheme() : next;
|
|
795
795
|
document.documentElement.setAttribute("data-theme", resolved);
|
|
@@ -917,10 +917,10 @@ function MosaicAnimatedList({
|
|
|
917
917
|
as: Tag = "ul",
|
|
918
918
|
ref
|
|
919
919
|
}) {
|
|
920
|
-
|
|
920
|
+
React30__namespace.useEffect(() => {
|
|
921
921
|
injectKeyframes();
|
|
922
922
|
}, []);
|
|
923
|
-
const items =
|
|
923
|
+
const items = React30__namespace.Children.toArray(children);
|
|
924
924
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
925
925
|
Tag,
|
|
926
926
|
{
|
|
@@ -928,7 +928,7 @@ function MosaicAnimatedList({
|
|
|
928
928
|
className,
|
|
929
929
|
children: items.map((child, i) => {
|
|
930
930
|
const stableKey = child.key ?? `item-${i}`;
|
|
931
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
931
|
+
return /* @__PURE__ */ jsxRuntime.jsx(React30__namespace.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
932
932
|
"div",
|
|
933
933
|
{
|
|
934
934
|
className: "mosaic-list-item",
|
|
@@ -1001,8 +1001,8 @@ function MosaicFallingPattern({
|
|
|
1001
1001
|
className,
|
|
1002
1002
|
ref
|
|
1003
1003
|
}) {
|
|
1004
|
-
const uniqueId =
|
|
1005
|
-
|
|
1004
|
+
const uniqueId = React30__namespace.useId();
|
|
1005
|
+
React30__namespace.useEffect(() => {
|
|
1006
1006
|
injectPatternKeyframes();
|
|
1007
1007
|
}, []);
|
|
1008
1008
|
const cols = density;
|
|
@@ -1076,8 +1076,8 @@ function MosaicFallingPattern({
|
|
|
1076
1076
|
}
|
|
1077
1077
|
MosaicFallingPattern.displayName = "MosaicFallingPattern";
|
|
1078
1078
|
function useMediaQuery(query) {
|
|
1079
|
-
const [matches, setMatches] =
|
|
1080
|
-
|
|
1079
|
+
const [matches, setMatches] = React30.useState(false);
|
|
1080
|
+
React30.useEffect(() => {
|
|
1081
1081
|
const mql = window.matchMedia(query);
|
|
1082
1082
|
setMatches(mql.matches);
|
|
1083
1083
|
const handler = (e) => {
|
|
@@ -2098,7 +2098,7 @@ function MosaicSelect({
|
|
|
2098
2098
|
name,
|
|
2099
2099
|
className
|
|
2100
2100
|
}) {
|
|
2101
|
-
const labelMap =
|
|
2101
|
+
const labelMap = React30__namespace.useMemo(
|
|
2102
2102
|
() => Object.fromEntries(items.map((item) => [item.value, item.label])),
|
|
2103
2103
|
[items]
|
|
2104
2104
|
);
|
|
@@ -2218,9 +2218,9 @@ function MosaicCombobox({
|
|
|
2218
2218
|
emptyMessage,
|
|
2219
2219
|
className
|
|
2220
2220
|
}) {
|
|
2221
|
-
const [inputValue, setInputValue] =
|
|
2221
|
+
const [inputValue, setInputValue] = React30__namespace.useState("");
|
|
2222
2222
|
const filter = combobox.Combobox.useFilter({ sensitivity: "base" });
|
|
2223
|
-
const filteredItems =
|
|
2223
|
+
const filteredItems = React30__namespace.useMemo(() => {
|
|
2224
2224
|
if (!inputValue) return items;
|
|
2225
2225
|
return items.filter((item) => filter.contains(item.label, inputValue));
|
|
2226
2226
|
}, [items, inputValue, filter]);
|
|
@@ -2323,17 +2323,17 @@ function MosaicModelSelector({
|
|
|
2323
2323
|
name,
|
|
2324
2324
|
className
|
|
2325
2325
|
}) {
|
|
2326
|
-
const [inputValue, setInputValue] =
|
|
2326
|
+
const [inputValue, setInputValue] = React30__namespace.useState("");
|
|
2327
2327
|
const filter = combobox.Combobox.useFilter({ sensitivity: "base" });
|
|
2328
|
-
const filteredModels =
|
|
2328
|
+
const filteredModels = React30__namespace.useMemo(() => {
|
|
2329
2329
|
if (!inputValue) return models;
|
|
2330
2330
|
return models.filter((model) => filter.contains(model.label, inputValue));
|
|
2331
2331
|
}, [models, inputValue, filter]);
|
|
2332
|
-
const labelMap =
|
|
2332
|
+
const labelMap = React30__namespace.useMemo(
|
|
2333
2333
|
() => Object.fromEntries(models.map((model) => [model.value, model.label])),
|
|
2334
2334
|
[models]
|
|
2335
2335
|
);
|
|
2336
|
-
const handleValueChange =
|
|
2336
|
+
const handleValueChange = React30__namespace.useCallback(
|
|
2337
2337
|
(nextValue, eventDetails) => {
|
|
2338
2338
|
if (typeof nextValue !== "string") return;
|
|
2339
2339
|
const selected = models.find((model) => model.value === nextValue);
|
|
@@ -2426,7 +2426,7 @@ function MosaicDropdownMenu({
|
|
|
2426
2426
|
"data-[starting-style]:scale-95 data-[starting-style]:opacity-0",
|
|
2427
2427
|
className
|
|
2428
2428
|
),
|
|
2429
|
-
children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2429
|
+
children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsxs(React30__namespace.Fragment, { children: [
|
|
2430
2430
|
item.separator && /* @__PURE__ */ jsxRuntime.jsx(menu.Menu.Separator, { className: "my-1 h-px bg-border" }),
|
|
2431
2431
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2432
2432
|
menu.Menu.Item,
|
|
@@ -2454,8 +2454,8 @@ var BREAKPOINTS = {
|
|
|
2454
2454
|
xl: 1280
|
|
2455
2455
|
};
|
|
2456
2456
|
function useBreakpoint(breakpoint) {
|
|
2457
|
-
const [matches, setMatches] =
|
|
2458
|
-
|
|
2457
|
+
const [matches, setMatches] = React30__namespace.useState(false);
|
|
2458
|
+
React30__namespace.useEffect(() => {
|
|
2459
2459
|
if (typeof window === "undefined") return;
|
|
2460
2460
|
const mq = window.matchMedia(`(min-width: ${BREAKPOINTS[breakpoint]}px)`);
|
|
2461
2461
|
setMatches(mq.matches);
|
|
@@ -2478,8 +2478,8 @@ function useIsDesktop() {
|
|
|
2478
2478
|
return useBreakpoint("lg");
|
|
2479
2479
|
}
|
|
2480
2480
|
function useViewport() {
|
|
2481
|
-
const [size, setSize] =
|
|
2482
|
-
|
|
2481
|
+
const [size, setSize] = React30__namespace.useState({ width: 0, height: 0 });
|
|
2482
|
+
React30__namespace.useEffect(() => {
|
|
2483
2483
|
if (typeof window === "undefined") return;
|
|
2484
2484
|
const update = () => setSize({ width: window.innerWidth, height: window.innerHeight });
|
|
2485
2485
|
update();
|
|
@@ -2497,8 +2497,8 @@ function useViewport() {
|
|
|
2497
2497
|
return size;
|
|
2498
2498
|
}
|
|
2499
2499
|
function useOrientation() {
|
|
2500
|
-
const [orientation, setOrientation] =
|
|
2501
|
-
|
|
2500
|
+
const [orientation, setOrientation] = React30__namespace.useState("portrait");
|
|
2501
|
+
React30__namespace.useEffect(() => {
|
|
2502
2502
|
if (typeof window === "undefined") return;
|
|
2503
2503
|
const update = () => {
|
|
2504
2504
|
setOrientation(window.innerHeight > window.innerWidth ? "portrait" : "landscape");
|
|
@@ -2513,7 +2513,7 @@ function useOrientation() {
|
|
|
2513
2513
|
}, []);
|
|
2514
2514
|
return orientation;
|
|
2515
2515
|
}
|
|
2516
|
-
var DeviceContext =
|
|
2516
|
+
var DeviceContext = React30__namespace.createContext(void 0);
|
|
2517
2517
|
function MosaicDeviceProvider({ children }) {
|
|
2518
2518
|
const isMobile = useIsMobile();
|
|
2519
2519
|
const isTablet = useIsTablet();
|
|
@@ -2524,7 +2524,7 @@ function MosaicDeviceProvider({ children }) {
|
|
|
2524
2524
|
const isXlUp = useBreakpoint("xl");
|
|
2525
2525
|
const orientation = useOrientation();
|
|
2526
2526
|
const viewport = useViewport();
|
|
2527
|
-
const isBreakpoint =
|
|
2527
|
+
const isBreakpoint = React30__namespace.useCallback(
|
|
2528
2528
|
(bp) => {
|
|
2529
2529
|
switch (bp) {
|
|
2530
2530
|
case "sm":
|
|
@@ -2539,7 +2539,7 @@ function MosaicDeviceProvider({ children }) {
|
|
|
2539
2539
|
},
|
|
2540
2540
|
[isSmUp, isMdUp, isLgUp, isXlUp]
|
|
2541
2541
|
);
|
|
2542
|
-
const value =
|
|
2542
|
+
const value = React30__namespace.useMemo(
|
|
2543
2543
|
() => ({
|
|
2544
2544
|
isMobile,
|
|
2545
2545
|
isTablet,
|
|
@@ -2569,7 +2569,7 @@ function MosaicDeviceProvider({ children }) {
|
|
|
2569
2569
|
}
|
|
2570
2570
|
MosaicDeviceProvider.displayName = "MosaicDeviceProvider";
|
|
2571
2571
|
function useDevice() {
|
|
2572
|
-
const ctx =
|
|
2572
|
+
const ctx = React30__namespace.useContext(DeviceContext);
|
|
2573
2573
|
if (!ctx) {
|
|
2574
2574
|
throw new Error("useDevice must be used within a MosaicDeviceProvider");
|
|
2575
2575
|
}
|
|
@@ -2655,13 +2655,13 @@ function MosaicAdaptiveModal({
|
|
|
2655
2655
|
closeAriaLabel
|
|
2656
2656
|
}) {
|
|
2657
2657
|
const { isMobile } = useDevice();
|
|
2658
|
-
const dialogRef =
|
|
2659
|
-
const titleId =
|
|
2660
|
-
const descId =
|
|
2661
|
-
|
|
2658
|
+
const dialogRef = React30__namespace.useRef(null);
|
|
2659
|
+
const titleId = React30__namespace.useId();
|
|
2660
|
+
const descId = React30__namespace.useId();
|
|
2661
|
+
React30__namespace.useEffect(() => {
|
|
2662
2662
|
injectStyles();
|
|
2663
2663
|
}, []);
|
|
2664
|
-
|
|
2664
|
+
React30__namespace.useEffect(() => {
|
|
2665
2665
|
const el = dialogRef.current;
|
|
2666
2666
|
if (!el) return;
|
|
2667
2667
|
if (isOpen) {
|
|
@@ -2670,7 +2670,7 @@ function MosaicAdaptiveModal({
|
|
|
2670
2670
|
if (el.open) el.close();
|
|
2671
2671
|
}
|
|
2672
2672
|
}, [isOpen]);
|
|
2673
|
-
|
|
2673
|
+
React30__namespace.useEffect(() => {
|
|
2674
2674
|
const el = dialogRef.current;
|
|
2675
2675
|
if (!el) return;
|
|
2676
2676
|
const handler = (e) => {
|
|
@@ -2680,7 +2680,7 @@ function MosaicAdaptiveModal({
|
|
|
2680
2680
|
el.addEventListener("cancel", handler);
|
|
2681
2681
|
return () => el.removeEventListener("cancel", handler);
|
|
2682
2682
|
}, [onClose]);
|
|
2683
|
-
|
|
2683
|
+
React30__namespace.useEffect(() => {
|
|
2684
2684
|
if (!isOpen) return;
|
|
2685
2685
|
const prev = document.body.style.overflow;
|
|
2686
2686
|
document.body.style.overflow = "hidden";
|
|
@@ -3112,8 +3112,8 @@ function MosaicAppSidebar({
|
|
|
3112
3112
|
ref
|
|
3113
3113
|
}) {
|
|
3114
3114
|
const { isMobile } = useDevice();
|
|
3115
|
-
const [expandedItems, setExpandedItems] =
|
|
3116
|
-
|
|
3115
|
+
const [expandedItems, setExpandedItems] = React30__namespace.useState(/* @__PURE__ */ new Set());
|
|
3116
|
+
React30__namespace.useEffect(() => {
|
|
3117
3117
|
injectStyles2();
|
|
3118
3118
|
}, []);
|
|
3119
3119
|
const sidebarWidth = isMobile ? "100%" : isCollapsed ? "64px" : "280px";
|
|
@@ -3365,9 +3365,9 @@ function MosaicDashboardLayout({
|
|
|
3365
3365
|
ref
|
|
3366
3366
|
}) {
|
|
3367
3367
|
const { isMobile } = useDevice();
|
|
3368
|
-
const [isSidebarCollapsed, setIsSidebarCollapsed] =
|
|
3369
|
-
const [isMobileSidebarOpen, setIsMobileSidebarOpen] =
|
|
3370
|
-
|
|
3368
|
+
const [isSidebarCollapsed, setIsSidebarCollapsed] = React30__namespace.useState(defaultSidebarCollapsed);
|
|
3369
|
+
const [isMobileSidebarOpen, setIsMobileSidebarOpen] = React30__namespace.useState(false);
|
|
3370
|
+
React30__namespace.useEffect(() => {
|
|
3371
3371
|
injectStyles3();
|
|
3372
3372
|
}, []);
|
|
3373
3373
|
const defaultRenderLink2 = (href, children2) => /* @__PURE__ */ jsxRuntime.jsx("a", { href, className: "transition-colors hover:text-foreground", children: children2 });
|
|
@@ -3499,7 +3499,7 @@ function MosaicQuickActionCard({
|
|
|
3499
3499
|
ref
|
|
3500
3500
|
}) {
|
|
3501
3501
|
const { mobile = 2, desktop = 3 } = columns;
|
|
3502
|
-
|
|
3502
|
+
React30__namespace.useEffect(() => {
|
|
3503
3503
|
injectStyles4();
|
|
3504
3504
|
}, []);
|
|
3505
3505
|
const defaultRenderLink2 = (href, children) => /* @__PURE__ */ jsxRuntime.jsx("a", { href, className: "block h-full", children });
|
|
@@ -3716,7 +3716,7 @@ function MosaicActivityFeed({
|
|
|
3716
3716
|
className,
|
|
3717
3717
|
ref
|
|
3718
3718
|
}) {
|
|
3719
|
-
|
|
3719
|
+
React30__namespace.useEffect(() => {
|
|
3720
3720
|
injectStyles5();
|
|
3721
3721
|
}, []);
|
|
3722
3722
|
const defaultRenderLink2 = (href, children) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -4386,7 +4386,7 @@ function MosaicAgentComposerMobile({
|
|
|
4386
4386
|
optionalInstructionsHelp
|
|
4387
4387
|
}) {
|
|
4388
4388
|
const L = labels;
|
|
4389
|
-
const instructionsId =
|
|
4389
|
+
const instructionsId = React30__namespace.useId();
|
|
4390
4390
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "agent-composer-mobile", className: "flex h-full flex-col", children: [
|
|
4391
4391
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "shrink-0 sticky top-0 z-10 border-b border-border bg-background px-4 pt-4 pb-3", children: [
|
|
4392
4392
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
@@ -4691,9 +4691,147 @@ function MosaicAgentEditor({
|
|
|
4691
4691
|
);
|
|
4692
4692
|
}
|
|
4693
4693
|
MosaicAgentEditor.displayName = "MosaicAgentEditor";
|
|
4694
|
+
var agentBuilderModalPopupVariants = classVarianceAuthority.cva([
|
|
4695
|
+
"fixed top-1/2 left-1/2 z-50 flex max-h-[85vh] w-full max-w-[calc(100%-2rem)] flex-col",
|
|
4696
|
+
"-translate-x-1/2 -translate-y-1/2",
|
|
4697
|
+
"rounded-lg border border-border bg-background shadow-lg outline-none",
|
|
4698
|
+
"sm:max-w-lg"
|
|
4699
|
+
]);
|
|
4700
|
+
var agentBuilderModalBackdropVariants = classVarianceAuthority.cva(["fixed inset-0 z-50 bg-black/50"]);
|
|
4694
4701
|
function cn47(...classes) {
|
|
4695
4702
|
return classes.filter(Boolean).join(" ");
|
|
4696
4703
|
}
|
|
4704
|
+
function MosaicAgentBuilderModal({
|
|
4705
|
+
open,
|
|
4706
|
+
onOpenChange,
|
|
4707
|
+
title,
|
|
4708
|
+
description,
|
|
4709
|
+
closeAriaLabel,
|
|
4710
|
+
confirmLabel,
|
|
4711
|
+
confirmingLabel,
|
|
4712
|
+
cancelLabel,
|
|
4713
|
+
onConfirm,
|
|
4714
|
+
onCancel,
|
|
4715
|
+
canConfirm,
|
|
4716
|
+
isConfirming,
|
|
4717
|
+
children,
|
|
4718
|
+
className
|
|
4719
|
+
}) {
|
|
4720
|
+
const titleId = React30__namespace.useId();
|
|
4721
|
+
const descriptionId = React30__namespace.useId();
|
|
4722
|
+
const confirmDisabled = !canConfirm || isConfirming;
|
|
4723
|
+
const handleConfirm = () => {
|
|
4724
|
+
if (confirmDisabled) return;
|
|
4725
|
+
onConfirm();
|
|
4726
|
+
};
|
|
4727
|
+
return /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog.Root, { open, onOpenChange: (nextOpen) => onOpenChange(nextOpen), modal: true, children: /* @__PURE__ */ jsxRuntime.jsxs(dialog.Dialog.Portal, { children: [
|
|
4728
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4729
|
+
dialog.Dialog.Backdrop,
|
|
4730
|
+
{
|
|
4731
|
+
"data-slot": "agent-builder-modal-backdrop",
|
|
4732
|
+
className: agentBuilderModalBackdropVariants()
|
|
4733
|
+
}
|
|
4734
|
+
),
|
|
4735
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
4736
|
+
dialog.Dialog.Popup,
|
|
4737
|
+
{
|
|
4738
|
+
"data-slot": "agent-builder-modal",
|
|
4739
|
+
"aria-labelledby": titleId,
|
|
4740
|
+
"aria-describedby": descriptionId,
|
|
4741
|
+
"aria-modal": "true",
|
|
4742
|
+
className: cn47(agentBuilderModalPopupVariants(), className),
|
|
4743
|
+
children: [
|
|
4744
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
4745
|
+
"div",
|
|
4746
|
+
{
|
|
4747
|
+
"data-slot": "agent-builder-modal-header",
|
|
4748
|
+
className: "flex items-start justify-between gap-4 border-b border-border p-4",
|
|
4749
|
+
children: [
|
|
4750
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
4751
|
+
/* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog.Title, { id: titleId, className: "text-base font-semibold text-foreground", children: title }),
|
|
4752
|
+
/* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog.Description, { id: descriptionId, className: "text-sm text-muted-foreground", children: description })
|
|
4753
|
+
] }),
|
|
4754
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4755
|
+
dialog.Dialog.Close,
|
|
4756
|
+
{
|
|
4757
|
+
"aria-label": closeAriaLabel,
|
|
4758
|
+
className: cn47(
|
|
4759
|
+
"flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors",
|
|
4760
|
+
"hover:bg-muted hover:text-foreground",
|
|
4761
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
4762
|
+
),
|
|
4763
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4764
|
+
"svg",
|
|
4765
|
+
{
|
|
4766
|
+
width: "16",
|
|
4767
|
+
height: "16",
|
|
4768
|
+
viewBox: "0 0 24 24",
|
|
4769
|
+
fill: "none",
|
|
4770
|
+
stroke: "currentColor",
|
|
4771
|
+
strokeWidth: "2",
|
|
4772
|
+
strokeLinecap: "round",
|
|
4773
|
+
strokeLinejoin: "round",
|
|
4774
|
+
"aria-hidden": "true",
|
|
4775
|
+
children: [
|
|
4776
|
+
/* @__PURE__ */ jsxRuntime.jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
|
4777
|
+
/* @__PURE__ */ jsxRuntime.jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
4778
|
+
]
|
|
4779
|
+
}
|
|
4780
|
+
)
|
|
4781
|
+
}
|
|
4782
|
+
)
|
|
4783
|
+
]
|
|
4784
|
+
}
|
|
4785
|
+
),
|
|
4786
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "agent-builder-modal-body", className: "min-h-0 flex-1 overflow-y-auto p-4", children }),
|
|
4787
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
4788
|
+
"div",
|
|
4789
|
+
{
|
|
4790
|
+
"data-slot": "agent-builder-modal-footer",
|
|
4791
|
+
className: "flex flex-col-reverse gap-2 border-t border-border p-4 sm:flex-row sm:justify-end",
|
|
4792
|
+
children: [
|
|
4793
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4794
|
+
dialog.Dialog.Close,
|
|
4795
|
+
{
|
|
4796
|
+
onClick: onCancel,
|
|
4797
|
+
className: cn47(
|
|
4798
|
+
"inline-flex h-9 items-center justify-center gap-1.5 rounded-md border border-border px-4",
|
|
4799
|
+
"bg-background text-sm font-medium text-foreground shadow-xs",
|
|
4800
|
+
"hover:bg-muted hover:text-foreground",
|
|
4801
|
+
"focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring",
|
|
4802
|
+
"disabled:pointer-events-none disabled:opacity-50"
|
|
4803
|
+
),
|
|
4804
|
+
children: cancelLabel
|
|
4805
|
+
}
|
|
4806
|
+
),
|
|
4807
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4808
|
+
"button",
|
|
4809
|
+
{
|
|
4810
|
+
type: "button",
|
|
4811
|
+
onClick: handleConfirm,
|
|
4812
|
+
disabled: confirmDisabled,
|
|
4813
|
+
className: cn47(
|
|
4814
|
+
"inline-flex h-9 items-center justify-center gap-1.5 rounded-md px-4",
|
|
4815
|
+
"bg-primary text-sm font-medium text-primary-foreground",
|
|
4816
|
+
"hover:bg-primary/90",
|
|
4817
|
+
"focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring",
|
|
4818
|
+
"disabled:pointer-events-none disabled:opacity-50"
|
|
4819
|
+
),
|
|
4820
|
+
children: isConfirming ? confirmingLabel : confirmLabel
|
|
4821
|
+
}
|
|
4822
|
+
)
|
|
4823
|
+
]
|
|
4824
|
+
}
|
|
4825
|
+
)
|
|
4826
|
+
]
|
|
4827
|
+
}
|
|
4828
|
+
)
|
|
4829
|
+
] }) });
|
|
4830
|
+
}
|
|
4831
|
+
MosaicAgentBuilderModal.displayName = "MosaicAgentBuilderModal";
|
|
4832
|
+
function cn48(...classes) {
|
|
4833
|
+
return classes.filter(Boolean).join(" ");
|
|
4834
|
+
}
|
|
4697
4835
|
function EditIcon() {
|
|
4698
4836
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4699
4837
|
"svg",
|
|
@@ -4752,7 +4890,7 @@ function MosaicModuleCard({
|
|
|
4752
4890
|
{
|
|
4753
4891
|
ref,
|
|
4754
4892
|
"data-slot": "module-card",
|
|
4755
|
-
className:
|
|
4893
|
+
className: cn48(
|
|
4756
4894
|
"min-h-[80px] rounded-xl border border-border bg-card p-4 transition-all",
|
|
4757
4895
|
"flex items-start gap-3",
|
|
4758
4896
|
isSelected && "ring-2 ring-primary bg-primary/5",
|
|
@@ -4814,7 +4952,7 @@ function MosaicThemeProvider({
|
|
|
4814
4952
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "theme-provider", children });
|
|
4815
4953
|
}
|
|
4816
4954
|
MosaicThemeProvider.displayName = "MosaicThemeProvider";
|
|
4817
|
-
function
|
|
4955
|
+
function cn49(...classes) {
|
|
4818
4956
|
return classes.filter(Boolean).join(" ");
|
|
4819
4957
|
}
|
|
4820
4958
|
var ANIM_ID6 = "mosaic-delete-dialog-kf";
|
|
@@ -4856,21 +4994,21 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4856
4994
|
cancelLabel,
|
|
4857
4995
|
confirmLabel
|
|
4858
4996
|
}) {
|
|
4859
|
-
|
|
4997
|
+
React30__namespace.useEffect(() => {
|
|
4860
4998
|
injectStyles6();
|
|
4861
4999
|
}, []);
|
|
4862
5000
|
return /* @__PURE__ */ jsxRuntime.jsx(alertDialog.AlertDialog.Root, { open, onOpenChange, children: /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.AlertDialog.Portal, { children: [
|
|
4863
5001
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4864
5002
|
alertDialog.AlertDialog.Backdrop,
|
|
4865
5003
|
{
|
|
4866
|
-
className:
|
|
5004
|
+
className: cn49("mosaic-delete-overlay", "fixed inset-0 z-50 bg-black/50")
|
|
4867
5005
|
}
|
|
4868
5006
|
),
|
|
4869
5007
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
4870
5008
|
alertDialog.AlertDialog.Popup,
|
|
4871
5009
|
{
|
|
4872
5010
|
"data-slot": "delete-confirmation-dialog",
|
|
4873
|
-
className:
|
|
5011
|
+
className: cn49(
|
|
4874
5012
|
"mosaic-delete-content",
|
|
4875
5013
|
"fixed left-1/2 top-1/2 z-50",
|
|
4876
5014
|
"w-full max-w-[92vw] sm:max-w-md",
|
|
@@ -4883,7 +5021,7 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4883
5021
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4884
5022
|
alertDialog.AlertDialog.Close,
|
|
4885
5023
|
{
|
|
4886
|
-
className:
|
|
5024
|
+
className: cn49(
|
|
4887
5025
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md border border-border",
|
|
4888
5026
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
4889
5027
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -4897,7 +5035,7 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4897
5035
|
alertDialog.AlertDialog.Close,
|
|
4898
5036
|
{
|
|
4899
5037
|
onClick: onConfirm,
|
|
4900
|
-
className:
|
|
5038
|
+
className: cn49(
|
|
4901
5039
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md",
|
|
4902
5040
|
"bg-destructive px-4 py-2 text-sm font-medium text-destructive-foreground",
|
|
4903
5041
|
"hover:bg-destructive/90",
|
|
@@ -4921,7 +5059,7 @@ var alertDialogContentVariants = classVarianceAuthority.cva([
|
|
|
4921
5059
|
"sm:max-w-lg"
|
|
4922
5060
|
]);
|
|
4923
5061
|
var alertDialogOverlayVariants = classVarianceAuthority.cva(["fixed inset-0 z-50 bg-black/50"]);
|
|
4924
|
-
function
|
|
5062
|
+
function cn50(...classes) {
|
|
4925
5063
|
return classes.filter(Boolean).join(" ");
|
|
4926
5064
|
}
|
|
4927
5065
|
function MosaicAlertDialog(props) {
|
|
@@ -4941,7 +5079,7 @@ function MosaicAlertDialogOverlay({ className, ...props }) {
|
|
|
4941
5079
|
alertDialog.AlertDialog.Backdrop,
|
|
4942
5080
|
{
|
|
4943
5081
|
"data-slot": "alert-dialog-overlay",
|
|
4944
|
-
className:
|
|
5082
|
+
className: cn50(alertDialogOverlayVariants(), className),
|
|
4945
5083
|
...props
|
|
4946
5084
|
}
|
|
4947
5085
|
);
|
|
@@ -4954,7 +5092,7 @@ function MosaicAlertDialogContent({ className, ...props }) {
|
|
|
4954
5092
|
alertDialog.AlertDialog.Popup,
|
|
4955
5093
|
{
|
|
4956
5094
|
"data-slot": "alert-dialog-content",
|
|
4957
|
-
className:
|
|
5095
|
+
className: cn50(alertDialogContentVariants(), className),
|
|
4958
5096
|
...props
|
|
4959
5097
|
}
|
|
4960
5098
|
)
|
|
@@ -4966,7 +5104,7 @@ function MosaicAlertDialogHeader({ className, ...props }) {
|
|
|
4966
5104
|
"div",
|
|
4967
5105
|
{
|
|
4968
5106
|
"data-slot": "alert-dialog-header",
|
|
4969
|
-
className:
|
|
5107
|
+
className: cn50("flex flex-col gap-2 text-center sm:text-left", className),
|
|
4970
5108
|
...props
|
|
4971
5109
|
}
|
|
4972
5110
|
);
|
|
@@ -4977,7 +5115,7 @@ function MosaicAlertDialogFooter({ className, ...props }) {
|
|
|
4977
5115
|
"div",
|
|
4978
5116
|
{
|
|
4979
5117
|
"data-slot": "alert-dialog-footer",
|
|
4980
|
-
className:
|
|
5118
|
+
className: cn50("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
4981
5119
|
...props
|
|
4982
5120
|
}
|
|
4983
5121
|
);
|
|
@@ -4992,7 +5130,7 @@ function MosaicAlertDialogTitle({
|
|
|
4992
5130
|
alertDialog.AlertDialog.Title,
|
|
4993
5131
|
{
|
|
4994
5132
|
"data-slot": "alert-dialog-title",
|
|
4995
|
-
className:
|
|
5133
|
+
className: cn50("text-lg font-semibold text-foreground", className),
|
|
4996
5134
|
...props,
|
|
4997
5135
|
children
|
|
4998
5136
|
}
|
|
@@ -5008,7 +5146,7 @@ function MosaicAlertDialogDescription({
|
|
|
5008
5146
|
alertDialog.AlertDialog.Description,
|
|
5009
5147
|
{
|
|
5010
5148
|
"data-slot": "alert-dialog-description",
|
|
5011
|
-
className:
|
|
5149
|
+
className: cn50("text-sm text-muted-foreground", className),
|
|
5012
5150
|
...props,
|
|
5013
5151
|
children
|
|
5014
5152
|
}
|
|
@@ -5024,7 +5162,7 @@ function MosaicAlertDialogAction({
|
|
|
5024
5162
|
alertDialog.AlertDialog.Close,
|
|
5025
5163
|
{
|
|
5026
5164
|
"data-slot": "alert-dialog-action",
|
|
5027
|
-
className:
|
|
5165
|
+
className: cn50(
|
|
5028
5166
|
"inline-flex h-9 items-center justify-center gap-1.5 rounded-md px-4",
|
|
5029
5167
|
"bg-destructive text-sm font-medium text-destructive-foreground",
|
|
5030
5168
|
"hover:bg-destructive/90",
|
|
@@ -5047,7 +5185,7 @@ function MosaicAlertDialogCancel({
|
|
|
5047
5185
|
alertDialog.AlertDialog.Close,
|
|
5048
5186
|
{
|
|
5049
5187
|
"data-slot": "alert-dialog-cancel",
|
|
5050
|
-
className:
|
|
5188
|
+
className: cn50(
|
|
5051
5189
|
"inline-flex h-9 items-center justify-center gap-1.5 rounded-md border border-border px-4",
|
|
5052
5190
|
"bg-background text-sm font-medium text-foreground shadow-xs",
|
|
5053
5191
|
"hover:bg-muted hover:text-foreground",
|
|
@@ -5061,7 +5199,7 @@ function MosaicAlertDialogCancel({
|
|
|
5061
5199
|
);
|
|
5062
5200
|
}
|
|
5063
5201
|
MosaicAlertDialogCancel.displayName = "MosaicAlertDialogCancel";
|
|
5064
|
-
function
|
|
5202
|
+
function cn51(...classes) {
|
|
5065
5203
|
return classes.filter(Boolean).join(" ");
|
|
5066
5204
|
}
|
|
5067
5205
|
function Toggle({
|
|
@@ -5077,7 +5215,7 @@ function Toggle({
|
|
|
5077
5215
|
id,
|
|
5078
5216
|
"aria-checked": checked,
|
|
5079
5217
|
onClick: () => onChange(!checked),
|
|
5080
|
-
className:
|
|
5218
|
+
className: cn51(
|
|
5081
5219
|
"relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent",
|
|
5082
5220
|
"transition-colors duration-200 ease-in-out",
|
|
5083
5221
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
@@ -5086,7 +5224,7 @@ function Toggle({
|
|
|
5086
5224
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5087
5225
|
"span",
|
|
5088
5226
|
{
|
|
5089
|
-
className:
|
|
5227
|
+
className: cn51(
|
|
5090
5228
|
"pointer-events-none inline-block h-5 w-5 rounded-full bg-background shadow-lg",
|
|
5091
5229
|
"transform transition duration-200 ease-in-out",
|
|
5092
5230
|
checked ? "translate-x-5" : "translate-x-0"
|
|
@@ -5108,7 +5246,7 @@ function NativeSelect({
|
|
|
5108
5246
|
id,
|
|
5109
5247
|
value,
|
|
5110
5248
|
onChange: (e) => onChange(e.target.value),
|
|
5111
|
-
className:
|
|
5249
|
+
className: cn51(
|
|
5112
5250
|
"flex min-h-[48px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
5113
5251
|
"text-sm text-foreground",
|
|
5114
5252
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -5128,7 +5266,7 @@ function MosaicPreferencesPanel({
|
|
|
5128
5266
|
className
|
|
5129
5267
|
}) {
|
|
5130
5268
|
const { isMobile } = useDevice();
|
|
5131
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "preferences-panel", className:
|
|
5269
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "preferences-panel", className: cn51("space-y-4 md:space-y-6", className), children: [
|
|
5132
5270
|
groups.map((group) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5133
5271
|
"div",
|
|
5134
5272
|
{
|
|
@@ -5171,13 +5309,13 @@ function MosaicPreferencesPanel({
|
|
|
5171
5309
|
},
|
|
5172
5310
|
group.id
|
|
5173
5311
|
)),
|
|
5174
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
5312
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn51("flex", isMobile ? "flex-col" : "justify-end"), children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5175
5313
|
"button",
|
|
5176
5314
|
{
|
|
5177
5315
|
type: "button",
|
|
5178
5316
|
onClick: onSave,
|
|
5179
5317
|
disabled: isSaving,
|
|
5180
|
-
className:
|
|
5318
|
+
className: cn51(
|
|
5181
5319
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md",
|
|
5182
5320
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
5183
5321
|
"hover:bg-primary/90",
|
|
@@ -5213,7 +5351,7 @@ function MosaicPreferencesPanel({
|
|
|
5213
5351
|
] });
|
|
5214
5352
|
}
|
|
5215
5353
|
MosaicPreferencesPanel.displayName = "MosaicPreferencesPanel";
|
|
5216
|
-
function
|
|
5354
|
+
function cn52(...classes) {
|
|
5217
5355
|
return classes.filter(Boolean).join(" ");
|
|
5218
5356
|
}
|
|
5219
5357
|
function AvatarDisplay({
|
|
@@ -5226,7 +5364,7 @@ function AvatarDisplay({
|
|
|
5226
5364
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5227
5365
|
"span",
|
|
5228
5366
|
{
|
|
5229
|
-
className:
|
|
5367
|
+
className: cn52(
|
|
5230
5368
|
"inline-flex shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground font-semibold overflow-hidden",
|
|
5231
5369
|
sizeClass
|
|
5232
5370
|
),
|
|
@@ -5258,7 +5396,7 @@ function MosaicProfilePanel({
|
|
|
5258
5396
|
className
|
|
5259
5397
|
}) {
|
|
5260
5398
|
const { isMobile } = useDevice();
|
|
5261
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "profile-panel", className:
|
|
5399
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "profile-panel", className: cn52("space-y-4 md:space-y-6", className), children: [
|
|
5262
5400
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "rounded-lg border border-border bg-card text-card-foreground shadow-sm", children: [
|
|
5263
5401
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col space-y-1.5 p-6", children: [
|
|
5264
5402
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg font-semibold leading-none tracking-tight md:text-xl", children: avatarHeading }),
|
|
@@ -5278,7 +5416,7 @@ function MosaicProfilePanel({
|
|
|
5278
5416
|
{
|
|
5279
5417
|
type: "button",
|
|
5280
5418
|
onClick: onAvatarUpload,
|
|
5281
|
-
className:
|
|
5419
|
+
className: cn52(
|
|
5282
5420
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md border border-border",
|
|
5283
5421
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
5284
5422
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -5328,7 +5466,7 @@ function MosaicProfilePanel({
|
|
|
5328
5466
|
placeholder: field.placeholder,
|
|
5329
5467
|
onChange: (e) => onFieldChange?.(field.id, e.target.value),
|
|
5330
5468
|
rows: 4,
|
|
5331
|
-
className:
|
|
5469
|
+
className: cn52(
|
|
5332
5470
|
"flex min-h-[120px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
5333
5471
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
5334
5472
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -5344,7 +5482,7 @@ function MosaicProfilePanel({
|
|
|
5344
5482
|
readOnly: field.readOnly,
|
|
5345
5483
|
placeholder: field.placeholder,
|
|
5346
5484
|
onChange: (e) => onFieldChange?.(field.id, e.target.value),
|
|
5347
|
-
className:
|
|
5485
|
+
className: cn52(
|
|
5348
5486
|
"flex min-h-[48px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
5349
5487
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
5350
5488
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -5364,7 +5502,7 @@ function MosaicProfilePanel({
|
|
|
5364
5502
|
{
|
|
5365
5503
|
type: "button",
|
|
5366
5504
|
onClick: onChangePassword,
|
|
5367
|
-
className:
|
|
5505
|
+
className: cn52(
|
|
5368
5506
|
"inline-flex min-h-[44px] items-center justify-center rounded-md border border-border",
|
|
5369
5507
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
5370
5508
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -5376,13 +5514,13 @@ function MosaicProfilePanel({
|
|
|
5376
5514
|
) })
|
|
5377
5515
|
] }),
|
|
5378
5516
|
extraSections,
|
|
5379
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
5517
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn52("flex", isMobile ? "flex-col" : "justify-end"), children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5380
5518
|
"button",
|
|
5381
5519
|
{
|
|
5382
5520
|
type: "button",
|
|
5383
5521
|
onClick: onSave,
|
|
5384
5522
|
disabled: isSaving,
|
|
5385
|
-
className:
|
|
5523
|
+
className: cn52(
|
|
5386
5524
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md",
|
|
5387
5525
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
5388
5526
|
"hover:bg-primary/90",
|
|
@@ -5418,7 +5556,7 @@ function MosaicProfilePanel({
|
|
|
5418
5556
|
] });
|
|
5419
5557
|
}
|
|
5420
5558
|
MosaicProfilePanel.displayName = "MosaicProfilePanel";
|
|
5421
|
-
function
|
|
5559
|
+
function cn53(...classes) {
|
|
5422
5560
|
return classes.filter(Boolean).join(" ");
|
|
5423
5561
|
}
|
|
5424
5562
|
var ANIM_ID7 = "mosaic-main-nav-kf";
|
|
@@ -5509,12 +5647,12 @@ function MosaicMainNav({
|
|
|
5509
5647
|
className
|
|
5510
5648
|
}) {
|
|
5511
5649
|
const { isMobile } = useDevice();
|
|
5512
|
-
const [isOpen, setIsOpen] =
|
|
5650
|
+
const [isOpen, setIsOpen] = React30__namespace.useState(false);
|
|
5513
5651
|
const linkRenderer = renderLink ?? defaultRenderLink;
|
|
5514
|
-
|
|
5652
|
+
React30__namespace.useEffect(() => {
|
|
5515
5653
|
injectStyles7();
|
|
5516
5654
|
}, []);
|
|
5517
|
-
|
|
5655
|
+
React30__namespace.useEffect(() => {
|
|
5518
5656
|
if (!isOpen) return;
|
|
5519
5657
|
const handler = (e) => {
|
|
5520
5658
|
if (e.key === "Escape") setIsOpen(false);
|
|
@@ -5531,7 +5669,7 @@ function MosaicMainNav({
|
|
|
5531
5669
|
{
|
|
5532
5670
|
type: "button",
|
|
5533
5671
|
onClick: () => setIsOpen(!isOpen),
|
|
5534
|
-
className:
|
|
5672
|
+
className: cn53(
|
|
5535
5673
|
"inline-flex min-h-[44px] min-w-[44px] items-center justify-center rounded-md p-0",
|
|
5536
5674
|
"text-foreground hover:bg-accent hover:text-accent-foreground",
|
|
5537
5675
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5557,7 +5695,7 @@ function MosaicMainNav({
|
|
|
5557
5695
|
"aria-label": drawerNavAriaLabel,
|
|
5558
5696
|
open: isOpen,
|
|
5559
5697
|
"data-open": isOpen ? "true" : "false",
|
|
5560
|
-
className:
|
|
5698
|
+
className: cn53(
|
|
5561
5699
|
"mosaic-nav-drawer",
|
|
5562
5700
|
"fixed inset-y-0 left-0 z-50 m-0 w-[280px] max-h-none h-full p-0",
|
|
5563
5701
|
"border-r border-border bg-background shadow-xl",
|
|
@@ -5574,7 +5712,7 @@ function MosaicMainNav({
|
|
|
5574
5712
|
{
|
|
5575
5713
|
type: "button",
|
|
5576
5714
|
onClick: () => setIsOpen(false),
|
|
5577
|
-
className:
|
|
5715
|
+
className: cn53(
|
|
5578
5716
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
5579
5717
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
5580
5718
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5587,13 +5725,13 @@ function MosaicMainNav({
|
|
|
5587
5725
|
/* @__PURE__ */ jsxRuntime.jsx("nav", { className: "flex flex-col gap-1 p-4", "aria-label": mainNavAriaLabel, children: filteredItems.map((item) => {
|
|
5588
5726
|
const Icon = item.icon;
|
|
5589
5727
|
const active = isItemActive(item);
|
|
5590
|
-
const itemClass =
|
|
5728
|
+
const itemClass = cn53(
|
|
5591
5729
|
"flex items-center gap-3 rounded-lg px-3 py-3 text-sm font-medium transition-colors",
|
|
5592
5730
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5593
5731
|
"min-h-[44px]",
|
|
5594
5732
|
active && "bg-accent text-accent-foreground"
|
|
5595
5733
|
);
|
|
5596
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5734
|
+
return /* @__PURE__ */ jsxRuntime.jsx(React30__namespace.Fragment, { children: linkRenderer(
|
|
5597
5735
|
item,
|
|
5598
5736
|
/* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
5599
5737
|
Icon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "h-5 w-5 shrink-0", "aria-hidden": "true" }),
|
|
@@ -5613,18 +5751,18 @@ function MosaicMainNav({
|
|
|
5613
5751
|
"nav",
|
|
5614
5752
|
{
|
|
5615
5753
|
"data-slot": "main-nav",
|
|
5616
|
-
className:
|
|
5754
|
+
className: cn53("flex items-center gap-1", className),
|
|
5617
5755
|
"aria-label": mainNavAriaLabel,
|
|
5618
5756
|
children: filteredItems.map((item) => {
|
|
5619
5757
|
const Icon = item.icon;
|
|
5620
5758
|
const active = isItemActive(item);
|
|
5621
|
-
const itemClass =
|
|
5759
|
+
const itemClass = cn53(
|
|
5622
5760
|
"flex items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium transition-colors",
|
|
5623
5761
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5624
5762
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
5625
5763
|
active && "bg-accent text-accent-foreground"
|
|
5626
5764
|
);
|
|
5627
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5765
|
+
return /* @__PURE__ */ jsxRuntime.jsx(React30__namespace.Fragment, { children: linkRenderer(
|
|
5628
5766
|
item,
|
|
5629
5767
|
/* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
5630
5768
|
Icon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "h-4 w-4", "aria-hidden": "true" }),
|
|
@@ -5638,7 +5776,7 @@ function MosaicMainNav({
|
|
|
5638
5776
|
);
|
|
5639
5777
|
}
|
|
5640
5778
|
MosaicMainNav.displayName = "MosaicMainNav";
|
|
5641
|
-
function
|
|
5779
|
+
function cn54(...classes) {
|
|
5642
5780
|
return classes.filter(Boolean).join(" ");
|
|
5643
5781
|
}
|
|
5644
5782
|
function MoreVertIcon() {
|
|
@@ -5761,10 +5899,10 @@ function MosaicAgentCard({
|
|
|
5761
5899
|
createdLabel,
|
|
5762
5900
|
className
|
|
5763
5901
|
}) {
|
|
5764
|
-
const [menuOpen, setMenuOpen] =
|
|
5765
|
-
const menuRef =
|
|
5902
|
+
const [menuOpen, setMenuOpen] = React30__namespace.useState(false);
|
|
5903
|
+
const menuRef = React30__namespace.useRef(null);
|
|
5766
5904
|
const formattedDate = agent.createdAt ? new Date(agent.createdAt).toLocaleDateString() : void 0;
|
|
5767
|
-
|
|
5905
|
+
React30__namespace.useEffect(() => {
|
|
5768
5906
|
if (!menuOpen) return;
|
|
5769
5907
|
const handler = (e) => {
|
|
5770
5908
|
if (menuRef.current && !menuRef.current.contains(e.target)) {
|
|
@@ -5778,7 +5916,7 @@ function MosaicAgentCard({
|
|
|
5778
5916
|
"div",
|
|
5779
5917
|
{
|
|
5780
5918
|
"data-slot": "agent-card",
|
|
5781
|
-
className:
|
|
5919
|
+
className: cn54(
|
|
5782
5920
|
"relative overflow-hidden rounded-lg border border-border bg-card text-card-foreground shadow-sm",
|
|
5783
5921
|
"transition-shadow hover:shadow-md",
|
|
5784
5922
|
agent.isActive && "ring-2 ring-primary",
|
|
@@ -5788,7 +5926,7 @@ function MosaicAgentCard({
|
|
|
5788
5926
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5789
5927
|
"div",
|
|
5790
5928
|
{
|
|
5791
|
-
className:
|
|
5929
|
+
className: cn54(
|
|
5792
5930
|
"absolute left-0 top-0 h-1 w-full",
|
|
5793
5931
|
agent.isActive ? "bg-primary" : "bg-muted"
|
|
5794
5932
|
)
|
|
@@ -5800,7 +5938,7 @@ function MosaicAgentCard({
|
|
|
5800
5938
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5801
5939
|
"span",
|
|
5802
5940
|
{
|
|
5803
|
-
className:
|
|
5941
|
+
className: cn54("h-3 w-3 shrink-0 rounded-full", agent.accentColor),
|
|
5804
5942
|
"aria-hidden": "true"
|
|
5805
5943
|
}
|
|
5806
5944
|
),
|
|
@@ -5818,7 +5956,7 @@ function MosaicAgentCard({
|
|
|
5818
5956
|
{
|
|
5819
5957
|
type: "button",
|
|
5820
5958
|
onClick: () => setMenuOpen((v) => !v),
|
|
5821
|
-
className:
|
|
5959
|
+
className: cn54(
|
|
5822
5960
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
5823
5961
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
5824
5962
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5833,7 +5971,7 @@ function MosaicAgentCard({
|
|
|
5833
5971
|
"div",
|
|
5834
5972
|
{
|
|
5835
5973
|
role: "menu",
|
|
5836
|
-
className:
|
|
5974
|
+
className: cn54(
|
|
5837
5975
|
"absolute right-0 top-full z-50 mt-1 min-w-[140px] rounded-md border border-border",
|
|
5838
5976
|
"bg-popover py-1 shadow-md"
|
|
5839
5977
|
),
|
|
@@ -5848,7 +5986,7 @@ function MosaicAgentCard({
|
|
|
5848
5986
|
onToggleStatus(agent.id);
|
|
5849
5987
|
setMenuOpen(false);
|
|
5850
5988
|
},
|
|
5851
|
-
className:
|
|
5989
|
+
className: cn54(
|
|
5852
5990
|
"flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground",
|
|
5853
5991
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5854
5992
|
"disabled:pointer-events-none disabled:opacity-50"
|
|
@@ -5907,7 +6045,7 @@ function MosaicAgentCard({
|
|
|
5907
6045
|
type: "button",
|
|
5908
6046
|
disabled: isLoading,
|
|
5909
6047
|
onClick: () => onToggleStatus(agent.id),
|
|
5910
|
-
className:
|
|
6048
|
+
className: cn54(
|
|
5911
6049
|
"inline-flex h-7 items-center justify-center rounded-md px-3 text-xs font-medium",
|
|
5912
6050
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
5913
6051
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
@@ -5923,7 +6061,7 @@ function MosaicAgentCard({
|
|
|
5923
6061
|
);
|
|
5924
6062
|
}
|
|
5925
6063
|
MosaicAgentCard.displayName = "MosaicAgentCard";
|
|
5926
|
-
function
|
|
6064
|
+
function cn55(...classes) {
|
|
5927
6065
|
return classes.filter(Boolean).join(" ");
|
|
5928
6066
|
}
|
|
5929
6067
|
function PlusIcon3() {
|
|
@@ -6006,7 +6144,7 @@ function PickerContent({
|
|
|
6006
6144
|
{
|
|
6007
6145
|
type: "button",
|
|
6008
6146
|
onClick: () => onAdd(agent.id),
|
|
6009
|
-
className:
|
|
6147
|
+
className: cn55(
|
|
6010
6148
|
"flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-sm",
|
|
6011
6149
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6012
6150
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6015,7 +6153,7 @@ function PickerContent({
|
|
|
6015
6153
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6016
6154
|
"span",
|
|
6017
6155
|
{
|
|
6018
|
-
className:
|
|
6156
|
+
className: cn55("h-3 w-3 shrink-0 rounded-full", agent.accentColor),
|
|
6019
6157
|
"aria-hidden": "true"
|
|
6020
6158
|
}
|
|
6021
6159
|
),
|
|
@@ -6032,7 +6170,7 @@ function PickerContent({
|
|
|
6032
6170
|
{
|
|
6033
6171
|
type: "button",
|
|
6034
6172
|
onClick: onOpenBuilder,
|
|
6035
|
-
className:
|
|
6173
|
+
className: cn55(
|
|
6036
6174
|
"flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-sm",
|
|
6037
6175
|
"hover:bg-accent hover:text-accent-foreground",
|
|
6038
6176
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6067,9 +6205,9 @@ function MosaicQuickAgentSelector({
|
|
|
6067
6205
|
className
|
|
6068
6206
|
}) {
|
|
6069
6207
|
const { isMobile } = useDevice();
|
|
6070
|
-
const [pickerOpen, setPickerOpen] =
|
|
6071
|
-
const dropdownRef =
|
|
6072
|
-
|
|
6208
|
+
const [pickerOpen, setPickerOpen] = React30__namespace.useState(false);
|
|
6209
|
+
const dropdownRef = React30__namespace.useRef(null);
|
|
6210
|
+
React30__namespace.useEffect(() => {
|
|
6073
6211
|
if (!pickerOpen || isMobile) return;
|
|
6074
6212
|
const handler = (e) => {
|
|
6075
6213
|
if (dropdownRef.current && !dropdownRef.current.contains(e.target)) {
|
|
@@ -6087,11 +6225,11 @@ function MosaicQuickAgentSelector({
|
|
|
6087
6225
|
setPickerOpen(false);
|
|
6088
6226
|
};
|
|
6089
6227
|
const canAdd = selectedAgents.length < maxAgents;
|
|
6090
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "quick-agent-selector", className:
|
|
6228
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "quick-agent-selector", className: cn55("flex items-center gap-2", className), children: [
|
|
6091
6229
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2 overflow-x-auto", children: selectedAgents.map((agent) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6092
6230
|
"div",
|
|
6093
6231
|
{
|
|
6094
|
-
className:
|
|
6232
|
+
className: cn55(
|
|
6095
6233
|
"group flex shrink-0 items-center gap-2 rounded-md border border-border bg-card",
|
|
6096
6234
|
isMobile ? "px-2 py-1" : "px-3 py-1.5"
|
|
6097
6235
|
),
|
|
@@ -6099,17 +6237,17 @@ function MosaicQuickAgentSelector({
|
|
|
6099
6237
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6100
6238
|
"span",
|
|
6101
6239
|
{
|
|
6102
|
-
className:
|
|
6240
|
+
className: cn55("h-2 w-2 shrink-0 rounded-full", agent.accentColor),
|
|
6103
6241
|
"aria-hidden": "true"
|
|
6104
6242
|
}
|
|
6105
6243
|
),
|
|
6106
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
6244
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn55("whitespace-nowrap font-medium", isMobile ? "text-xs" : "text-sm"), children: isMobile ? agent.type.split("-")[0] : agent.name }),
|
|
6107
6245
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6108
6246
|
"button",
|
|
6109
6247
|
{
|
|
6110
6248
|
type: "button",
|
|
6111
6249
|
onClick: () => onRemoveAgent(agent.id),
|
|
6112
|
-
className:
|
|
6250
|
+
className: cn55(
|
|
6113
6251
|
"inline-flex h-4 w-4 items-center justify-center rounded",
|
|
6114
6252
|
"text-muted-foreground hover:text-foreground",
|
|
6115
6253
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -6129,7 +6267,7 @@ function MosaicQuickAgentSelector({
|
|
|
6129
6267
|
{
|
|
6130
6268
|
type: "button",
|
|
6131
6269
|
onClick: () => setPickerOpen((v) => !v),
|
|
6132
|
-
className:
|
|
6270
|
+
className: cn55(
|
|
6133
6271
|
"inline-flex items-center justify-center gap-2 rounded-md border border-border bg-background",
|
|
6134
6272
|
"px-3 py-1.5 text-sm font-medium text-foreground",
|
|
6135
6273
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -6144,7 +6282,7 @@ function MosaicQuickAgentSelector({
|
|
|
6144
6282
|
!isMobile && pickerOpen && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6145
6283
|
"div",
|
|
6146
6284
|
{
|
|
6147
|
-
className:
|
|
6285
|
+
className: cn55(
|
|
6148
6286
|
"absolute left-0 top-full z-50 mt-2 w-72 rounded-lg border border-border",
|
|
6149
6287
|
"bg-popover shadow-lg"
|
|
6150
6288
|
),
|
|
@@ -6193,7 +6331,7 @@ function MosaicQuickAgentSelector({
|
|
|
6193
6331
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
6194
6332
|
"span",
|
|
6195
6333
|
{
|
|
6196
|
-
className:
|
|
6334
|
+
className: cn55(
|
|
6197
6335
|
"shrink-0 rounded-md bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground"
|
|
6198
6336
|
),
|
|
6199
6337
|
children: [
|
|
@@ -6217,7 +6355,7 @@ var agentPreviewVariants = classVarianceAuthority.cva(["rounded-lg border border
|
|
|
6217
6355
|
variant: "summary"
|
|
6218
6356
|
}
|
|
6219
6357
|
});
|
|
6220
|
-
function
|
|
6358
|
+
function cn56(...classes) {
|
|
6221
6359
|
return classes.filter(Boolean).join(" ");
|
|
6222
6360
|
}
|
|
6223
6361
|
function MosaicAgentPreview(props) {
|
|
@@ -6227,7 +6365,7 @@ function MosaicAgentPreview(props) {
|
|
|
6227
6365
|
"div",
|
|
6228
6366
|
{
|
|
6229
6367
|
"data-slot": "agent-preview",
|
|
6230
|
-
className:
|
|
6368
|
+
className: cn56(agentPreviewVariants({ variant: "detailed" }), className2),
|
|
6231
6369
|
children: [
|
|
6232
6370
|
/* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "agent-preview-header", className: "p-4 pb-0", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base font-semibold leading-none tracking-tight", children: title }) }),
|
|
6233
6371
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-4", children: [
|
|
@@ -6254,7 +6392,7 @@ function MosaicAgentPreview(props) {
|
|
|
6254
6392
|
"div",
|
|
6255
6393
|
{
|
|
6256
6394
|
"data-slot": "agent-preview",
|
|
6257
|
-
className:
|
|
6395
|
+
className: cn56(agentPreviewVariants({ variant: "summary" }), className),
|
|
6258
6396
|
children: [
|
|
6259
6397
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6260
6398
|
"span",
|
|
@@ -6346,7 +6484,7 @@ var memoryActionsMenuTriggerVariants = classVarianceAuthority.cva(
|
|
|
6346
6484
|
}
|
|
6347
6485
|
}
|
|
6348
6486
|
);
|
|
6349
|
-
function
|
|
6487
|
+
function cn57(...classes) {
|
|
6350
6488
|
return classes.filter(Boolean).join(" ");
|
|
6351
6489
|
}
|
|
6352
6490
|
var MAX_VISIBLE_TAGS = 3;
|
|
@@ -6500,10 +6638,10 @@ function MosaicMemoryCard(props) {
|
|
|
6500
6638
|
ref
|
|
6501
6639
|
} = props;
|
|
6502
6640
|
const variant = props.variant ?? "detailed";
|
|
6503
|
-
const [menuOpen, setMenuOpen] =
|
|
6504
|
-
const menuRef =
|
|
6641
|
+
const [menuOpen, setMenuOpen] = React30__namespace.useState(false);
|
|
6642
|
+
const menuRef = React30__namespace.useRef(null);
|
|
6505
6643
|
const SourceIcon = SOURCE_ICONS[memory.source];
|
|
6506
|
-
|
|
6644
|
+
React30__namespace.useEffect(() => {
|
|
6507
6645
|
if (!menuOpen) return;
|
|
6508
6646
|
const handler = (event) => {
|
|
6509
6647
|
if (menuRef.current && !menuRef.current.contains(event.target)) {
|
|
@@ -6524,7 +6662,7 @@ function MosaicMemoryCard(props) {
|
|
|
6524
6662
|
"aria-label": moreActionsLabel,
|
|
6525
6663
|
"aria-haspopup": "menu",
|
|
6526
6664
|
"aria-expanded": menuOpen,
|
|
6527
|
-
className:
|
|
6665
|
+
className: cn57(memoryActionsMenuTriggerVariants({ variant })),
|
|
6528
6666
|
children: /* @__PURE__ */ jsxRuntime.jsx(MoreVertIcon2, {})
|
|
6529
6667
|
}
|
|
6530
6668
|
),
|
|
@@ -6532,7 +6670,7 @@ function MosaicMemoryCard(props) {
|
|
|
6532
6670
|
"div",
|
|
6533
6671
|
{
|
|
6534
6672
|
role: "menu",
|
|
6535
|
-
className:
|
|
6673
|
+
className: cn57(
|
|
6536
6674
|
"absolute right-0 top-full z-50 mt-1 min-w-[140px] rounded-md border border-border",
|
|
6537
6675
|
"bg-popover py-1 shadow-md"
|
|
6538
6676
|
),
|
|
@@ -6573,7 +6711,7 @@ function MosaicMemoryCard(props) {
|
|
|
6573
6711
|
ref,
|
|
6574
6712
|
"data-slot": "memory-card",
|
|
6575
6713
|
"data-variant": variant,
|
|
6576
|
-
className:
|
|
6714
|
+
className: cn57(memoryCardVariants({ variant }), className),
|
|
6577
6715
|
children: props.variant !== "compact" ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
|
|
6578
6716
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-3", children: [
|
|
6579
6717
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 flex-1 items-start gap-3", children: [
|
|
@@ -6583,7 +6721,7 @@ function MosaicMemoryCard(props) {
|
|
|
6583
6721
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6584
6722
|
"span",
|
|
6585
6723
|
{
|
|
6586
|
-
className:
|
|
6724
|
+
className: cn57(
|
|
6587
6725
|
memoryScopeBadgeVariants({ scope: memory.scope, bordered: true }),
|
|
6588
6726
|
"mt-1"
|
|
6589
6727
|
),
|
|
@@ -6596,8 +6734,8 @@ function MosaicMemoryCard(props) {
|
|
|
6596
6734
|
] }),
|
|
6597
6735
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "line-clamp-3 text-sm text-muted-foreground", children: memory.content }),
|
|
6598
6736
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "memory-tags", className: "flex flex-wrap gap-1", children: [
|
|
6599
|
-
visibleTags.map((tag) => /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
6600
|
-
hiddenTagCount > 0 && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
6737
|
+
visibleTags.map((tag) => /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn57(memoryTagBadgeVariants()), children: tag }, tag)),
|
|
6738
|
+
hiddenTagCount > 0 && /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn57(memoryTagBadgeVariants()), children: props.formatMoreTags(hiddenTagCount) })
|
|
6601
6739
|
] }),
|
|
6602
6740
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between border-t pt-2 text-xs text-muted-foreground", children: [
|
|
6603
6741
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex items-center gap-1", children: [
|
|
@@ -6625,7 +6763,7 @@ function MosaicMemoryCard(props) {
|
|
|
6625
6763
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6626
6764
|
"span",
|
|
6627
6765
|
{
|
|
6628
|
-
className:
|
|
6766
|
+
className: cn57(memoryScopeBadgeVariants({ scope: memory.scope, bordered: false })),
|
|
6629
6767
|
children: formatScope(memory.scope)
|
|
6630
6768
|
}
|
|
6631
6769
|
),
|
|
@@ -6667,7 +6805,7 @@ var templateAgentCardBadgeVariants = classVarianceAuthority.cva([
|
|
|
6667
6805
|
var templateAgentCardTagVariants = classVarianceAuthority.cva([
|
|
6668
6806
|
"inline-flex items-center rounded-full border border-border bg-muted px-2 py-0.5 text-xs text-muted-foreground"
|
|
6669
6807
|
]);
|
|
6670
|
-
function
|
|
6808
|
+
function cn58(...classes) {
|
|
6671
6809
|
return classes.filter(Boolean).join(" ");
|
|
6672
6810
|
}
|
|
6673
6811
|
var MAX_VISIBLE_TAGS2 = 3;
|
|
@@ -6736,7 +6874,7 @@ function MosaicTemplateAgentCard({
|
|
|
6736
6874
|
{
|
|
6737
6875
|
ref,
|
|
6738
6876
|
"data-slot": "template-agent-card",
|
|
6739
|
-
className:
|
|
6877
|
+
className: cn58(templateAgentCardVariants({ selected: isSelected }), "p-4", className),
|
|
6740
6878
|
children: [
|
|
6741
6879
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-start justify-between gap-2", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6742
6880
|
"button",
|
|
@@ -6745,7 +6883,7 @@ function MosaicTemplateAgentCard({
|
|
|
6745
6883
|
onClick: () => onSelect(template),
|
|
6746
6884
|
"aria-label": selectAriaLabel,
|
|
6747
6885
|
"aria-pressed": isSelected,
|
|
6748
|
-
className:
|
|
6886
|
+
className: cn58(
|
|
6749
6887
|
"flex min-w-0 flex-1 items-start gap-2 rounded-md text-left",
|
|
6750
6888
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
6751
6889
|
),
|
|
@@ -6759,11 +6897,11 @@ function MosaicTemplateAgentCard({
|
|
|
6759
6897
|
}
|
|
6760
6898
|
) }),
|
|
6761
6899
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-3 flex flex-wrap items-center gap-2", children: [
|
|
6762
|
-
template.category && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
6763
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
6764
|
-
formatUsageCount(template.usageCount) != null && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
6765
|
-
visibleTags.map((tag) => /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
6766
|
-
hiddenTagCount > 0 && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
6900
|
+
template.category && /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn58(templateAgentCardBadgeVariants()), children: template.category }),
|
|
6901
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn58(templateAgentCardBadgeVariants()), children: agentCountLabel }),
|
|
6902
|
+
formatUsageCount(template.usageCount) != null && /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn58(templateAgentCardBadgeVariants()), children: formatUsageCount(template.usageCount) }),
|
|
6903
|
+
visibleTags.map((tag) => /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn58(templateAgentCardTagVariants()), children: tag }, tag)),
|
|
6904
|
+
hiddenTagCount > 0 && /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn58(templateAgentCardTagVariants()), children: formatMoreTags(hiddenTagCount) })
|
|
6767
6905
|
] }),
|
|
6768
6906
|
(onPreview || onDuplicate) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-3 flex items-center gap-2 border-t border-border pt-2", children: [
|
|
6769
6907
|
onPreview && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -6772,7 +6910,7 @@ function MosaicTemplateAgentCard({
|
|
|
6772
6910
|
type: "button",
|
|
6773
6911
|
onClick: () => onPreview(template),
|
|
6774
6912
|
"aria-label": previewAriaLabel,
|
|
6775
|
-
className:
|
|
6913
|
+
className: cn58(
|
|
6776
6914
|
"inline-flex h-8 flex-1 items-center justify-center gap-1.5 rounded-md text-xs font-medium",
|
|
6777
6915
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
6778
6916
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6789,7 +6927,7 @@ function MosaicTemplateAgentCard({
|
|
|
6789
6927
|
type: "button",
|
|
6790
6928
|
onClick: () => onDuplicate(template),
|
|
6791
6929
|
"aria-label": duplicateAriaLabel,
|
|
6792
|
-
className:
|
|
6930
|
+
className: cn58(
|
|
6793
6931
|
"inline-flex h-8 flex-1 items-center justify-center gap-1.5 rounded-md text-xs font-medium",
|
|
6794
6932
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
6795
6933
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6806,7 +6944,7 @@ function MosaicTemplateAgentCard({
|
|
|
6806
6944
|
);
|
|
6807
6945
|
}
|
|
6808
6946
|
MosaicTemplateAgentCard.displayName = "MosaicTemplateAgentCard";
|
|
6809
|
-
function
|
|
6947
|
+
function cn59(...classes) {
|
|
6810
6948
|
return classes.filter(Boolean).join(" ");
|
|
6811
6949
|
}
|
|
6812
6950
|
function SearchIcon() {
|
|
@@ -6866,10 +7004,10 @@ function MosaicSelectorModal({
|
|
|
6866
7004
|
emptyMessage,
|
|
6867
7005
|
closeAriaLabel
|
|
6868
7006
|
}) {
|
|
6869
|
-
const [query, setQuery] =
|
|
6870
|
-
const [activeCategory, setActiveCategory] =
|
|
6871
|
-
const [pendingId, setPendingId] =
|
|
6872
|
-
|
|
7007
|
+
const [query, setQuery] = React30__namespace.useState("");
|
|
7008
|
+
const [activeCategory, setActiveCategory] = React30__namespace.useState("all");
|
|
7009
|
+
const [pendingId, setPendingId] = React30__namespace.useState(selectedId);
|
|
7010
|
+
React30__namespace.useEffect(() => {
|
|
6873
7011
|
if (isOpen) {
|
|
6874
7012
|
setPendingId(selectedId);
|
|
6875
7013
|
setQuery("");
|
|
@@ -6907,7 +7045,7 @@ function MosaicSelectorModal({
|
|
|
6907
7045
|
value: query,
|
|
6908
7046
|
onChange: (e) => setQuery(e.target.value),
|
|
6909
7047
|
placeholder: searchPlaceholder,
|
|
6910
|
-
className:
|
|
7048
|
+
className: cn59(
|
|
6911
7049
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
6912
7050
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
6913
7051
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6921,7 +7059,7 @@ function MosaicSelectorModal({
|
|
|
6921
7059
|
{
|
|
6922
7060
|
type: "button",
|
|
6923
7061
|
onClick: () => setActiveCategory("all"),
|
|
6924
|
-
className:
|
|
7062
|
+
className: cn59(
|
|
6925
7063
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
6926
7064
|
activeCategory === "all" ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
6927
7065
|
),
|
|
@@ -6933,7 +7071,7 @@ function MosaicSelectorModal({
|
|
|
6933
7071
|
{
|
|
6934
7072
|
type: "button",
|
|
6935
7073
|
onClick: () => setActiveCategory(cat.id),
|
|
6936
|
-
className:
|
|
7074
|
+
className: cn59(
|
|
6937
7075
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
6938
7076
|
activeCategory === cat.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
6939
7077
|
),
|
|
@@ -6945,7 +7083,7 @@ function MosaicSelectorModal({
|
|
|
6945
7083
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
6946
7084
|
"div",
|
|
6947
7085
|
{
|
|
6948
|
-
className:
|
|
7086
|
+
className: cn59(
|
|
6949
7087
|
"max-h-[50vh] overflow-y-auto",
|
|
6950
7088
|
columns === 2 ? "grid grid-cols-1 gap-3 sm:grid-cols-2" : "flex flex-col gap-3"
|
|
6951
7089
|
),
|
|
@@ -6957,7 +7095,7 @@ function MosaicSelectorModal({
|
|
|
6957
7095
|
{
|
|
6958
7096
|
type: "button",
|
|
6959
7097
|
onClick: () => setPendingId(item.id),
|
|
6960
|
-
className:
|
|
7098
|
+
className: cn59(
|
|
6961
7099
|
"group relative rounded-lg border p-4 text-left transition-all duration-150",
|
|
6962
7100
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
6963
7101
|
isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50"
|
|
@@ -6995,7 +7133,7 @@ function MosaicSelectorModal({
|
|
|
6995
7133
|
{
|
|
6996
7134
|
type: "button",
|
|
6997
7135
|
onClick: onClose,
|
|
6998
|
-
className:
|
|
7136
|
+
className: cn59(
|
|
6999
7137
|
"inline-flex min-h-[44px] items-center justify-center rounded-md border border-border",
|
|
7000
7138
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
7001
7139
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -7010,7 +7148,7 @@ function MosaicSelectorModal({
|
|
|
7010
7148
|
type: "button",
|
|
7011
7149
|
onClick: handleConfirm,
|
|
7012
7150
|
disabled: !pendingItem,
|
|
7013
|
-
className:
|
|
7151
|
+
className: cn59(
|
|
7014
7152
|
"inline-flex min-h-[44px] items-center justify-center rounded-md",
|
|
7015
7153
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
7016
7154
|
"hover:bg-primary/90",
|
|
@@ -7026,7 +7164,7 @@ function MosaicSelectorModal({
|
|
|
7026
7164
|
);
|
|
7027
7165
|
}
|
|
7028
7166
|
MosaicSelectorModal.displayName = "MosaicSelectorModal";
|
|
7029
|
-
function
|
|
7167
|
+
function cn60(...classes) {
|
|
7030
7168
|
return classes.filter(Boolean).join(" ");
|
|
7031
7169
|
}
|
|
7032
7170
|
function relativeTime(ts) {
|
|
@@ -7226,13 +7364,13 @@ function MosaicMessageCard({
|
|
|
7226
7364
|
copyMessageLabel,
|
|
7227
7365
|
className
|
|
7228
7366
|
}) {
|
|
7229
|
-
const [bookmarked, setBookmarked] =
|
|
7230
|
-
const [likes, setLikes] =
|
|
7231
|
-
const [dislikes, setDislikes] =
|
|
7232
|
-
const [hasLiked, setHasLiked] =
|
|
7233
|
-
const [hasDisliked, setHasDisliked] =
|
|
7234
|
-
const [menuOpen, setMenuOpen] =
|
|
7235
|
-
const menuRef =
|
|
7367
|
+
const [bookmarked, setBookmarked] = React30__namespace.useState(message.bookmarked ?? false);
|
|
7368
|
+
const [likes, setLikes] = React30__namespace.useState(message.reactions?.likes ?? 0);
|
|
7369
|
+
const [dislikes, setDislikes] = React30__namespace.useState(message.reactions?.dislikes ?? 0);
|
|
7370
|
+
const [hasLiked, setHasLiked] = React30__namespace.useState(false);
|
|
7371
|
+
const [hasDisliked, setHasDisliked] = React30__namespace.useState(false);
|
|
7372
|
+
const [menuOpen, setMenuOpen] = React30__namespace.useState(false);
|
|
7373
|
+
const menuRef = React30__namespace.useRef(null);
|
|
7236
7374
|
const initials = message.sender.name.split(" ").map((n) => n[0]).filter(Boolean).slice(0, 2).join("").toUpperCase();
|
|
7237
7375
|
const handleLike = () => {
|
|
7238
7376
|
if (hasLiked) {
|
|
@@ -7270,7 +7408,7 @@ function MosaicMessageCard({
|
|
|
7270
7408
|
navigator.clipboard.writeText(message.content).catch(() => null);
|
|
7271
7409
|
onCopy?.(message.id, message.content);
|
|
7272
7410
|
};
|
|
7273
|
-
|
|
7411
|
+
React30__namespace.useEffect(() => {
|
|
7274
7412
|
if (!menuOpen) return;
|
|
7275
7413
|
const h = (e) => {
|
|
7276
7414
|
if (menuRef.current && !menuRef.current.contains(e.target)) setMenuOpen(false);
|
|
@@ -7282,7 +7420,7 @@ function MosaicMessageCard({
|
|
|
7282
7420
|
"div",
|
|
7283
7421
|
{
|
|
7284
7422
|
"data-slot": "message-card",
|
|
7285
|
-
className:
|
|
7423
|
+
className: cn60(
|
|
7286
7424
|
"rounded-lg border border-border bg-card p-4 shadow-sm transition-shadow hover:shadow-md",
|
|
7287
7425
|
compact && "p-3",
|
|
7288
7426
|
message.sender.type === "user" && "bg-primary/5",
|
|
@@ -7292,7 +7430,7 @@ function MosaicMessageCard({
|
|
|
7292
7430
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7293
7431
|
"span",
|
|
7294
7432
|
{
|
|
7295
|
-
className:
|
|
7433
|
+
className: cn60(
|
|
7296
7434
|
"inline-flex shrink-0 items-center justify-center rounded-full text-white font-semibold",
|
|
7297
7435
|
compact ? "h-8 w-8 text-xs" : "h-10 w-10 text-sm",
|
|
7298
7436
|
message.sender.accentColor ?? "bg-muted text-muted-foreground"
|
|
@@ -7310,7 +7448,7 @@ function MosaicMessageCard({
|
|
|
7310
7448
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
7311
7449
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-2 flex items-center justify-between gap-2", children: [
|
|
7312
7450
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
7313
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
7451
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn60("font-medium", compact ? "text-sm" : "text-base"), children: message.sender.name }),
|
|
7314
7452
|
message.sender.type === "ai" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "rounded-full bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground", children: "AI" })
|
|
7315
7453
|
] }),
|
|
7316
7454
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 text-xs text-muted-foreground", children: relativeTime(message.timestamp) })
|
|
@@ -7318,7 +7456,7 @@ function MosaicMessageCard({
|
|
|
7318
7456
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7319
7457
|
"p",
|
|
7320
7458
|
{
|
|
7321
|
-
className:
|
|
7459
|
+
className: cn60(
|
|
7322
7460
|
"leading-relaxed text-foreground mb-3",
|
|
7323
7461
|
compact ? "text-sm" : "text-base"
|
|
7324
7462
|
),
|
|
@@ -7333,7 +7471,7 @@ function MosaicMessageCard({
|
|
|
7333
7471
|
{
|
|
7334
7472
|
type: "button",
|
|
7335
7473
|
onClick: handleLike,
|
|
7336
|
-
className:
|
|
7474
|
+
className: cn60(
|
|
7337
7475
|
"inline-flex h-8 items-center gap-1 rounded-md px-2 text-xs",
|
|
7338
7476
|
"hover:bg-accent hover:text-accent-foreground",
|
|
7339
7477
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -7351,7 +7489,7 @@ function MosaicMessageCard({
|
|
|
7351
7489
|
{
|
|
7352
7490
|
type: "button",
|
|
7353
7491
|
onClick: handleDislike,
|
|
7354
|
-
className:
|
|
7492
|
+
className: cn60(
|
|
7355
7493
|
"inline-flex h-8 items-center gap-1 rounded-md px-2 text-xs",
|
|
7356
7494
|
"hover:bg-accent hover:text-accent-foreground",
|
|
7357
7495
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -7396,7 +7534,7 @@ function MosaicMessageCard({
|
|
|
7396
7534
|
{
|
|
7397
7535
|
type: "button",
|
|
7398
7536
|
onClick: handleBookmark,
|
|
7399
|
-
className:
|
|
7537
|
+
className: cn60(
|
|
7400
7538
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
7401
7539
|
"hover:bg-accent hover:text-accent-foreground",
|
|
7402
7540
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -7497,7 +7635,7 @@ function MosaicMessageCard({
|
|
|
7497
7635
|
);
|
|
7498
7636
|
}
|
|
7499
7637
|
MosaicMessageCard.displayName = "MosaicMessageCard";
|
|
7500
|
-
function
|
|
7638
|
+
function cn61(...classes) {
|
|
7501
7639
|
return classes.filter(Boolean).join(" ");
|
|
7502
7640
|
}
|
|
7503
7641
|
function SearchIcon2() {
|
|
@@ -7543,11 +7681,11 @@ function MessageListDesktop({
|
|
|
7543
7681
|
copyMessageLabel,
|
|
7544
7682
|
className
|
|
7545
7683
|
}) {
|
|
7546
|
-
const [query, setQuery] =
|
|
7684
|
+
const [query, setQuery] = React30__namespace.useState("");
|
|
7547
7685
|
const filtered = query ? messages.filter(
|
|
7548
7686
|
(m) => m.content.toLowerCase().includes(query.toLowerCase()) || m.sender.name.toLowerCase().includes(query.toLowerCase())
|
|
7549
7687
|
) : messages;
|
|
7550
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "message-list-desktop", className:
|
|
7688
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "message-list-desktop", className: cn61("flex h-full flex-col", className), children: [
|
|
7551
7689
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between border-b border-border px-6 py-4", children: [
|
|
7552
7690
|
title && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-lg font-semibold", children: title }),
|
|
7553
7691
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative ml-auto max-w-xs flex-1", children: [
|
|
@@ -7559,7 +7697,7 @@ function MessageListDesktop({
|
|
|
7559
7697
|
value: query,
|
|
7560
7698
|
onChange: (e) => setQuery(e.target.value),
|
|
7561
7699
|
placeholder: searchPlaceholder,
|
|
7562
|
-
className:
|
|
7700
|
+
className: cn61(
|
|
7563
7701
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
7564
7702
|
"text-sm placeholder:text-muted-foreground",
|
|
7565
7703
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7595,7 +7733,7 @@ function MessageListDesktop({
|
|
|
7595
7733
|
{
|
|
7596
7734
|
type: "button",
|
|
7597
7735
|
onClick: onLoadMore,
|
|
7598
|
-
className:
|
|
7736
|
+
className: cn61(
|
|
7599
7737
|
"w-full rounded-md border border-border bg-background px-4 py-2 text-sm font-medium",
|
|
7600
7738
|
"hover:bg-accent hover:text-accent-foreground",
|
|
7601
7739
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7626,7 +7764,7 @@ function MessageListMobile({
|
|
|
7626
7764
|
copyMessageLabel,
|
|
7627
7765
|
className
|
|
7628
7766
|
}) {
|
|
7629
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "message-list-mobile", className:
|
|
7767
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "message-list-mobile", className: cn61("flex flex-col", className), children: [
|
|
7630
7768
|
title && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "sticky top-0 z-10 border-b border-border bg-background px-4 py-3", children: /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-base font-semibold", children: title }) }),
|
|
7631
7769
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3 p-4", children: [
|
|
7632
7770
|
isLoading && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-3", children: [0, 1, 2].map((i) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-20 animate-pulse rounded-lg bg-muted" }, i)) }),
|
|
@@ -7656,7 +7794,7 @@ function MessageListMobile({
|
|
|
7656
7794
|
{
|
|
7657
7795
|
type: "button",
|
|
7658
7796
|
onClick: onLoadMore,
|
|
7659
|
-
className:
|
|
7797
|
+
className: cn61(
|
|
7660
7798
|
"w-full min-h-[44px] rounded-md border border-border bg-background px-4 py-2 text-sm font-medium",
|
|
7661
7799
|
"hover:bg-accent hover:text-accent-foreground",
|
|
7662
7800
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7671,7 +7809,7 @@ function MosaicMessageList(props) {
|
|
|
7671
7809
|
return isMobile ? /* @__PURE__ */ jsxRuntime.jsx(MessageListMobile, { ...props }) : /* @__PURE__ */ jsxRuntime.jsx(MessageListDesktop, { ...props });
|
|
7672
7810
|
}
|
|
7673
7811
|
MosaicMessageList.displayName = "MosaicMessageList";
|
|
7674
|
-
function
|
|
7812
|
+
function cn62(...classes) {
|
|
7675
7813
|
return classes.filter(Boolean).join(" ");
|
|
7676
7814
|
}
|
|
7677
7815
|
function ChevronLeftIcon2() {
|
|
@@ -7751,7 +7889,7 @@ function MosaicFilterSidebar({
|
|
|
7751
7889
|
{
|
|
7752
7890
|
"data-slot": "filter-sidebar",
|
|
7753
7891
|
style: { width, minWidth: isCollapsed && !isMobile ? "64px" : void 0 },
|
|
7754
|
-
className:
|
|
7892
|
+
className: cn62(
|
|
7755
7893
|
"relative flex flex-col border-r border-border bg-card",
|
|
7756
7894
|
"transition-[width] duration-200 ease-in-out",
|
|
7757
7895
|
"overflow-hidden",
|
|
@@ -7763,7 +7901,7 @@ function MosaicFilterSidebar({
|
|
|
7763
7901
|
{
|
|
7764
7902
|
type: "button",
|
|
7765
7903
|
onClick: onToggleCollapse,
|
|
7766
|
-
className:
|
|
7904
|
+
className: cn62(
|
|
7767
7905
|
"absolute -right-3 top-6 z-10 flex h-6 w-6 items-center justify-center rounded-full",
|
|
7768
7906
|
"border border-border bg-background shadow-sm",
|
|
7769
7907
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -7793,7 +7931,7 @@ function MosaicFilterSidebar({
|
|
|
7793
7931
|
{
|
|
7794
7932
|
type: "button",
|
|
7795
7933
|
onClick: () => onFilterChange(f.id),
|
|
7796
|
-
className:
|
|
7934
|
+
className: cn62(
|
|
7797
7935
|
"flex min-h-[40px] items-center justify-between rounded-md px-3 py-2 text-sm font-medium",
|
|
7798
7936
|
"transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
7799
7937
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -7813,7 +7951,7 @@ function MosaicFilterSidebar({
|
|
|
7813
7951
|
{
|
|
7814
7952
|
type: "button",
|
|
7815
7953
|
onClick: () => onCategoryChange(cat.id),
|
|
7816
|
-
className:
|
|
7954
|
+
className: cn62(
|
|
7817
7955
|
"flex min-h-[36px] items-center justify-between rounded-md px-3 py-1.5 text-sm",
|
|
7818
7956
|
"transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
7819
7957
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -7833,7 +7971,7 @@ function MosaicFilterSidebar({
|
|
|
7833
7971
|
);
|
|
7834
7972
|
}
|
|
7835
7973
|
MosaicFilterSidebar.displayName = "MosaicFilterSidebar";
|
|
7836
|
-
function
|
|
7974
|
+
function cn63(...classes) {
|
|
7837
7975
|
return classes.filter(Boolean).join(" ");
|
|
7838
7976
|
}
|
|
7839
7977
|
function SearchIcon3() {
|
|
@@ -7919,8 +8057,8 @@ function AgentListDesktop({
|
|
|
7919
8057
|
collapseSidebarAriaLabel,
|
|
7920
8058
|
expandSidebarAriaLabel
|
|
7921
8059
|
}) {
|
|
7922
|
-
const [query, setQuery] =
|
|
7923
|
-
const [sidebarCollapsed, setSidebarCollapsed] =
|
|
8060
|
+
const [query, setQuery] = React30__namespace.useState("");
|
|
8061
|
+
const [sidebarCollapsed, setSidebarCollapsed] = React30__namespace.useState(false);
|
|
7924
8062
|
const filtered = agents.filter(
|
|
7925
8063
|
(a) => !query || a.name.toLowerCase().includes(query.toLowerCase()) || a.description?.toLowerCase().includes(query.toLowerCase())
|
|
7926
8064
|
);
|
|
@@ -7958,7 +8096,7 @@ function AgentListDesktop({
|
|
|
7958
8096
|
value: query,
|
|
7959
8097
|
onChange: (e) => setQuery(e.target.value),
|
|
7960
8098
|
placeholder: searchPlaceholder,
|
|
7961
|
-
className:
|
|
8099
|
+
className: cn63(
|
|
7962
8100
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
7963
8101
|
"text-sm placeholder:text-muted-foreground",
|
|
7964
8102
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7971,7 +8109,7 @@ function AgentListDesktop({
|
|
|
7971
8109
|
{
|
|
7972
8110
|
type: "button",
|
|
7973
8111
|
onClick: onCreateAgent,
|
|
7974
|
-
className:
|
|
8112
|
+
className: cn63(
|
|
7975
8113
|
"inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
7976
8114
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
7977
8115
|
),
|
|
@@ -8025,8 +8163,8 @@ function AgentListMobile({
|
|
|
8025
8163
|
collapseSidebarAriaLabel,
|
|
8026
8164
|
expandSidebarAriaLabel
|
|
8027
8165
|
}) {
|
|
8028
|
-
const [filterOpen, setFilterOpen] =
|
|
8029
|
-
const [query, setQuery] =
|
|
8166
|
+
const [filterOpen, setFilterOpen] = React30__namespace.useState(false);
|
|
8167
|
+
const [query, setQuery] = React30__namespace.useState("");
|
|
8030
8168
|
const filtered = agents.filter(
|
|
8031
8169
|
(a) => !query || a.name.toLowerCase().includes(query.toLowerCase()) || a.description?.toLowerCase().includes(query.toLowerCase())
|
|
8032
8170
|
);
|
|
@@ -8040,7 +8178,7 @@ function AgentListMobile({
|
|
|
8040
8178
|
{
|
|
8041
8179
|
type: "button",
|
|
8042
8180
|
onClick: () => setFilterOpen(true),
|
|
8043
|
-
className:
|
|
8181
|
+
className: cn63(
|
|
8044
8182
|
"inline-flex h-9 w-9 items-center justify-center rounded-md",
|
|
8045
8183
|
"border border-border bg-background text-foreground",
|
|
8046
8184
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -8055,7 +8193,7 @@ function AgentListMobile({
|
|
|
8055
8193
|
{
|
|
8056
8194
|
type: "button",
|
|
8057
8195
|
onClick: onCreateAgent,
|
|
8058
|
-
className:
|
|
8196
|
+
className: cn63(
|
|
8059
8197
|
"inline-flex h-9 items-center gap-1.5 rounded-md bg-primary px-3 text-sm font-medium text-primary-foreground",
|
|
8060
8198
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
8061
8199
|
),
|
|
@@ -8076,7 +8214,7 @@ function AgentListMobile({
|
|
|
8076
8214
|
value: query,
|
|
8077
8215
|
onChange: (e) => setQuery(e.target.value),
|
|
8078
8216
|
placeholder: searchPlaceholder,
|
|
8079
|
-
className:
|
|
8217
|
+
className: cn63(
|
|
8080
8218
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
8081
8219
|
"text-sm placeholder:text-muted-foreground",
|
|
8082
8220
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8138,7 +8276,7 @@ function MosaicAgentList(props) {
|
|
|
8138
8276
|
return isMobile ? /* @__PURE__ */ jsxRuntime.jsx(AgentListMobile, { ...props }) : /* @__PURE__ */ jsxRuntime.jsx(AgentListDesktop, { ...props });
|
|
8139
8277
|
}
|
|
8140
8278
|
MosaicAgentList.displayName = "MosaicAgentList";
|
|
8141
|
-
function
|
|
8279
|
+
function cn64(...classes) {
|
|
8142
8280
|
return classes.filter(Boolean).join(" ");
|
|
8143
8281
|
}
|
|
8144
8282
|
function StarIcon({ filled }) {
|
|
@@ -8235,7 +8373,7 @@ function MarketplaceCard({
|
|
|
8235
8373
|
"div",
|
|
8236
8374
|
{
|
|
8237
8375
|
"data-slot": "marketplace-card",
|
|
8238
|
-
className:
|
|
8376
|
+
className: cn64(
|
|
8239
8377
|
"rounded-lg border border-border bg-card p-4 transition-shadow hover:shadow-md",
|
|
8240
8378
|
compact ? "flex items-center gap-3" : "flex flex-col gap-3"
|
|
8241
8379
|
),
|
|
@@ -8243,7 +8381,7 @@ function MarketplaceCard({
|
|
|
8243
8381
|
item.icon && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8244
8382
|
"div",
|
|
8245
8383
|
{
|
|
8246
|
-
className:
|
|
8384
|
+
className: cn64(
|
|
8247
8385
|
"flex shrink-0 items-center justify-center rounded-lg",
|
|
8248
8386
|
compact ? "h-10 w-10" : "h-12 w-12",
|
|
8249
8387
|
item.accentClass ?? "bg-muted text-muted-foreground"
|
|
@@ -8254,7 +8392,7 @@ function MarketplaceCard({
|
|
|
8254
8392
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
8255
8393
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-2", children: [
|
|
8256
8394
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0", children: [
|
|
8257
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
8395
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: cn64("font-semibold leading-tight", compact ? "text-sm" : "text-base"), children: item.title }),
|
|
8258
8396
|
item.description && !compact && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-sm text-muted-foreground line-clamp-2", children: item.description })
|
|
8259
8397
|
] }),
|
|
8260
8398
|
item.price && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 rounded-full bg-muted px-2 py-0.5 text-xs font-medium text-muted-foreground", children: item.price })
|
|
@@ -8271,13 +8409,13 @@ function MarketplaceCard({
|
|
|
8271
8409
|
] })
|
|
8272
8410
|
] })
|
|
8273
8411
|
] }),
|
|
8274
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
8412
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn64("flex gap-2", compact ? "shrink-0" : "mt-1"), children: [
|
|
8275
8413
|
onPreview && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8276
8414
|
"button",
|
|
8277
8415
|
{
|
|
8278
8416
|
type: "button",
|
|
8279
8417
|
onClick: () => onPreview(item.id),
|
|
8280
|
-
className:
|
|
8418
|
+
className: cn64(
|
|
8281
8419
|
"inline-flex min-h-[36px] items-center justify-center rounded-md border border-border",
|
|
8282
8420
|
"bg-background px-3 text-xs font-medium text-foreground",
|
|
8283
8421
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -8291,7 +8429,7 @@ function MarketplaceCard({
|
|
|
8291
8429
|
{
|
|
8292
8430
|
type: "button",
|
|
8293
8431
|
onClick: () => onUninstall(item.id),
|
|
8294
|
-
className:
|
|
8432
|
+
className: cn64(
|
|
8295
8433
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
8296
8434
|
"bg-secondary px-3 text-xs font-medium text-secondary-foreground",
|
|
8297
8435
|
"hover:bg-secondary/80",
|
|
@@ -8304,7 +8442,7 @@ function MarketplaceCard({
|
|
|
8304
8442
|
{
|
|
8305
8443
|
type: "button",
|
|
8306
8444
|
onClick: () => onInstall(item.id),
|
|
8307
|
-
className:
|
|
8445
|
+
className: cn64(
|
|
8308
8446
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
8309
8447
|
"bg-primary px-3 text-xs font-medium text-primary-foreground",
|
|
8310
8448
|
"hover:bg-primary/90",
|
|
@@ -8341,8 +8479,8 @@ function MarketplaceListDesktop(props) {
|
|
|
8341
8479
|
collapseSidebarAriaLabel,
|
|
8342
8480
|
expandSidebarAriaLabel
|
|
8343
8481
|
} = props;
|
|
8344
|
-
const [query, setQuery] =
|
|
8345
|
-
const [sidebarCollapsed, setSidebarCollapsed] =
|
|
8482
|
+
const [query, setQuery] = React30__namespace.useState("");
|
|
8483
|
+
const [sidebarCollapsed, setSidebarCollapsed] = React30__namespace.useState(false);
|
|
8346
8484
|
const filtered = items.filter(
|
|
8347
8485
|
(i) => !query || i.title.toLowerCase().includes(query.toLowerCase()) || (i.description ?? "").toLowerCase().includes(query.toLowerCase())
|
|
8348
8486
|
);
|
|
@@ -8376,7 +8514,7 @@ function MarketplaceListDesktop(props) {
|
|
|
8376
8514
|
value: query,
|
|
8377
8515
|
onChange: (e) => setQuery(e.target.value),
|
|
8378
8516
|
placeholder: searchPlaceholder,
|
|
8379
|
-
className:
|
|
8517
|
+
className: cn64(
|
|
8380
8518
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
8381
8519
|
"text-sm placeholder:text-muted-foreground",
|
|
8382
8520
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8430,8 +8568,8 @@ function MarketplaceListMobile(props) {
|
|
|
8430
8568
|
collapseSidebarAriaLabel,
|
|
8431
8569
|
expandSidebarAriaLabel
|
|
8432
8570
|
} = props;
|
|
8433
|
-
const [filterOpen, setFilterOpen] =
|
|
8434
|
-
const [query, setQuery] =
|
|
8571
|
+
const [filterOpen, setFilterOpen] = React30__namespace.useState(false);
|
|
8572
|
+
const [query, setQuery] = React30__namespace.useState("");
|
|
8435
8573
|
const filtered = items.filter(
|
|
8436
8574
|
(i) => !query || i.title.toLowerCase().includes(query.toLowerCase()) || (i.description ?? "").toLowerCase().includes(query.toLowerCase())
|
|
8437
8575
|
);
|
|
@@ -8459,7 +8597,7 @@ function MarketplaceListMobile(props) {
|
|
|
8459
8597
|
value: query,
|
|
8460
8598
|
onChange: (e) => setQuery(e.target.value),
|
|
8461
8599
|
placeholder: searchPlaceholder,
|
|
8462
|
-
className:
|
|
8600
|
+
className: cn64(
|
|
8463
8601
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
8464
8602
|
"text-sm placeholder:text-muted-foreground",
|
|
8465
8603
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8538,7 +8676,7 @@ var marketplaceCardVariants = classVarianceAuthority.cva(
|
|
|
8538
8676
|
}
|
|
8539
8677
|
}
|
|
8540
8678
|
);
|
|
8541
|
-
function
|
|
8679
|
+
function cn65(...classes) {
|
|
8542
8680
|
return classes.filter(Boolean).join(" ");
|
|
8543
8681
|
}
|
|
8544
8682
|
function MosaicMarketplaceCard({
|
|
@@ -8564,12 +8702,12 @@ function MosaicMarketplaceCard({
|
|
|
8564
8702
|
MosaicCard,
|
|
8565
8703
|
{
|
|
8566
8704
|
"data-slot": "marketplace-card",
|
|
8567
|
-
className:
|
|
8705
|
+
className: cn65(marketplaceCardVariants({ variant }), className),
|
|
8568
8706
|
children: [
|
|
8569
8707
|
icon && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8570
8708
|
"div",
|
|
8571
8709
|
{
|
|
8572
|
-
className:
|
|
8710
|
+
className: cn65(
|
|
8573
8711
|
"flex shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground",
|
|
8574
8712
|
compact ? "h-10 w-10" : "h-12 w-12"
|
|
8575
8713
|
),
|
|
@@ -8577,7 +8715,7 @@ function MosaicMarketplaceCard({
|
|
|
8577
8715
|
}
|
|
8578
8716
|
),
|
|
8579
8717
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
8580
|
-
/* @__PURE__ */ jsxRuntime.jsx(MosaicCardTitle, { className:
|
|
8718
|
+
/* @__PURE__ */ jsxRuntime.jsx(MosaicCardTitle, { className: cn65("truncate", compact ? "text-sm" : "text-base"), children: name }),
|
|
8581
8719
|
description && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8582
8720
|
MosaicCardDescription,
|
|
8583
8721
|
{
|
|
@@ -8599,13 +8737,13 @@ function MosaicMarketplaceCard({
|
|
|
8599
8737
|
}
|
|
8600
8738
|
)
|
|
8601
8739
|
] }),
|
|
8602
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
8740
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn65("flex gap-2", compact ? "shrink-0" : "mt-1"), children: [
|
|
8603
8741
|
onPreview && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8604
8742
|
"button",
|
|
8605
8743
|
{
|
|
8606
8744
|
type: "button",
|
|
8607
8745
|
onClick: () => onPreview(id),
|
|
8608
|
-
className:
|
|
8746
|
+
className: cn65(
|
|
8609
8747
|
"inline-flex min-h-[36px] items-center justify-center rounded-md border border-border",
|
|
8610
8748
|
"bg-background px-3 text-xs font-medium text-foreground",
|
|
8611
8749
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -8619,7 +8757,7 @@ function MosaicMarketplaceCard({
|
|
|
8619
8757
|
{
|
|
8620
8758
|
type: "button",
|
|
8621
8759
|
onClick: () => onUnadopt(id),
|
|
8622
|
-
className:
|
|
8760
|
+
className: cn65(
|
|
8623
8761
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
8624
8762
|
"bg-secondary px-3 text-xs font-medium text-secondary-foreground",
|
|
8625
8763
|
"hover:bg-secondary/80",
|
|
@@ -8632,7 +8770,7 @@ function MosaicMarketplaceCard({
|
|
|
8632
8770
|
{
|
|
8633
8771
|
type: "button",
|
|
8634
8772
|
onClick: () => onAdopt(id),
|
|
8635
|
-
className:
|
|
8773
|
+
className: cn65(
|
|
8636
8774
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
8637
8775
|
"bg-primary px-3 text-xs font-medium text-primary-foreground",
|
|
8638
8776
|
"hover:bg-primary/90",
|
|
@@ -8647,7 +8785,7 @@ function MosaicMarketplaceCard({
|
|
|
8647
8785
|
);
|
|
8648
8786
|
}
|
|
8649
8787
|
MosaicMarketplaceCard.displayName = "MosaicMarketplaceCard";
|
|
8650
|
-
function
|
|
8788
|
+
function cn66(...classes) {
|
|
8651
8789
|
return classes.filter(Boolean).join(" ");
|
|
8652
8790
|
}
|
|
8653
8791
|
function StarIcon2() {
|
|
@@ -8768,7 +8906,7 @@ function MosaicTemplateCard({
|
|
|
8768
8906
|
type: "button",
|
|
8769
8907
|
onClick: () => onSelect(template),
|
|
8770
8908
|
"data-slot": "template-card",
|
|
8771
|
-
className:
|
|
8909
|
+
className: cn66(
|
|
8772
8910
|
"w-full text-left rounded-lg border transition-all duration-200",
|
|
8773
8911
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8774
8912
|
isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50",
|
|
@@ -8869,7 +9007,7 @@ function MosaicTemplatePreview({
|
|
|
8869
9007
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8870
9008
|
"span",
|
|
8871
9009
|
{
|
|
8872
|
-
className:
|
|
9010
|
+
className: cn66("h-2 w-2 rounded-full", agent.accentColor),
|
|
8873
9011
|
"aria-hidden": "true"
|
|
8874
9012
|
}
|
|
8875
9013
|
),
|
|
@@ -8929,7 +9067,7 @@ function MosaicAgentTeamPreview({ agents, label }) {
|
|
|
8929
9067
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8930
9068
|
"span",
|
|
8931
9069
|
{
|
|
8932
|
-
className:
|
|
9070
|
+
className: cn66("h-2.5 w-2.5 rounded-full", agent.accentColor),
|
|
8933
9071
|
"aria-hidden": "true"
|
|
8934
9072
|
}
|
|
8935
9073
|
),
|
|
@@ -8953,7 +9091,7 @@ function MosaicQuickStartPanel({
|
|
|
8953
9091
|
scratchLabel,
|
|
8954
9092
|
className
|
|
8955
9093
|
}) {
|
|
8956
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "quick-start-panel", className:
|
|
9094
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "quick-start-panel", className: cn66("flex flex-col gap-6", className), children: [
|
|
8957
9095
|
scenarios.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
8958
9096
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-3 text-sm font-semibold text-foreground", children: scenariosTitle }),
|
|
8959
9097
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid gap-3 sm:grid-cols-2", children: scenarios.map((scenario) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -8961,7 +9099,7 @@ function MosaicQuickStartPanel({
|
|
|
8961
9099
|
{
|
|
8962
9100
|
type: "button",
|
|
8963
9101
|
onClick: () => onSelectScenario(scenario),
|
|
8964
|
-
className:
|
|
9102
|
+
className: cn66(
|
|
8965
9103
|
"flex items-start gap-3 rounded-lg border border-border bg-card p-4 text-left",
|
|
8966
9104
|
"hover:border-primary/50 hover:bg-primary/5",
|
|
8967
9105
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -8993,7 +9131,7 @@ function MosaicQuickStartPanel({
|
|
|
8993
9131
|
{
|
|
8994
9132
|
type: "button",
|
|
8995
9133
|
onClick: () => onSelectPreset(preset),
|
|
8996
|
-
className:
|
|
9134
|
+
className: cn66(
|
|
8997
9135
|
"flex items-center justify-between gap-3 rounded-lg border border-border bg-card px-4 py-3 text-left",
|
|
8998
9136
|
"hover:border-primary/50",
|
|
8999
9137
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -9007,7 +9145,7 @@ function MosaicQuickStartPanel({
|
|
|
9007
9145
|
a.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
9008
9146
|
"span",
|
|
9009
9147
|
{
|
|
9010
|
-
className:
|
|
9148
|
+
className: cn66("h-2 w-2 rounded-full", a.accentColor),
|
|
9011
9149
|
"aria-hidden": "true"
|
|
9012
9150
|
}
|
|
9013
9151
|
),
|
|
@@ -9025,7 +9163,7 @@ function MosaicQuickStartPanel({
|
|
|
9025
9163
|
{
|
|
9026
9164
|
type: "button",
|
|
9027
9165
|
onClick: onStartFromScratch,
|
|
9028
|
-
className:
|
|
9166
|
+
className: cn66(
|
|
9029
9167
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md border border-border",
|
|
9030
9168
|
"bg-background px-4 text-sm font-medium text-foreground",
|
|
9031
9169
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -9064,9 +9202,9 @@ function TemplateGalleryContent({
|
|
|
9064
9202
|
duplicateLabel,
|
|
9065
9203
|
isMobile
|
|
9066
9204
|
}) {
|
|
9067
|
-
const [query, setQuery] =
|
|
9068
|
-
const [filterOpen, setFilterOpen] =
|
|
9069
|
-
const [sidebarCollapsed, setSidebarCollapsed] =
|
|
9205
|
+
const [query, setQuery] = React30__namespace.useState("");
|
|
9206
|
+
const [filterOpen, setFilterOpen] = React30__namespace.useState(false);
|
|
9207
|
+
const [sidebarCollapsed, setSidebarCollapsed] = React30__namespace.useState(false);
|
|
9070
9208
|
const filtered = templates.filter(
|
|
9071
9209
|
(t) => !query || t.name.toLowerCase().includes(query.toLowerCase()) || (t.description ?? "").toLowerCase().includes(query.toLowerCase())
|
|
9072
9210
|
);
|
|
@@ -9119,7 +9257,7 @@ function TemplateGalleryContent({
|
|
|
9119
9257
|
value: query,
|
|
9120
9258
|
onChange: (e) => setQuery(e.target.value),
|
|
9121
9259
|
placeholder: searchPlaceholder,
|
|
9122
|
-
className:
|
|
9260
|
+
className: cn66(
|
|
9123
9261
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3 text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
9124
9262
|
)
|
|
9125
9263
|
}
|
|
@@ -9170,7 +9308,7 @@ function TemplateGalleryContent({
|
|
|
9170
9308
|
value: query,
|
|
9171
9309
|
onChange: (e) => setQuery(e.target.value),
|
|
9172
9310
|
placeholder: searchPlaceholder,
|
|
9173
|
-
className:
|
|
9311
|
+
className: cn66(
|
|
9174
9312
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3 text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
9175
9313
|
)
|
|
9176
9314
|
}
|
|
@@ -9202,7 +9340,7 @@ function MosaicTemplateGallery(props) {
|
|
|
9202
9340
|
return /* @__PURE__ */ jsxRuntime.jsx(TemplateGalleryContent, { ...props, isMobile });
|
|
9203
9341
|
}
|
|
9204
9342
|
MosaicTemplateGallery.displayName = "MosaicTemplateGallery";
|
|
9205
|
-
function
|
|
9343
|
+
function cn67(...classes) {
|
|
9206
9344
|
return classes.filter(Boolean).join(" ");
|
|
9207
9345
|
}
|
|
9208
9346
|
function PlusIcon5() {
|
|
@@ -9304,7 +9442,7 @@ function MosaicModuleForm(props) {
|
|
|
9304
9442
|
cancelLabel,
|
|
9305
9443
|
tagListAddPlaceholder
|
|
9306
9444
|
} = props;
|
|
9307
|
-
const [formData, setFormData] =
|
|
9445
|
+
const [formData, setFormData] = React30__namespace.useState({
|
|
9308
9446
|
name: item?.name ?? "",
|
|
9309
9447
|
description: item?.description ?? "",
|
|
9310
9448
|
icon: item?.icon ?? "",
|
|
@@ -9315,7 +9453,7 @@ function MosaicModuleForm(props) {
|
|
|
9315
9453
|
formFields.map((f) => [f.id, item?.[f.id] ?? (f.type === "tag-list" ? [] : "")])
|
|
9316
9454
|
)
|
|
9317
9455
|
});
|
|
9318
|
-
const [tagInputs, setTagInputs] =
|
|
9456
|
+
const [tagInputs, setTagInputs] = React30__namespace.useState({});
|
|
9319
9457
|
const update = (key, value) => {
|
|
9320
9458
|
setFormData((prev) => ({ ...prev, [key]: value }));
|
|
9321
9459
|
};
|
|
@@ -9353,7 +9491,7 @@ function MosaicModuleForm(props) {
|
|
|
9353
9491
|
onChange: (e) => update("name", e.target.value),
|
|
9354
9492
|
placeholder: namePlaceholder,
|
|
9355
9493
|
required: true,
|
|
9356
|
-
className:
|
|
9494
|
+
className: cn67(
|
|
9357
9495
|
"w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
|
|
9358
9496
|
"text-sm placeholder:text-muted-foreground",
|
|
9359
9497
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9371,7 +9509,7 @@ function MosaicModuleForm(props) {
|
|
|
9371
9509
|
onChange: (e) => update("description", e.target.value),
|
|
9372
9510
|
placeholder: descriptionPlaceholder,
|
|
9373
9511
|
rows: 3,
|
|
9374
|
-
className:
|
|
9512
|
+
className: cn67(
|
|
9375
9513
|
"w-full rounded-md border border-input bg-background px-3 py-2",
|
|
9376
9514
|
"text-sm placeholder:text-muted-foreground resize-none",
|
|
9377
9515
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9393,7 +9531,7 @@ function MosaicModuleForm(props) {
|
|
|
9393
9531
|
value: formData[field.id] ?? "",
|
|
9394
9532
|
onChange: (e) => update(field.id, e.target.value),
|
|
9395
9533
|
placeholder: field.placeholder,
|
|
9396
|
-
className:
|
|
9534
|
+
className: cn67(
|
|
9397
9535
|
"w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
|
|
9398
9536
|
"text-sm placeholder:text-muted-foreground",
|
|
9399
9537
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9408,7 +9546,7 @@ function MosaicModuleForm(props) {
|
|
|
9408
9546
|
onChange: (e) => update(field.id, e.target.value),
|
|
9409
9547
|
placeholder: field.placeholder,
|
|
9410
9548
|
rows: 3,
|
|
9411
|
-
className:
|
|
9549
|
+
className: cn67(
|
|
9412
9550
|
"w-full rounded-md border border-input bg-background px-3 py-2",
|
|
9413
9551
|
"text-sm placeholder:text-muted-foreground resize-none",
|
|
9414
9552
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9424,7 +9562,7 @@ function MosaicModuleForm(props) {
|
|
|
9424
9562
|
onChange: (e) => update(field.id, e.target.value),
|
|
9425
9563
|
placeholder: field.placeholder ?? "\u{1F9E0}",
|
|
9426
9564
|
maxLength: 4,
|
|
9427
|
-
className:
|
|
9565
|
+
className: cn67(
|
|
9428
9566
|
"w-20 rounded-md border border-input bg-background px-3 py-2 text-2xl",
|
|
9429
9567
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
9430
9568
|
)
|
|
@@ -9445,7 +9583,7 @@ function MosaicModuleForm(props) {
|
|
|
9445
9583
|
}
|
|
9446
9584
|
},
|
|
9447
9585
|
placeholder: field.placeholder ?? tagListAddPlaceholder,
|
|
9448
|
-
className:
|
|
9586
|
+
className: cn67(
|
|
9449
9587
|
"flex-1 rounded-md border border-input bg-background px-3 py-2 min-h-[36px]",
|
|
9450
9588
|
"text-sm placeholder:text-muted-foreground",
|
|
9451
9589
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9516,9 +9654,9 @@ function ModuleItemCard({
|
|
|
9516
9654
|
editItemLabel,
|
|
9517
9655
|
deleteItemLabel
|
|
9518
9656
|
}) {
|
|
9519
|
-
const [menuOpen, setMenuOpen] =
|
|
9520
|
-
const menuRef =
|
|
9521
|
-
|
|
9657
|
+
const [menuOpen, setMenuOpen] = React30__namespace.useState(false);
|
|
9658
|
+
const menuRef = React30__namespace.useRef(null);
|
|
9659
|
+
React30__namespace.useEffect(() => {
|
|
9522
9660
|
if (!menuOpen) return;
|
|
9523
9661
|
const h = (e) => {
|
|
9524
9662
|
if (menuRef.current && !menuRef.current.contains(e.target)) setMenuOpen(false);
|
|
@@ -9619,11 +9757,11 @@ function LibraryContent({
|
|
|
9619
9757
|
editModalTitle,
|
|
9620
9758
|
tagListAddPlaceholder
|
|
9621
9759
|
}) {
|
|
9622
|
-
const [query, setQuery] =
|
|
9623
|
-
const [activeTab, setActiveTab] =
|
|
9624
|
-
const [editorOpen, setEditorOpen] =
|
|
9625
|
-
const [editingItem, setEditingItem] =
|
|
9626
|
-
const [editorMode, setEditorMode] =
|
|
9760
|
+
const [query, setQuery] = React30__namespace.useState("");
|
|
9761
|
+
const [activeTab, setActiveTab] = React30__namespace.useState(tabs?.[0]?.id ?? "all");
|
|
9762
|
+
const [editorOpen, setEditorOpen] = React30__namespace.useState(false);
|
|
9763
|
+
const [editingItem, setEditingItem] = React30__namespace.useState();
|
|
9764
|
+
const [editorMode, setEditorMode] = React30__namespace.useState("create");
|
|
9627
9765
|
const openCreate = () => {
|
|
9628
9766
|
setEditingItem(void 0);
|
|
9629
9767
|
setEditorMode("create");
|
|
@@ -9657,7 +9795,7 @@ function LibraryContent({
|
|
|
9657
9795
|
{
|
|
9658
9796
|
type: "button",
|
|
9659
9797
|
onClick: openCreate,
|
|
9660
|
-
className:
|
|
9798
|
+
className: cn67(
|
|
9661
9799
|
"inline-flex items-center gap-2 rounded-md bg-primary px-3 py-2 text-sm font-medium text-primary-foreground",
|
|
9662
9800
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
9663
9801
|
),
|
|
@@ -9677,7 +9815,7 @@ function LibraryContent({
|
|
|
9677
9815
|
value: query,
|
|
9678
9816
|
onChange: (e) => setQuery(e.target.value),
|
|
9679
9817
|
placeholder: searchPlaceholder,
|
|
9680
|
-
className:
|
|
9818
|
+
className: cn67(
|
|
9681
9819
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
9682
9820
|
"text-sm placeholder:text-muted-foreground",
|
|
9683
9821
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9690,7 +9828,7 @@ function LibraryContent({
|
|
|
9690
9828
|
{
|
|
9691
9829
|
type: "button",
|
|
9692
9830
|
onClick: () => setActiveTab(tab.id),
|
|
9693
|
-
className:
|
|
9831
|
+
className: cn67(
|
|
9694
9832
|
"rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
9695
9833
|
activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
9696
9834
|
),
|
|
@@ -9742,7 +9880,7 @@ function MosaicModuleLibrary(props) {
|
|
|
9742
9880
|
return /* @__PURE__ */ jsxRuntime.jsx(LibraryContent, { ...props });
|
|
9743
9881
|
}
|
|
9744
9882
|
MosaicModuleLibrary.displayName = "MosaicModuleLibrary";
|
|
9745
|
-
function
|
|
9883
|
+
function cn68(...classes) {
|
|
9746
9884
|
return classes.filter(Boolean).join(" ");
|
|
9747
9885
|
}
|
|
9748
9886
|
var roleConfig = {
|
|
@@ -9769,7 +9907,7 @@ function MosaicOrgRoleBadge({ role, className }) {
|
|
|
9769
9907
|
{
|
|
9770
9908
|
"data-slot": "org-role-badge",
|
|
9771
9909
|
title: config.description,
|
|
9772
|
-
className:
|
|
9910
|
+
className: cn68(
|
|
9773
9911
|
"inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium",
|
|
9774
9912
|
config.className,
|
|
9775
9913
|
className
|
|
@@ -9786,13 +9924,13 @@ function MosaicMultiOrgIndicator({
|
|
|
9786
9924
|
className
|
|
9787
9925
|
}) {
|
|
9788
9926
|
if (orgCount <= 1) return null;
|
|
9789
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "multi-org-indicator", className:
|
|
9927
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "multi-org-indicator", className: cn68("flex items-center gap-2", className), children: [
|
|
9790
9928
|
onSwitchOrg ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
9791
9929
|
"button",
|
|
9792
9930
|
{
|
|
9793
9931
|
type: "button",
|
|
9794
9932
|
onClick: onSwitchOrg,
|
|
9795
|
-
className:
|
|
9933
|
+
className: cn68(
|
|
9796
9934
|
"inline-flex items-center gap-1.5 rounded-full bg-secondary px-2.5 py-1 text-xs font-medium text-secondary-foreground",
|
|
9797
9935
|
"hover:bg-secondary/80",
|
|
9798
9936
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9845,10 +9983,10 @@ function MosaicCreateOrgDialog({
|
|
|
9845
9983
|
creatingLabel,
|
|
9846
9984
|
createLabel
|
|
9847
9985
|
}) {
|
|
9848
|
-
const [name, setName] =
|
|
9849
|
-
const [slug, setSlug] =
|
|
9850
|
-
const [description, setDescription] =
|
|
9851
|
-
const [errors, setErrors] =
|
|
9986
|
+
const [name, setName] = React30__namespace.useState("");
|
|
9987
|
+
const [slug, setSlug] = React30__namespace.useState("");
|
|
9988
|
+
const [description, setDescription] = React30__namespace.useState("");
|
|
9989
|
+
const [errors, setErrors] = React30__namespace.useState({});
|
|
9852
9990
|
const validate = () => {
|
|
9853
9991
|
const errs = {};
|
|
9854
9992
|
if (!name.trim()) errs.name = "Name is required";
|
|
@@ -9872,7 +10010,7 @@ function MosaicCreateOrgDialog({
|
|
|
9872
10010
|
setErrors({});
|
|
9873
10011
|
onOpenChange(false);
|
|
9874
10012
|
};
|
|
9875
|
-
|
|
10013
|
+
React30__namespace.useEffect(() => {
|
|
9876
10014
|
if (!name) {
|
|
9877
10015
|
setSlug("");
|
|
9878
10016
|
return;
|
|
@@ -9906,7 +10044,7 @@ function MosaicCreateOrgDialog({
|
|
|
9906
10044
|
onChange: (e) => setName(e.target.value),
|
|
9907
10045
|
placeholder: orgNamePlaceholder,
|
|
9908
10046
|
required: true,
|
|
9909
|
-
className:
|
|
10047
|
+
className: cn68(
|
|
9910
10048
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
9911
10049
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
9912
10050
|
errors.name ? "border-destructive" : "border-input"
|
|
@@ -9926,7 +10064,7 @@ function MosaicCreateOrgDialog({
|
|
|
9926
10064
|
onChange: (e) => setSlug(e.target.value),
|
|
9927
10065
|
placeholder: "acme-inc",
|
|
9928
10066
|
required: true,
|
|
9929
|
-
className:
|
|
10067
|
+
className: cn68(
|
|
9930
10068
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
9931
10069
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
9932
10070
|
errors.slug ? "border-destructive" : "border-input"
|
|
@@ -9995,9 +10133,9 @@ function MosaicInviteMemberDialog({
|
|
|
9995
10133
|
sendingLabel,
|
|
9996
10134
|
sendInvitationLabel
|
|
9997
10135
|
}) {
|
|
9998
|
-
const [email, setEmail] =
|
|
9999
|
-
const [role, setRole] =
|
|
10000
|
-
const [errors, setErrors] =
|
|
10136
|
+
const [email, setEmail] = React30__namespace.useState("");
|
|
10137
|
+
const [role, setRole] = React30__namespace.useState("member");
|
|
10138
|
+
const [errors, setErrors] = React30__namespace.useState({});
|
|
10001
10139
|
const validate = () => {
|
|
10002
10140
|
const errs = {};
|
|
10003
10141
|
if (!email.trim()) errs.email = "Email is required";
|
|
@@ -10039,7 +10177,7 @@ function MosaicInviteMemberDialog({
|
|
|
10039
10177
|
onChange: (e) => setEmail(e.target.value),
|
|
10040
10178
|
placeholder: emailPlaceholder,
|
|
10041
10179
|
required: true,
|
|
10042
|
-
className:
|
|
10180
|
+
className: cn68(
|
|
10043
10181
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
10044
10182
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
10045
10183
|
errors.email ? "border-destructive" : "border-input"
|
|
@@ -10098,10 +10236,10 @@ function MemberRow({
|
|
|
10098
10236
|
memberActionsAriaLabel,
|
|
10099
10237
|
removeMemberLabel
|
|
10100
10238
|
}) {
|
|
10101
|
-
const [menuOpen, setMenuOpen] =
|
|
10102
|
-
const menuRef =
|
|
10239
|
+
const [menuOpen, setMenuOpen] = React30__namespace.useState(false);
|
|
10240
|
+
const menuRef = React30__namespace.useRef(null);
|
|
10103
10241
|
const isSelf = member.id === currentUserId;
|
|
10104
|
-
|
|
10242
|
+
React30__namespace.useEffect(() => {
|
|
10105
10243
|
if (!menuOpen) return;
|
|
10106
10244
|
const h = (e) => {
|
|
10107
10245
|
if (menuRef.current && !menuRef.current.contains(e.target)) setMenuOpen(false);
|
|
@@ -10222,11 +10360,11 @@ function MosaicMemberList({
|
|
|
10222
10360
|
inviteLabel,
|
|
10223
10361
|
className
|
|
10224
10362
|
}) {
|
|
10225
|
-
const [query, setQuery] =
|
|
10363
|
+
const [query, setQuery] = React30__namespace.useState("");
|
|
10226
10364
|
const filtered = members.filter(
|
|
10227
10365
|
(m) => !query || m.name.toLowerCase().includes(query.toLowerCase()) || m.email.toLowerCase().includes(query.toLowerCase())
|
|
10228
10366
|
);
|
|
10229
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "member-list", className:
|
|
10367
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "member-list", className: cn68("flex flex-col gap-4", className), children: [
|
|
10230
10368
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
10231
10369
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative flex-1", children: [
|
|
10232
10370
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -10320,9 +10458,9 @@ function MosaicOrgPanel({
|
|
|
10320
10458
|
className
|
|
10321
10459
|
}) {
|
|
10322
10460
|
const { isMobile } = useDevice();
|
|
10323
|
-
const [activeTab, setActiveTab] =
|
|
10461
|
+
const [activeTab, setActiveTab] = React30__namespace.useState(defaultTab ?? tabs[0]?.id ?? "");
|
|
10324
10462
|
const activeContent = tabs.find((t) => t.id === activeTab)?.content;
|
|
10325
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "org-panel", className:
|
|
10463
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "org-panel", className: cn68("flex h-full flex-col", className), children: [
|
|
10326
10464
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border-b border-border px-4 py-4 md:px-6", children: [
|
|
10327
10465
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-4", children: [
|
|
10328
10466
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
@@ -10344,12 +10482,12 @@ function MosaicOrgPanel({
|
|
|
10344
10482
|
] }),
|
|
10345
10483
|
headerActions
|
|
10346
10484
|
] }),
|
|
10347
|
-
tabs.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
10485
|
+
tabs.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn68("mt-4 flex gap-1", isMobile && "overflow-x-auto"), children: tabs.map((tab) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
10348
10486
|
"button",
|
|
10349
10487
|
{
|
|
10350
10488
|
type: "button",
|
|
10351
10489
|
onClick: () => setActiveTab(tab.id),
|
|
10352
|
-
className:
|
|
10490
|
+
className: cn68(
|
|
10353
10491
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
10354
10492
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
10355
10493
|
activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
@@ -10363,7 +10501,7 @@ function MosaicOrgPanel({
|
|
|
10363
10501
|
] });
|
|
10364
10502
|
}
|
|
10365
10503
|
MosaicOrgPanel.displayName = "MosaicOrgPanel";
|
|
10366
|
-
function
|
|
10504
|
+
function cn69(...classes) {
|
|
10367
10505
|
return classes.filter(Boolean).join(" ");
|
|
10368
10506
|
}
|
|
10369
10507
|
var ANIM_ID8 = "mosaic-dashboard-content-kf";
|
|
@@ -10392,7 +10530,7 @@ function MosaicDashboardContent({
|
|
|
10392
10530
|
className
|
|
10393
10531
|
}) {
|
|
10394
10532
|
const { isMobile } = useDevice();
|
|
10395
|
-
|
|
10533
|
+
React30__namespace.useEffect(() => {
|
|
10396
10534
|
injectStyles8();
|
|
10397
10535
|
}, []);
|
|
10398
10536
|
const activeView = views.find((v) => v.id === currentView);
|
|
@@ -10400,7 +10538,7 @@ function MosaicDashboardContent({
|
|
|
10400
10538
|
"div",
|
|
10401
10539
|
{
|
|
10402
10540
|
"data-slot": "dashboard-content",
|
|
10403
|
-
className:
|
|
10541
|
+
className: cn69("h-full overflow-auto", isMobile ? "p-4" : "p-6", className),
|
|
10404
10542
|
children: activeView ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mosaic-content-view space-y-6", children: activeView.content }, currentView) : /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "py-12 text-center text-sm text-muted-foreground", children: [
|
|
10405
10543
|
"View not found: ",
|
|
10406
10544
|
currentView
|
|
@@ -10409,7 +10547,7 @@ function MosaicDashboardContent({
|
|
|
10409
10547
|
);
|
|
10410
10548
|
}
|
|
10411
10549
|
MosaicDashboardContent.displayName = "MosaicDashboardContent";
|
|
10412
|
-
function
|
|
10550
|
+
function cn70(...classes) {
|
|
10413
10551
|
return classes.filter(Boolean).join(" ");
|
|
10414
10552
|
}
|
|
10415
10553
|
var ANIM_ID9 = "mosaic-dashboard-header2-kf";
|
|
@@ -10509,8 +10647,8 @@ function MosaicDashboardHeader({
|
|
|
10509
10647
|
className
|
|
10510
10648
|
}) {
|
|
10511
10649
|
const { isMobile } = useDevice();
|
|
10512
|
-
const [searchQuery, setSearchQuery] =
|
|
10513
|
-
|
|
10650
|
+
const [searchQuery, setSearchQuery] = React30__namespace.useState("");
|
|
10651
|
+
React30__namespace.useEffect(() => {
|
|
10514
10652
|
injectStyles9();
|
|
10515
10653
|
}, []);
|
|
10516
10654
|
const handleSearch = (e) => {
|
|
@@ -10521,16 +10659,16 @@ function MosaicDashboardHeader({
|
|
|
10521
10659
|
"header",
|
|
10522
10660
|
{
|
|
10523
10661
|
"data-slot": "dashboard-header",
|
|
10524
|
-
className:
|
|
10662
|
+
className: cn70(
|
|
10525
10663
|
"mosaic-dashboard-header2",
|
|
10526
10664
|
"sticky top-0 z-40 border-b border-border/50 bg-background/80 backdrop-blur-sm",
|
|
10527
10665
|
className
|
|
10528
10666
|
),
|
|
10529
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
10667
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn70(isMobile ? "px-4 py-3" : "container mx-auto px-4 py-4"), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
10530
10668
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-w-0 flex-1 items-center gap-2 md:gap-4", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
10531
10669
|
logoSlot ?? /* @__PURE__ */ jsxRuntime.jsx(SparklesIcon4, {}),
|
|
10532
10670
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0", children: [
|
|
10533
|
-
/* @__PURE__ */ jsxRuntime.jsx("h1", { className:
|
|
10671
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: cn70("font-semibold truncate", isMobile ? "text-lg" : "text-xl"), children: title }),
|
|
10534
10672
|
subtitle && !isMobile && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground truncate", children: subtitle })
|
|
10535
10673
|
] })
|
|
10536
10674
|
] }) }),
|
|
@@ -10543,7 +10681,7 @@ function MosaicDashboardHeader({
|
|
|
10543
10681
|
value: searchQuery,
|
|
10544
10682
|
onChange: handleSearch,
|
|
10545
10683
|
placeholder: searchPlaceholder,
|
|
10546
|
-
className:
|
|
10684
|
+
className: cn70(
|
|
10547
10685
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
10548
10686
|
"text-sm placeholder:text-muted-foreground",
|
|
10549
10687
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -10583,7 +10721,7 @@ function MosaicDashboardHeader({
|
|
|
10583
10721
|
);
|
|
10584
10722
|
}
|
|
10585
10723
|
MosaicDashboardHeader.displayName = "MosaicDashboardHeader";
|
|
10586
|
-
function
|
|
10724
|
+
function cn71(...classes) {
|
|
10587
10725
|
return classes.filter(Boolean).join(" ");
|
|
10588
10726
|
}
|
|
10589
10727
|
function ChevronDownIcon4() {
|
|
@@ -10653,10 +10791,10 @@ function MosaicOrgSwitcher({
|
|
|
10653
10791
|
noOrgSelectedLabel,
|
|
10654
10792
|
className
|
|
10655
10793
|
}) {
|
|
10656
|
-
const [open, setOpen] =
|
|
10657
|
-
const ref =
|
|
10794
|
+
const [open, setOpen] = React30__namespace.useState(false);
|
|
10795
|
+
const ref = React30__namespace.useRef(null);
|
|
10658
10796
|
const currentOrg = organizations.find((o) => o.id === currentOrgId) ?? organizations[0];
|
|
10659
|
-
|
|
10797
|
+
React30__namespace.useEffect(() => {
|
|
10660
10798
|
if (!open) return;
|
|
10661
10799
|
const h = (e) => {
|
|
10662
10800
|
if (ref.current && !ref.current.contains(e.target)) setOpen(false);
|
|
@@ -10666,13 +10804,13 @@ function MosaicOrgSwitcher({
|
|
|
10666
10804
|
}, [open]);
|
|
10667
10805
|
if (!currentOrg && organizations.length === 0 && !onCreateOrg) return null;
|
|
10668
10806
|
const initials = currentOrg?.name.split(" ").map((n) => n[0]).filter(Boolean).slice(0, 2).join("").toUpperCase() ?? "?";
|
|
10669
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "org-switcher", className:
|
|
10807
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "org-switcher", className: cn71("relative", className), children: [
|
|
10670
10808
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
10671
10809
|
"button",
|
|
10672
10810
|
{
|
|
10673
10811
|
type: "button",
|
|
10674
10812
|
onClick: () => setOpen((v) => !v),
|
|
10675
|
-
className:
|
|
10813
|
+
className: cn71(
|
|
10676
10814
|
"inline-flex items-center gap-2 rounded-md border border-border bg-background px-3 py-1.5",
|
|
10677
10815
|
"text-sm font-medium text-foreground",
|
|
10678
10816
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -10699,7 +10837,7 @@ function MosaicOrgSwitcher({
|
|
|
10699
10837
|
{
|
|
10700
10838
|
role: "menu",
|
|
10701
10839
|
"aria-label": triggerAriaLabel,
|
|
10702
|
-
className:
|
|
10840
|
+
className: cn71(
|
|
10703
10841
|
"absolute left-0 top-full z-50 mt-1 min-w-[200px] rounded-md border border-border",
|
|
10704
10842
|
"bg-popover py-1 shadow-md"
|
|
10705
10843
|
),
|
|
@@ -10714,7 +10852,7 @@ function MosaicOrgSwitcher({
|
|
|
10714
10852
|
onSelectOrg?.(org.id);
|
|
10715
10853
|
setOpen(false);
|
|
10716
10854
|
},
|
|
10717
|
-
className:
|
|
10855
|
+
className: cn71(
|
|
10718
10856
|
"flex w-full items-center gap-2.5 px-3 py-2 text-sm text-foreground",
|
|
10719
10857
|
"hover:bg-accent hover:text-accent-foreground",
|
|
10720
10858
|
org.id === currentOrgId && "bg-primary/10 text-primary"
|
|
@@ -10751,7 +10889,7 @@ function MosaicOrgSwitcher({
|
|
|
10751
10889
|
] });
|
|
10752
10890
|
}
|
|
10753
10891
|
MosaicOrgSwitcher.displayName = "MosaicOrgSwitcher";
|
|
10754
|
-
function
|
|
10892
|
+
function cn72(...classes) {
|
|
10755
10893
|
return classes.filter(Boolean).join(" ");
|
|
10756
10894
|
}
|
|
10757
10895
|
function PlusIcon7() {
|
|
@@ -10786,9 +10924,9 @@ function MosaicQuickActionsMenu({
|
|
|
10786
10924
|
className
|
|
10787
10925
|
}) {
|
|
10788
10926
|
const { isMobile } = useDevice();
|
|
10789
|
-
const [open, setOpen] =
|
|
10790
|
-
const ref =
|
|
10791
|
-
|
|
10927
|
+
const [open, setOpen] = React30__namespace.useState(false);
|
|
10928
|
+
const ref = React30__namespace.useRef(null);
|
|
10929
|
+
React30__namespace.useEffect(() => {
|
|
10792
10930
|
if (!open) return;
|
|
10793
10931
|
const h = (e) => {
|
|
10794
10932
|
if (ref.current && !ref.current.contains(e.target)) setOpen(false);
|
|
@@ -10796,19 +10934,19 @@ function MosaicQuickActionsMenu({
|
|
|
10796
10934
|
document.addEventListener("mousedown", h);
|
|
10797
10935
|
return () => document.removeEventListener("mousedown", h);
|
|
10798
10936
|
}, [open]);
|
|
10799
|
-
const itemClass =
|
|
10937
|
+
const itemClass = cn72(
|
|
10800
10938
|
"flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground",
|
|
10801
10939
|
"hover:bg-accent hover:text-accent-foreground",
|
|
10802
10940
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
10803
10941
|
"min-h-[44px]"
|
|
10804
10942
|
);
|
|
10805
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "quick-actions-menu", className:
|
|
10943
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "quick-actions-menu", className: cn72("relative", className), children: [
|
|
10806
10944
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
10807
10945
|
"button",
|
|
10808
10946
|
{
|
|
10809
10947
|
type: "button",
|
|
10810
10948
|
onClick: () => setOpen((v) => !v),
|
|
10811
|
-
className:
|
|
10949
|
+
className: cn72(
|
|
10812
10950
|
"inline-flex items-center justify-center gap-2 rounded-md border border-border bg-background",
|
|
10813
10951
|
"min-h-[44px] min-w-[44px] px-3 py-2 text-sm font-medium text-foreground",
|
|
10814
10952
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -10819,7 +10957,7 @@ function MosaicQuickActionsMenu({
|
|
|
10819
10957
|
"aria-label": label,
|
|
10820
10958
|
children: [
|
|
10821
10959
|
triggerIcon ?? /* @__PURE__ */ jsxRuntime.jsx(PlusIcon7, {}),
|
|
10822
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
10960
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn72("hidden md:inline"), children: label })
|
|
10823
10961
|
]
|
|
10824
10962
|
}
|
|
10825
10963
|
),
|
|
@@ -10828,14 +10966,14 @@ function MosaicQuickActionsMenu({
|
|
|
10828
10966
|
{
|
|
10829
10967
|
role: "menu",
|
|
10830
10968
|
"aria-label": menuTitle,
|
|
10831
|
-
className:
|
|
10969
|
+
className: cn72(
|
|
10832
10970
|
"absolute right-0 top-full z-50 mt-1 rounded-md border border-border bg-popover py-1 shadow-md",
|
|
10833
10971
|
isMobile ? "w-[min(90vw,280px)]" : "w-56"
|
|
10834
10972
|
),
|
|
10835
10973
|
children: [
|
|
10836
10974
|
menuTitle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-3 py-1.5", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs font-semibold text-muted-foreground uppercase tracking-wide", children: menuTitle }) }),
|
|
10837
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
10838
|
-
actions.map((action) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
10975
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn72(menuTitle && "border-t border-border") }),
|
|
10976
|
+
actions.map((action) => /* @__PURE__ */ jsxRuntime.jsxs(React30__namespace.Fragment, { children: [
|
|
10839
10977
|
action.separator && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "my-1 border-t border-border" }),
|
|
10840
10978
|
action.href && renderLink ? renderLink(
|
|
10841
10979
|
action,
|
|
@@ -11139,7 +11277,7 @@ function MosaicOrgProfilePage({
|
|
|
11139
11277
|
);
|
|
11140
11278
|
}
|
|
11141
11279
|
MosaicOrgProfilePage.displayName = "MosaicOrgProfilePage";
|
|
11142
|
-
function
|
|
11280
|
+
function cn73(...classes) {
|
|
11143
11281
|
return classes.filter(Boolean).join(" ");
|
|
11144
11282
|
}
|
|
11145
11283
|
function defaultCompare(a, b) {
|
|
@@ -11158,7 +11296,7 @@ function MosaicDataTable({
|
|
|
11158
11296
|
footerSlot,
|
|
11159
11297
|
pagination
|
|
11160
11298
|
}) {
|
|
11161
|
-
const [sort, setSort] =
|
|
11299
|
+
const [sort, setSort] = React30.useState(null);
|
|
11162
11300
|
function handleHeaderClick(col) {
|
|
11163
11301
|
if (!masterSortable || !col.sortable) return;
|
|
11164
11302
|
setSort((prev) => {
|
|
@@ -11202,7 +11340,7 @@ function MosaicDataTable({
|
|
|
11202
11340
|
{
|
|
11203
11341
|
ref,
|
|
11204
11342
|
"data-slot": "data-table",
|
|
11205
|
-
className:
|
|
11343
|
+
className: cn73("w-full border-collapse text-sm", className),
|
|
11206
11344
|
children: [
|
|
11207
11345
|
/* @__PURE__ */ jsxRuntime.jsx("thead", { "data-slot": "data-table-header", children: /* @__PURE__ */ jsxRuntime.jsx("tr", { "data-slot": "data-table-header-row", className: "border-b border-border bg-muted", children: columns.map((col, colIndex) => {
|
|
11208
11346
|
const isSortable = masterSortable && col.sortable;
|
|
@@ -11220,7 +11358,7 @@ function MosaicDataTable({
|
|
|
11220
11358
|
handleHeaderClick(col);
|
|
11221
11359
|
}
|
|
11222
11360
|
} : void 0,
|
|
11223
|
-
className:
|
|
11361
|
+
className: cn73(
|
|
11224
11362
|
"px-4 py-3 font-medium text-muted-foreground",
|
|
11225
11363
|
alignClass(col.align),
|
|
11226
11364
|
col.className,
|
|
@@ -11256,7 +11394,7 @@ function MosaicDataTable({
|
|
|
11256
11394
|
"td",
|
|
11257
11395
|
{
|
|
11258
11396
|
"data-slot": "data-table-td",
|
|
11259
|
-
className:
|
|
11397
|
+
className: cn73(
|
|
11260
11398
|
"px-4 py-3 text-foreground",
|
|
11261
11399
|
alignClass(col.align),
|
|
11262
11400
|
col.className
|
|
@@ -11395,7 +11533,7 @@ var stepSegmentVariants = classVarianceAuthority.cva(["h-1.5 flex-1 min-w-2 roun
|
|
|
11395
11533
|
filled: false
|
|
11396
11534
|
}
|
|
11397
11535
|
});
|
|
11398
|
-
function
|
|
11536
|
+
function cn74(...classes) {
|
|
11399
11537
|
return classes.filter(Boolean).join(" ");
|
|
11400
11538
|
}
|
|
11401
11539
|
function resolveStatus(step, index, currentIndex) {
|
|
@@ -11436,7 +11574,7 @@ function MosaicStepPipelineSegments({
|
|
|
11436
11574
|
"aria-valuemax": total,
|
|
11437
11575
|
"aria-valuenow": current,
|
|
11438
11576
|
"aria-valuetext": progressLabel ? progressLabel(current, total) : void 0,
|
|
11439
|
-
className:
|
|
11577
|
+
className: cn74(stepSegmentBarVariants(), className),
|
|
11440
11578
|
children: steps.map((step, index) => {
|
|
11441
11579
|
const status = resolveStatus(step, index, currentIndex);
|
|
11442
11580
|
const filled = status !== "upcoming";
|
|
@@ -11448,7 +11586,7 @@ function MosaicStepPipelineSegments({
|
|
|
11448
11586
|
"data-status": status,
|
|
11449
11587
|
"data-filled": filled,
|
|
11450
11588
|
"aria-hidden": "true",
|
|
11451
|
-
className:
|
|
11589
|
+
className: cn74(stepSegmentVariants({ filled }))
|
|
11452
11590
|
},
|
|
11453
11591
|
key
|
|
11454
11592
|
);
|
|
@@ -11469,7 +11607,7 @@ function MosaicStepPipelineDots({
|
|
|
11469
11607
|
{
|
|
11470
11608
|
ref,
|
|
11471
11609
|
"data-slot": "step-pipeline",
|
|
11472
|
-
className:
|
|
11610
|
+
className: cn74(stepPipelineVariants({ orientation }), className),
|
|
11473
11611
|
children: steps.map((step, index) => {
|
|
11474
11612
|
const status = resolveStatus(step, index, currentIndex);
|
|
11475
11613
|
const isCurrent = status === "current";
|
|
@@ -11481,7 +11619,7 @@ function MosaicStepPipelineDots({
|
|
|
11481
11619
|
"data-slot": "step",
|
|
11482
11620
|
"data-status": status,
|
|
11483
11621
|
"aria-current": isCurrent ? "step" : void 0,
|
|
11484
|
-
className:
|
|
11622
|
+
className: cn74(
|
|
11485
11623
|
"flex shrink-0",
|
|
11486
11624
|
orientation === "horizontal" ? "flex-col items-center gap-2" : "flex-row items-start gap-3",
|
|
11487
11625
|
orientation === "horizontal" && !isLast && "flex-1"
|
|
@@ -11492,14 +11630,14 @@ function MosaicStepPipelineDots({
|
|
|
11492
11630
|
"div",
|
|
11493
11631
|
{
|
|
11494
11632
|
"data-slot": "step-connector",
|
|
11495
|
-
className:
|
|
11633
|
+
className: cn74(stepConnectorVariants({ status, orientation }))
|
|
11496
11634
|
}
|
|
11497
11635
|
),
|
|
11498
11636
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11499
11637
|
"div",
|
|
11500
11638
|
{
|
|
11501
11639
|
"data-slot": "step-indicator",
|
|
11502
|
-
className:
|
|
11640
|
+
className: cn74(stepIndicatorVariants({ status, orientation })),
|
|
11503
11641
|
"aria-hidden": "true",
|
|
11504
11642
|
children: status === "done" ? "\u2713" : /* @__PURE__ */ jsxRuntime.jsx("span", { children: index + 1 })
|
|
11505
11643
|
}
|
|
@@ -11508,7 +11646,7 @@ function MosaicStepPipelineDots({
|
|
|
11508
11646
|
"div",
|
|
11509
11647
|
{
|
|
11510
11648
|
"data-slot": "step-connector",
|
|
11511
|
-
className:
|
|
11649
|
+
className: cn74(
|
|
11512
11650
|
stepConnectorVariants({
|
|
11513
11651
|
// connector after current step is still upcoming
|
|
11514
11652
|
status: status === "done" ? "done" : "upcoming",
|
|
@@ -11519,12 +11657,12 @@ function MosaicStepPipelineDots({
|
|
|
11519
11657
|
)
|
|
11520
11658
|
] }),
|
|
11521
11659
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center gap-0.5 text-center px-1", children: [
|
|
11522
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { "data-slot": "step-label", className:
|
|
11660
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { "data-slot": "step-label", className: cn74(stepLabelVariants({ status })), children: step.label }),
|
|
11523
11661
|
step.description !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
11524
11662
|
"span",
|
|
11525
11663
|
{
|
|
11526
11664
|
"data-slot": "step-description",
|
|
11527
|
-
className:
|
|
11665
|
+
className: cn74(stepDescriptionVariants({ status })),
|
|
11528
11666
|
children: step.description
|
|
11529
11667
|
}
|
|
11530
11668
|
)
|
|
@@ -11535,7 +11673,7 @@ function MosaicStepPipelineDots({
|
|
|
11535
11673
|
"div",
|
|
11536
11674
|
{
|
|
11537
11675
|
"data-slot": "step-indicator",
|
|
11538
|
-
className:
|
|
11676
|
+
className: cn74(stepIndicatorVariants({ status, orientation })),
|
|
11539
11677
|
"aria-hidden": "true",
|
|
11540
11678
|
children: status === "done" ? "\u2713" : /* @__PURE__ */ jsxRuntime.jsx("span", { children: index + 1 })
|
|
11541
11679
|
}
|
|
@@ -11544,7 +11682,7 @@ function MosaicStepPipelineDots({
|
|
|
11544
11682
|
"div",
|
|
11545
11683
|
{
|
|
11546
11684
|
"data-slot": "step-connector",
|
|
11547
|
-
className:
|
|
11685
|
+
className: cn74(
|
|
11548
11686
|
stepConnectorVariants({
|
|
11549
11687
|
status: status === "done" ? "done" : "upcoming",
|
|
11550
11688
|
orientation
|
|
@@ -11554,12 +11692,12 @@ function MosaicStepPipelineDots({
|
|
|
11554
11692
|
)
|
|
11555
11693
|
] }),
|
|
11556
11694
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-0.5 pt-1 pb-4", children: [
|
|
11557
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { "data-slot": "step-label", className:
|
|
11695
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { "data-slot": "step-label", className: cn74(stepLabelVariants({ status })), children: step.label }),
|
|
11558
11696
|
step.description !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
11559
11697
|
"span",
|
|
11560
11698
|
{
|
|
11561
11699
|
"data-slot": "step-description",
|
|
11562
|
-
className:
|
|
11700
|
+
className: cn74(stepDescriptionVariants({ status })),
|
|
11563
11701
|
children: step.description
|
|
11564
11702
|
}
|
|
11565
11703
|
)
|
|
@@ -11573,7 +11711,7 @@ function MosaicStepPipelineDots({
|
|
|
11573
11711
|
);
|
|
11574
11712
|
}
|
|
11575
11713
|
MosaicStepPipelineDots.displayName = "MosaicStepPipelineDots";
|
|
11576
|
-
function
|
|
11714
|
+
function cn75(...classes) {
|
|
11577
11715
|
return classes.filter(Boolean).join(" ");
|
|
11578
11716
|
}
|
|
11579
11717
|
function MosaicKanbanBoard({ children, className, ref, ...props }) {
|
|
@@ -11582,7 +11720,7 @@ function MosaicKanbanBoard({ children, className, ref, ...props }) {
|
|
|
11582
11720
|
{
|
|
11583
11721
|
ref,
|
|
11584
11722
|
"data-slot": "kanban-board",
|
|
11585
|
-
className:
|
|
11723
|
+
className: cn75(
|
|
11586
11724
|
"flex gap-4 overflow-x-auto pb-4",
|
|
11587
11725
|
"min-h-0",
|
|
11588
11726
|
// Smooth momentum scrolling on iOS
|
|
@@ -11595,7 +11733,7 @@ function MosaicKanbanBoard({ children, className, ref, ...props }) {
|
|
|
11595
11733
|
);
|
|
11596
11734
|
}
|
|
11597
11735
|
MosaicKanbanBoard.displayName = "MosaicKanbanBoard";
|
|
11598
|
-
function
|
|
11736
|
+
function cn76(...classes) {
|
|
11599
11737
|
return classes.filter(Boolean).join(" ");
|
|
11600
11738
|
}
|
|
11601
11739
|
function MosaicKanbanColumn({
|
|
@@ -11613,7 +11751,7 @@ function MosaicKanbanColumn({
|
|
|
11613
11751
|
{
|
|
11614
11752
|
ref,
|
|
11615
11753
|
"data-slot": "kanban-column",
|
|
11616
|
-
className:
|
|
11754
|
+
className: cn76(
|
|
11617
11755
|
// Fixed column width, never shrink so board stays scrollable
|
|
11618
11756
|
"flex flex-col w-72 shrink-0",
|
|
11619
11757
|
// Surface
|
|
@@ -11634,7 +11772,7 @@ function MosaicKanbanColumn({
|
|
|
11634
11772
|
{
|
|
11635
11773
|
"data-slot": "kanban-column-count",
|
|
11636
11774
|
"aria-label": countLabel(count),
|
|
11637
|
-
className:
|
|
11775
|
+
className: cn76(
|
|
11638
11776
|
"inline-flex items-center justify-center",
|
|
11639
11777
|
"min-w-[1.25rem] h-5 px-1.5 rounded-full",
|
|
11640
11778
|
"bg-muted text-muted-foreground",
|
|
@@ -11677,12 +11815,12 @@ function MosaicKanbanColumn({
|
|
|
11677
11815
|
);
|
|
11678
11816
|
}
|
|
11679
11817
|
MosaicKanbanColumn.displayName = "MosaicKanbanColumn";
|
|
11680
|
-
var WorkspaceCtx =
|
|
11818
|
+
var WorkspaceCtx = React30__namespace.createContext({
|
|
11681
11819
|
workspaceId: null,
|
|
11682
11820
|
isLoading: false
|
|
11683
11821
|
});
|
|
11684
11822
|
function useMosaicWorkspace() {
|
|
11685
|
-
return
|
|
11823
|
+
return React30__namespace.useContext(WorkspaceCtx);
|
|
11686
11824
|
}
|
|
11687
11825
|
var defaultClerkAppearance = {
|
|
11688
11826
|
variables: {
|
|
@@ -11695,9 +11833,9 @@ var defaultClerkAppearance = {
|
|
|
11695
11833
|
}
|
|
11696
11834
|
};
|
|
11697
11835
|
function WorkspaceResolver({ resolveWorkspaceId, initialOrgId, children }) {
|
|
11698
|
-
const [workspaceId, setWorkspaceId] =
|
|
11699
|
-
const [isLoading, setIsLoading] =
|
|
11700
|
-
|
|
11836
|
+
const [workspaceId, setWorkspaceId] = React30__namespace.useState(null);
|
|
11837
|
+
const [isLoading, setIsLoading] = React30__namespace.useState(false);
|
|
11838
|
+
React30__namespace.useEffect(() => {
|
|
11701
11839
|
if (!resolveWorkspaceId) {
|
|
11702
11840
|
setWorkspaceId(initialOrgId ?? null);
|
|
11703
11841
|
return;
|
|
@@ -11856,7 +11994,7 @@ var documentUploadProgressFillVariants = classVarianceAuthority.cva(
|
|
|
11856
11994
|
defaultVariants: {}
|
|
11857
11995
|
}
|
|
11858
11996
|
);
|
|
11859
|
-
function
|
|
11997
|
+
function cn77(...classes) {
|
|
11860
11998
|
return classes.filter(Boolean).join(" ");
|
|
11861
11999
|
}
|
|
11862
12000
|
function MosaicDocumentUpload({
|
|
@@ -11876,9 +12014,9 @@ function MosaicDocumentUpload({
|
|
|
11876
12014
|
className,
|
|
11877
12015
|
ref
|
|
11878
12016
|
}) {
|
|
11879
|
-
const [isDragActive, setIsDragActive] =
|
|
11880
|
-
const inputRef =
|
|
11881
|
-
const inputId =
|
|
12017
|
+
const [isDragActive, setIsDragActive] = React30.useState(false);
|
|
12018
|
+
const inputRef = React30.useRef(null);
|
|
12019
|
+
const inputId = React30.useId();
|
|
11882
12020
|
function handleDragOver(event) {
|
|
11883
12021
|
event.preventDefault();
|
|
11884
12022
|
setIsDragActive(true);
|
|
@@ -11897,7 +12035,7 @@ function MosaicDocumentUpload({
|
|
|
11897
12035
|
if (selected.length > 0) onFilesSelected(selected);
|
|
11898
12036
|
event.target.value = "";
|
|
11899
12037
|
}
|
|
11900
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "document-upload", className:
|
|
12038
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "document-upload", className: cn77("flex flex-col gap-4", className), children: [
|
|
11901
12039
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
11902
12040
|
"div",
|
|
11903
12041
|
{
|
|
@@ -11962,7 +12100,7 @@ function MosaicDocumentUpload({
|
|
|
11962
12100
|
"aria-valuemin": 0,
|
|
11963
12101
|
"aria-valuemax": 100,
|
|
11964
12102
|
"aria-valuenow": file.progress ?? 0,
|
|
11965
|
-
className:
|
|
12103
|
+
className: cn77(documentUploadProgressTrackVariants(), "mt-2"),
|
|
11966
12104
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
11967
12105
|
"div",
|
|
11968
12106
|
{
|
|
@@ -12039,7 +12177,7 @@ var urlScraperCardVariants = classVarianceAuthority.cva(["flex flex-col gap-2 ro
|
|
|
12039
12177
|
tone: "neutral"
|
|
12040
12178
|
}
|
|
12041
12179
|
});
|
|
12042
|
-
function
|
|
12180
|
+
function cn78(...classes) {
|
|
12043
12181
|
return classes.filter(Boolean).join(" ");
|
|
12044
12182
|
}
|
|
12045
12183
|
function isSyntacticallyValidUrl(candidate) {
|
|
@@ -12062,7 +12200,7 @@ function MosaicUrlScraper(props) {
|
|
|
12062
12200
|
className,
|
|
12063
12201
|
ref
|
|
12064
12202
|
} = props;
|
|
12065
|
-
const [isLocallyInvalid, setIsLocallyInvalid] =
|
|
12203
|
+
const [isLocallyInvalid, setIsLocallyInvalid] = React30.useState(false);
|
|
12066
12204
|
const isBusy = props.status === "loading" || props.status === "success";
|
|
12067
12205
|
function handleSubmit(event) {
|
|
12068
12206
|
event.preventDefault();
|
|
@@ -12078,7 +12216,7 @@ function MosaicUrlScraper(props) {
|
|
|
12078
12216
|
setIsLocallyInvalid(false);
|
|
12079
12217
|
onUrlChange(event.target.value);
|
|
12080
12218
|
}
|
|
12081
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "url-scraper", className:
|
|
12219
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "url-scraper", className: cn78("flex flex-col gap-4", className), children: [
|
|
12082
12220
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
12083
12221
|
"form",
|
|
12084
12222
|
{
|
|
@@ -12214,7 +12352,7 @@ var chatThreadScrollButtonVariants = classVarianceAuthority.cva([
|
|
|
12214
12352
|
"items-center justify-center rounded-full border border-border bg-card text-foreground shadow-sm",
|
|
12215
12353
|
"transition-colors hover:bg-accent/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
12216
12354
|
]);
|
|
12217
|
-
function
|
|
12355
|
+
function cn79(...classes) {
|
|
12218
12356
|
return classes.filter(Boolean).join(" ");
|
|
12219
12357
|
}
|
|
12220
12358
|
var BOTTOM_THRESHOLD_PX = 24;
|
|
@@ -12228,9 +12366,9 @@ function MosaicChatThread({
|
|
|
12228
12366
|
className,
|
|
12229
12367
|
ref
|
|
12230
12368
|
}) {
|
|
12231
|
-
const containerRef =
|
|
12232
|
-
const isAtBottomRef =
|
|
12233
|
-
const [isAtBottom, setIsAtBottom] =
|
|
12369
|
+
const containerRef = React30.useRef(null);
|
|
12370
|
+
const isAtBottomRef = React30.useRef(true);
|
|
12371
|
+
const [isAtBottom, setIsAtBottom] = React30.useState(true);
|
|
12234
12372
|
function setRefs(node) {
|
|
12235
12373
|
containerRef.current = node;
|
|
12236
12374
|
if (typeof ref === "function") {
|
|
@@ -12262,7 +12400,7 @@ function MosaicChatThread({
|
|
|
12262
12400
|
disengageBottomAnchor();
|
|
12263
12401
|
}
|
|
12264
12402
|
}
|
|
12265
|
-
|
|
12403
|
+
React30.useEffect(() => {
|
|
12266
12404
|
function handleSelectionChange() {
|
|
12267
12405
|
const container = containerRef.current;
|
|
12268
12406
|
if (!container) {
|
|
@@ -12284,7 +12422,7 @@ function MosaicChatThread({
|
|
|
12284
12422
|
document.removeEventListener("selectionchange", handleSelectionChange);
|
|
12285
12423
|
};
|
|
12286
12424
|
}, []);
|
|
12287
|
-
|
|
12425
|
+
React30.useLayoutEffect(() => {
|
|
12288
12426
|
const element = containerRef.current;
|
|
12289
12427
|
if (element && isAtBottomRef.current) {
|
|
12290
12428
|
element.scrollTop = element.scrollHeight;
|
|
@@ -12298,7 +12436,7 @@ function MosaicChatThread({
|
|
|
12298
12436
|
role: "log",
|
|
12299
12437
|
onScroll: handleScroll,
|
|
12300
12438
|
onKeyDown: handleKeyDown,
|
|
12301
|
-
className:
|
|
12439
|
+
className: cn79(chatThreadRootVariants(), className),
|
|
12302
12440
|
children: [
|
|
12303
12441
|
/* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "chat-thread-content", className: chatThreadContentVariants(), children }),
|
|
12304
12442
|
!isAtBottom && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -12339,7 +12477,7 @@ var chatComposerActionButtonVariants = classVarianceAuthority.cva(
|
|
|
12339
12477
|
}
|
|
12340
12478
|
}
|
|
12341
12479
|
);
|
|
12342
|
-
function
|
|
12480
|
+
function cn80(...classes) {
|
|
12343
12481
|
return classes.filter(Boolean).join(" ");
|
|
12344
12482
|
}
|
|
12345
12483
|
function MosaicChatComposer(props) {
|
|
@@ -12352,9 +12490,9 @@ function MosaicChatComposer(props) {
|
|
|
12352
12490
|
className,
|
|
12353
12491
|
ref
|
|
12354
12492
|
} = props;
|
|
12355
|
-
const textareaRef =
|
|
12493
|
+
const textareaRef = React30.useRef(null);
|
|
12356
12494
|
const trimmedValue = value.trim();
|
|
12357
|
-
|
|
12495
|
+
React30.useEffect(() => {
|
|
12358
12496
|
const textarea = textareaRef.current;
|
|
12359
12497
|
if (!textarea) {
|
|
12360
12498
|
return;
|
|
@@ -12362,7 +12500,7 @@ function MosaicChatComposer(props) {
|
|
|
12362
12500
|
textarea.style.height = "auto";
|
|
12363
12501
|
textarea.style.height = `${textarea.scrollHeight}px`;
|
|
12364
12502
|
}, [value]);
|
|
12365
|
-
const submitValue =
|
|
12503
|
+
const submitValue = React30.useCallback(() => {
|
|
12366
12504
|
if (props.status !== "idle") {
|
|
12367
12505
|
return;
|
|
12368
12506
|
}
|
|
@@ -12372,14 +12510,14 @@ function MosaicChatComposer(props) {
|
|
|
12372
12510
|
}
|
|
12373
12511
|
props.onSubmit(text);
|
|
12374
12512
|
}, [disabled, props, value]);
|
|
12375
|
-
const handleSubmit =
|
|
12513
|
+
const handleSubmit = React30.useCallback(
|
|
12376
12514
|
(event) => {
|
|
12377
12515
|
event.preventDefault();
|
|
12378
12516
|
submitValue();
|
|
12379
12517
|
},
|
|
12380
12518
|
[submitValue]
|
|
12381
12519
|
);
|
|
12382
|
-
const handleKeyDown =
|
|
12520
|
+
const handleKeyDown = React30.useCallback(
|
|
12383
12521
|
(event) => {
|
|
12384
12522
|
if (event.key === "Enter" && !event.shiftKey) {
|
|
12385
12523
|
event.preventDefault();
|
|
@@ -12394,7 +12532,7 @@ function MosaicChatComposer(props) {
|
|
|
12394
12532
|
{
|
|
12395
12533
|
ref,
|
|
12396
12534
|
"data-slot": "chat-composer",
|
|
12397
|
-
className:
|
|
12535
|
+
className: cn80(chatComposerRootVariants(), className),
|
|
12398
12536
|
onSubmit: handleSubmit,
|
|
12399
12537
|
children: [
|
|
12400
12538
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -12510,7 +12648,7 @@ var markdownTableCellVariants = classVarianceAuthority.cva(["border border-borde
|
|
|
12510
12648
|
align: "left"
|
|
12511
12649
|
}
|
|
12512
12650
|
});
|
|
12513
|
-
function
|
|
12651
|
+
function cn81(...classes) {
|
|
12514
12652
|
return classes.filter(Boolean).join(" ");
|
|
12515
12653
|
}
|
|
12516
12654
|
function sanitizeHref(rawHref) {
|
|
@@ -12705,7 +12843,7 @@ function parseBlocks(content) {
|
|
|
12705
12843
|
function MosaicMarkdown({ content, renderCodeBlock, className, ref }) {
|
|
12706
12844
|
const blocks = parseBlocks(content);
|
|
12707
12845
|
const ids = makeIdSource();
|
|
12708
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, "data-slot": "markdown", className:
|
|
12846
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, "data-slot": "markdown", className: cn81(markdownRootVariants(), className), children: blocks.map((block) => {
|
|
12709
12847
|
if (block.kind === "heading") {
|
|
12710
12848
|
const HeadingTag = `h${block.level}`;
|
|
12711
12849
|
return /* @__PURE__ */ jsxRuntime.jsx(HeadingTag, { className: markdownHeadingVariants({ level: block.level }), children: parseInline(block.text, ids) }, block.id);
|
|
@@ -12783,7 +12921,7 @@ var chatMessageToolStatusVariants = classVarianceAuthority.cva(["text-xs font-me
|
|
|
12783
12921
|
status: "running"
|
|
12784
12922
|
}
|
|
12785
12923
|
});
|
|
12786
|
-
function
|
|
12924
|
+
function cn82(...classes) {
|
|
12787
12925
|
return classes.filter(Boolean).join(" ");
|
|
12788
12926
|
}
|
|
12789
12927
|
function partKey(part, index) {
|
|
@@ -12949,7 +13087,7 @@ function MosaicChatMessage({
|
|
|
12949
13087
|
ref,
|
|
12950
13088
|
"data-slot": "chat-message",
|
|
12951
13089
|
"data-role": messageRole,
|
|
12952
|
-
className:
|
|
13090
|
+
className: cn82(chatMessageContainerVariants({ align: isUser ? "end" : "start" }), className),
|
|
12953
13091
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: chatMessageBubbleVariants({ role: messageRole }), children: parts.map((part, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
12954
13092
|
ChatMessagePartView,
|
|
12955
13093
|
{
|
|
@@ -13004,7 +13142,7 @@ var approvalPromptButtonVariants = classVarianceAuthority.cva(
|
|
|
13004
13142
|
}
|
|
13005
13143
|
}
|
|
13006
13144
|
);
|
|
13007
|
-
function
|
|
13145
|
+
function cn83(...classes) {
|
|
13008
13146
|
return classes.filter(Boolean).join(" ");
|
|
13009
13147
|
}
|
|
13010
13148
|
function MosaicApprovalPrompt(props) {
|
|
@@ -13016,7 +13154,7 @@ function MosaicApprovalPrompt(props) {
|
|
|
13016
13154
|
ref,
|
|
13017
13155
|
"data-slot": "approval-prompt",
|
|
13018
13156
|
"aria-label": promptTitle,
|
|
13019
|
-
className:
|
|
13157
|
+
className: cn83("border-0 p-0 m-0", approvalPromptCardVariants({ tone }), className),
|
|
13020
13158
|
children: [
|
|
13021
13159
|
/* @__PURE__ */ jsxRuntime.jsx("legend", { "data-slot": "approval-prompt-title", className: "text-base font-semibold md:text-lg", children: promptTitle }),
|
|
13022
13160
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "approval-prompt-tool", className: "flex flex-col gap-1", children: [
|
|
@@ -13093,7 +13231,7 @@ var toolToggleListRowVariants = classVarianceAuthority.cva(
|
|
|
13093
13231
|
}
|
|
13094
13232
|
}
|
|
13095
13233
|
);
|
|
13096
|
-
function
|
|
13234
|
+
function cn84(...classes) {
|
|
13097
13235
|
return classes.filter(Boolean).join(" ");
|
|
13098
13236
|
}
|
|
13099
13237
|
function MosaicToolToggleList({
|
|
@@ -13109,7 +13247,7 @@ function MosaicToolToggleList({
|
|
|
13109
13247
|
}) {
|
|
13110
13248
|
const toolsById = new Map(tools.map((tool) => [tool.id, tool]));
|
|
13111
13249
|
const approvalLabelById = new Map(approvalLevels.map((level) => [level.id, level.label]));
|
|
13112
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, "data-slot": "tool-toggle-list", className:
|
|
13250
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, "data-slot": "tool-toggle-list", className: cn84("flex flex-col gap-6", className), children: sections.map((section) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
13113
13251
|
"div",
|
|
13114
13252
|
{
|
|
13115
13253
|
"data-slot": "tool-toggle-list-section",
|
|
@@ -13140,7 +13278,7 @@ function MosaicToolToggleList({
|
|
|
13140
13278
|
onCheckedChange: (checked) => onToggleTool(tool.id, checked),
|
|
13141
13279
|
"aria-label": toggleAriaLabel(tool.name),
|
|
13142
13280
|
"data-slot": "tool-toggle-list-switch",
|
|
13143
|
-
className:
|
|
13281
|
+
className: cn84(
|
|
13144
13282
|
"relative inline-flex h-6 w-10 shrink-0 cursor-pointer items-center",
|
|
13145
13283
|
"rounded-full border-2 border-transparent outline-none",
|
|
13146
13284
|
"bg-muted transition-colors",
|
|
@@ -13151,7 +13289,7 @@ function MosaicToolToggleList({
|
|
|
13151
13289
|
_switch.Switch.Thumb,
|
|
13152
13290
|
{
|
|
13153
13291
|
"data-slot": "tool-toggle-list-switch-thumb",
|
|
13154
|
-
className:
|
|
13292
|
+
className: cn84(
|
|
13155
13293
|
"pointer-events-none block h-4 w-4 rounded-full",
|
|
13156
13294
|
"bg-background shadow-sm",
|
|
13157
13295
|
"translate-x-0 transition-transform",
|
|
@@ -13193,7 +13331,7 @@ function MosaicToolToggleList({
|
|
|
13193
13331
|
{
|
|
13194
13332
|
"aria-label": approvalSelectAriaLabel(tool.name),
|
|
13195
13333
|
"data-slot": "tool-toggle-list-approval-trigger",
|
|
13196
|
-
className:
|
|
13334
|
+
className: cn84(
|
|
13197
13335
|
"inline-flex h-9 min-w-[10rem] items-center justify-between gap-2",
|
|
13198
13336
|
"rounded-md border border-border bg-background px-3 py-2",
|
|
13199
13337
|
"text-sm text-foreground shadow-xs outline-none",
|
|
@@ -13211,7 +13349,7 @@ function MosaicToolToggleList({
|
|
|
13211
13349
|
select.Select.Popup,
|
|
13212
13350
|
{
|
|
13213
13351
|
"data-slot": "tool-toggle-list-approval-popup",
|
|
13214
|
-
className:
|
|
13352
|
+
className: cn84(
|
|
13215
13353
|
"z-50 min-w-[10rem] overflow-hidden rounded-md border border-border",
|
|
13216
13354
|
"bg-popover p-1 text-popover-foreground shadow-md",
|
|
13217
13355
|
"origin-[var(--transform-origin)]",
|
|
@@ -13224,7 +13362,7 @@ function MosaicToolToggleList({
|
|
|
13224
13362
|
select.Select.Item,
|
|
13225
13363
|
{
|
|
13226
13364
|
value: level.id,
|
|
13227
|
-
className:
|
|
13365
|
+
className: cn84(
|
|
13228
13366
|
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
|
|
13229
13367
|
"text-sm text-popover-foreground outline-none",
|
|
13230
13368
|
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
|
|
@@ -13332,7 +13470,7 @@ var apiKeyPanelMessageVariants = classVarianceAuthority.cva(["text-sm"], {
|
|
|
13332
13470
|
tone: "muted"
|
|
13333
13471
|
}
|
|
13334
13472
|
});
|
|
13335
|
-
function
|
|
13473
|
+
function cn85(...classes) {
|
|
13336
13474
|
return classes.filter(Boolean).join(" ");
|
|
13337
13475
|
}
|
|
13338
13476
|
function MosaicApiKeyPanel(props) {
|
|
@@ -13360,7 +13498,7 @@ function MosaicApiKeyPanel(props) {
|
|
|
13360
13498
|
function handleKeyChange(event) {
|
|
13361
13499
|
onKeyChange(event.target.value);
|
|
13362
13500
|
}
|
|
13363
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "api-key-panel", className:
|
|
13501
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "api-key-panel", className: cn85("flex flex-col gap-3", className), children: [
|
|
13364
13502
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
13365
13503
|
"div",
|
|
13366
13504
|
{
|
|
@@ -13455,7 +13593,7 @@ MosaicApiKeyPanel.displayName = "MosaicApiKeyPanel";
|
|
|
13455
13593
|
var agentChatRootVariants = classVarianceAuthority.cva([
|
|
13456
13594
|
"flex min-h-0 w-full flex-1 flex-col gap-2 overflow-hidden rounded-lg border border-border bg-card"
|
|
13457
13595
|
]);
|
|
13458
|
-
function
|
|
13596
|
+
function cn86(...classes) {
|
|
13459
13597
|
return classes.filter(Boolean).join(" ");
|
|
13460
13598
|
}
|
|
13461
13599
|
function formatPayload2(value) {
|
|
@@ -13575,9 +13713,9 @@ function MosaicAgentChat(props) {
|
|
|
13575
13713
|
className,
|
|
13576
13714
|
ref
|
|
13577
13715
|
} = props;
|
|
13578
|
-
const [decisions, setDecisions] =
|
|
13579
|
-
const resumedSessionIdRef =
|
|
13580
|
-
|
|
13716
|
+
const [decisions, setDecisions] = React30.useState({});
|
|
13717
|
+
const resumedSessionIdRef = React30.useRef(void 0);
|
|
13718
|
+
React30.useEffect(() => {
|
|
13581
13719
|
if (!sessionId || !onResumeSession) {
|
|
13582
13720
|
return;
|
|
13583
13721
|
}
|
|
@@ -13591,7 +13729,7 @@ function MosaicAgentChat(props) {
|
|
|
13591
13729
|
setDecisions((previous) => ({ ...previous, [payload.requestId]: decision }));
|
|
13592
13730
|
onApprovalResponse(payload);
|
|
13593
13731
|
}
|
|
13594
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "agent-chat", className:
|
|
13732
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "agent-chat", className: cn86(agentChatRootVariants(), className), children: [
|
|
13595
13733
|
/* @__PURE__ */ jsxRuntime.jsx(MosaicChatThread, { scrollToBottomLabel, children: messages.map((message) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
13596
13734
|
MosaicChatMessage,
|
|
13597
13735
|
{
|
|
@@ -13680,7 +13818,7 @@ var toastProviderPositionVariants = classVarianceAuthority.cva(
|
|
|
13680
13818
|
}
|
|
13681
13819
|
}
|
|
13682
13820
|
);
|
|
13683
|
-
function
|
|
13821
|
+
function cn87(...classes) {
|
|
13684
13822
|
return classes.filter(Boolean).join(" ");
|
|
13685
13823
|
}
|
|
13686
13824
|
function MosaicToast({
|
|
@@ -13694,7 +13832,7 @@ function MosaicToast({
|
|
|
13694
13832
|
className,
|
|
13695
13833
|
ref
|
|
13696
13834
|
}) {
|
|
13697
|
-
|
|
13835
|
+
React30.useEffect(() => {
|
|
13698
13836
|
if (durationMs === void 0) return;
|
|
13699
13837
|
const timer = setTimeout(onDismiss, durationMs);
|
|
13700
13838
|
return () => clearTimeout(timer);
|
|
@@ -13706,7 +13844,7 @@ function MosaicToast({
|
|
|
13706
13844
|
ref,
|
|
13707
13845
|
"data-slot": "toast",
|
|
13708
13846
|
role,
|
|
13709
|
-
className:
|
|
13847
|
+
className: cn87(toastCardVariants({ variant }), className),
|
|
13710
13848
|
children: [
|
|
13711
13849
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "toast-body", className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
13712
13850
|
/* @__PURE__ */ jsxRuntime.jsx("p", { "data-slot": "toast-title", className: toastTitleVariants({ variant }), children: title }),
|
|
@@ -13746,7 +13884,7 @@ function MosaicToast({
|
|
|
13746
13884
|
);
|
|
13747
13885
|
}
|
|
13748
13886
|
MosaicToast.displayName = "MosaicToast";
|
|
13749
|
-
function
|
|
13887
|
+
function cn88(...classes) {
|
|
13750
13888
|
return classes.filter(Boolean).join(" ");
|
|
13751
13889
|
}
|
|
13752
13890
|
function MosaicToastProvider({
|
|
@@ -13760,7 +13898,7 @@ function MosaicToastProvider({
|
|
|
13760
13898
|
{
|
|
13761
13899
|
ref,
|
|
13762
13900
|
"data-slot": "toast-provider",
|
|
13763
|
-
className:
|
|
13901
|
+
className: cn88(toastProviderPositionVariants({ position }), className),
|
|
13764
13902
|
children
|
|
13765
13903
|
}
|
|
13766
13904
|
);
|
|
@@ -13787,7 +13925,7 @@ var pdfViewerToolbarButtonVariants = classVarianceAuthority.cva([
|
|
|
13787
13925
|
"inline-flex min-h-8 min-w-8 items-center justify-center rounded-md border border-border text-sm",
|
|
13788
13926
|
"transition-colors hover:bg-accent/50 disabled:opacity-50 disabled:hover:bg-transparent"
|
|
13789
13927
|
]);
|
|
13790
|
-
function
|
|
13928
|
+
function cn89(...classes) {
|
|
13791
13929
|
return classes.filter(Boolean).join(" ");
|
|
13792
13930
|
}
|
|
13793
13931
|
function buildFrameSrc(fileUrl, currentPage, zoom) {
|
|
@@ -13810,14 +13948,14 @@ function MosaicPdfViewer({
|
|
|
13810
13948
|
className,
|
|
13811
13949
|
ref
|
|
13812
13950
|
}) {
|
|
13813
|
-
const [status, setStatus] =
|
|
13814
|
-
const [trackedFileUrl, setTrackedFileUrl] =
|
|
13815
|
-
const frameRef =
|
|
13951
|
+
const [status, setStatus] = React30.useState("loading");
|
|
13952
|
+
const [trackedFileUrl, setTrackedFileUrl] = React30.useState(fileUrl);
|
|
13953
|
+
const frameRef = React30.useRef(null);
|
|
13816
13954
|
if (fileUrl !== trackedFileUrl) {
|
|
13817
13955
|
setTrackedFileUrl(fileUrl);
|
|
13818
13956
|
setStatus("loading");
|
|
13819
13957
|
}
|
|
13820
|
-
|
|
13958
|
+
React30.useEffect(() => {
|
|
13821
13959
|
const node = frameRef.current;
|
|
13822
13960
|
if (!node) return;
|
|
13823
13961
|
function handleLoad() {
|
|
@@ -13852,7 +13990,7 @@ function MosaicPdfViewer({
|
|
|
13852
13990
|
if (zoom === void 0 || onZoomChange === void 0) return;
|
|
13853
13991
|
onZoomChange(Math.round((zoom + 0.1) * 100) / 100);
|
|
13854
13992
|
}
|
|
13855
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "pdf-viewer", className:
|
|
13993
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "pdf-viewer", className: cn89("flex flex-col gap-2", className), children: [
|
|
13856
13994
|
(showPageControls || showZoomControls) && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
13857
13995
|
"div",
|
|
13858
13996
|
{
|
|
@@ -13941,7 +14079,7 @@ function MosaicPdfViewer({
|
|
|
13941
14079
|
"data-slot": "pdf-viewer-frame",
|
|
13942
14080
|
src: buildFrameSrc(fileUrl, currentPage, zoom),
|
|
13943
14081
|
title: fileUrl,
|
|
13944
|
-
className:
|
|
14082
|
+
className: cn89(
|
|
13945
14083
|
"h-full min-h-64 w-full border-0",
|
|
13946
14084
|
status !== "loaded" && "pointer-events-none absolute inset-0 opacity-0"
|
|
13947
14085
|
)
|
|
@@ -13960,7 +14098,7 @@ var splitPaneCollapseButtonVariants = classVarianceAuthority.cva([
|
|
|
13960
14098
|
"inline-flex h-11 w-6 shrink-0 items-center justify-center self-center rounded-md border border-border text-sm",
|
|
13961
14099
|
"transition-colors hover:bg-accent/50"
|
|
13962
14100
|
]);
|
|
13963
|
-
function
|
|
14101
|
+
function cn90(...classes) {
|
|
13964
14102
|
return classes.filter(Boolean).join(" ");
|
|
13965
14103
|
}
|
|
13966
14104
|
function mergeRefs(externalRef, node) {
|
|
@@ -13989,9 +14127,9 @@ function MosaicResizableSplitPane({
|
|
|
13989
14127
|
className,
|
|
13990
14128
|
ref
|
|
13991
14129
|
}) {
|
|
13992
|
-
const rootRef =
|
|
13993
|
-
const isDraggingRef =
|
|
13994
|
-
|
|
14130
|
+
const rootRef = React30.useRef(null);
|
|
14131
|
+
const isDraggingRef = React30.useRef(false);
|
|
14132
|
+
React30.useEffect(() => {
|
|
13995
14133
|
function handlePointerMove(event) {
|
|
13996
14134
|
if (!isDraggingRef.current) return;
|
|
13997
14135
|
const rootNode = rootRef.current;
|
|
@@ -14033,7 +14171,7 @@ function MosaicResizableSplitPane({
|
|
|
14033
14171
|
mergeRefs(ref, node);
|
|
14034
14172
|
},
|
|
14035
14173
|
"data-slot": "resizable-split-pane",
|
|
14036
|
-
className:
|
|
14174
|
+
className: cn90(splitPaneRootVariants(), className),
|
|
14037
14175
|
children: [
|
|
14038
14176
|
/* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "resizable-split-pane-main", className: "min-h-0 min-w-0 flex-1 overflow-auto", children: main }),
|
|
14039
14177
|
!isSideCollapsed && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -14100,7 +14238,7 @@ var tagInputFieldVariants = classVarianceAuthority.cva([
|
|
|
14100
14238
|
"min-w-[6ch] flex-1 border-none bg-transparent px-1 py-0.5 text-sm text-foreground outline-none",
|
|
14101
14239
|
"placeholder:text-muted-foreground"
|
|
14102
14240
|
]);
|
|
14103
|
-
function
|
|
14241
|
+
function cn91(...classes) {
|
|
14104
14242
|
return classes.filter(Boolean).join(" ");
|
|
14105
14243
|
}
|
|
14106
14244
|
function mergeRefs2(externalRef, node) {
|
|
@@ -14121,12 +14259,12 @@ function MosaicTagInput({
|
|
|
14121
14259
|
className,
|
|
14122
14260
|
ref
|
|
14123
14261
|
}) {
|
|
14124
|
-
const [inputValue, setInputValue] =
|
|
14125
|
-
const inputRef =
|
|
14262
|
+
const [inputValue, setInputValue] = React30.useState("");
|
|
14263
|
+
const inputRef = React30.useRef(null);
|
|
14126
14264
|
const filter = combobox.Combobox.useFilter({ sensitivity: "base" });
|
|
14127
14265
|
const isMaxReached = maxTags !== void 0 && tags.length >= maxTags;
|
|
14128
14266
|
const trimmedValue = inputValue.trim();
|
|
14129
|
-
const filteredSuggestions =
|
|
14267
|
+
const filteredSuggestions = React30.useMemo(() => {
|
|
14130
14268
|
if (!suggestions || trimmedValue.length === 0) return [];
|
|
14131
14269
|
return suggestions.filter(
|
|
14132
14270
|
(suggestion) => !tags.includes(suggestion) && filter.contains(suggestion, trimmedValue)
|
|
@@ -14151,7 +14289,7 @@ function MosaicTagInput({
|
|
|
14151
14289
|
if (lastTag !== void 0) onRemoveTag(lastTag);
|
|
14152
14290
|
}
|
|
14153
14291
|
}
|
|
14154
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "tag-input", className:
|
|
14292
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "tag-input", className: cn91(tagInputRootVariants(), className), children: [
|
|
14155
14293
|
tags.map((tag) => /* @__PURE__ */ jsxRuntime.jsxs("span", { "data-slot": "tag-input-tag", className: tagInputTagVariants(), children: [
|
|
14156
14294
|
tag,
|
|
14157
14295
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -14188,7 +14326,7 @@ function MosaicTagInput({
|
|
|
14188
14326
|
"ul",
|
|
14189
14327
|
{
|
|
14190
14328
|
"data-slot": "tag-input-suggestions",
|
|
14191
|
-
className:
|
|
14329
|
+
className: cn91(
|
|
14192
14330
|
"z-50 mt-1 w-full min-w-[8rem] overflow-hidden rounded-md border border-border",
|
|
14193
14331
|
"bg-popover p-1 text-sm text-popover-foreground shadow-md"
|
|
14194
14332
|
),
|
|
@@ -14228,7 +14366,7 @@ var drawerPopupVariants = classVarianceAuthority.cva(
|
|
|
14228
14366
|
}
|
|
14229
14367
|
);
|
|
14230
14368
|
var drawerBackdropVariants = classVarianceAuthority.cva(["fixed inset-0 z-50 bg-black/50"]);
|
|
14231
|
-
function
|
|
14369
|
+
function cn92(...classes) {
|
|
14232
14370
|
return classes.filter(Boolean).join(" ");
|
|
14233
14371
|
}
|
|
14234
14372
|
function MosaicDrawer({
|
|
@@ -14240,7 +14378,7 @@ function MosaicDrawer({
|
|
|
14240
14378
|
side = "right",
|
|
14241
14379
|
className
|
|
14242
14380
|
}) {
|
|
14243
|
-
const titleId =
|
|
14381
|
+
const titleId = React30__namespace.useId();
|
|
14244
14382
|
return /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog.Root, { open, onOpenChange: (nextOpen) => onOpenChange(nextOpen), modal: true, children: /* @__PURE__ */ jsxRuntime.jsxs(dialog.Dialog.Portal, { children: [
|
|
14245
14383
|
/* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog.Backdrop, { "data-slot": "drawer-backdrop", className: drawerBackdropVariants() }),
|
|
14246
14384
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -14249,7 +14387,7 @@ function MosaicDrawer({
|
|
|
14249
14387
|
"data-slot": "drawer",
|
|
14250
14388
|
"aria-labelledby": titleId,
|
|
14251
14389
|
"aria-modal": "true",
|
|
14252
|
-
className:
|
|
14390
|
+
className: cn92(drawerPopupVariants({ side }), className),
|
|
14253
14391
|
children: [
|
|
14254
14392
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
14255
14393
|
"div",
|
|
@@ -14262,7 +14400,7 @@ function MosaicDrawer({
|
|
|
14262
14400
|
dialog.Dialog.Close,
|
|
14263
14401
|
{
|
|
14264
14402
|
"aria-label": closeAriaLabel,
|
|
14265
|
-
className:
|
|
14403
|
+
className: cn92(
|
|
14266
14404
|
"flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors",
|
|
14267
14405
|
"hover:bg-muted hover:text-foreground",
|
|
14268
14406
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -14316,7 +14454,7 @@ var templateCategoryChipVariants = classVarianceAuthority.cva(
|
|
|
14316
14454
|
}
|
|
14317
14455
|
}
|
|
14318
14456
|
);
|
|
14319
|
-
function
|
|
14457
|
+
function cn93(...classes) {
|
|
14320
14458
|
return classes.filter(Boolean).join(" ");
|
|
14321
14459
|
}
|
|
14322
14460
|
function MosaicTemplateCategoryChips({
|
|
@@ -14331,7 +14469,7 @@ function MosaicTemplateCategoryChips({
|
|
|
14331
14469
|
{
|
|
14332
14470
|
ref,
|
|
14333
14471
|
"data-slot": "template-category-chips",
|
|
14334
|
-
className:
|
|
14472
|
+
className: cn93("flex flex-wrap items-center gap-2", className),
|
|
14335
14473
|
children: categories.map((category) => {
|
|
14336
14474
|
const isSelected = category.id === selected;
|
|
14337
14475
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -14374,7 +14512,7 @@ var saveTemplateModalButtonVariants = classVarianceAuthority.cva(
|
|
|
14374
14512
|
}
|
|
14375
14513
|
}
|
|
14376
14514
|
);
|
|
14377
|
-
function
|
|
14515
|
+
function cn94(...classes) {
|
|
14378
14516
|
return classes.filter(Boolean).join(" ");
|
|
14379
14517
|
}
|
|
14380
14518
|
function MosaicSaveTemplateModal({
|
|
@@ -14415,8 +14553,8 @@ function MosaicSaveTemplateModal({
|
|
|
14415
14553
|
children,
|
|
14416
14554
|
className
|
|
14417
14555
|
}) {
|
|
14418
|
-
const nameErrorId =
|
|
14419
|
-
const descriptionErrorId =
|
|
14556
|
+
const nameErrorId = React30.useId();
|
|
14557
|
+
const descriptionErrorId = React30.useId();
|
|
14420
14558
|
if (!open) return null;
|
|
14421
14559
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
14422
14560
|
MosaicAdaptiveModal,
|
|
@@ -14430,7 +14568,7 @@ function MosaicSaveTemplateModal({
|
|
|
14430
14568
|
"div",
|
|
14431
14569
|
{
|
|
14432
14570
|
"data-slot": "save-template-modal",
|
|
14433
|
-
className:
|
|
14571
|
+
className: cn94(saveTemplateModalBodyVariants(), className),
|
|
14434
14572
|
children: [
|
|
14435
14573
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: saveTemplateModalFieldVariants(), children: [
|
|
14436
14574
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -14549,7 +14687,7 @@ var templateListVariants = classVarianceAuthority.cva(["grid gap-4"], {
|
|
|
14549
14687
|
layout: "grid"
|
|
14550
14688
|
}
|
|
14551
14689
|
});
|
|
14552
|
-
function
|
|
14690
|
+
function cn95(...classes) {
|
|
14553
14691
|
return classes.filter(Boolean).join(" ");
|
|
14554
14692
|
}
|
|
14555
14693
|
var NEXT_KEYS = /* @__PURE__ */ new Set(["ArrowRight", "ArrowDown"]);
|
|
@@ -14563,8 +14701,8 @@ function MosaicTemplateList({
|
|
|
14563
14701
|
itemClassName,
|
|
14564
14702
|
ref
|
|
14565
14703
|
}) {
|
|
14566
|
-
const itemRefs =
|
|
14567
|
-
const [focusedIndex, setFocusedIndex] =
|
|
14704
|
+
const itemRefs = React30.useRef([]);
|
|
14705
|
+
const [focusedIndex, setFocusedIndex] = React30.useState(0);
|
|
14568
14706
|
function focusItem(index) {
|
|
14569
14707
|
if (items.length === 0) {
|
|
14570
14708
|
return;
|
|
@@ -14594,7 +14732,7 @@ function MosaicTemplateList({
|
|
|
14594
14732
|
{
|
|
14595
14733
|
ref,
|
|
14596
14734
|
"data-slot": "template-list",
|
|
14597
|
-
className:
|
|
14735
|
+
className: cn95(templateListVariants({ layout }), className),
|
|
14598
14736
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
14599
14737
|
"p",
|
|
14600
14738
|
{
|
|
@@ -14611,7 +14749,7 @@ function MosaicTemplateList({
|
|
|
14611
14749
|
{
|
|
14612
14750
|
ref,
|
|
14613
14751
|
"data-slot": "template-list",
|
|
14614
|
-
className:
|
|
14752
|
+
className: cn95("list-none", templateListVariants({ layout }), className),
|
|
14615
14753
|
children: items.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
14616
14754
|
"li",
|
|
14617
14755
|
{
|
|
@@ -14649,6 +14787,7 @@ exports.MosaicActivityItem = MosaicActivityItem;
|
|
|
14649
14787
|
exports.MosaicAdaptiveGrid = MosaicAdaptiveGrid;
|
|
14650
14788
|
exports.MosaicAdaptiveModal = MosaicAdaptiveModal;
|
|
14651
14789
|
exports.MosaicAdaptiveNavigation = MosaicAdaptiveNavigation;
|
|
14790
|
+
exports.MosaicAgentBuilderModal = MosaicAgentBuilderModal;
|
|
14652
14791
|
exports.MosaicAgentCard = MosaicAgentCard;
|
|
14653
14792
|
exports.MosaicAgentChat = MosaicAgentChat;
|
|
14654
14793
|
exports.MosaicAgentComposer = MosaicAgentComposer;
|
|
@@ -14799,6 +14938,8 @@ exports.MosaicTooltipTrigger = MosaicTooltipTrigger;
|
|
|
14799
14938
|
exports.MosaicUrlScraper = MosaicUrlScraper;
|
|
14800
14939
|
exports.MosaicUserButton = MosaicUserButton;
|
|
14801
14940
|
exports.Placeholder = Placeholder;
|
|
14941
|
+
exports.agentBuilderModalBackdropVariants = agentBuilderModalBackdropVariants;
|
|
14942
|
+
exports.agentBuilderModalPopupVariants = agentBuilderModalPopupVariants;
|
|
14802
14943
|
exports.agentChatRootVariants = agentChatRootVariants;
|
|
14803
14944
|
exports.agentEditorVariants = agentEditorVariants;
|
|
14804
14945
|
exports.agentPreviewVariants = agentPreviewVariants;
|