@vantageos/mosaic-blocks 0.5.29-alpha → 0.5.31-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 +1244 -122
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1220 -18
- package/dist/index.d.ts +1220 -18
- package/dist/index.js +1209 -123
- package/dist/index.js.map +1 -1
- package/dist/styles.css +12 -0
- package/package.json +4 -1
- package/registry.json +149 -0
package/dist/index.js
CHANGED
|
@@ -29,7 +29,7 @@ import { AlertDialog } from '@base-ui/react/alert-dialog';
|
|
|
29
29
|
import { Popover } from '@base-ui/react/popover';
|
|
30
30
|
|
|
31
31
|
// src/version.ts
|
|
32
|
-
var version = "0.5.
|
|
32
|
+
var version = "0.5.31-alpha";
|
|
33
33
|
function Placeholder({ label = "mosaic-blocks placeholder" }) {
|
|
34
34
|
return /* @__PURE__ */ jsx("div", { "data-mosaic-block": "placeholder", children: label });
|
|
35
35
|
}
|
|
@@ -2550,10 +2550,14 @@ function MosaicDeviceProvider({ children }) {
|
|
|
2550
2550
|
return /* @__PURE__ */ jsx(DeviceContext.Provider, { value, children });
|
|
2551
2551
|
}
|
|
2552
2552
|
MosaicDeviceProvider.displayName = "MosaicDeviceProvider";
|
|
2553
|
+
var DEVICE_PROVIDER_ERRORS = {
|
|
2554
|
+
// allow-hardcoded-word: developer-facing invariant error, never rendered to an end user
|
|
2555
|
+
missingProvider: "useDevice must be used within a MosaicDeviceProvider"
|
|
2556
|
+
};
|
|
2553
2557
|
function useDevice() {
|
|
2554
2558
|
const ctx = React30.useContext(DeviceContext);
|
|
2555
2559
|
if (!ctx) {
|
|
2556
|
-
throw new Error(
|
|
2560
|
+
throw new Error(DEVICE_PROVIDER_ERRORS.missingProvider);
|
|
2557
2561
|
}
|
|
2558
2562
|
return ctx;
|
|
2559
2563
|
}
|
|
@@ -3084,6 +3088,9 @@ function MosaicAppSidebar({
|
|
|
3084
3088
|
recentItems = [],
|
|
3085
3089
|
logoSlot,
|
|
3086
3090
|
footerStatus,
|
|
3091
|
+
chevronPosition = "top",
|
|
3092
|
+
bottomNavItems = [],
|
|
3093
|
+
bottomNavAriaLabel,
|
|
3087
3094
|
sidebarAriaLabel,
|
|
3088
3095
|
mainNavAriaLabel,
|
|
3089
3096
|
quickActionsHeading,
|
|
@@ -3113,6 +3120,21 @@ function MosaicAppSidebar({
|
|
|
3113
3120
|
const handleNavClick = (href) => {
|
|
3114
3121
|
onNavigate?.(href);
|
|
3115
3122
|
};
|
|
3123
|
+
const collapseToggleButton = !isMobile && /* @__PURE__ */ jsx(
|
|
3124
|
+
"button",
|
|
3125
|
+
{
|
|
3126
|
+
type: "button",
|
|
3127
|
+
onClick: onToggleCollapse,
|
|
3128
|
+
"aria-label": isCollapsed ? expandSidebarAriaLabel : collapseSidebarAriaLabel,
|
|
3129
|
+
className: cn41(
|
|
3130
|
+
"flex h-9 w-9 items-center justify-center rounded-lg transition-colors",
|
|
3131
|
+
"hover:bg-sidebar-accent text-sidebar-foreground",
|
|
3132
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
3133
|
+
isCollapsed && "mx-auto"
|
|
3134
|
+
),
|
|
3135
|
+
children: isCollapsed ? /* @__PURE__ */ jsx(ChevronRightIcon, {}) : /* @__PURE__ */ jsx(ChevronLeftIcon, {})
|
|
3136
|
+
}
|
|
3137
|
+
);
|
|
3116
3138
|
return /* @__PURE__ */ jsxs(
|
|
3117
3139
|
"div",
|
|
3118
3140
|
{
|
|
@@ -3132,21 +3154,7 @@ function MosaicAppSidebar({
|
|
|
3132
3154
|
children: [
|
|
3133
3155
|
/* @__PURE__ */ jsx("div", { className: "shrink-0 border-b border-sidebar-border p-4", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
3134
3156
|
!isCollapsed && logoSlot && /* @__PURE__ */ jsx("div", { className: "mosaic-sidebar-label-in flex items-center gap-2 min-w-0", children: logoSlot }),
|
|
3135
|
-
|
|
3136
|
-
"button",
|
|
3137
|
-
{
|
|
3138
|
-
type: "button",
|
|
3139
|
-
onClick: onToggleCollapse,
|
|
3140
|
-
"aria-label": isCollapsed ? expandSidebarAriaLabel : collapseSidebarAriaLabel,
|
|
3141
|
-
className: cn41(
|
|
3142
|
-
"flex h-9 w-9 items-center justify-center rounded-lg transition-colors",
|
|
3143
|
-
"hover:bg-sidebar-accent text-sidebar-foreground",
|
|
3144
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
3145
|
-
isCollapsed && "mx-auto"
|
|
3146
|
-
),
|
|
3147
|
-
children: isCollapsed ? /* @__PURE__ */ jsx(ChevronRightIcon, {}) : /* @__PURE__ */ jsx(ChevronLeftIcon, {})
|
|
3148
|
-
}
|
|
3149
|
-
)
|
|
3157
|
+
chevronPosition === "top" && collapseToggleButton
|
|
3150
3158
|
] }) }),
|
|
3151
3159
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 overflow-y-auto p-2", style: { scrollbarWidth: "thin" }, children: [
|
|
3152
3160
|
navItems.length > 0 && /* @__PURE__ */ jsx("nav", { "aria-label": mainNavAriaLabel, children: /* @__PURE__ */ jsx("div", { className: "space-y-0.5", children: navItems.map((item) => {
|
|
@@ -3259,7 +3267,48 @@ function MosaicAppSidebar({
|
|
|
3259
3267
|
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-sidebar-foreground", children: footerStatus.label }),
|
|
3260
3268
|
footerStatus.sublabel && /* @__PURE__ */ jsx("p", { className: "text-xs text-sidebar-foreground/60", children: footerStatus.sublabel })
|
|
3261
3269
|
] })
|
|
3262
|
-
] }) : /* @__PURE__ */ jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsx("div", { className: "flex h-8 w-8 items-center justify-center rounded-lg bg-sidebar-accent/30 text-green-500", children: footerStatus.icon ?? /* @__PURE__ */ jsx(TrendingUpIcon, {}) }) }) })
|
|
3270
|
+
] }) : /* @__PURE__ */ jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsx("div", { className: "flex h-8 w-8 items-center justify-center rounded-lg bg-sidebar-accent/30 text-green-500", children: footerStatus.icon ?? /* @__PURE__ */ jsx(TrendingUpIcon, {}) }) }) }),
|
|
3271
|
+
bottomNavItems.length > 0 && /* @__PURE__ */ jsx(
|
|
3272
|
+
"div",
|
|
3273
|
+
{
|
|
3274
|
+
"data-slot": "app-sidebar-bottom-nav",
|
|
3275
|
+
className: cn41("shrink-0 border-t border-sidebar-border p-2", isCollapsed && "px-2"),
|
|
3276
|
+
children: /* @__PURE__ */ jsx("nav", { "aria-label": bottomNavAriaLabel, children: /* @__PURE__ */ jsx("div", { className: "space-y-0.5", children: bottomNavItems.map((item) => {
|
|
3277
|
+
const isActive = activePath === item.href;
|
|
3278
|
+
return /* @__PURE__ */ jsx(
|
|
3279
|
+
"button",
|
|
3280
|
+
{
|
|
3281
|
+
type: "button",
|
|
3282
|
+
onClick: () => handleNavClick(item.href),
|
|
3283
|
+
"aria-current": isActive ? "page" : void 0,
|
|
3284
|
+
className: cn41(
|
|
3285
|
+
"group flex w-full min-h-[44px] items-center rounded-lg p-3 transition-colors",
|
|
3286
|
+
"hover:bg-sidebar-accent",
|
|
3287
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
3288
|
+
isActive && "bg-sidebar-accent",
|
|
3289
|
+
isCollapsed ? "justify-center" : "justify-start gap-3"
|
|
3290
|
+
),
|
|
3291
|
+
children: isCollapsed ? /* @__PURE__ */ jsx("span", { className: "text-sidebar-foreground", title: item.label, children: item.icon ?? /* @__PURE__ */ jsx("span", { className: "text-xs font-bold", children: item.label.charAt(0) }) }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3292
|
+
item.icon && /* @__PURE__ */ jsx("span", { className: "text-sidebar-foreground", children: item.icon }),
|
|
3293
|
+
/* @__PURE__ */ jsx("span", { className: "mosaic-sidebar-label-in text-sm font-medium text-sidebar-foreground", children: item.label })
|
|
3294
|
+
] })
|
|
3295
|
+
},
|
|
3296
|
+
item.id
|
|
3297
|
+
);
|
|
3298
|
+
}) }) })
|
|
3299
|
+
}
|
|
3300
|
+
),
|
|
3301
|
+
chevronPosition === "bottom" && collapseToggleButton && /* @__PURE__ */ jsx(
|
|
3302
|
+
"div",
|
|
3303
|
+
{
|
|
3304
|
+
"data-slot": "app-sidebar-toggle-zone",
|
|
3305
|
+
className: cn41(
|
|
3306
|
+
"shrink-0 border-t border-sidebar-border p-2 flex",
|
|
3307
|
+
isCollapsed ? "justify-center" : "justify-end"
|
|
3308
|
+
),
|
|
3309
|
+
children: collapseToggleButton
|
|
3310
|
+
}
|
|
3311
|
+
)
|
|
3263
3312
|
]
|
|
3264
3313
|
}
|
|
3265
3314
|
);
|
|
@@ -3802,7 +3851,16 @@ function SaveIcon() {
|
|
|
3802
3851
|
}
|
|
3803
3852
|
);
|
|
3804
3853
|
}
|
|
3805
|
-
function ModuleSlot({
|
|
3854
|
+
function ModuleSlot({
|
|
3855
|
+
label,
|
|
3856
|
+
sublabel,
|
|
3857
|
+
module,
|
|
3858
|
+
onSelect,
|
|
3859
|
+
onRemove,
|
|
3860
|
+
editAriaLabel,
|
|
3861
|
+
removeAriaLabel,
|
|
3862
|
+
selectAriaLabel
|
|
3863
|
+
}) {
|
|
3806
3864
|
return /* @__PURE__ */ jsxs("div", { className: "rounded-xl border border-border bg-card", children: [
|
|
3807
3865
|
/* @__PURE__ */ jsxs("div", { className: "border-b border-border px-4 pt-4 pb-3", children: [
|
|
3808
3866
|
/* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold text-foreground", children: label }),
|
|
@@ -3821,7 +3879,7 @@ function ModuleSlot({ label, sublabel, module, onSelect, onRemove }) {
|
|
|
3821
3879
|
{
|
|
3822
3880
|
type: "button",
|
|
3823
3881
|
onClick: onSelect,
|
|
3824
|
-
"aria-label":
|
|
3882
|
+
"aria-label": editAriaLabel,
|
|
3825
3883
|
className: "flex h-7 w-7 items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
3826
3884
|
children: /* @__PURE__ */ jsxs(
|
|
3827
3885
|
"svg",
|
|
@@ -3848,7 +3906,7 @@ function ModuleSlot({ label, sublabel, module, onSelect, onRemove }) {
|
|
|
3848
3906
|
{
|
|
3849
3907
|
type: "button",
|
|
3850
3908
|
onClick: onRemove,
|
|
3851
|
-
"aria-label":
|
|
3909
|
+
"aria-label": removeAriaLabel,
|
|
3852
3910
|
className: "flex h-7 w-7 items-center justify-center rounded-md text-destructive hover:bg-destructive/10 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
3853
3911
|
children: /* @__PURE__ */ jsxs(
|
|
3854
3912
|
"svg",
|
|
@@ -3876,12 +3934,11 @@ function ModuleSlot({ label, sublabel, module, onSelect, onRemove }) {
|
|
|
3876
3934
|
{
|
|
3877
3935
|
type: "button",
|
|
3878
3936
|
onClick: onSelect,
|
|
3879
|
-
"aria-label":
|
|
3937
|
+
"aria-label": selectAriaLabel,
|
|
3880
3938
|
className: "flex w-full min-h-[72px] items-center justify-center gap-2 rounded-lg border border-dashed border-border text-sm text-muted-foreground transition-colors hover:border-primary hover:text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
3881
3939
|
children: [
|
|
3882
3940
|
/* @__PURE__ */ jsx(PlusIcon, {}),
|
|
3883
|
-
|
|
3884
|
-
label
|
|
3941
|
+
selectAriaLabel
|
|
3885
3942
|
]
|
|
3886
3943
|
}
|
|
3887
3944
|
) })
|
|
@@ -3918,10 +3975,24 @@ function MosaicAgentComposerDesktop({
|
|
|
3918
3975
|
previewConfigLabel,
|
|
3919
3976
|
customInstructionsPreviewLabel,
|
|
3920
3977
|
selectAllModulesLabel,
|
|
3921
|
-
unnamedAgentLabel
|
|
3978
|
+
unnamedAgentLabel,
|
|
3979
|
+
roleSublabel,
|
|
3980
|
+
personaSublabel,
|
|
3981
|
+
frameworkSublabel,
|
|
3982
|
+
editModuleAriaLabel,
|
|
3983
|
+
removeModuleAriaLabel,
|
|
3984
|
+
selectModuleAriaLabel,
|
|
3985
|
+
changeModuleLabel,
|
|
3986
|
+
previewRequires = ["role", "persona", "framework", "model"]
|
|
3922
3987
|
}) {
|
|
3923
3988
|
const L = labels;
|
|
3924
|
-
const
|
|
3989
|
+
const moduleBySlot = {
|
|
3990
|
+
role: selectedRole,
|
|
3991
|
+
persona: selectedPersona,
|
|
3992
|
+
framework: selectedFramework,
|
|
3993
|
+
model: selectedModel
|
|
3994
|
+
};
|
|
3995
|
+
const allModulesSelected = previewRequires.every((slot) => !!moduleBySlot[slot]);
|
|
3925
3996
|
return /* @__PURE__ */ jsxs("div", { "data-slot": "agent-composer-desktop", className: "grid h-full grid-cols-2 gap-6", children: [
|
|
3926
3997
|
/* @__PURE__ */ jsxs("div", { className: "space-y-5 overflow-y-auto pr-3", children: [
|
|
3927
3998
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
@@ -3962,30 +4033,39 @@ function MosaicAgentComposerDesktop({
|
|
|
3962
4033
|
ModuleSlot,
|
|
3963
4034
|
{
|
|
3964
4035
|
label: L.role,
|
|
3965
|
-
sublabel:
|
|
4036
|
+
sublabel: roleSublabel,
|
|
3966
4037
|
module: selectedRole,
|
|
3967
4038
|
onSelect: onSelectRole,
|
|
3968
|
-
onRemove: onRemoveRole
|
|
4039
|
+
onRemove: onRemoveRole,
|
|
4040
|
+
editAriaLabel: editModuleAriaLabel(L.role),
|
|
4041
|
+
removeAriaLabel: removeModuleAriaLabel(L.role),
|
|
4042
|
+
selectAriaLabel: selectModuleAriaLabel(L.role)
|
|
3969
4043
|
}
|
|
3970
4044
|
),
|
|
3971
4045
|
/* @__PURE__ */ jsx(
|
|
3972
4046
|
ModuleSlot,
|
|
3973
4047
|
{
|
|
3974
4048
|
label: L.persona,
|
|
3975
|
-
sublabel:
|
|
4049
|
+
sublabel: personaSublabel,
|
|
3976
4050
|
module: selectedPersona,
|
|
3977
4051
|
onSelect: onSelectPersona,
|
|
3978
|
-
onRemove: onRemovePersona
|
|
4052
|
+
onRemove: onRemovePersona,
|
|
4053
|
+
editAriaLabel: editModuleAriaLabel(L.persona),
|
|
4054
|
+
removeAriaLabel: removeModuleAriaLabel(L.persona),
|
|
4055
|
+
selectAriaLabel: selectModuleAriaLabel(L.persona)
|
|
3979
4056
|
}
|
|
3980
4057
|
),
|
|
3981
4058
|
/* @__PURE__ */ jsx(
|
|
3982
4059
|
ModuleSlot,
|
|
3983
4060
|
{
|
|
3984
4061
|
label: L.framework,
|
|
3985
|
-
sublabel:
|
|
4062
|
+
sublabel: frameworkSublabel,
|
|
3986
4063
|
module: selectedFramework,
|
|
3987
4064
|
onSelect: onSelectFramework,
|
|
3988
|
-
onRemove: onRemoveFramework
|
|
4065
|
+
onRemove: onRemoveFramework,
|
|
4066
|
+
editAriaLabel: editModuleAriaLabel(L.framework),
|
|
4067
|
+
removeAriaLabel: removeModuleAriaLabel(L.framework),
|
|
4068
|
+
selectAriaLabel: selectModuleAriaLabel(L.framework)
|
|
3989
4069
|
}
|
|
3990
4070
|
),
|
|
3991
4071
|
/* @__PURE__ */ jsxs("div", { className: "rounded-xl border border-border bg-card", children: [
|
|
@@ -4006,16 +4086,13 @@ function MosaicAgentComposerDesktop({
|
|
|
4006
4086
|
selectedModel.pricingLabel
|
|
4007
4087
|
] })
|
|
4008
4088
|
] }) }),
|
|
4009
|
-
/* @__PURE__ */
|
|
4089
|
+
/* @__PURE__ */ jsx(
|
|
4010
4090
|
"button",
|
|
4011
4091
|
{
|
|
4012
4092
|
type: "button",
|
|
4013
4093
|
onClick: onSelectModel,
|
|
4014
4094
|
className: "flex w-full min-h-[44px] items-center justify-center rounded-lg border border-border text-sm text-muted-foreground transition-colors hover:border-primary hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
4015
|
-
children:
|
|
4016
|
-
"Change ",
|
|
4017
|
-
L.model
|
|
4018
|
-
]
|
|
4095
|
+
children: changeModuleLabel(L.model)
|
|
4019
4096
|
}
|
|
4020
4097
|
)
|
|
4021
4098
|
] }) : /* @__PURE__ */ jsxs(
|
|
@@ -4023,12 +4100,11 @@ function MosaicAgentComposerDesktop({
|
|
|
4023
4100
|
{
|
|
4024
4101
|
type: "button",
|
|
4025
4102
|
onClick: onSelectModel,
|
|
4026
|
-
"aria-label":
|
|
4103
|
+
"aria-label": selectModuleAriaLabel(L.model),
|
|
4027
4104
|
className: "flex w-full min-h-[72px] items-center justify-center gap-2 rounded-lg border border-dashed border-border text-sm text-muted-foreground transition-colors hover:border-primary hover:text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
4028
4105
|
children: [
|
|
4029
4106
|
/* @__PURE__ */ jsx(PlusIcon, {}),
|
|
4030
|
-
|
|
4031
|
-
L.model
|
|
4107
|
+
selectModuleAriaLabel(L.model)
|
|
4032
4108
|
]
|
|
4033
4109
|
}
|
|
4034
4110
|
) })
|
|
@@ -4243,7 +4319,10 @@ function MobileModuleSlot({
|
|
|
4243
4319
|
onSelect,
|
|
4244
4320
|
onRemove,
|
|
4245
4321
|
isLoading,
|
|
4246
|
-
requiredLabel
|
|
4322
|
+
requiredLabel,
|
|
4323
|
+
editAriaLabel,
|
|
4324
|
+
removeAriaLabel,
|
|
4325
|
+
selectAriaLabel
|
|
4247
4326
|
}) {
|
|
4248
4327
|
return /* @__PURE__ */ jsxs("div", { className: "rounded-xl border border-border bg-card", children: [
|
|
4249
4328
|
/* @__PURE__ */ jsx("div", { className: "border-b border-border px-4 pt-3 pb-2", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
@@ -4267,7 +4346,7 @@ function MobileModuleSlot({
|
|
|
4267
4346
|
type: "button",
|
|
4268
4347
|
onClick: onSelect,
|
|
4269
4348
|
disabled: isLoading,
|
|
4270
|
-
"aria-label":
|
|
4349
|
+
"aria-label": editAriaLabel,
|
|
4271
4350
|
className: "flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",
|
|
4272
4351
|
children: /* @__PURE__ */ jsxs(
|
|
4273
4352
|
"svg",
|
|
@@ -4295,7 +4374,7 @@ function MobileModuleSlot({
|
|
|
4295
4374
|
type: "button",
|
|
4296
4375
|
onClick: onRemove,
|
|
4297
4376
|
disabled: isLoading,
|
|
4298
|
-
"aria-label":
|
|
4377
|
+
"aria-label": removeAriaLabel,
|
|
4299
4378
|
className: "flex h-8 w-8 items-center justify-center rounded-md text-destructive transition-colors hover:bg-destructive/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",
|
|
4300
4379
|
children: /* @__PURE__ */ jsxs(
|
|
4301
4380
|
"svg",
|
|
@@ -4324,12 +4403,11 @@ function MobileModuleSlot({
|
|
|
4324
4403
|
type: "button",
|
|
4325
4404
|
onClick: onSelect,
|
|
4326
4405
|
disabled: isLoading,
|
|
4327
|
-
"aria-label":
|
|
4406
|
+
"aria-label": selectAriaLabel,
|
|
4328
4407
|
className: "flex w-full min-h-[64px] items-center justify-center gap-2 rounded-lg border border-dashed border-border text-sm text-muted-foreground transition-colors hover:border-primary hover:text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",
|
|
4329
4408
|
children: [
|
|
4330
4409
|
/* @__PURE__ */ jsx(PlusIcon2, {}),
|
|
4331
|
-
|
|
4332
|
-
label
|
|
4410
|
+
selectAriaLabel
|
|
4333
4411
|
]
|
|
4334
4412
|
}
|
|
4335
4413
|
) })
|
|
@@ -4365,7 +4443,11 @@ function MosaicAgentComposerMobile({
|
|
|
4365
4443
|
goBackAriaLabel,
|
|
4366
4444
|
savingLabel,
|
|
4367
4445
|
creatingLabel,
|
|
4368
|
-
optionalInstructionsHelp
|
|
4446
|
+
optionalInstructionsHelp,
|
|
4447
|
+
editModuleAriaLabel,
|
|
4448
|
+
removeModuleAriaLabel,
|
|
4449
|
+
selectModuleAriaLabel,
|
|
4450
|
+
changeModuleLabel
|
|
4369
4451
|
}) {
|
|
4370
4452
|
const L = labels;
|
|
4371
4453
|
const instructionsId = React30.useId();
|
|
@@ -4427,7 +4509,10 @@ function MosaicAgentComposerMobile({
|
|
|
4427
4509
|
onSelect: onSelectRole,
|
|
4428
4510
|
onRemove: onRemoveRole,
|
|
4429
4511
|
isLoading,
|
|
4430
|
-
requiredLabel
|
|
4512
|
+
requiredLabel,
|
|
4513
|
+
editAriaLabel: editModuleAriaLabel(L.role),
|
|
4514
|
+
removeAriaLabel: removeModuleAriaLabel(L.role),
|
|
4515
|
+
selectAriaLabel: selectModuleAriaLabel(L.role)
|
|
4431
4516
|
}
|
|
4432
4517
|
),
|
|
4433
4518
|
/* @__PURE__ */ jsx(
|
|
@@ -4439,7 +4524,10 @@ function MosaicAgentComposerMobile({
|
|
|
4439
4524
|
onSelect: onSelectPersona,
|
|
4440
4525
|
onRemove: onRemovePersona,
|
|
4441
4526
|
isLoading,
|
|
4442
|
-
requiredLabel
|
|
4527
|
+
requiredLabel,
|
|
4528
|
+
editAriaLabel: editModuleAriaLabel(L.persona),
|
|
4529
|
+
removeAriaLabel: removeModuleAriaLabel(L.persona),
|
|
4530
|
+
selectAriaLabel: selectModuleAriaLabel(L.persona)
|
|
4443
4531
|
}
|
|
4444
4532
|
),
|
|
4445
4533
|
/* @__PURE__ */ jsx(
|
|
@@ -4451,7 +4539,10 @@ function MosaicAgentComposerMobile({
|
|
|
4451
4539
|
onSelect: onSelectFramework,
|
|
4452
4540
|
onRemove: onRemoveFramework,
|
|
4453
4541
|
isLoading,
|
|
4454
|
-
requiredLabel
|
|
4542
|
+
requiredLabel,
|
|
4543
|
+
editAriaLabel: editModuleAriaLabel(L.framework),
|
|
4544
|
+
removeAriaLabel: removeModuleAriaLabel(L.framework),
|
|
4545
|
+
selectAriaLabel: selectModuleAriaLabel(L.framework)
|
|
4455
4546
|
}
|
|
4456
4547
|
),
|
|
4457
4548
|
/* @__PURE__ */ jsxs("div", { className: "rounded-xl border border-border bg-card", children: [
|
|
@@ -4475,17 +4566,14 @@ function MosaicAgentComposerMobile({
|
|
|
4475
4566
|
selectedModel.pricingLabel
|
|
4476
4567
|
] })
|
|
4477
4568
|
] }) }),
|
|
4478
|
-
/* @__PURE__ */
|
|
4569
|
+
/* @__PURE__ */ jsx(
|
|
4479
4570
|
"button",
|
|
4480
4571
|
{
|
|
4481
4572
|
type: "button",
|
|
4482
4573
|
onClick: onSelectModel,
|
|
4483
4574
|
disabled: isLoading,
|
|
4484
4575
|
className: "flex w-full min-h-[44px] items-center justify-center rounded-lg border border-border text-sm text-muted-foreground transition-colors hover:border-primary hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",
|
|
4485
|
-
children:
|
|
4486
|
-
"Change ",
|
|
4487
|
-
L.model
|
|
4488
|
-
]
|
|
4576
|
+
children: changeModuleLabel(L.model)
|
|
4489
4577
|
}
|
|
4490
4578
|
)
|
|
4491
4579
|
] }) : /* @__PURE__ */ jsxs(
|
|
@@ -4494,12 +4582,11 @@ function MosaicAgentComposerMobile({
|
|
|
4494
4582
|
type: "button",
|
|
4495
4583
|
onClick: onSelectModel,
|
|
4496
4584
|
disabled: isLoading,
|
|
4497
|
-
"aria-label":
|
|
4585
|
+
"aria-label": selectModuleAriaLabel(L.model),
|
|
4498
4586
|
className: "flex w-full min-h-[64px] items-center justify-center gap-2 rounded-lg border border-dashed border-border text-sm text-muted-foreground transition-colors hover:border-primary hover:text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",
|
|
4499
4587
|
children: [
|
|
4500
4588
|
/* @__PURE__ */ jsx(PlusIcon2, {}),
|
|
4501
|
-
|
|
4502
|
-
L.model
|
|
4589
|
+
selectModuleAriaLabel(L.model)
|
|
4503
4590
|
]
|
|
4504
4591
|
}
|
|
4505
4592
|
) })
|
|
@@ -6175,6 +6262,7 @@ function MosaicQuickAgentSelector({
|
|
|
6175
6262
|
availableAgents = [],
|
|
6176
6263
|
onAddAgent,
|
|
6177
6264
|
onRemoveAgent,
|
|
6265
|
+
removeAgentAriaLabel,
|
|
6178
6266
|
onOpenBuilder,
|
|
6179
6267
|
maxAgents = 4,
|
|
6180
6268
|
addLabel,
|
|
@@ -6235,7 +6323,7 @@ function MosaicQuickAgentSelector({
|
|
|
6235
6323
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
6236
6324
|
isMobile ? "opacity-100" : "opacity-0 transition-opacity group-hover:opacity-100"
|
|
6237
6325
|
),
|
|
6238
|
-
"aria-label":
|
|
6326
|
+
"aria-label": removeAgentAriaLabel(agent.name),
|
|
6239
6327
|
children: /* @__PURE__ */ jsx(XIcon, {})
|
|
6240
6328
|
}
|
|
6241
6329
|
)
|
|
@@ -9064,7 +9152,8 @@ function MosaicTemplatePreview({
|
|
|
9064
9152
|
onSelect,
|
|
9065
9153
|
onClose,
|
|
9066
9154
|
selectLabel,
|
|
9067
|
-
cancelLabel
|
|
9155
|
+
cancelLabel,
|
|
9156
|
+
formatAgentsHeading
|
|
9068
9157
|
}) {
|
|
9069
9158
|
return /* @__PURE__ */ jsxs("div", { "data-slot": "template-preview", className: "flex flex-col gap-4 p-4", children: [
|
|
9070
9159
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -9076,11 +9165,7 @@ function MosaicTemplatePreview({
|
|
|
9076
9165
|
template.type && /* @__PURE__ */ jsx("span", { className: "rounded-md border border-border px-2 py-1 text-xs text-muted-foreground", children: template.type })
|
|
9077
9166
|
] }),
|
|
9078
9167
|
template.agents && template.agents.length > 0 && /* @__PURE__ */ jsxs("div", { children: [
|
|
9079
|
-
/* @__PURE__ */
|
|
9080
|
-
"Agents (",
|
|
9081
|
-
template.agents.length,
|
|
9082
|
-
")"
|
|
9083
|
-
] }),
|
|
9168
|
+
formatAgentsHeading && /* @__PURE__ */ jsx("p", { className: "mb-2 text-sm font-medium", children: formatAgentsHeading(template.agents.length) }),
|
|
9084
9169
|
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-2", children: template.agents.map((agent) => /* @__PURE__ */ jsxs(
|
|
9085
9170
|
"div",
|
|
9086
9171
|
{
|
|
@@ -9522,7 +9607,8 @@ function MosaicModuleForm(props) {
|
|
|
9522
9607
|
namePlaceholder,
|
|
9523
9608
|
descriptionPlaceholder,
|
|
9524
9609
|
cancelLabel,
|
|
9525
|
-
tagListAddPlaceholder
|
|
9610
|
+
tagListAddPlaceholder,
|
|
9611
|
+
removeTagAriaLabel
|
|
9526
9612
|
} = props;
|
|
9527
9613
|
const [formData, setFormData] = React30.useState({
|
|
9528
9614
|
name: item?.name ?? "",
|
|
@@ -9694,7 +9780,7 @@ function MosaicModuleForm(props) {
|
|
|
9694
9780
|
type: "button",
|
|
9695
9781
|
onClick: () => removeTag(field.id, tag),
|
|
9696
9782
|
className: "hover:text-destructive",
|
|
9697
|
-
"aria-label":
|
|
9783
|
+
"aria-label": removeTagAriaLabel?.(tag),
|
|
9698
9784
|
children: /* @__PURE__ */ jsx(XIcon2, {})
|
|
9699
9785
|
}
|
|
9700
9786
|
)
|
|
@@ -9837,7 +9923,8 @@ function LibraryContent({
|
|
|
9837
9923
|
deleteItemLabel,
|
|
9838
9924
|
closeEditorAriaLabel,
|
|
9839
9925
|
editModalTitle,
|
|
9840
|
-
tagListAddPlaceholder
|
|
9926
|
+
tagListAddPlaceholder,
|
|
9927
|
+
removeTagAriaLabel
|
|
9841
9928
|
}) {
|
|
9842
9929
|
const [query, setQuery] = React30.useState("");
|
|
9843
9930
|
const [activeTab, setActiveTab] = React30.useState(tabs?.[0]?.id ?? "all");
|
|
@@ -9951,6 +10038,7 @@ function LibraryContent({
|
|
|
9951
10038
|
descriptionPlaceholder,
|
|
9952
10039
|
cancelLabel,
|
|
9953
10040
|
tagListAddPlaceholder,
|
|
10041
|
+
removeTagAriaLabel,
|
|
9954
10042
|
...editorMode === "edit" ? { mode: "edit", saveChangesLabel } : { mode: "create", createItemLabel }
|
|
9955
10043
|
}
|
|
9956
10044
|
)
|
|
@@ -9965,36 +10053,29 @@ MosaicModuleLibrary.displayName = "MosaicModuleLibrary";
|
|
|
9965
10053
|
function cn69(...classes) {
|
|
9966
10054
|
return classes.filter(Boolean).join(" ");
|
|
9967
10055
|
}
|
|
9968
|
-
var
|
|
9969
|
-
owner:
|
|
9970
|
-
|
|
9971
|
-
|
|
9972
|
-
description: "Full access including billing and organization deletion"
|
|
9973
|
-
},
|
|
9974
|
-
admin: {
|
|
9975
|
-
label: "Admin",
|
|
9976
|
-
className: "bg-secondary text-secondary-foreground",
|
|
9977
|
-
description: "Full access to organization settings and member management"
|
|
9978
|
-
},
|
|
9979
|
-
member: {
|
|
9980
|
-
label: "Member",
|
|
9981
|
-
className: "bg-muted text-muted-foreground",
|
|
9982
|
-
description: "Standard access to workspaces and content"
|
|
9983
|
-
}
|
|
10056
|
+
var roleClassName = {
|
|
10057
|
+
owner: "bg-primary text-primary-foreground",
|
|
10058
|
+
admin: "bg-secondary text-secondary-foreground",
|
|
10059
|
+
member: "bg-muted text-muted-foreground"
|
|
9984
10060
|
};
|
|
9985
|
-
function MosaicOrgRoleBadge({
|
|
9986
|
-
|
|
10061
|
+
function MosaicOrgRoleBadge({
|
|
10062
|
+
role,
|
|
10063
|
+
label,
|
|
10064
|
+
description,
|
|
10065
|
+
className
|
|
10066
|
+
}) {
|
|
10067
|
+
const config = roleClassName[role] ?? roleClassName.member;
|
|
9987
10068
|
return /* @__PURE__ */ jsx(
|
|
9988
10069
|
"span",
|
|
9989
10070
|
{
|
|
9990
10071
|
"data-slot": "org-role-badge",
|
|
9991
|
-
title:
|
|
10072
|
+
title: description,
|
|
9992
10073
|
className: cn69(
|
|
9993
10074
|
"inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium",
|
|
9994
|
-
config
|
|
10075
|
+
config,
|
|
9995
10076
|
className
|
|
9996
10077
|
),
|
|
9997
|
-
children:
|
|
10078
|
+
children: label
|
|
9998
10079
|
}
|
|
9999
10080
|
);
|
|
10000
10081
|
}
|
|
@@ -10064,7 +10145,10 @@ function MosaicCreateOrgDialog({
|
|
|
10064
10145
|
descriptionPlaceholder,
|
|
10065
10146
|
cancelLabel,
|
|
10066
10147
|
creatingLabel,
|
|
10067
|
-
createLabel
|
|
10148
|
+
createLabel,
|
|
10149
|
+
nameRequiredMessage,
|
|
10150
|
+
slugRequiredMessage,
|
|
10151
|
+
slugFormatMessage
|
|
10068
10152
|
}) {
|
|
10069
10153
|
const [name, setName] = React30.useState("");
|
|
10070
10154
|
const [slug, setSlug] = React30.useState("");
|
|
@@ -10072,10 +10156,9 @@ function MosaicCreateOrgDialog({
|
|
|
10072
10156
|
const [errors, setErrors] = React30.useState({});
|
|
10073
10157
|
const validate = () => {
|
|
10074
10158
|
const errs = {};
|
|
10075
|
-
if (!name.trim()) errs.name =
|
|
10076
|
-
if (!slug.trim()) errs.slug = "
|
|
10077
|
-
else if (!/^[a-z0-9-]+$/.test(slug))
|
|
10078
|
-
errs.slug = "Slug: lowercase letters, numbers, hyphens only";
|
|
10159
|
+
if (!name.trim()) errs.name = true;
|
|
10160
|
+
if (!slug.trim()) errs.slug = "required";
|
|
10161
|
+
else if (!/^[a-z0-9-]+$/.test(slug)) errs.slug = "format";
|
|
10079
10162
|
setErrors(errs);
|
|
10080
10163
|
return Object.keys(errs).length === 0;
|
|
10081
10164
|
};
|
|
@@ -10134,7 +10217,7 @@ function MosaicCreateOrgDialog({
|
|
|
10134
10217
|
)
|
|
10135
10218
|
}
|
|
10136
10219
|
),
|
|
10137
|
-
errors.name && /* @__PURE__ */ jsx("p", { className: "text-xs text-destructive", children:
|
|
10220
|
+
errors.name && nameRequiredMessage && /* @__PURE__ */ jsx("p", { className: "text-xs text-destructive", children: nameRequiredMessage })
|
|
10138
10221
|
] }),
|
|
10139
10222
|
/* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
|
|
10140
10223
|
/* @__PURE__ */ jsx("label", { htmlFor: "org-slug", className: "text-sm font-medium", children: slugFieldLabel }),
|
|
@@ -10154,7 +10237,8 @@ function MosaicCreateOrgDialog({
|
|
|
10154
10237
|
)
|
|
10155
10238
|
}
|
|
10156
10239
|
),
|
|
10157
|
-
errors.slug && /* @__PURE__ */ jsx("p", { className: "text-xs text-destructive", children:
|
|
10240
|
+
errors.slug === "required" && slugRequiredMessage && /* @__PURE__ */ jsx("p", { className: "text-xs text-destructive", children: slugRequiredMessage }),
|
|
10241
|
+
errors.slug === "format" && slugFormatMessage && /* @__PURE__ */ jsx("p", { className: "text-xs text-destructive", children: slugFormatMessage })
|
|
10158
10242
|
] }),
|
|
10159
10243
|
/* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
|
|
10160
10244
|
/* @__PURE__ */ jsx("label", { htmlFor: "org-desc", className: "text-sm font-medium", children: descriptionFieldLabel }),
|
|
@@ -10197,16 +10281,12 @@ function MosaicCreateOrgDialog({
|
|
|
10197
10281
|
);
|
|
10198
10282
|
}
|
|
10199
10283
|
MosaicCreateOrgDialog.displayName = "MosaicCreateOrgDialog";
|
|
10200
|
-
var DEFAULT_ROLES = [
|
|
10201
|
-
{ value: "admin", label: "Admin" },
|
|
10202
|
-
{ value: "member", label: "Member" }
|
|
10203
|
-
];
|
|
10204
10284
|
function MosaicInviteMemberDialog({
|
|
10205
10285
|
open,
|
|
10206
10286
|
onOpenChange,
|
|
10207
10287
|
onInvite,
|
|
10208
10288
|
isLoading = false,
|
|
10209
|
-
roles
|
|
10289
|
+
roles,
|
|
10210
10290
|
title,
|
|
10211
10291
|
closeAriaLabel,
|
|
10212
10292
|
emailFieldLabel,
|
|
@@ -10214,15 +10294,17 @@ function MosaicInviteMemberDialog({
|
|
|
10214
10294
|
roleFieldLabel,
|
|
10215
10295
|
cancelLabel,
|
|
10216
10296
|
sendingLabel,
|
|
10217
|
-
sendInvitationLabel
|
|
10297
|
+
sendInvitationLabel,
|
|
10298
|
+
emailRequiredMessage,
|
|
10299
|
+
emailInvalidMessage
|
|
10218
10300
|
}) {
|
|
10219
10301
|
const [email, setEmail] = React30.useState("");
|
|
10220
10302
|
const [role, setRole] = React30.useState("member");
|
|
10221
10303
|
const [errors, setErrors] = React30.useState({});
|
|
10222
10304
|
const validate = () => {
|
|
10223
10305
|
const errs = {};
|
|
10224
|
-
if (!email.trim()) errs.email = "
|
|
10225
|
-
else if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)) errs.email = "
|
|
10306
|
+
if (!email.trim()) errs.email = "required";
|
|
10307
|
+
else if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)) errs.email = "invalid";
|
|
10226
10308
|
setErrors(errs);
|
|
10227
10309
|
return Object.keys(errs).length === 0;
|
|
10228
10310
|
};
|
|
@@ -10267,7 +10349,8 @@ function MosaicInviteMemberDialog({
|
|
|
10267
10349
|
)
|
|
10268
10350
|
}
|
|
10269
10351
|
),
|
|
10270
|
-
errors.email && /* @__PURE__ */ jsx("p", { className: "text-xs text-destructive", children:
|
|
10352
|
+
errors.email === "required" && emailRequiredMessage && /* @__PURE__ */ jsx("p", { className: "text-xs text-destructive", children: emailRequiredMessage }),
|
|
10353
|
+
errors.email === "invalid" && emailInvalidMessage && /* @__PURE__ */ jsx("p", { className: "text-xs text-destructive", children: emailInvalidMessage })
|
|
10271
10354
|
] }),
|
|
10272
10355
|
/* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
|
|
10273
10356
|
/* @__PURE__ */ jsx("label", { htmlFor: "invite-role", className: "text-sm font-medium", children: roleFieldLabel }),
|
|
@@ -10317,7 +10400,11 @@ function MemberRow({
|
|
|
10317
10400
|
roles,
|
|
10318
10401
|
youLabel,
|
|
10319
10402
|
memberActionsAriaLabel,
|
|
10320
|
-
removeMemberLabel
|
|
10403
|
+
removeMemberLabel,
|
|
10404
|
+
roleDescriptions,
|
|
10405
|
+
roleLabels,
|
|
10406
|
+
joinedLabel,
|
|
10407
|
+
makeRoleLabel
|
|
10321
10408
|
}) {
|
|
10322
10409
|
const [menuOpen, setMenuOpen] = React30.useState(false);
|
|
10323
10410
|
const menuRef = React30.useRef(null);
|
|
@@ -10347,12 +10434,16 @@ function MemberRow({
|
|
|
10347
10434
|
isSelf && /* @__PURE__ */ jsx("span", { className: "shrink-0 rounded-full bg-muted px-1.5 py-0.5 text-[10px] text-muted-foreground", children: youLabel })
|
|
10348
10435
|
] }),
|
|
10349
10436
|
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground truncate", children: member.email }),
|
|
10350
|
-
joinedDate && /* @__PURE__ */
|
|
10351
|
-
"Joined ",
|
|
10352
|
-
joinedDate
|
|
10353
|
-
] })
|
|
10437
|
+
joinedDate && /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: joinedLabel(joinedDate) })
|
|
10354
10438
|
] }),
|
|
10355
|
-
/* @__PURE__ */ jsx(
|
|
10439
|
+
/* @__PURE__ */ jsx(
|
|
10440
|
+
MosaicOrgRoleBadge,
|
|
10441
|
+
{
|
|
10442
|
+
role: member.role,
|
|
10443
|
+
label: roleLabels[member.role],
|
|
10444
|
+
description: roleDescriptions[member.role]
|
|
10445
|
+
}
|
|
10446
|
+
),
|
|
10356
10447
|
!isSelf && (onChangeRole || onRemoveMember) && /* @__PURE__ */ jsxs("div", { ref: menuRef, className: "relative shrink-0", children: [
|
|
10357
10448
|
/* @__PURE__ */ jsx(
|
|
10358
10449
|
"button",
|
|
@@ -10390,7 +10481,7 @@ function MemberRow({
|
|
|
10390
10481
|
className: "absolute right-0 top-full z-50 mt-1 min-w-[160px] rounded-md border border-border bg-popover py-1 shadow-md",
|
|
10391
10482
|
children: [
|
|
10392
10483
|
onChangeRole && roles?.map(
|
|
10393
|
-
(r) => r.value !== member.role && /* @__PURE__ */
|
|
10484
|
+
(r) => r.value !== member.role && /* @__PURE__ */ jsx(
|
|
10394
10485
|
"button",
|
|
10395
10486
|
{
|
|
10396
10487
|
type: "button",
|
|
@@ -10400,10 +10491,7 @@ function MemberRow({
|
|
|
10400
10491
|
setMenuOpen(false);
|
|
10401
10492
|
},
|
|
10402
10493
|
className: "flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground hover:bg-accent hover:text-accent-foreground",
|
|
10403
|
-
children:
|
|
10404
|
-
"Make ",
|
|
10405
|
-
r.label
|
|
10406
|
-
]
|
|
10494
|
+
children: makeRoleLabel(r.label)
|
|
10407
10495
|
},
|
|
10408
10496
|
r.value
|
|
10409
10497
|
)
|
|
@@ -10433,7 +10521,7 @@ function MosaicMemberList({
|
|
|
10433
10521
|
onChangeRole,
|
|
10434
10522
|
onRemoveMember,
|
|
10435
10523
|
onInvite,
|
|
10436
|
-
roles
|
|
10524
|
+
roles,
|
|
10437
10525
|
isLoading,
|
|
10438
10526
|
searchPlaceholder,
|
|
10439
10527
|
youLabel,
|
|
@@ -10441,6 +10529,10 @@ function MosaicMemberList({
|
|
|
10441
10529
|
removeMemberLabel,
|
|
10442
10530
|
emptyMessage,
|
|
10443
10531
|
inviteLabel,
|
|
10532
|
+
roleDescriptions,
|
|
10533
|
+
roleLabels,
|
|
10534
|
+
joinedLabel,
|
|
10535
|
+
makeRoleLabel,
|
|
10444
10536
|
className
|
|
10445
10537
|
}) {
|
|
10446
10538
|
const [query, setQuery] = React30.useState("");
|
|
@@ -10513,7 +10605,7 @@ function MosaicMemberList({
|
|
|
10513
10605
|
}
|
|
10514
10606
|
)
|
|
10515
10607
|
] }),
|
|
10516
|
-
isLoading ? /* @__PURE__ */ jsx("div", { className: "space-y-3", children: [
|
|
10608
|
+
isLoading ? /* @__PURE__ */ jsx("div", { className: "space-y-3", children: ["skeleton-1", "skeleton-2", "skeleton-3"].map((skeletonId) => /* @__PURE__ */ jsx("div", { className: "h-14 animate-pulse rounded-lg bg-muted" }, skeletonId)) }) : /* @__PURE__ */ jsxs("div", { className: "divide-y divide-border", children: [
|
|
10517
10609
|
filtered.map((member) => /* @__PURE__ */ jsx(
|
|
10518
10610
|
MemberRow,
|
|
10519
10611
|
{
|
|
@@ -10524,7 +10616,11 @@ function MosaicMemberList({
|
|
|
10524
10616
|
roles,
|
|
10525
10617
|
youLabel,
|
|
10526
10618
|
memberActionsAriaLabel,
|
|
10527
|
-
removeMemberLabel
|
|
10619
|
+
removeMemberLabel,
|
|
10620
|
+
roleDescriptions,
|
|
10621
|
+
roleLabels,
|
|
10622
|
+
joinedLabel,
|
|
10623
|
+
makeRoleLabel
|
|
10528
10624
|
},
|
|
10529
10625
|
member.id
|
|
10530
10626
|
)),
|
|
@@ -10723,6 +10819,7 @@ function MosaicDashboardHeader({
|
|
|
10723
10819
|
subtitle,
|
|
10724
10820
|
notificationCount = 0,
|
|
10725
10821
|
onNotificationsClick,
|
|
10822
|
+
notificationsAriaLabel,
|
|
10726
10823
|
onSearchChange,
|
|
10727
10824
|
actions,
|
|
10728
10825
|
logoSlot,
|
|
@@ -10791,7 +10888,7 @@ function MosaicDashboardHeader({
|
|
|
10791
10888
|
type: "button",
|
|
10792
10889
|
onClick: onNotificationsClick,
|
|
10793
10890
|
className: "relative inline-flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
10794
|
-
"aria-label":
|
|
10891
|
+
"aria-label": notificationsAriaLabel?.(notificationCount),
|
|
10795
10892
|
children: [
|
|
10796
10893
|
/* @__PURE__ */ jsx(BellIcon, {}),
|
|
10797
10894
|
notificationCount > 0 && /* @__PURE__ */ jsx("span", { className: "absolute -right-1 -top-1 flex h-4 w-4 items-center justify-center rounded-full bg-primary text-[10px] font-bold text-primary-foreground", children: notificationCount > 9 ? "9+" : notificationCount })
|
|
@@ -12448,9 +12545,11 @@ function MosaicChatThread({
|
|
|
12448
12545
|
children,
|
|
12449
12546
|
scrollToBottomLabel,
|
|
12450
12547
|
className,
|
|
12451
|
-
ref
|
|
12548
|
+
ref,
|
|
12549
|
+
onVisibleRangeChange
|
|
12452
12550
|
}) {
|
|
12453
12551
|
const containerRef = useRef(null);
|
|
12552
|
+
const contentRef = useRef(null);
|
|
12454
12553
|
const isAtBottomRef = useRef(true);
|
|
12455
12554
|
const [isAtBottom, setIsAtBottom] = useState(true);
|
|
12456
12555
|
function setRefs(node) {
|
|
@@ -12506,6 +12605,37 @@ function MosaicChatThread({
|
|
|
12506
12605
|
document.removeEventListener("selectionchange", handleSelectionChange);
|
|
12507
12606
|
};
|
|
12508
12607
|
}, []);
|
|
12608
|
+
useEffect(() => {
|
|
12609
|
+
if (!onVisibleRangeChange) {
|
|
12610
|
+
return;
|
|
12611
|
+
}
|
|
12612
|
+
const content = contentRef.current;
|
|
12613
|
+
if (!content) {
|
|
12614
|
+
return;
|
|
12615
|
+
}
|
|
12616
|
+
const visibility = /* @__PURE__ */ new Map();
|
|
12617
|
+
const observer = new IntersectionObserver((entries) => {
|
|
12618
|
+
for (const entry of entries) {
|
|
12619
|
+
visibility.set(entry.target, entry.isIntersecting);
|
|
12620
|
+
}
|
|
12621
|
+
const visibleMessageIds = [];
|
|
12622
|
+
for (const child of Array.from(content.children)) {
|
|
12623
|
+
if (child.id && visibility.get(child)) {
|
|
12624
|
+
visibleMessageIds.push(child.id);
|
|
12625
|
+
}
|
|
12626
|
+
}
|
|
12627
|
+
onVisibleRangeChange({
|
|
12628
|
+
visibleMessageIds,
|
|
12629
|
+
currentAnchorId: visibleMessageIds[0] ?? null
|
|
12630
|
+
});
|
|
12631
|
+
});
|
|
12632
|
+
for (const child of Array.from(content.children)) {
|
|
12633
|
+
observer.observe(child);
|
|
12634
|
+
}
|
|
12635
|
+
return () => {
|
|
12636
|
+
observer.disconnect();
|
|
12637
|
+
};
|
|
12638
|
+
}, [children, onVisibleRangeChange]);
|
|
12509
12639
|
useLayoutEffect(() => {
|
|
12510
12640
|
const element = containerRef.current;
|
|
12511
12641
|
if (element && isAtBottomRef.current) {
|
|
@@ -12522,7 +12652,7 @@ function MosaicChatThread({
|
|
|
12522
12652
|
onKeyDown: handleKeyDown,
|
|
12523
12653
|
className: cn80(chatThreadRootVariants(), className),
|
|
12524
12654
|
children: [
|
|
12525
|
-
/* @__PURE__ */ jsx("div", { "data-slot": "chat-thread-content", className: chatThreadContentVariants(), children }),
|
|
12655
|
+
/* @__PURE__ */ jsx("div", { ref: contentRef, "data-slot": "chat-thread-content", className: chatThreadContentVariants(), children }),
|
|
12526
12656
|
!isAtBottom && /* @__PURE__ */ jsx(
|
|
12527
12657
|
"button",
|
|
12528
12658
|
{
|
|
@@ -15804,7 +15934,963 @@ function MosaicMemorySearch({
|
|
|
15804
15934
|
] });
|
|
15805
15935
|
}
|
|
15806
15936
|
MosaicMemorySearch.displayName = "MosaicMemorySearch";
|
|
15937
|
+
var replyInputRootVariants = cva([
|
|
15938
|
+
"min-w-0 rounded-[14px] border border-border bg-card shadow-sm transition-colors",
|
|
15939
|
+
"focus-within:ring-[1px] focus-within:ring-ring"
|
|
15940
|
+
]);
|
|
15941
|
+
var replyInputContextVariants = cva([
|
|
15942
|
+
"truncate border-border border-b px-3 py-2 text-muted-foreground text-xs"
|
|
15943
|
+
]);
|
|
15944
|
+
var replyInputTextareaVariants = cva([
|
|
15945
|
+
"max-h-40 min-h-12 w-full resize-none bg-transparent px-3 pt-3 pb-1 text-sm outline-none",
|
|
15946
|
+
"placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-60"
|
|
15947
|
+
]);
|
|
15948
|
+
var replyInputActionButtonVariants = cva(
|
|
15949
|
+
[
|
|
15950
|
+
"inline-flex h-7 shrink-0 items-center justify-center rounded-md px-2.5 text-xs transition-colors",
|
|
15951
|
+
"disabled:cursor-not-allowed disabled:opacity-30"
|
|
15952
|
+
],
|
|
15953
|
+
{
|
|
15954
|
+
variants: {
|
|
15955
|
+
tone: {
|
|
15956
|
+
send: "bg-foreground text-background hover:bg-foreground/90",
|
|
15957
|
+
cancel: "bg-foreground/10 text-foreground hover:bg-foreground/20"
|
|
15958
|
+
}
|
|
15959
|
+
},
|
|
15960
|
+
defaultVariants: {
|
|
15961
|
+
tone: "send"
|
|
15962
|
+
}
|
|
15963
|
+
}
|
|
15964
|
+
);
|
|
15965
|
+
function cn105(...classes) {
|
|
15966
|
+
return classes.filter(Boolean).join(" ");
|
|
15967
|
+
}
|
|
15968
|
+
function MosaicReplyInput(props) {
|
|
15969
|
+
const {
|
|
15970
|
+
value,
|
|
15971
|
+
onValueChange,
|
|
15972
|
+
onSubmit,
|
|
15973
|
+
onCancel,
|
|
15974
|
+
context,
|
|
15975
|
+
contextAriaLabel,
|
|
15976
|
+
textareaAriaLabel,
|
|
15977
|
+
placeholder,
|
|
15978
|
+
sendButtonAriaLabel,
|
|
15979
|
+
cancelButtonAriaLabel,
|
|
15980
|
+
disabled = false,
|
|
15981
|
+
className,
|
|
15982
|
+
ref
|
|
15983
|
+
} = props;
|
|
15984
|
+
const textareaRef = useRef(null);
|
|
15985
|
+
const trimmedValue = value.trim();
|
|
15986
|
+
useEffect(() => {
|
|
15987
|
+
const textarea = textareaRef.current;
|
|
15988
|
+
if (!textarea) {
|
|
15989
|
+
return;
|
|
15990
|
+
}
|
|
15991
|
+
textarea.style.height = "auto";
|
|
15992
|
+
textarea.style.height = `${textarea.scrollHeight}px`;
|
|
15993
|
+
}, [value]);
|
|
15994
|
+
const submitValue = useCallback(() => {
|
|
15995
|
+
const text = value.trim();
|
|
15996
|
+
if (!text || disabled) {
|
|
15997
|
+
return;
|
|
15998
|
+
}
|
|
15999
|
+
onSubmit(text);
|
|
16000
|
+
}, [disabled, onSubmit, value]);
|
|
16001
|
+
const handleSubmit = useCallback(
|
|
16002
|
+
(event) => {
|
|
16003
|
+
event.preventDefault();
|
|
16004
|
+
submitValue();
|
|
16005
|
+
},
|
|
16006
|
+
[submitValue]
|
|
16007
|
+
);
|
|
16008
|
+
const handleKeyDown = useCallback(
|
|
16009
|
+
(event) => {
|
|
16010
|
+
if (event.key === "Enter" && !event.shiftKey) {
|
|
16011
|
+
event.preventDefault();
|
|
16012
|
+
submitValue();
|
|
16013
|
+
}
|
|
16014
|
+
},
|
|
16015
|
+
[submitValue]
|
|
16016
|
+
);
|
|
16017
|
+
return /* @__PURE__ */ jsxs(
|
|
16018
|
+
"form",
|
|
16019
|
+
{
|
|
16020
|
+
ref,
|
|
16021
|
+
"data-slot": "reply-input",
|
|
16022
|
+
className: cn105(replyInputRootVariants(), className),
|
|
16023
|
+
onSubmit: handleSubmit,
|
|
16024
|
+
children: [
|
|
16025
|
+
/* @__PURE__ */ jsx(
|
|
16026
|
+
"div",
|
|
16027
|
+
{
|
|
16028
|
+
"aria-label": contextAriaLabel,
|
|
16029
|
+
className: replyInputContextVariants(),
|
|
16030
|
+
"data-slot": "reply-input-context",
|
|
16031
|
+
children: context
|
|
16032
|
+
}
|
|
16033
|
+
),
|
|
16034
|
+
/* @__PURE__ */ jsx(
|
|
16035
|
+
"textarea",
|
|
16036
|
+
{
|
|
16037
|
+
"data-slot": "reply-input-textarea",
|
|
16038
|
+
"aria-label": textareaAriaLabel,
|
|
16039
|
+
className: replyInputTextareaVariants(),
|
|
16040
|
+
disabled,
|
|
16041
|
+
onChange: (event) => onValueChange(event.target.value),
|
|
16042
|
+
onKeyDown: handleKeyDown,
|
|
16043
|
+
placeholder,
|
|
16044
|
+
ref: textareaRef,
|
|
16045
|
+
rows: 1,
|
|
16046
|
+
value
|
|
16047
|
+
}
|
|
16048
|
+
),
|
|
16049
|
+
/* @__PURE__ */ jsxs("div", { className: "flex min-h-9 items-center justify-end gap-2 px-3 pt-1 pb-2", children: [
|
|
16050
|
+
/* @__PURE__ */ jsx(
|
|
16051
|
+
"button",
|
|
16052
|
+
{
|
|
16053
|
+
"aria-label": cancelButtonAriaLabel,
|
|
16054
|
+
className: replyInputActionButtonVariants({ tone: "cancel" }),
|
|
16055
|
+
"data-slot": "reply-input-cancel-button",
|
|
16056
|
+
disabled,
|
|
16057
|
+
onClick: onCancel,
|
|
16058
|
+
type: "button",
|
|
16059
|
+
children: /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: "\xD7" })
|
|
16060
|
+
}
|
|
16061
|
+
),
|
|
16062
|
+
/* @__PURE__ */ jsx(
|
|
16063
|
+
"button",
|
|
16064
|
+
{
|
|
16065
|
+
"aria-label": sendButtonAriaLabel,
|
|
16066
|
+
className: replyInputActionButtonVariants({ tone: "send" }),
|
|
16067
|
+
"data-slot": "reply-input-send-button",
|
|
16068
|
+
disabled: disabled || trimmedValue.length === 0,
|
|
16069
|
+
type: "submit",
|
|
16070
|
+
children: /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: "\u2191" })
|
|
16071
|
+
}
|
|
16072
|
+
)
|
|
16073
|
+
] })
|
|
16074
|
+
]
|
|
16075
|
+
}
|
|
16076
|
+
);
|
|
16077
|
+
}
|
|
16078
|
+
MosaicReplyInput.displayName = "MosaicReplyInput";
|
|
16079
|
+
var threadViewRootVariants = cva(["flex min-w-0 flex-col gap-3"]);
|
|
16080
|
+
var threadViewRootMessageVariants = cva([
|
|
16081
|
+
"rounded-lg border border-border bg-card p-4 shadow-sm"
|
|
16082
|
+
]);
|
|
16083
|
+
var threadViewRepliesVariants = cva(["flex flex-col gap-2 border-border border-l-2 pl-4"]);
|
|
16084
|
+
var threadViewReplyVariants = cva([
|
|
16085
|
+
"rounded-lg border border-border bg-muted/40 p-3 text-sm"
|
|
16086
|
+
]);
|
|
16087
|
+
var threadViewEmptyVariants = cva(["px-1 py-2 text-muted-foreground text-sm"]);
|
|
16088
|
+
function cn106(...classes) {
|
|
16089
|
+
return classes.filter(Boolean).join(" ");
|
|
16090
|
+
}
|
|
16091
|
+
function MosaicThreadView(props) {
|
|
16092
|
+
const { root, replies, rootAriaLabel, repliesAriaLabel, emptyRepliesLabel, className, ref } = props;
|
|
16093
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "thread-view", className: cn106(threadViewRootVariants(), className), children: [
|
|
16094
|
+
/* @__PURE__ */ jsxs(
|
|
16095
|
+
"div",
|
|
16096
|
+
{
|
|
16097
|
+
"aria-label": rootAriaLabel,
|
|
16098
|
+
className: threadViewRootMessageVariants(),
|
|
16099
|
+
"data-slot": "thread-view-root",
|
|
16100
|
+
children: [
|
|
16101
|
+
root.author,
|
|
16102
|
+
root.content
|
|
16103
|
+
]
|
|
16104
|
+
}
|
|
16105
|
+
),
|
|
16106
|
+
/* @__PURE__ */ jsx(
|
|
16107
|
+
"div",
|
|
16108
|
+
{
|
|
16109
|
+
"aria-label": repliesAriaLabel,
|
|
16110
|
+
className: threadViewRepliesVariants(),
|
|
16111
|
+
"data-slot": "thread-view-replies",
|
|
16112
|
+
children: replies.length === 0 ? /* @__PURE__ */ jsx("p", { className: threadViewEmptyVariants(), "data-slot": "thread-view-empty", children: emptyRepliesLabel }) : replies.map((reply) => /* @__PURE__ */ jsxs("div", { className: threadViewReplyVariants(), "data-slot": "thread-view-reply", children: [
|
|
16113
|
+
reply.author,
|
|
16114
|
+
reply.content
|
|
16115
|
+
] }, reply.id))
|
|
16116
|
+
}
|
|
16117
|
+
)
|
|
16118
|
+
] });
|
|
16119
|
+
}
|
|
16120
|
+
MosaicThreadView.displayName = "MosaicThreadView";
|
|
16121
|
+
var threadIndicatorRootVariants = cva([
|
|
16122
|
+
"inline-flex items-center gap-1.5 rounded-md px-2 py-1 text-xs transition-colors",
|
|
16123
|
+
"hover:bg-accent hover:text-accent-foreground",
|
|
16124
|
+
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
16125
|
+
"disabled:cursor-not-allowed disabled:opacity-60"
|
|
16126
|
+
]);
|
|
16127
|
+
var threadIndicatorCountVariants = cva([
|
|
16128
|
+
"inline-flex min-w-4 items-center justify-center rounded-full px-1.5 py-0.5",
|
|
16129
|
+
"bg-primary text-primary-foreground text-[10px] font-semibold leading-none"
|
|
16130
|
+
]);
|
|
16131
|
+
function cn107(...classes) {
|
|
16132
|
+
return classes.filter(Boolean).join(" ");
|
|
16133
|
+
}
|
|
16134
|
+
function MosaicThreadIndicator(props) {
|
|
16135
|
+
const { replies, label, ariaLabel, onActivate, disabled = false, className, ref } = props;
|
|
16136
|
+
const unreadCount = replies.filter((reply) => reply.unread).length;
|
|
16137
|
+
return /* @__PURE__ */ jsxs(
|
|
16138
|
+
"button",
|
|
16139
|
+
{
|
|
16140
|
+
ref,
|
|
16141
|
+
"data-slot": "thread-indicator",
|
|
16142
|
+
type: "button",
|
|
16143
|
+
"aria-label": ariaLabel(unreadCount),
|
|
16144
|
+
className: cn107(threadIndicatorRootVariants(), className),
|
|
16145
|
+
disabled,
|
|
16146
|
+
onClick: onActivate,
|
|
16147
|
+
children: [
|
|
16148
|
+
/* @__PURE__ */ jsx("span", { "data-slot": "thread-indicator-label", children: label }),
|
|
16149
|
+
unreadCount > 0 && /* @__PURE__ */ jsx(
|
|
16150
|
+
"span",
|
|
16151
|
+
{
|
|
16152
|
+
"data-slot": "thread-indicator-count",
|
|
16153
|
+
"data-testid": "thread-indicator-count",
|
|
16154
|
+
className: threadIndicatorCountVariants(),
|
|
16155
|
+
children: unreadCount
|
|
16156
|
+
}
|
|
16157
|
+
)
|
|
16158
|
+
]
|
|
16159
|
+
}
|
|
16160
|
+
);
|
|
16161
|
+
}
|
|
16162
|
+
MosaicThreadIndicator.displayName = "MosaicThreadIndicator";
|
|
16163
|
+
var mentionInputFieldVariants = cva([
|
|
16164
|
+
"flex w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm",
|
|
16165
|
+
"outline-none transition-colors placeholder:text-muted-foreground",
|
|
16166
|
+
"focus-visible:ring-1 focus-visible:ring-ring",
|
|
16167
|
+
"disabled:cursor-not-allowed disabled:opacity-50"
|
|
16168
|
+
]);
|
|
16169
|
+
var mentionListVariants = cva(["m-0 max-h-64 list-none overflow-y-auto p-1"]);
|
|
16170
|
+
var mentionListItemVariants = cva(
|
|
16171
|
+
["cursor-pointer rounded-sm px-2 py-1.5 text-sm outline-none"],
|
|
16172
|
+
{
|
|
16173
|
+
variants: {
|
|
16174
|
+
active: {
|
|
16175
|
+
true: "bg-accent text-accent-foreground",
|
|
16176
|
+
false: ""
|
|
16177
|
+
}
|
|
16178
|
+
},
|
|
16179
|
+
defaultVariants: {
|
|
16180
|
+
active: false
|
|
16181
|
+
}
|
|
16182
|
+
}
|
|
16183
|
+
);
|
|
16184
|
+
function cn108(...classes) {
|
|
16185
|
+
return classes.filter(Boolean).join(" ");
|
|
16186
|
+
}
|
|
16187
|
+
function findMentionStart(text, cursor, trigger) {
|
|
16188
|
+
for (let i = cursor - 1; i >= 0; i--) {
|
|
16189
|
+
const char = text[i];
|
|
16190
|
+
if (char === trigger) {
|
|
16191
|
+
return i;
|
|
16192
|
+
}
|
|
16193
|
+
if (/\s/.test(char)) {
|
|
16194
|
+
return null;
|
|
16195
|
+
}
|
|
16196
|
+
}
|
|
16197
|
+
return null;
|
|
16198
|
+
}
|
|
16199
|
+
function MosaicMentionInput({
|
|
16200
|
+
value,
|
|
16201
|
+
onValueChange,
|
|
16202
|
+
triggerCharacter,
|
|
16203
|
+
entries,
|
|
16204
|
+
renderEntry,
|
|
16205
|
+
getEntryText,
|
|
16206
|
+
onQueryChange,
|
|
16207
|
+
onSelectEntry,
|
|
16208
|
+
inputAriaLabel,
|
|
16209
|
+
listAriaLabel,
|
|
16210
|
+
emptyMessage,
|
|
16211
|
+
className,
|
|
16212
|
+
inputClassName
|
|
16213
|
+
}) {
|
|
16214
|
+
const inputRef = useRef(null);
|
|
16215
|
+
const [mentionStart, setMentionStart] = useState(null);
|
|
16216
|
+
const [activeIndex, setActiveIndex] = useState(0);
|
|
16217
|
+
const open = mentionStart !== null;
|
|
16218
|
+
function closeMention() {
|
|
16219
|
+
setMentionStart(null);
|
|
16220
|
+
setActiveIndex(0);
|
|
16221
|
+
onQueryChange(null);
|
|
16222
|
+
}
|
|
16223
|
+
function handleChange(event) {
|
|
16224
|
+
const nextValue = event.target.value;
|
|
16225
|
+
const cursor = event.target.selectionStart ?? nextValue.length;
|
|
16226
|
+
onValueChange(nextValue);
|
|
16227
|
+
const start = findMentionStart(nextValue, cursor, triggerCharacter);
|
|
16228
|
+
if (start === null) {
|
|
16229
|
+
if (open) {
|
|
16230
|
+
closeMention();
|
|
16231
|
+
}
|
|
16232
|
+
return;
|
|
16233
|
+
}
|
|
16234
|
+
setMentionStart(start);
|
|
16235
|
+
setActiveIndex(0);
|
|
16236
|
+
onQueryChange(nextValue.slice(start + triggerCharacter.length, cursor));
|
|
16237
|
+
}
|
|
16238
|
+
function selectEntry(entry) {
|
|
16239
|
+
if (mentionStart === null || !inputRef.current) {
|
|
16240
|
+
return;
|
|
16241
|
+
}
|
|
16242
|
+
const cursor = inputRef.current.selectionStart ?? value.length;
|
|
16243
|
+
const insertText = getEntryText(entry);
|
|
16244
|
+
const nextValue = `${value.slice(0, mentionStart)}${insertText} ${value.slice(cursor)}`;
|
|
16245
|
+
onValueChange(nextValue);
|
|
16246
|
+
onSelectEntry?.(entry);
|
|
16247
|
+
closeMention();
|
|
16248
|
+
}
|
|
16249
|
+
function handleKeyDown(event) {
|
|
16250
|
+
if (!open) {
|
|
16251
|
+
return;
|
|
16252
|
+
}
|
|
16253
|
+
if (event.key === "Escape") {
|
|
16254
|
+
event.preventDefault();
|
|
16255
|
+
closeMention();
|
|
16256
|
+
return;
|
|
16257
|
+
}
|
|
16258
|
+
if (event.key === "ArrowDown") {
|
|
16259
|
+
event.preventDefault();
|
|
16260
|
+
setActiveIndex((index) => Math.min(entries.length - 1, index + 1));
|
|
16261
|
+
return;
|
|
16262
|
+
}
|
|
16263
|
+
if (event.key === "ArrowUp") {
|
|
16264
|
+
event.preventDefault();
|
|
16265
|
+
setActiveIndex((index) => Math.max(0, index - 1));
|
|
16266
|
+
return;
|
|
16267
|
+
}
|
|
16268
|
+
if (event.key === "Enter") {
|
|
16269
|
+
const entry = entries[activeIndex];
|
|
16270
|
+
if (entry) {
|
|
16271
|
+
event.preventDefault();
|
|
16272
|
+
selectEntry(entry);
|
|
16273
|
+
}
|
|
16274
|
+
}
|
|
16275
|
+
}
|
|
16276
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "mention-input", className, children: [
|
|
16277
|
+
/* @__PURE__ */ jsx(
|
|
16278
|
+
"input",
|
|
16279
|
+
{
|
|
16280
|
+
ref: inputRef,
|
|
16281
|
+
type: "text",
|
|
16282
|
+
"aria-label": inputAriaLabel,
|
|
16283
|
+
value,
|
|
16284
|
+
onChange: handleChange,
|
|
16285
|
+
onKeyDown: handleKeyDown,
|
|
16286
|
+
className: cn108(mentionInputFieldVariants(), inputClassName)
|
|
16287
|
+
}
|
|
16288
|
+
),
|
|
16289
|
+
/* @__PURE__ */ jsx(
|
|
16290
|
+
MosaicPopover,
|
|
16291
|
+
{
|
|
16292
|
+
open,
|
|
16293
|
+
onOpenChange: (nextOpen) => {
|
|
16294
|
+
if (!nextOpen) {
|
|
16295
|
+
closeMention();
|
|
16296
|
+
}
|
|
16297
|
+
},
|
|
16298
|
+
anchor: inputRef,
|
|
16299
|
+
initialFocus: false,
|
|
16300
|
+
"aria-label": listAriaLabel,
|
|
16301
|
+
children: entries.length === 0 ? /* @__PURE__ */ jsx("p", { "data-slot": "mention-input-empty", className: "px-2 py-1.5 text-sm text-muted-foreground", children: emptyMessage }) : /* @__PURE__ */ jsx("ul", { "data-slot": "mention-input-list", className: mentionListVariants(), children: entries.map((entry, index) => /* @__PURE__ */ jsx(
|
|
16302
|
+
"li",
|
|
16303
|
+
{
|
|
16304
|
+
"data-slot": "mention-input-item",
|
|
16305
|
+
"aria-selected": index === activeIndex,
|
|
16306
|
+
className: mentionListItemVariants({ active: index === activeIndex }),
|
|
16307
|
+
onMouseEnter: () => setActiveIndex(index),
|
|
16308
|
+
onClick: () => selectEntry(entry),
|
|
16309
|
+
onKeyDown: (event) => {
|
|
16310
|
+
if (event.key === "Enter" || event.key === " ") {
|
|
16311
|
+
event.preventDefault();
|
|
16312
|
+
selectEntry(entry);
|
|
16313
|
+
}
|
|
16314
|
+
},
|
|
16315
|
+
children: renderEntry(entry, index, index === activeIndex)
|
|
16316
|
+
},
|
|
16317
|
+
entry.id
|
|
16318
|
+
)) })
|
|
16319
|
+
}
|
|
16320
|
+
)
|
|
16321
|
+
] });
|
|
16322
|
+
}
|
|
16323
|
+
MosaicMentionInput.displayName = "MosaicMentionInput";
|
|
16324
|
+
function cn109(...classes) {
|
|
16325
|
+
return classes.filter(Boolean).join(" ");
|
|
16326
|
+
}
|
|
16327
|
+
function SearchIcon9() {
|
|
16328
|
+
return /* @__PURE__ */ jsxs(
|
|
16329
|
+
"svg",
|
|
16330
|
+
{
|
|
16331
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
16332
|
+
width: "16",
|
|
16333
|
+
height: "16",
|
|
16334
|
+
viewBox: "0 0 24 24",
|
|
16335
|
+
fill: "none",
|
|
16336
|
+
stroke: "currentColor",
|
|
16337
|
+
strokeWidth: "2",
|
|
16338
|
+
strokeLinecap: "round",
|
|
16339
|
+
strokeLinejoin: "round",
|
|
16340
|
+
"aria-hidden": "true",
|
|
16341
|
+
children: [
|
|
16342
|
+
/* @__PURE__ */ jsx("circle", { cx: "11", cy: "11", r: "8" }),
|
|
16343
|
+
/* @__PURE__ */ jsx("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })
|
|
16344
|
+
]
|
|
16345
|
+
}
|
|
16346
|
+
);
|
|
16347
|
+
}
|
|
16348
|
+
function ClearIcon2() {
|
|
16349
|
+
return /* @__PURE__ */ jsxs(
|
|
16350
|
+
"svg",
|
|
16351
|
+
{
|
|
16352
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
16353
|
+
width: "14",
|
|
16354
|
+
height: "14",
|
|
16355
|
+
viewBox: "0 0 24 24",
|
|
16356
|
+
fill: "none",
|
|
16357
|
+
stroke: "currentColor",
|
|
16358
|
+
strokeWidth: "2",
|
|
16359
|
+
strokeLinecap: "round",
|
|
16360
|
+
strokeLinejoin: "round",
|
|
16361
|
+
"aria-hidden": "true",
|
|
16362
|
+
children: [
|
|
16363
|
+
/* @__PURE__ */ jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
|
16364
|
+
/* @__PURE__ */ jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
16365
|
+
]
|
|
16366
|
+
}
|
|
16367
|
+
);
|
|
16368
|
+
}
|
|
16369
|
+
function MosaicMessageSearch({
|
|
16370
|
+
query,
|
|
16371
|
+
onQueryChange,
|
|
16372
|
+
searchLabel,
|
|
16373
|
+
searchPlaceholder,
|
|
16374
|
+
clearButtonLabel,
|
|
16375
|
+
resultsSlot,
|
|
16376
|
+
emptyResultsLabel,
|
|
16377
|
+
className,
|
|
16378
|
+
ref
|
|
16379
|
+
}) {
|
|
16380
|
+
return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "message-search", className: cn109("flex flex-col gap-2", className), children: [
|
|
16381
|
+
/* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
16382
|
+
/* @__PURE__ */ jsx("span", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: /* @__PURE__ */ jsx(SearchIcon9, {}) }),
|
|
16383
|
+
/* @__PURE__ */ jsx(
|
|
16384
|
+
MosaicInput,
|
|
16385
|
+
{
|
|
16386
|
+
type: "search",
|
|
16387
|
+
"aria-label": searchLabel,
|
|
16388
|
+
placeholder: searchPlaceholder,
|
|
16389
|
+
value: query,
|
|
16390
|
+
onChange: (event) => onQueryChange(event.target.value),
|
|
16391
|
+
className: "pl-9 pr-9"
|
|
16392
|
+
}
|
|
16393
|
+
),
|
|
16394
|
+
query.length > 0 && /* @__PURE__ */ jsx(
|
|
16395
|
+
"button",
|
|
16396
|
+
{
|
|
16397
|
+
type: "button",
|
|
16398
|
+
"aria-label": clearButtonLabel,
|
|
16399
|
+
onClick: () => onQueryChange(""),
|
|
16400
|
+
className: cn109(
|
|
16401
|
+
"absolute right-2 top-1/2 -translate-y-1/2",
|
|
16402
|
+
"flex size-5 items-center justify-center rounded-full",
|
|
16403
|
+
"text-muted-foreground hover:bg-muted hover:text-foreground",
|
|
16404
|
+
"focus-visible:outline-none focus-visible:ring-ring focus-visible:ring-[3px]"
|
|
16405
|
+
),
|
|
16406
|
+
children: /* @__PURE__ */ jsx(ClearIcon2, {})
|
|
16407
|
+
}
|
|
16408
|
+
)
|
|
16409
|
+
] }),
|
|
16410
|
+
resultsSlot ? /* @__PURE__ */ jsx("div", { "data-slot": "message-search-results", children: resultsSlot }) : emptyResultsLabel && /* @__PURE__ */ jsx("p", { "data-slot": "message-search-results", className: "text-sm text-muted-foreground", children: emptyResultsLabel })
|
|
16411
|
+
] });
|
|
16412
|
+
}
|
|
16413
|
+
MosaicMessageSearch.displayName = "MosaicMessageSearch";
|
|
16414
|
+
var sessionCardVariants = cva(
|
|
16415
|
+
[
|
|
16416
|
+
"rounded-lg border border-border bg-card text-card-foreground shadow-sm transition-all",
|
|
16417
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
16418
|
+
],
|
|
16419
|
+
{
|
|
16420
|
+
variants: {
|
|
16421
|
+
variant: {
|
|
16422
|
+
default: "p-5",
|
|
16423
|
+
compact: "flex items-center justify-between gap-3 p-3"
|
|
16424
|
+
},
|
|
16425
|
+
selectable: {
|
|
16426
|
+
true: "cursor-pointer hover:shadow-md",
|
|
16427
|
+
false: ""
|
|
16428
|
+
}
|
|
16429
|
+
},
|
|
16430
|
+
defaultVariants: {
|
|
16431
|
+
variant: "default",
|
|
16432
|
+
selectable: false
|
|
16433
|
+
}
|
|
16434
|
+
}
|
|
16435
|
+
);
|
|
16436
|
+
function cn110(...classes) {
|
|
16437
|
+
return classes.filter(Boolean).join(" ");
|
|
16438
|
+
}
|
|
16439
|
+
var ACTIVATION_KEYS = /* @__PURE__ */ new Set(["Enter", " "]);
|
|
16440
|
+
function MosaicSessionCard(props) {
|
|
16441
|
+
const { session, formatStatus, className, ref, onSelect, selectLabel } = props;
|
|
16442
|
+
const selectable = Boolean(onSelect);
|
|
16443
|
+
function activate() {
|
|
16444
|
+
onSelect?.(session.id);
|
|
16445
|
+
}
|
|
16446
|
+
const interactionProps = selectable ? {
|
|
16447
|
+
role: "button",
|
|
16448
|
+
tabIndex: 0,
|
|
16449
|
+
"aria-label": selectLabel,
|
|
16450
|
+
onClick: activate,
|
|
16451
|
+
onKeyDown: (event) => {
|
|
16452
|
+
if (ACTIVATION_KEYS.has(event.key)) {
|
|
16453
|
+
event.preventDefault();
|
|
16454
|
+
activate();
|
|
16455
|
+
}
|
|
16456
|
+
}
|
|
16457
|
+
} : {};
|
|
16458
|
+
const statusBadge = /* @__PURE__ */ jsx(MosaicBadge, { "data-slot": "session-card-status", children: formatStatus(session.status) });
|
|
16459
|
+
if (props.variant === "compact") {
|
|
16460
|
+
return /* @__PURE__ */ jsxs(
|
|
16461
|
+
MosaicCard,
|
|
16462
|
+
{
|
|
16463
|
+
ref,
|
|
16464
|
+
"data-slot": "session-card",
|
|
16465
|
+
"data-variant": "compact",
|
|
16466
|
+
className: cn110(sessionCardVariants({ variant: "compact", selectable }), className),
|
|
16467
|
+
...interactionProps,
|
|
16468
|
+
children: [
|
|
16469
|
+
/* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 truncate text-sm font-medium", children: session.title }),
|
|
16470
|
+
statusBadge
|
|
16471
|
+
]
|
|
16472
|
+
}
|
|
16473
|
+
);
|
|
16474
|
+
}
|
|
16475
|
+
return /* @__PURE__ */ jsxs(
|
|
16476
|
+
MosaicCard,
|
|
16477
|
+
{
|
|
16478
|
+
ref,
|
|
16479
|
+
"data-slot": "session-card",
|
|
16480
|
+
"data-variant": "default",
|
|
16481
|
+
className: cn110(sessionCardVariants({ variant: "default", selectable }), className),
|
|
16482
|
+
...interactionProps,
|
|
16483
|
+
children: [
|
|
16484
|
+
/* @__PURE__ */ jsxs(MosaicCardHeader, { className: "flex-row items-center justify-between gap-3 p-0", children: [
|
|
16485
|
+
/* @__PURE__ */ jsx("h3", { className: "line-clamp-1 text-base font-semibold", children: session.title }),
|
|
16486
|
+
statusBadge
|
|
16487
|
+
] }),
|
|
16488
|
+
/* @__PURE__ */ jsx(MosaicCardContent, { className: "p-0 pt-3", children: /* @__PURE__ */ jsx(
|
|
16489
|
+
MosaicCardFooter,
|
|
16490
|
+
{
|
|
16491
|
+
"data-slot": "session-card-updated-at",
|
|
16492
|
+
className: "p-0 pt-2 text-xs text-muted-foreground",
|
|
16493
|
+
children: props.formatUpdatedAt(session.updatedAt)
|
|
16494
|
+
}
|
|
16495
|
+
) })
|
|
16496
|
+
]
|
|
16497
|
+
}
|
|
16498
|
+
);
|
|
16499
|
+
}
|
|
16500
|
+
MosaicSessionCard.displayName = "MosaicSessionCard";
|
|
16501
|
+
var sessionListVariants = cva([], {
|
|
16502
|
+
variants: {
|
|
16503
|
+
layout: {
|
|
16504
|
+
/** Single-column vertical stack, divided rows. */
|
|
16505
|
+
stack: "flex flex-col divide-y divide-border",
|
|
16506
|
+
/** Responsive tile grid. */
|
|
16507
|
+
grid: "grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",
|
|
16508
|
+
/** Dense single-column stack — tighter row padding, no divider. */
|
|
16509
|
+
compact: "flex flex-col gap-1",
|
|
16510
|
+
/** Horizontal-scroll row of tiles. */
|
|
16511
|
+
inline: "flex flex-row gap-3 overflow-x-auto"
|
|
16512
|
+
}
|
|
16513
|
+
},
|
|
16514
|
+
defaultVariants: {
|
|
16515
|
+
layout: "stack"
|
|
16516
|
+
}
|
|
16517
|
+
});
|
|
16518
|
+
var sessionListItemVariants = cva([], {
|
|
16519
|
+
variants: {
|
|
16520
|
+
layout: {
|
|
16521
|
+
stack: "py-3",
|
|
16522
|
+
grid: "",
|
|
16523
|
+
compact: "py-1",
|
|
16524
|
+
inline: "shrink-0"
|
|
16525
|
+
}
|
|
16526
|
+
},
|
|
16527
|
+
defaultVariants: {
|
|
16528
|
+
layout: "stack"
|
|
16529
|
+
}
|
|
16530
|
+
});
|
|
16531
|
+
function cn111(...classes) {
|
|
16532
|
+
return classes.filter(Boolean).join(" ");
|
|
16533
|
+
}
|
|
16534
|
+
var NEXT_KEYS5 = /* @__PURE__ */ new Set(["ArrowRight", "ArrowDown"]);
|
|
16535
|
+
var PREV_KEYS5 = /* @__PURE__ */ new Set(["ArrowLeft", "ArrowUp"]);
|
|
16536
|
+
function MosaicSessionList({
|
|
16537
|
+
items,
|
|
16538
|
+
renderItem,
|
|
16539
|
+
layout = "stack",
|
|
16540
|
+
emptyMessage,
|
|
16541
|
+
className,
|
|
16542
|
+
itemClassName,
|
|
16543
|
+
ref
|
|
16544
|
+
}) {
|
|
16545
|
+
const itemRefs = useRef([]);
|
|
16546
|
+
const [focusedIndex, setFocusedIndex] = useState(0);
|
|
16547
|
+
function focusItem(index) {
|
|
16548
|
+
if (items.length === 0) {
|
|
16549
|
+
return;
|
|
16550
|
+
}
|
|
16551
|
+
const clamped = Math.max(0, Math.min(items.length - 1, index));
|
|
16552
|
+
setFocusedIndex(clamped);
|
|
16553
|
+
itemRefs.current[clamped]?.focus();
|
|
16554
|
+
}
|
|
16555
|
+
function handleKeyDown(event, index) {
|
|
16556
|
+
if (NEXT_KEYS5.has(event.key)) {
|
|
16557
|
+
event.preventDefault();
|
|
16558
|
+
focusItem(index + 1);
|
|
16559
|
+
} else if (PREV_KEYS5.has(event.key)) {
|
|
16560
|
+
event.preventDefault();
|
|
16561
|
+
focusItem(index - 1);
|
|
16562
|
+
} else if (event.key === "Home") {
|
|
16563
|
+
event.preventDefault();
|
|
16564
|
+
focusItem(0);
|
|
16565
|
+
} else if (event.key === "End") {
|
|
16566
|
+
event.preventDefault();
|
|
16567
|
+
focusItem(items.length - 1);
|
|
16568
|
+
}
|
|
16569
|
+
}
|
|
16570
|
+
if (items.length === 0) {
|
|
16571
|
+
return /* @__PURE__ */ jsx(
|
|
16572
|
+
"div",
|
|
16573
|
+
{
|
|
16574
|
+
ref,
|
|
16575
|
+
"data-slot": "session-list",
|
|
16576
|
+
"data-layout": layout,
|
|
16577
|
+
className: cn111(sessionListVariants({ layout }), className),
|
|
16578
|
+
children: /* @__PURE__ */ jsx(
|
|
16579
|
+
"p",
|
|
16580
|
+
{
|
|
16581
|
+
"data-slot": "session-list-empty",
|
|
16582
|
+
className: "py-12 text-center text-sm text-muted-foreground",
|
|
16583
|
+
children: emptyMessage
|
|
16584
|
+
}
|
|
16585
|
+
)
|
|
16586
|
+
}
|
|
16587
|
+
);
|
|
16588
|
+
}
|
|
16589
|
+
return /* @__PURE__ */ jsx(
|
|
16590
|
+
"ul",
|
|
16591
|
+
{
|
|
16592
|
+
ref,
|
|
16593
|
+
"data-slot": "session-list",
|
|
16594
|
+
"data-layout": layout,
|
|
16595
|
+
className: cn111("list-none", sessionListVariants({ layout }), className),
|
|
16596
|
+
children: items.map((item, index) => /* @__PURE__ */ jsx(
|
|
16597
|
+
"li",
|
|
16598
|
+
{
|
|
16599
|
+
ref: (node) => {
|
|
16600
|
+
itemRefs.current[index] = node;
|
|
16601
|
+
},
|
|
16602
|
+
"data-slot": "session-list-item",
|
|
16603
|
+
tabIndex: index === focusedIndex ? 0 : -1,
|
|
16604
|
+
onKeyDown: (event) => handleKeyDown(event, index),
|
|
16605
|
+
onFocus: () => setFocusedIndex(index),
|
|
16606
|
+
className: cn111(sessionListItemVariants({ layout }), itemClassName),
|
|
16607
|
+
children: renderItem(item, index)
|
|
16608
|
+
},
|
|
16609
|
+
item.id
|
|
16610
|
+
))
|
|
16611
|
+
}
|
|
16612
|
+
);
|
|
16613
|
+
}
|
|
16614
|
+
MosaicSessionList.displayName = "MosaicSessionList";
|
|
16615
|
+
var editSessionDialogBodyVariants = cva(["flex flex-col gap-4"]);
|
|
16616
|
+
var editSessionDialogFieldVariants = cva(["flex flex-col gap-1.5"]);
|
|
16617
|
+
var editSessionDialogErrorVariants = cva(["text-xs font-medium text-destructive"]);
|
|
16618
|
+
var editSessionDialogFooterVariants = cva([
|
|
16619
|
+
"flex items-center justify-end gap-3 border-t border-border pt-4"
|
|
16620
|
+
]);
|
|
16621
|
+
var editSessionDialogButtonVariants = cva(
|
|
16622
|
+
[
|
|
16623
|
+
"inline-flex min-h-9 items-center justify-center gap-2 rounded-md px-4 text-sm font-medium",
|
|
16624
|
+
"transition-colors disabled:cursor-not-allowed disabled:opacity-50"
|
|
16625
|
+
],
|
|
16626
|
+
{
|
|
16627
|
+
variants: {
|
|
16628
|
+
intent: {
|
|
16629
|
+
cancel: "border border-border bg-background hover:bg-muted",
|
|
16630
|
+
save: "border border-transparent bg-primary text-primary-foreground hover:bg-primary/90"
|
|
16631
|
+
}
|
|
16632
|
+
},
|
|
16633
|
+
defaultVariants: {
|
|
16634
|
+
intent: "cancel"
|
|
16635
|
+
}
|
|
16636
|
+
}
|
|
16637
|
+
);
|
|
16638
|
+
function cn112(...classes) {
|
|
16639
|
+
return classes.filter(Boolean).join(" ");
|
|
16640
|
+
}
|
|
16641
|
+
function MosaicEditSessionDialog({
|
|
16642
|
+
open,
|
|
16643
|
+
onOpenChange,
|
|
16644
|
+
title,
|
|
16645
|
+
description,
|
|
16646
|
+
closeAriaLabel,
|
|
16647
|
+
name,
|
|
16648
|
+
onNameChange,
|
|
16649
|
+
nameLabel,
|
|
16650
|
+
namePlaceholder,
|
|
16651
|
+
nameError,
|
|
16652
|
+
classifications,
|
|
16653
|
+
classification,
|
|
16654
|
+
onClassificationChange,
|
|
16655
|
+
classificationLabel,
|
|
16656
|
+
isSaving,
|
|
16657
|
+
canSave,
|
|
16658
|
+
onSave,
|
|
16659
|
+
onCancel,
|
|
16660
|
+
saveButtonLabel,
|
|
16661
|
+
savingLabel,
|
|
16662
|
+
cancelButtonLabel,
|
|
16663
|
+
className
|
|
16664
|
+
}) {
|
|
16665
|
+
const nameErrorId = useId();
|
|
16666
|
+
if (!open) return null;
|
|
16667
|
+
return /* @__PURE__ */ jsx(
|
|
16668
|
+
MosaicAdaptiveModal,
|
|
16669
|
+
{
|
|
16670
|
+
isOpen: open,
|
|
16671
|
+
onClose: () => onOpenChange(false),
|
|
16672
|
+
title,
|
|
16673
|
+
description,
|
|
16674
|
+
closeAriaLabel,
|
|
16675
|
+
children: /* @__PURE__ */ jsxs(
|
|
16676
|
+
"div",
|
|
16677
|
+
{
|
|
16678
|
+
"data-slot": "edit-session-dialog",
|
|
16679
|
+
className: cn112(editSessionDialogBodyVariants(), className),
|
|
16680
|
+
children: [
|
|
16681
|
+
/* @__PURE__ */ jsxs("div", { className: editSessionDialogFieldVariants(), children: [
|
|
16682
|
+
/* @__PURE__ */ jsx("label", { htmlFor: "mosaic-edit-session-name", className: "text-sm font-medium text-foreground", children: nameLabel }),
|
|
16683
|
+
/* @__PURE__ */ jsx(
|
|
16684
|
+
MosaicInput,
|
|
16685
|
+
{
|
|
16686
|
+
id: "mosaic-edit-session-name",
|
|
16687
|
+
value: name,
|
|
16688
|
+
placeholder: namePlaceholder,
|
|
16689
|
+
onChange: (e) => onNameChange(e.target.value),
|
|
16690
|
+
"aria-invalid": nameError ? "true" : "false",
|
|
16691
|
+
"aria-describedby": nameError ? nameErrorId : void 0
|
|
16692
|
+
}
|
|
16693
|
+
),
|
|
16694
|
+
nameError && /* @__PURE__ */ jsx("p", { id: nameErrorId, className: editSessionDialogErrorVariants(), children: nameError })
|
|
16695
|
+
] }),
|
|
16696
|
+
/* @__PURE__ */ jsxs("div", { className: editSessionDialogFieldVariants(), children: [
|
|
16697
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-foreground", children: classificationLabel }),
|
|
16698
|
+
/* @__PURE__ */ jsx(
|
|
16699
|
+
MosaicSelect,
|
|
16700
|
+
{
|
|
16701
|
+
items: classifications,
|
|
16702
|
+
value: classification,
|
|
16703
|
+
onValueChange: (value) => {
|
|
16704
|
+
if (value) onClassificationChange(value);
|
|
16705
|
+
}
|
|
16706
|
+
}
|
|
16707
|
+
)
|
|
16708
|
+
] }),
|
|
16709
|
+
/* @__PURE__ */ jsxs("div", { className: editSessionDialogFooterVariants(), children: [
|
|
16710
|
+
/* @__PURE__ */ jsx(
|
|
16711
|
+
"button",
|
|
16712
|
+
{
|
|
16713
|
+
type: "button",
|
|
16714
|
+
"data-slot": "edit-session-dialog-cancel-button",
|
|
16715
|
+
onClick: onCancel,
|
|
16716
|
+
disabled: isSaving,
|
|
16717
|
+
className: editSessionDialogButtonVariants({ intent: "cancel" }),
|
|
16718
|
+
children: cancelButtonLabel
|
|
16719
|
+
}
|
|
16720
|
+
),
|
|
16721
|
+
/* @__PURE__ */ jsx(
|
|
16722
|
+
"button",
|
|
16723
|
+
{
|
|
16724
|
+
type: "button",
|
|
16725
|
+
"data-slot": "edit-session-dialog-save-button",
|
|
16726
|
+
onClick: onSave,
|
|
16727
|
+
disabled: !canSave || isSaving,
|
|
16728
|
+
"aria-busy": isSaving ? "true" : "false",
|
|
16729
|
+
className: editSessionDialogButtonVariants({ intent: "save" }),
|
|
16730
|
+
children: isSaving ? savingLabel : saveButtonLabel
|
|
16731
|
+
}
|
|
16732
|
+
)
|
|
16733
|
+
] })
|
|
16734
|
+
]
|
|
16735
|
+
}
|
|
16736
|
+
)
|
|
16737
|
+
}
|
|
16738
|
+
);
|
|
16739
|
+
}
|
|
16740
|
+
MosaicEditSessionDialog.displayName = "MosaicEditSessionDialog";
|
|
16741
|
+
var saveChatAsMemoryFormRootVariants = cva(["flex flex-col gap-4"]);
|
|
16742
|
+
var saveChatAsMemoryFormFieldVariants = cva(["flex flex-col gap-1.5"]);
|
|
16743
|
+
var saveChatAsMemoryFormErrorVariants = cva(["text-xs font-medium text-destructive"]);
|
|
16744
|
+
var saveChatAsMemoryFormFooterVariants = cva([
|
|
16745
|
+
"flex items-center justify-end gap-3 border-t border-border pt-4"
|
|
16746
|
+
]);
|
|
16747
|
+
var saveChatAsMemoryFormButtonVariants = cva(
|
|
16748
|
+
[
|
|
16749
|
+
"inline-flex min-h-9 items-center justify-center gap-2 rounded-md px-4 text-sm font-medium",
|
|
16750
|
+
"transition-colors disabled:cursor-not-allowed disabled:opacity-50"
|
|
16751
|
+
],
|
|
16752
|
+
{
|
|
16753
|
+
variants: {
|
|
16754
|
+
intent: {
|
|
16755
|
+
cancel: "border border-border bg-background hover:bg-muted",
|
|
16756
|
+
save: "border border-transparent bg-primary text-primary-foreground hover:bg-primary/90"
|
|
16757
|
+
}
|
|
16758
|
+
},
|
|
16759
|
+
defaultVariants: {
|
|
16760
|
+
intent: "cancel"
|
|
16761
|
+
}
|
|
16762
|
+
}
|
|
16763
|
+
);
|
|
16764
|
+
function cn113(...classes) {
|
|
16765
|
+
return classes.filter(Boolean).join(" ");
|
|
16766
|
+
}
|
|
16767
|
+
function MosaicSaveChatAsMemoryForm({
|
|
16768
|
+
title,
|
|
16769
|
+
onTitleChange,
|
|
16770
|
+
titleLabel,
|
|
16771
|
+
titlePlaceholder,
|
|
16772
|
+
titleError,
|
|
16773
|
+
content,
|
|
16774
|
+
onContentChange,
|
|
16775
|
+
contentLabel,
|
|
16776
|
+
contentPlaceholder,
|
|
16777
|
+
contentError,
|
|
16778
|
+
tags,
|
|
16779
|
+
onAddTag,
|
|
16780
|
+
onRemoveTag,
|
|
16781
|
+
tagsLabel,
|
|
16782
|
+
tagInputPlaceholder,
|
|
16783
|
+
removeTagAriaLabel,
|
|
16784
|
+
suggestedTags,
|
|
16785
|
+
maxTags,
|
|
16786
|
+
isSaving,
|
|
16787
|
+
canSave,
|
|
16788
|
+
onSave,
|
|
16789
|
+
onCancel,
|
|
16790
|
+
saveLabel,
|
|
16791
|
+
savingLabel,
|
|
16792
|
+
cancelLabel,
|
|
16793
|
+
className
|
|
16794
|
+
}) {
|
|
16795
|
+
const titleErrorId = useId();
|
|
16796
|
+
const contentErrorId = useId();
|
|
16797
|
+
return /* @__PURE__ */ jsxs(
|
|
16798
|
+
"div",
|
|
16799
|
+
{
|
|
16800
|
+
"data-slot": "save-chat-as-memory-form",
|
|
16801
|
+
className: cn113(saveChatAsMemoryFormRootVariants(), className),
|
|
16802
|
+
children: [
|
|
16803
|
+
/* @__PURE__ */ jsxs("div", { className: saveChatAsMemoryFormFieldVariants(), children: [
|
|
16804
|
+
/* @__PURE__ */ jsx(
|
|
16805
|
+
"label",
|
|
16806
|
+
{
|
|
16807
|
+
htmlFor: "mosaic-save-chat-as-memory-title",
|
|
16808
|
+
className: "text-sm font-medium text-foreground",
|
|
16809
|
+
children: titleLabel
|
|
16810
|
+
}
|
|
16811
|
+
),
|
|
16812
|
+
/* @__PURE__ */ jsx(
|
|
16813
|
+
MosaicInput,
|
|
16814
|
+
{
|
|
16815
|
+
id: "mosaic-save-chat-as-memory-title",
|
|
16816
|
+
value: title,
|
|
16817
|
+
placeholder: titlePlaceholder,
|
|
16818
|
+
onChange: (e) => onTitleChange(e.target.value),
|
|
16819
|
+
"aria-invalid": titleError ? "true" : "false",
|
|
16820
|
+
"aria-describedby": titleError ? titleErrorId : void 0
|
|
16821
|
+
}
|
|
16822
|
+
),
|
|
16823
|
+
titleError && /* @__PURE__ */ jsx("p", { id: titleErrorId, className: saveChatAsMemoryFormErrorVariants(), children: titleError })
|
|
16824
|
+
] }),
|
|
16825
|
+
/* @__PURE__ */ jsxs("div", { className: saveChatAsMemoryFormFieldVariants(), children: [
|
|
16826
|
+
/* @__PURE__ */ jsx(
|
|
16827
|
+
"label",
|
|
16828
|
+
{
|
|
16829
|
+
htmlFor: "mosaic-save-chat-as-memory-content",
|
|
16830
|
+
className: "text-sm font-medium text-foreground",
|
|
16831
|
+
children: contentLabel
|
|
16832
|
+
}
|
|
16833
|
+
),
|
|
16834
|
+
/* @__PURE__ */ jsx(
|
|
16835
|
+
MosaicTextarea,
|
|
16836
|
+
{
|
|
16837
|
+
id: "mosaic-save-chat-as-memory-content",
|
|
16838
|
+
value: content,
|
|
16839
|
+
placeholder: contentPlaceholder,
|
|
16840
|
+
onChange: (e) => onContentChange(e.target.value),
|
|
16841
|
+
rows: 4,
|
|
16842
|
+
"aria-invalid": contentError ? "true" : "false",
|
|
16843
|
+
"aria-describedby": contentError ? contentErrorId : void 0
|
|
16844
|
+
}
|
|
16845
|
+
),
|
|
16846
|
+
contentError && /* @__PURE__ */ jsx("p", { id: contentErrorId, className: saveChatAsMemoryFormErrorVariants(), children: contentError })
|
|
16847
|
+
] }),
|
|
16848
|
+
/* @__PURE__ */ jsxs("div", { className: saveChatAsMemoryFormFieldVariants(), children: [
|
|
16849
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-foreground", children: tagsLabel }),
|
|
16850
|
+
/* @__PURE__ */ jsx(
|
|
16851
|
+
MosaicTagInput,
|
|
16852
|
+
{
|
|
16853
|
+
tags,
|
|
16854
|
+
onAddTag,
|
|
16855
|
+
onRemoveTag,
|
|
16856
|
+
placeholder: tagInputPlaceholder,
|
|
16857
|
+
removeTagAriaLabel,
|
|
16858
|
+
suggestions: suggestedTags,
|
|
16859
|
+
maxTags
|
|
16860
|
+
}
|
|
16861
|
+
)
|
|
16862
|
+
] }),
|
|
16863
|
+
/* @__PURE__ */ jsxs("div", { className: saveChatAsMemoryFormFooterVariants(), children: [
|
|
16864
|
+
/* @__PURE__ */ jsx(
|
|
16865
|
+
"button",
|
|
16866
|
+
{
|
|
16867
|
+
type: "button",
|
|
16868
|
+
"data-slot": "save-chat-as-memory-form-cancel-button",
|
|
16869
|
+
onClick: onCancel,
|
|
16870
|
+
disabled: isSaving,
|
|
16871
|
+
className: saveChatAsMemoryFormButtonVariants({ intent: "cancel" }),
|
|
16872
|
+
children: cancelLabel
|
|
16873
|
+
}
|
|
16874
|
+
),
|
|
16875
|
+
/* @__PURE__ */ jsx(
|
|
16876
|
+
"button",
|
|
16877
|
+
{
|
|
16878
|
+
type: "button",
|
|
16879
|
+
"data-slot": "save-chat-as-memory-form-save-button",
|
|
16880
|
+
onClick: onSave,
|
|
16881
|
+
disabled: !canSave || isSaving,
|
|
16882
|
+
"aria-busy": isSaving ? "true" : "false",
|
|
16883
|
+
className: saveChatAsMemoryFormButtonVariants({ intent: "save" }),
|
|
16884
|
+
children: isSaving ? savingLabel : saveLabel
|
|
16885
|
+
}
|
|
16886
|
+
)
|
|
16887
|
+
] })
|
|
16888
|
+
]
|
|
16889
|
+
}
|
|
16890
|
+
);
|
|
16891
|
+
}
|
|
16892
|
+
MosaicSaveChatAsMemoryForm.displayName = "MosaicSaveChatAsMemoryForm";
|
|
15807
16893
|
|
|
15808
|
-
export { MosaicAccordion, MosaicAccordionItem, MosaicAccordionPanel, MosaicAccordionTrigger, MosaicActivityFeed, MosaicActivityItem, MosaicAdaptiveGrid, MosaicAdaptiveModal, MosaicAdaptiveNavigation, MosaicAddMemoryForm, MosaicAgentBuilderModal, MosaicAgentCard, MosaicAgentChat, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, MosaicAgentEditor, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, MosaicAgentPreview, MosaicAgentTeamPreview, MosaicAlertDialog, MosaicAlertDialogAction, MosaicAlertDialogCancel, MosaicAlertDialogContent, MosaicAlertDialogDescription, MosaicAlertDialogFooter, MosaicAlertDialogHeader, MosaicAlertDialogOverlay, MosaicAlertDialogPortal, MosaicAlertDialogTitle, MosaicAlertDialogTrigger, MosaicAnimatedList, MosaicApiKeyPanel, MosaicAppSidebar, MosaicApprovalPrompt, MosaicAvatar, MosaicBadge, MosaicBlurredOrb, MosaicButton, MosaicCard, MosaicCardContent, MosaicCardDescription, MosaicCardFooter, MosaicCardHeader, MosaicCardTitle, MosaicChatComposer, MosaicChatMessage, MosaicChatSidebar, MosaicChatThread, MosaicCheckbox, MosaicClerkOrgSwitcher, MosaicClerkWebhookHandler, MosaicCollapsible, MosaicCollapsiblePanel, MosaicCollapsibleTrigger, MosaicCombobox, MosaicCounter, MosaicCreateOrgDialog, MosaicDashboardContent, MosaicDashboardHeader, MosaicDashboardLayout, MosaicDataTable, MosaicDeleteConfirmationDialog, MosaicDeviceProvider, MosaicDocumentUpload, MosaicDrawer, MosaicDropdownMenu, MosaicEditMemoryDialog, MosaicEmptyState, MosaicFallingPattern, MosaicFeature3Col, MosaicFeatureCenteredMedia, MosaicField, MosaicFieldControl, MosaicFieldDescription, MosaicFieldError, MosaicFieldLabel, MosaicFilterBar, MosaicFilterSidebar, MosaicFooterSimple, MosaicHeroSplit, MosaicInput, MosaicInputGroup, MosaicIntegrationsBadge, MosaicInviteMemberDialog, MosaicKanbanBoard, MosaicKanbanColumn, MosaicLogosGrid, MosaicMainNav, MosaicMarkdown, MosaicMarketplaceCard, MosaicMarketplaceList, MarketplaceListDesktop as MosaicMarketplaceListDesktop, MarketplaceListMobile as MosaicMarketplaceListMobile, MosaicMemberList, MosaicMemoryCard, MosaicMemoryDashboard, MosaicMemoryGrid, MosaicMemoryList, MosaicMemorySearch, MosaicMessageCard, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, MosaicModelSelector, MosaicModuleCard, MosaicModuleForm, MosaicModuleLibrary, MosaicMultiOrgIndicator, MosaicMultiTenantProvider, MosaicNavbar, MosaicOrgPanel, MosaicOrgProfilePage, MosaicOrgRoleBadge, MosaicOrgSwitcher, MosaicPdfViewer, MosaicPopover, MosaicPreferencesPanel, MosaicPricingCard, MosaicProfilePanel, MosaicProgress, MosaicQuickActionCard, MosaicQuickActionsMenu, MosaicQuickAgentSelector, MosaicQuickStartPanel, MosaicRadioGroup, MosaicRadioGroupItem, MosaicResizableSplitPane, MosaicSaveTemplateModal, MosaicScrollArea, MosaicSelect, MosaicSelectorModal, MosaicSeparator, MosaicSignInLayout, MosaicSignUpLayout, MosaicSkeleton, MosaicSlider, MosaicStatsGrid, MosaicStepPipeline, MosaicSwitch, MosaicTabs, MosaicTabsList, MosaicTabsPanel, MosaicTabsTrigger, MosaicTagInput, MosaicTemplateAgentCard, MosaicTemplateCard, MosaicTemplateCategoryChips, MosaicTemplateGallery, MosaicTemplateList, MosaicTemplateManagementPanel, MosaicTemplatePreview, MosaicTestimonialsGrid, MosaicTextarea, MosaicThemeProvider, MosaicThemeToggle, MosaicToast, MosaicToastProvider, MosaicToolToggleList, MosaicTooltip, MosaicTooltipContent, MosaicTooltipProvider, MosaicTooltipRoot, MosaicTooltipTrigger, MosaicUrlScraper, MosaicUserButton, Placeholder, addMemoryFormButtonVariants, addMemoryFormErrorVariants, addMemoryFormFieldVariants, addMemoryFormFooterVariants, addMemoryFormRootVariants, agentBuilderModalBackdropVariants, agentBuilderModalPopupVariants, agentChatRootVariants, agentEditorVariants, agentPreviewVariants, alertDialogContentVariants, alertDialogOverlayVariants, badgeVariants, buttonVariants, chatMessageBubbleVariants, chatMessageContainerVariants, chatMessageToolStatusVariants, chatSidebarThreadVariants, drawerBackdropVariants, drawerPopupVariants, editMemoryDialogBackdropVariants, editMemoryDialogErrorVariants, editMemoryDialogFieldVariants, editMemoryDialogPopupVariants, marketplaceCardVariants, memoryDashboardViewToggleButtonVariants, memoryGridVariants, memoryListItemVariants, memoryListVariants, memorySearchFilterChipVariants, pdfViewerFrameVariants, pdfViewerStatusVariants, pdfViewerToolbarButtonVariants, popoverPopupVariants, saveTemplateModalBodyVariants, saveTemplateModalButtonVariants, saveTemplateModalErrorVariants, saveTemplateModalFieldVariants, saveTemplateModalFooterVariants, skeletonVariants, splitPaneCollapseButtonVariants, splitPaneHandleVariants, splitPaneRootVariants, tagInputFieldVariants, tagInputRemoveButtonVariants, tagInputRootVariants, tagInputTagVariants, templateAgentCardBadgeVariants, templateAgentCardTagVariants, templateAgentCardVariants, templateCategoryChipVariants, templateListVariants, templateManagementRowVariants, toastCardVariants, toastDismissButtonVariants, toastProviderPositionVariants, toastTitleVariants, toolToggleListRowVariants, toolToggleListSectionVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
|
|
16894
|
+
export { MosaicAccordion, MosaicAccordionItem, MosaicAccordionPanel, MosaicAccordionTrigger, MosaicActivityFeed, MosaicActivityItem, MosaicAdaptiveGrid, MosaicAdaptiveModal, MosaicAdaptiveNavigation, MosaicAddMemoryForm, MosaicAgentBuilderModal, MosaicAgentCard, MosaicAgentChat, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, MosaicAgentEditor, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, MosaicAgentPreview, MosaicAgentTeamPreview, MosaicAlertDialog, MosaicAlertDialogAction, MosaicAlertDialogCancel, MosaicAlertDialogContent, MosaicAlertDialogDescription, MosaicAlertDialogFooter, MosaicAlertDialogHeader, MosaicAlertDialogOverlay, MosaicAlertDialogPortal, MosaicAlertDialogTitle, MosaicAlertDialogTrigger, MosaicAnimatedList, MosaicApiKeyPanel, MosaicAppSidebar, MosaicApprovalPrompt, MosaicAvatar, MosaicBadge, MosaicBlurredOrb, MosaicButton, MosaicCard, MosaicCardContent, MosaicCardDescription, MosaicCardFooter, MosaicCardHeader, MosaicCardTitle, MosaicChatComposer, MosaicChatMessage, MosaicChatSidebar, MosaicChatThread, MosaicCheckbox, MosaicClerkOrgSwitcher, MosaicClerkWebhookHandler, MosaicCollapsible, MosaicCollapsiblePanel, MosaicCollapsibleTrigger, MosaicCombobox, MosaicCounter, MosaicCreateOrgDialog, MosaicDashboardContent, MosaicDashboardHeader, MosaicDashboardLayout, MosaicDataTable, MosaicDeleteConfirmationDialog, MosaicDeviceProvider, MosaicDocumentUpload, MosaicDrawer, MosaicDropdownMenu, MosaicEditMemoryDialog, MosaicEditSessionDialog, MosaicEmptyState, MosaicFallingPattern, MosaicFeature3Col, MosaicFeatureCenteredMedia, MosaicField, MosaicFieldControl, MosaicFieldDescription, MosaicFieldError, MosaicFieldLabel, MosaicFilterBar, MosaicFilterSidebar, MosaicFooterSimple, MosaicHeroSplit, MosaicInput, MosaicInputGroup, MosaicIntegrationsBadge, MosaicInviteMemberDialog, MosaicKanbanBoard, MosaicKanbanColumn, MosaicLogosGrid, MosaicMainNav, MosaicMarkdown, MosaicMarketplaceCard, MosaicMarketplaceList, MarketplaceListDesktop as MosaicMarketplaceListDesktop, MarketplaceListMobile as MosaicMarketplaceListMobile, MosaicMemberList, MosaicMemoryCard, MosaicMemoryDashboard, MosaicMemoryGrid, MosaicMemoryList, MosaicMemorySearch, MosaicMentionInput, MosaicMessageCard, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, MosaicMessageSearch, MosaicModelSelector, MosaicModuleCard, MosaicModuleForm, MosaicModuleLibrary, MosaicMultiOrgIndicator, MosaicMultiTenantProvider, MosaicNavbar, MosaicOrgPanel, MosaicOrgProfilePage, MosaicOrgRoleBadge, MosaicOrgSwitcher, MosaicPdfViewer, MosaicPopover, MosaicPreferencesPanel, MosaicPricingCard, MosaicProfilePanel, MosaicProgress, MosaicQuickActionCard, MosaicQuickActionsMenu, MosaicQuickAgentSelector, MosaicQuickStartPanel, MosaicRadioGroup, MosaicRadioGroupItem, MosaicReplyInput, MosaicResizableSplitPane, MosaicSaveChatAsMemoryForm, MosaicSaveTemplateModal, MosaicScrollArea, MosaicSelect, MosaicSelectorModal, MosaicSeparator, MosaicSessionCard, MosaicSessionList, MosaicSignInLayout, MosaicSignUpLayout, MosaicSkeleton, MosaicSlider, MosaicStatsGrid, MosaicStepPipeline, MosaicSwitch, MosaicTabs, MosaicTabsList, MosaicTabsPanel, MosaicTabsTrigger, MosaicTagInput, MosaicTemplateAgentCard, MosaicTemplateCard, MosaicTemplateCategoryChips, MosaicTemplateGallery, MosaicTemplateList, MosaicTemplateManagementPanel, MosaicTemplatePreview, MosaicTestimonialsGrid, MosaicTextarea, MosaicThemeProvider, MosaicThemeToggle, MosaicThreadIndicator, MosaicThreadView, MosaicToast, MosaicToastProvider, MosaicToolToggleList, MosaicTooltip, MosaicTooltipContent, MosaicTooltipProvider, MosaicTooltipRoot, MosaicTooltipTrigger, MosaicUrlScraper, MosaicUserButton, Placeholder, addMemoryFormButtonVariants, addMemoryFormErrorVariants, addMemoryFormFieldVariants, addMemoryFormFooterVariants, addMemoryFormRootVariants, agentBuilderModalBackdropVariants, agentBuilderModalPopupVariants, agentChatRootVariants, agentEditorVariants, agentPreviewVariants, alertDialogContentVariants, alertDialogOverlayVariants, badgeVariants, buttonVariants, chatMessageBubbleVariants, chatMessageContainerVariants, chatMessageToolStatusVariants, chatSidebarThreadVariants, drawerBackdropVariants, drawerPopupVariants, editMemoryDialogBackdropVariants, editMemoryDialogErrorVariants, editMemoryDialogFieldVariants, editMemoryDialogPopupVariants, editSessionDialogBodyVariants, editSessionDialogButtonVariants, editSessionDialogErrorVariants, editSessionDialogFieldVariants, editSessionDialogFooterVariants, marketplaceCardVariants, memoryDashboardViewToggleButtonVariants, memoryGridVariants, memoryListItemVariants, memoryListVariants, memorySearchFilterChipVariants, mentionInputFieldVariants, mentionListItemVariants, mentionListVariants, pdfViewerFrameVariants, pdfViewerStatusVariants, pdfViewerToolbarButtonVariants, popoverPopupVariants, replyInputActionButtonVariants, replyInputContextVariants, replyInputRootVariants, replyInputTextareaVariants, saveChatAsMemoryFormButtonVariants, saveChatAsMemoryFormErrorVariants, saveChatAsMemoryFormFieldVariants, saveChatAsMemoryFormFooterVariants, saveChatAsMemoryFormRootVariants, saveTemplateModalBodyVariants, saveTemplateModalButtonVariants, saveTemplateModalErrorVariants, saveTemplateModalFieldVariants, saveTemplateModalFooterVariants, sessionCardVariants, sessionListItemVariants, sessionListVariants, skeletonVariants, splitPaneCollapseButtonVariants, splitPaneHandleVariants, splitPaneRootVariants, tagInputFieldVariants, tagInputRemoveButtonVariants, tagInputRootVariants, tagInputTagVariants, templateAgentCardBadgeVariants, templateAgentCardTagVariants, templateAgentCardVariants, templateCategoryChipVariants, templateListVariants, templateManagementRowVariants, threadIndicatorCountVariants, threadIndicatorRootVariants, threadViewEmptyVariants, threadViewRepliesVariants, threadViewReplyVariants, threadViewRootMessageVariants, threadViewRootVariants, toastCardVariants, toastDismissButtonVariants, toastProviderPositionVariants, toastTitleVariants, toolToggleListRowVariants, toolToggleListSectionVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
|
|
15809
16895
|
//# sourceMappingURL=index.js.map
|
|
15810
16896
|
//# sourceMappingURL=index.js.map
|