@vantageos/mosaic-blocks 0.5.28-alpha → 0.5.30-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 +1145 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1169 -7
- package/dist/index.d.ts +1169 -7
- package/dist/index.js +1108 -8
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
- package/registry.json +1400 -308
package/dist/index.cjs
CHANGED
|
@@ -48,7 +48,7 @@ function _interopNamespace(e) {
|
|
|
48
48
|
var React30__namespace = /*#__PURE__*/_interopNamespace(React30);
|
|
49
49
|
|
|
50
50
|
// src/version.ts
|
|
51
|
-
var version = "0.5.
|
|
51
|
+
var version = "0.5.30-alpha";
|
|
52
52
|
function Placeholder({ label = "mosaic-blocks placeholder" }) {
|
|
53
53
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-mosaic-block": "placeholder", children: label });
|
|
54
54
|
}
|
|
@@ -7448,6 +7448,9 @@ function MosaicMessageCard({
|
|
|
7448
7448
|
bookmarkLabel,
|
|
7449
7449
|
copyMessageLabel,
|
|
7450
7450
|
aiSenderLabel,
|
|
7451
|
+
viewThreadLabel,
|
|
7452
|
+
likeAriaLabel,
|
|
7453
|
+
dislikeAriaLabel,
|
|
7451
7454
|
className
|
|
7452
7455
|
}) {
|
|
7453
7456
|
const [bookmarked, setBookmarked] = React30__namespace.useState(message.bookmarked ?? false);
|
|
@@ -7563,7 +7566,7 @@ function MosaicMessageCard({
|
|
|
7563
7566
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
7564
7567
|
hasLiked && "text-primary"
|
|
7565
7568
|
),
|
|
7566
|
-
"aria-label":
|
|
7569
|
+
"aria-label": likeAriaLabel(likes),
|
|
7567
7570
|
children: [
|
|
7568
7571
|
icons.thumbUp,
|
|
7569
7572
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: likes })
|
|
@@ -7581,7 +7584,7 @@ function MosaicMessageCard({
|
|
|
7581
7584
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
7582
7585
|
hasDisliked && "text-destructive"
|
|
7583
7586
|
),
|
|
7584
|
-
"aria-label":
|
|
7587
|
+
"aria-label": dislikeAriaLabel(dislikes),
|
|
7585
7588
|
children: [
|
|
7586
7589
|
icons.thumbDown,
|
|
7587
7590
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: dislikes })
|
|
@@ -7711,7 +7714,7 @@ function MosaicMessageCard({
|
|
|
7711
7714
|
className: "inline-flex h-7 items-center gap-1 rounded-md text-xs text-muted-foreground hover:bg-accent hover:text-accent-foreground px-2",
|
|
7712
7715
|
children: [
|
|
7713
7716
|
icons.msgSquare,
|
|
7714
|
-
|
|
7717
|
+
viewThreadLabel
|
|
7715
7718
|
]
|
|
7716
7719
|
}
|
|
7717
7720
|
) })
|
|
@@ -7765,6 +7768,9 @@ function MessageListDesktop({
|
|
|
7765
7768
|
removeBookmarkLabel,
|
|
7766
7769
|
bookmarkLabel,
|
|
7767
7770
|
copyMessageLabel,
|
|
7771
|
+
viewThreadLabel,
|
|
7772
|
+
likeAriaLabel,
|
|
7773
|
+
dislikeAriaLabel,
|
|
7768
7774
|
className
|
|
7769
7775
|
}) {
|
|
7770
7776
|
const [query, setQuery] = React30__namespace.useState("");
|
|
@@ -7808,7 +7814,10 @@ function MessageListDesktop({
|
|
|
7808
7814
|
bookmarkAriaLabel,
|
|
7809
7815
|
removeBookmarkLabel,
|
|
7810
7816
|
bookmarkLabel,
|
|
7811
|
-
copyMessageLabel
|
|
7817
|
+
copyMessageLabel,
|
|
7818
|
+
viewThreadLabel,
|
|
7819
|
+
likeAriaLabel,
|
|
7820
|
+
dislikeAriaLabel
|
|
7812
7821
|
},
|
|
7813
7822
|
message.id
|
|
7814
7823
|
)),
|
|
@@ -7848,6 +7857,9 @@ function MessageListMobile({
|
|
|
7848
7857
|
removeBookmarkLabel,
|
|
7849
7858
|
bookmarkLabel,
|
|
7850
7859
|
copyMessageLabel,
|
|
7860
|
+
viewThreadLabel,
|
|
7861
|
+
likeAriaLabel,
|
|
7862
|
+
dislikeAriaLabel,
|
|
7851
7863
|
className
|
|
7852
7864
|
}) {
|
|
7853
7865
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "message-list-mobile", className: cn62("flex flex-col", className), children: [
|
|
@@ -7869,6 +7881,9 @@ function MessageListMobile({
|
|
|
7869
7881
|
removeBookmarkLabel,
|
|
7870
7882
|
bookmarkLabel,
|
|
7871
7883
|
copyMessageLabel,
|
|
7884
|
+
viewThreadLabel,
|
|
7885
|
+
likeAriaLabel,
|
|
7886
|
+
dislikeAriaLabel,
|
|
7872
7887
|
compact: true
|
|
7873
7888
|
},
|
|
7874
7889
|
message.id
|
|
@@ -10063,6 +10078,7 @@ function MosaicCreateOrgDialog({
|
|
|
10063
10078
|
orgNameFieldLabel,
|
|
10064
10079
|
orgNamePlaceholder,
|
|
10065
10080
|
slugFieldLabel,
|
|
10081
|
+
slugPlaceholder,
|
|
10066
10082
|
descriptionFieldLabel,
|
|
10067
10083
|
descriptionPlaceholder,
|
|
10068
10084
|
cancelLabel,
|
|
@@ -10148,7 +10164,7 @@ function MosaicCreateOrgDialog({
|
|
|
10148
10164
|
type: "text",
|
|
10149
10165
|
value: slug,
|
|
10150
10166
|
onChange: (e) => setSlug(e.target.value),
|
|
10151
|
-
placeholder:
|
|
10167
|
+
placeholder: slugPlaceholder,
|
|
10152
10168
|
required: true,
|
|
10153
10169
|
className: cn69(
|
|
10154
10170
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
@@ -10613,6 +10629,7 @@ function injectStyles8() {
|
|
|
10613
10629
|
function MosaicDashboardContent({
|
|
10614
10630
|
views,
|
|
10615
10631
|
currentView,
|
|
10632
|
+
viewNotFoundLabel,
|
|
10616
10633
|
className
|
|
10617
10634
|
}) {
|
|
10618
10635
|
const { isMobile } = useDevice();
|
|
@@ -10626,7 +10643,7 @@ function MosaicDashboardContent({
|
|
|
10626
10643
|
"data-slot": "dashboard-content",
|
|
10627
10644
|
className: cn70("h-full overflow-auto", isMobile ? "p-4" : "p-6", className),
|
|
10628
10645
|
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: [
|
|
10629
|
-
|
|
10646
|
+
viewNotFoundLabel,
|
|
10630
10647
|
currentView
|
|
10631
10648
|
] })
|
|
10632
10649
|
}
|
|
@@ -15679,6 +15696,1089 @@ function MosaicMemoryList({
|
|
|
15679
15696
|
);
|
|
15680
15697
|
}
|
|
15681
15698
|
MosaicMemoryList.displayName = "MosaicMemoryList";
|
|
15699
|
+
var memorySearchFilterChipVariants = classVarianceAuthority.cva(
|
|
15700
|
+
[
|
|
15701
|
+
"inline-flex items-center justify-center whitespace-nowrap",
|
|
15702
|
+
"rounded-full border px-3 py-1 gap-1",
|
|
15703
|
+
"text-xs font-medium transition-colors",
|
|
15704
|
+
"focus-visible:outline-none focus-visible:ring-ring focus-visible:ring-[3px]"
|
|
15705
|
+
],
|
|
15706
|
+
{
|
|
15707
|
+
variants: {
|
|
15708
|
+
selected: {
|
|
15709
|
+
true: "border-transparent bg-primary text-primary-foreground",
|
|
15710
|
+
false: "border-border bg-background text-foreground hover:bg-muted"
|
|
15711
|
+
}
|
|
15712
|
+
},
|
|
15713
|
+
defaultVariants: {
|
|
15714
|
+
selected: false
|
|
15715
|
+
}
|
|
15716
|
+
}
|
|
15717
|
+
);
|
|
15718
|
+
function cn104(...classes) {
|
|
15719
|
+
return classes.filter(Boolean).join(" ");
|
|
15720
|
+
}
|
|
15721
|
+
function SearchIcon8() {
|
|
15722
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
15723
|
+
"svg",
|
|
15724
|
+
{
|
|
15725
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15726
|
+
width: "16",
|
|
15727
|
+
height: "16",
|
|
15728
|
+
viewBox: "0 0 24 24",
|
|
15729
|
+
fill: "none",
|
|
15730
|
+
stroke: "currentColor",
|
|
15731
|
+
strokeWidth: "2",
|
|
15732
|
+
strokeLinecap: "round",
|
|
15733
|
+
strokeLinejoin: "round",
|
|
15734
|
+
"aria-hidden": "true",
|
|
15735
|
+
children: [
|
|
15736
|
+
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "11", cy: "11", r: "8" }),
|
|
15737
|
+
/* @__PURE__ */ jsxRuntime.jsx("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })
|
|
15738
|
+
]
|
|
15739
|
+
}
|
|
15740
|
+
);
|
|
15741
|
+
}
|
|
15742
|
+
function ClearIcon() {
|
|
15743
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
15744
|
+
"svg",
|
|
15745
|
+
{
|
|
15746
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15747
|
+
width: "14",
|
|
15748
|
+
height: "14",
|
|
15749
|
+
viewBox: "0 0 24 24",
|
|
15750
|
+
fill: "none",
|
|
15751
|
+
stroke: "currentColor",
|
|
15752
|
+
strokeWidth: "2",
|
|
15753
|
+
strokeLinecap: "round",
|
|
15754
|
+
strokeLinejoin: "round",
|
|
15755
|
+
"aria-hidden": "true",
|
|
15756
|
+
children: [
|
|
15757
|
+
/* @__PURE__ */ jsxRuntime.jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
|
15758
|
+
/* @__PURE__ */ jsxRuntime.jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
15759
|
+
]
|
|
15760
|
+
}
|
|
15761
|
+
);
|
|
15762
|
+
}
|
|
15763
|
+
function MosaicMemorySearch({
|
|
15764
|
+
query,
|
|
15765
|
+
onQueryChange,
|
|
15766
|
+
searchLabel,
|
|
15767
|
+
searchPlaceholder,
|
|
15768
|
+
clearButtonLabel,
|
|
15769
|
+
resultCount,
|
|
15770
|
+
formatResultCount,
|
|
15771
|
+
filters,
|
|
15772
|
+
selectedFilterIds,
|
|
15773
|
+
onFilterToggle,
|
|
15774
|
+
className,
|
|
15775
|
+
ref
|
|
15776
|
+
}) {
|
|
15777
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "memory-search", className: cn104("flex flex-col gap-2", className), children: [
|
|
15778
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
15779
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: /* @__PURE__ */ jsxRuntime.jsx(SearchIcon8, {}) }),
|
|
15780
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15781
|
+
MosaicInput,
|
|
15782
|
+
{
|
|
15783
|
+
type: "search",
|
|
15784
|
+
"aria-label": searchLabel,
|
|
15785
|
+
placeholder: searchPlaceholder,
|
|
15786
|
+
value: query,
|
|
15787
|
+
onChange: (event) => onQueryChange(event.target.value),
|
|
15788
|
+
className: "pl-9 pr-9"
|
|
15789
|
+
}
|
|
15790
|
+
),
|
|
15791
|
+
query.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
15792
|
+
"button",
|
|
15793
|
+
{
|
|
15794
|
+
type: "button",
|
|
15795
|
+
"aria-label": clearButtonLabel,
|
|
15796
|
+
onClick: () => onQueryChange(""),
|
|
15797
|
+
className: cn104(
|
|
15798
|
+
"absolute right-2 top-1/2 -translate-y-1/2",
|
|
15799
|
+
"flex size-5 items-center justify-center rounded-full",
|
|
15800
|
+
"text-muted-foreground hover:bg-muted hover:text-foreground",
|
|
15801
|
+
"focus-visible:outline-none focus-visible:ring-ring focus-visible:ring-[3px]"
|
|
15802
|
+
),
|
|
15803
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ClearIcon, {})
|
|
15804
|
+
}
|
|
15805
|
+
)
|
|
15806
|
+
] }),
|
|
15807
|
+
filters && filters.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "memory-search-filters", className: "flex flex-wrap items-center gap-2", children: filters.map((filter) => {
|
|
15808
|
+
const isSelected = (selectedFilterIds ?? []).includes(filter.id);
|
|
15809
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15810
|
+
"button",
|
|
15811
|
+
{
|
|
15812
|
+
type: "button",
|
|
15813
|
+
"data-slot": "memory-search-filter-chip",
|
|
15814
|
+
"aria-pressed": isSelected,
|
|
15815
|
+
onClick: () => onFilterToggle?.(filter.id),
|
|
15816
|
+
className: memorySearchFilterChipVariants({ selected: isSelected }),
|
|
15817
|
+
children: filter.label
|
|
15818
|
+
},
|
|
15819
|
+
filter.id
|
|
15820
|
+
);
|
|
15821
|
+
}) }),
|
|
15822
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { "data-slot": "memory-search-result-count", className: "text-sm text-muted-foreground", children: formatResultCount(resultCount) })
|
|
15823
|
+
] });
|
|
15824
|
+
}
|
|
15825
|
+
MosaicMemorySearch.displayName = "MosaicMemorySearch";
|
|
15826
|
+
var replyInputRootVariants = classVarianceAuthority.cva([
|
|
15827
|
+
"min-w-0 rounded-[14px] border border-border bg-card shadow-sm transition-colors",
|
|
15828
|
+
"focus-within:ring-[1px] focus-within:ring-ring"
|
|
15829
|
+
]);
|
|
15830
|
+
var replyInputContextVariants = classVarianceAuthority.cva([
|
|
15831
|
+
"truncate border-border border-b px-3 py-2 text-muted-foreground text-xs"
|
|
15832
|
+
]);
|
|
15833
|
+
var replyInputTextareaVariants = classVarianceAuthority.cva([
|
|
15834
|
+
"max-h-40 min-h-12 w-full resize-none bg-transparent px-3 pt-3 pb-1 text-sm outline-none",
|
|
15835
|
+
"placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-60"
|
|
15836
|
+
]);
|
|
15837
|
+
var replyInputActionButtonVariants = classVarianceAuthority.cva(
|
|
15838
|
+
[
|
|
15839
|
+
"inline-flex h-7 shrink-0 items-center justify-center rounded-md px-2.5 text-xs transition-colors",
|
|
15840
|
+
"disabled:cursor-not-allowed disabled:opacity-30"
|
|
15841
|
+
],
|
|
15842
|
+
{
|
|
15843
|
+
variants: {
|
|
15844
|
+
tone: {
|
|
15845
|
+
send: "bg-foreground text-background hover:bg-foreground/90",
|
|
15846
|
+
cancel: "bg-foreground/10 text-foreground hover:bg-foreground/20"
|
|
15847
|
+
}
|
|
15848
|
+
},
|
|
15849
|
+
defaultVariants: {
|
|
15850
|
+
tone: "send"
|
|
15851
|
+
}
|
|
15852
|
+
}
|
|
15853
|
+
);
|
|
15854
|
+
function cn105(...classes) {
|
|
15855
|
+
return classes.filter(Boolean).join(" ");
|
|
15856
|
+
}
|
|
15857
|
+
function MosaicReplyInput(props) {
|
|
15858
|
+
const {
|
|
15859
|
+
value,
|
|
15860
|
+
onValueChange,
|
|
15861
|
+
onSubmit,
|
|
15862
|
+
onCancel,
|
|
15863
|
+
context,
|
|
15864
|
+
contextAriaLabel,
|
|
15865
|
+
textareaAriaLabel,
|
|
15866
|
+
placeholder,
|
|
15867
|
+
sendButtonAriaLabel,
|
|
15868
|
+
cancelButtonAriaLabel,
|
|
15869
|
+
disabled = false,
|
|
15870
|
+
className,
|
|
15871
|
+
ref
|
|
15872
|
+
} = props;
|
|
15873
|
+
const textareaRef = React30.useRef(null);
|
|
15874
|
+
const trimmedValue = value.trim();
|
|
15875
|
+
React30.useEffect(() => {
|
|
15876
|
+
const textarea = textareaRef.current;
|
|
15877
|
+
if (!textarea) {
|
|
15878
|
+
return;
|
|
15879
|
+
}
|
|
15880
|
+
textarea.style.height = "auto";
|
|
15881
|
+
textarea.style.height = `${textarea.scrollHeight}px`;
|
|
15882
|
+
}, [value]);
|
|
15883
|
+
const submitValue = React30.useCallback(() => {
|
|
15884
|
+
const text = value.trim();
|
|
15885
|
+
if (!text || disabled) {
|
|
15886
|
+
return;
|
|
15887
|
+
}
|
|
15888
|
+
onSubmit(text);
|
|
15889
|
+
}, [disabled, onSubmit, value]);
|
|
15890
|
+
const handleSubmit = React30.useCallback(
|
|
15891
|
+
(event) => {
|
|
15892
|
+
event.preventDefault();
|
|
15893
|
+
submitValue();
|
|
15894
|
+
},
|
|
15895
|
+
[submitValue]
|
|
15896
|
+
);
|
|
15897
|
+
const handleKeyDown = React30.useCallback(
|
|
15898
|
+
(event) => {
|
|
15899
|
+
if (event.key === "Enter" && !event.shiftKey) {
|
|
15900
|
+
event.preventDefault();
|
|
15901
|
+
submitValue();
|
|
15902
|
+
}
|
|
15903
|
+
},
|
|
15904
|
+
[submitValue]
|
|
15905
|
+
);
|
|
15906
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
15907
|
+
"form",
|
|
15908
|
+
{
|
|
15909
|
+
ref,
|
|
15910
|
+
"data-slot": "reply-input",
|
|
15911
|
+
className: cn105(replyInputRootVariants(), className),
|
|
15912
|
+
onSubmit: handleSubmit,
|
|
15913
|
+
children: [
|
|
15914
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15915
|
+
"div",
|
|
15916
|
+
{
|
|
15917
|
+
"aria-label": contextAriaLabel,
|
|
15918
|
+
className: replyInputContextVariants(),
|
|
15919
|
+
"data-slot": "reply-input-context",
|
|
15920
|
+
children: context
|
|
15921
|
+
}
|
|
15922
|
+
),
|
|
15923
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15924
|
+
"textarea",
|
|
15925
|
+
{
|
|
15926
|
+
"data-slot": "reply-input-textarea",
|
|
15927
|
+
"aria-label": textareaAriaLabel,
|
|
15928
|
+
className: replyInputTextareaVariants(),
|
|
15929
|
+
disabled,
|
|
15930
|
+
onChange: (event) => onValueChange(event.target.value),
|
|
15931
|
+
onKeyDown: handleKeyDown,
|
|
15932
|
+
placeholder,
|
|
15933
|
+
ref: textareaRef,
|
|
15934
|
+
rows: 1,
|
|
15935
|
+
value
|
|
15936
|
+
}
|
|
15937
|
+
),
|
|
15938
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-h-9 items-center justify-end gap-2 px-3 pt-1 pb-2", children: [
|
|
15939
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15940
|
+
"button",
|
|
15941
|
+
{
|
|
15942
|
+
"aria-label": cancelButtonAriaLabel,
|
|
15943
|
+
className: replyInputActionButtonVariants({ tone: "cancel" }),
|
|
15944
|
+
"data-slot": "reply-input-cancel-button",
|
|
15945
|
+
disabled,
|
|
15946
|
+
onClick: onCancel,
|
|
15947
|
+
type: "button",
|
|
15948
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", children: "\xD7" })
|
|
15949
|
+
}
|
|
15950
|
+
),
|
|
15951
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15952
|
+
"button",
|
|
15953
|
+
{
|
|
15954
|
+
"aria-label": sendButtonAriaLabel,
|
|
15955
|
+
className: replyInputActionButtonVariants({ tone: "send" }),
|
|
15956
|
+
"data-slot": "reply-input-send-button",
|
|
15957
|
+
disabled: disabled || trimmedValue.length === 0,
|
|
15958
|
+
type: "submit",
|
|
15959
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", children: "\u2191" })
|
|
15960
|
+
}
|
|
15961
|
+
)
|
|
15962
|
+
] })
|
|
15963
|
+
]
|
|
15964
|
+
}
|
|
15965
|
+
);
|
|
15966
|
+
}
|
|
15967
|
+
MosaicReplyInput.displayName = "MosaicReplyInput";
|
|
15968
|
+
var threadViewRootVariants = classVarianceAuthority.cva(["flex min-w-0 flex-col gap-3"]);
|
|
15969
|
+
var threadViewRootMessageVariants = classVarianceAuthority.cva([
|
|
15970
|
+
"rounded-lg border border-border bg-card p-4 shadow-sm"
|
|
15971
|
+
]);
|
|
15972
|
+
var threadViewRepliesVariants = classVarianceAuthority.cva(["flex flex-col gap-2 border-border border-l-2 pl-4"]);
|
|
15973
|
+
var threadViewReplyVariants = classVarianceAuthority.cva([
|
|
15974
|
+
"rounded-lg border border-border bg-muted/40 p-3 text-sm"
|
|
15975
|
+
]);
|
|
15976
|
+
var threadViewEmptyVariants = classVarianceAuthority.cva(["px-1 py-2 text-muted-foreground text-sm"]);
|
|
15977
|
+
function cn106(...classes) {
|
|
15978
|
+
return classes.filter(Boolean).join(" ");
|
|
15979
|
+
}
|
|
15980
|
+
function MosaicThreadView(props) {
|
|
15981
|
+
const { root, replies, rootAriaLabel, repliesAriaLabel, emptyRepliesLabel, className, ref } = props;
|
|
15982
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "thread-view", className: cn106(threadViewRootVariants(), className), children: [
|
|
15983
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
15984
|
+
"div",
|
|
15985
|
+
{
|
|
15986
|
+
"aria-label": rootAriaLabel,
|
|
15987
|
+
className: threadViewRootMessageVariants(),
|
|
15988
|
+
"data-slot": "thread-view-root",
|
|
15989
|
+
children: [
|
|
15990
|
+
root.author,
|
|
15991
|
+
root.content
|
|
15992
|
+
]
|
|
15993
|
+
}
|
|
15994
|
+
),
|
|
15995
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15996
|
+
"div",
|
|
15997
|
+
{
|
|
15998
|
+
"aria-label": repliesAriaLabel,
|
|
15999
|
+
className: threadViewRepliesVariants(),
|
|
16000
|
+
"data-slot": "thread-view-replies",
|
|
16001
|
+
children: replies.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: threadViewEmptyVariants(), "data-slot": "thread-view-empty", children: emptyRepliesLabel }) : replies.map((reply) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: threadViewReplyVariants(), "data-slot": "thread-view-reply", children: [
|
|
16002
|
+
reply.author,
|
|
16003
|
+
reply.content
|
|
16004
|
+
] }, reply.id))
|
|
16005
|
+
}
|
|
16006
|
+
)
|
|
16007
|
+
] });
|
|
16008
|
+
}
|
|
16009
|
+
MosaicThreadView.displayName = "MosaicThreadView";
|
|
16010
|
+
var threadIndicatorRootVariants = classVarianceAuthority.cva([
|
|
16011
|
+
"inline-flex items-center gap-1.5 rounded-md px-2 py-1 text-xs transition-colors",
|
|
16012
|
+
"hover:bg-accent hover:text-accent-foreground",
|
|
16013
|
+
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
16014
|
+
"disabled:cursor-not-allowed disabled:opacity-60"
|
|
16015
|
+
]);
|
|
16016
|
+
var threadIndicatorCountVariants = classVarianceAuthority.cva([
|
|
16017
|
+
"inline-flex min-w-4 items-center justify-center rounded-full px-1.5 py-0.5",
|
|
16018
|
+
"bg-primary text-primary-foreground text-[10px] font-semibold leading-none"
|
|
16019
|
+
]);
|
|
16020
|
+
function cn107(...classes) {
|
|
16021
|
+
return classes.filter(Boolean).join(" ");
|
|
16022
|
+
}
|
|
16023
|
+
function MosaicThreadIndicator(props) {
|
|
16024
|
+
const { replies, label, ariaLabel, onActivate, disabled = false, className, ref } = props;
|
|
16025
|
+
const unreadCount = replies.filter((reply) => reply.unread).length;
|
|
16026
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
16027
|
+
"button",
|
|
16028
|
+
{
|
|
16029
|
+
ref,
|
|
16030
|
+
"data-slot": "thread-indicator",
|
|
16031
|
+
type: "button",
|
|
16032
|
+
"aria-label": ariaLabel(unreadCount),
|
|
16033
|
+
className: cn107(threadIndicatorRootVariants(), className),
|
|
16034
|
+
disabled,
|
|
16035
|
+
onClick: onActivate,
|
|
16036
|
+
children: [
|
|
16037
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { "data-slot": "thread-indicator-label", children: label }),
|
|
16038
|
+
unreadCount > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
16039
|
+
"span",
|
|
16040
|
+
{
|
|
16041
|
+
"data-slot": "thread-indicator-count",
|
|
16042
|
+
"data-testid": "thread-indicator-count",
|
|
16043
|
+
className: threadIndicatorCountVariants(),
|
|
16044
|
+
children: unreadCount
|
|
16045
|
+
}
|
|
16046
|
+
)
|
|
16047
|
+
]
|
|
16048
|
+
}
|
|
16049
|
+
);
|
|
16050
|
+
}
|
|
16051
|
+
MosaicThreadIndicator.displayName = "MosaicThreadIndicator";
|
|
16052
|
+
var mentionInputFieldVariants = classVarianceAuthority.cva([
|
|
16053
|
+
"flex w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm",
|
|
16054
|
+
"outline-none transition-colors placeholder:text-muted-foreground",
|
|
16055
|
+
"focus-visible:ring-1 focus-visible:ring-ring",
|
|
16056
|
+
"disabled:cursor-not-allowed disabled:opacity-50"
|
|
16057
|
+
]);
|
|
16058
|
+
var mentionListVariants = classVarianceAuthority.cva(["m-0 max-h-64 list-none overflow-y-auto p-1"]);
|
|
16059
|
+
var mentionListItemVariants = classVarianceAuthority.cva(
|
|
16060
|
+
["cursor-pointer rounded-sm px-2 py-1.5 text-sm outline-none"],
|
|
16061
|
+
{
|
|
16062
|
+
variants: {
|
|
16063
|
+
active: {
|
|
16064
|
+
true: "bg-accent text-accent-foreground",
|
|
16065
|
+
false: ""
|
|
16066
|
+
}
|
|
16067
|
+
},
|
|
16068
|
+
defaultVariants: {
|
|
16069
|
+
active: false
|
|
16070
|
+
}
|
|
16071
|
+
}
|
|
16072
|
+
);
|
|
16073
|
+
function cn108(...classes) {
|
|
16074
|
+
return classes.filter(Boolean).join(" ");
|
|
16075
|
+
}
|
|
16076
|
+
function findMentionStart(text, cursor, trigger) {
|
|
16077
|
+
for (let i = cursor - 1; i >= 0; i--) {
|
|
16078
|
+
const char = text[i];
|
|
16079
|
+
if (char === trigger) {
|
|
16080
|
+
return i;
|
|
16081
|
+
}
|
|
16082
|
+
if (/\s/.test(char)) {
|
|
16083
|
+
return null;
|
|
16084
|
+
}
|
|
16085
|
+
}
|
|
16086
|
+
return null;
|
|
16087
|
+
}
|
|
16088
|
+
function MosaicMentionInput({
|
|
16089
|
+
value,
|
|
16090
|
+
onValueChange,
|
|
16091
|
+
triggerCharacter,
|
|
16092
|
+
entries,
|
|
16093
|
+
renderEntry,
|
|
16094
|
+
getEntryText,
|
|
16095
|
+
onQueryChange,
|
|
16096
|
+
onSelectEntry,
|
|
16097
|
+
inputAriaLabel,
|
|
16098
|
+
listAriaLabel,
|
|
16099
|
+
emptyMessage,
|
|
16100
|
+
className,
|
|
16101
|
+
inputClassName
|
|
16102
|
+
}) {
|
|
16103
|
+
const inputRef = React30.useRef(null);
|
|
16104
|
+
const [mentionStart, setMentionStart] = React30.useState(null);
|
|
16105
|
+
const [activeIndex, setActiveIndex] = React30.useState(0);
|
|
16106
|
+
const open = mentionStart !== null;
|
|
16107
|
+
function closeMention() {
|
|
16108
|
+
setMentionStart(null);
|
|
16109
|
+
setActiveIndex(0);
|
|
16110
|
+
onQueryChange(null);
|
|
16111
|
+
}
|
|
16112
|
+
function handleChange(event) {
|
|
16113
|
+
const nextValue = event.target.value;
|
|
16114
|
+
const cursor = event.target.selectionStart ?? nextValue.length;
|
|
16115
|
+
onValueChange(nextValue);
|
|
16116
|
+
const start = findMentionStart(nextValue, cursor, triggerCharacter);
|
|
16117
|
+
if (start === null) {
|
|
16118
|
+
if (open) {
|
|
16119
|
+
closeMention();
|
|
16120
|
+
}
|
|
16121
|
+
return;
|
|
16122
|
+
}
|
|
16123
|
+
setMentionStart(start);
|
|
16124
|
+
setActiveIndex(0);
|
|
16125
|
+
onQueryChange(nextValue.slice(start + triggerCharacter.length, cursor));
|
|
16126
|
+
}
|
|
16127
|
+
function selectEntry(entry) {
|
|
16128
|
+
if (mentionStart === null || !inputRef.current) {
|
|
16129
|
+
return;
|
|
16130
|
+
}
|
|
16131
|
+
const cursor = inputRef.current.selectionStart ?? value.length;
|
|
16132
|
+
const insertText = getEntryText(entry);
|
|
16133
|
+
const nextValue = `${value.slice(0, mentionStart)}${insertText} ${value.slice(cursor)}`;
|
|
16134
|
+
onValueChange(nextValue);
|
|
16135
|
+
onSelectEntry?.(entry);
|
|
16136
|
+
closeMention();
|
|
16137
|
+
}
|
|
16138
|
+
function handleKeyDown(event) {
|
|
16139
|
+
if (!open) {
|
|
16140
|
+
return;
|
|
16141
|
+
}
|
|
16142
|
+
if (event.key === "Escape") {
|
|
16143
|
+
event.preventDefault();
|
|
16144
|
+
closeMention();
|
|
16145
|
+
return;
|
|
16146
|
+
}
|
|
16147
|
+
if (event.key === "ArrowDown") {
|
|
16148
|
+
event.preventDefault();
|
|
16149
|
+
setActiveIndex((index) => Math.min(entries.length - 1, index + 1));
|
|
16150
|
+
return;
|
|
16151
|
+
}
|
|
16152
|
+
if (event.key === "ArrowUp") {
|
|
16153
|
+
event.preventDefault();
|
|
16154
|
+
setActiveIndex((index) => Math.max(0, index - 1));
|
|
16155
|
+
return;
|
|
16156
|
+
}
|
|
16157
|
+
if (event.key === "Enter") {
|
|
16158
|
+
const entry = entries[activeIndex];
|
|
16159
|
+
if (entry) {
|
|
16160
|
+
event.preventDefault();
|
|
16161
|
+
selectEntry(entry);
|
|
16162
|
+
}
|
|
16163
|
+
}
|
|
16164
|
+
}
|
|
16165
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "mention-input", className, children: [
|
|
16166
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16167
|
+
"input",
|
|
16168
|
+
{
|
|
16169
|
+
ref: inputRef,
|
|
16170
|
+
type: "text",
|
|
16171
|
+
"aria-label": inputAriaLabel,
|
|
16172
|
+
value,
|
|
16173
|
+
onChange: handleChange,
|
|
16174
|
+
onKeyDown: handleKeyDown,
|
|
16175
|
+
className: cn108(mentionInputFieldVariants(), inputClassName)
|
|
16176
|
+
}
|
|
16177
|
+
),
|
|
16178
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16179
|
+
MosaicPopover,
|
|
16180
|
+
{
|
|
16181
|
+
open,
|
|
16182
|
+
onOpenChange: (nextOpen) => {
|
|
16183
|
+
if (!nextOpen) {
|
|
16184
|
+
closeMention();
|
|
16185
|
+
}
|
|
16186
|
+
},
|
|
16187
|
+
anchor: inputRef,
|
|
16188
|
+
initialFocus: false,
|
|
16189
|
+
"aria-label": listAriaLabel,
|
|
16190
|
+
children: entries.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { "data-slot": "mention-input-empty", className: "px-2 py-1.5 text-sm text-muted-foreground", children: emptyMessage }) : /* @__PURE__ */ jsxRuntime.jsx("ul", { "data-slot": "mention-input-list", className: mentionListVariants(), children: entries.map((entry, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
16191
|
+
"li",
|
|
16192
|
+
{
|
|
16193
|
+
"data-slot": "mention-input-item",
|
|
16194
|
+
"aria-selected": index === activeIndex,
|
|
16195
|
+
className: mentionListItemVariants({ active: index === activeIndex }),
|
|
16196
|
+
onMouseEnter: () => setActiveIndex(index),
|
|
16197
|
+
onClick: () => selectEntry(entry),
|
|
16198
|
+
onKeyDown: (event) => {
|
|
16199
|
+
if (event.key === "Enter" || event.key === " ") {
|
|
16200
|
+
event.preventDefault();
|
|
16201
|
+
selectEntry(entry);
|
|
16202
|
+
}
|
|
16203
|
+
},
|
|
16204
|
+
children: renderEntry(entry, index, index === activeIndex)
|
|
16205
|
+
},
|
|
16206
|
+
entry.id
|
|
16207
|
+
)) })
|
|
16208
|
+
}
|
|
16209
|
+
)
|
|
16210
|
+
] });
|
|
16211
|
+
}
|
|
16212
|
+
MosaicMentionInput.displayName = "MosaicMentionInput";
|
|
16213
|
+
function cn109(...classes) {
|
|
16214
|
+
return classes.filter(Boolean).join(" ");
|
|
16215
|
+
}
|
|
16216
|
+
function SearchIcon9() {
|
|
16217
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
16218
|
+
"svg",
|
|
16219
|
+
{
|
|
16220
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
16221
|
+
width: "16",
|
|
16222
|
+
height: "16",
|
|
16223
|
+
viewBox: "0 0 24 24",
|
|
16224
|
+
fill: "none",
|
|
16225
|
+
stroke: "currentColor",
|
|
16226
|
+
strokeWidth: "2",
|
|
16227
|
+
strokeLinecap: "round",
|
|
16228
|
+
strokeLinejoin: "round",
|
|
16229
|
+
"aria-hidden": "true",
|
|
16230
|
+
children: [
|
|
16231
|
+
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "11", cy: "11", r: "8" }),
|
|
16232
|
+
/* @__PURE__ */ jsxRuntime.jsx("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })
|
|
16233
|
+
]
|
|
16234
|
+
}
|
|
16235
|
+
);
|
|
16236
|
+
}
|
|
16237
|
+
function ClearIcon2() {
|
|
16238
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
16239
|
+
"svg",
|
|
16240
|
+
{
|
|
16241
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
16242
|
+
width: "14",
|
|
16243
|
+
height: "14",
|
|
16244
|
+
viewBox: "0 0 24 24",
|
|
16245
|
+
fill: "none",
|
|
16246
|
+
stroke: "currentColor",
|
|
16247
|
+
strokeWidth: "2",
|
|
16248
|
+
strokeLinecap: "round",
|
|
16249
|
+
strokeLinejoin: "round",
|
|
16250
|
+
"aria-hidden": "true",
|
|
16251
|
+
children: [
|
|
16252
|
+
/* @__PURE__ */ jsxRuntime.jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
|
16253
|
+
/* @__PURE__ */ jsxRuntime.jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
16254
|
+
]
|
|
16255
|
+
}
|
|
16256
|
+
);
|
|
16257
|
+
}
|
|
16258
|
+
function MosaicMessageSearch({
|
|
16259
|
+
query,
|
|
16260
|
+
onQueryChange,
|
|
16261
|
+
searchLabel,
|
|
16262
|
+
searchPlaceholder,
|
|
16263
|
+
clearButtonLabel,
|
|
16264
|
+
resultsSlot,
|
|
16265
|
+
emptyResultsLabel,
|
|
16266
|
+
className,
|
|
16267
|
+
ref
|
|
16268
|
+
}) {
|
|
16269
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "message-search", className: cn109("flex flex-col gap-2", className), children: [
|
|
16270
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
16271
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: /* @__PURE__ */ jsxRuntime.jsx(SearchIcon9, {}) }),
|
|
16272
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16273
|
+
MosaicInput,
|
|
16274
|
+
{
|
|
16275
|
+
type: "search",
|
|
16276
|
+
"aria-label": searchLabel,
|
|
16277
|
+
placeholder: searchPlaceholder,
|
|
16278
|
+
value: query,
|
|
16279
|
+
onChange: (event) => onQueryChange(event.target.value),
|
|
16280
|
+
className: "pl-9 pr-9"
|
|
16281
|
+
}
|
|
16282
|
+
),
|
|
16283
|
+
query.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
16284
|
+
"button",
|
|
16285
|
+
{
|
|
16286
|
+
type: "button",
|
|
16287
|
+
"aria-label": clearButtonLabel,
|
|
16288
|
+
onClick: () => onQueryChange(""),
|
|
16289
|
+
className: cn109(
|
|
16290
|
+
"absolute right-2 top-1/2 -translate-y-1/2",
|
|
16291
|
+
"flex size-5 items-center justify-center rounded-full",
|
|
16292
|
+
"text-muted-foreground hover:bg-muted hover:text-foreground",
|
|
16293
|
+
"focus-visible:outline-none focus-visible:ring-ring focus-visible:ring-[3px]"
|
|
16294
|
+
),
|
|
16295
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ClearIcon2, {})
|
|
16296
|
+
}
|
|
16297
|
+
)
|
|
16298
|
+
] }),
|
|
16299
|
+
resultsSlot ? /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "message-search-results", children: resultsSlot }) : emptyResultsLabel && /* @__PURE__ */ jsxRuntime.jsx("p", { "data-slot": "message-search-results", className: "text-sm text-muted-foreground", children: emptyResultsLabel })
|
|
16300
|
+
] });
|
|
16301
|
+
}
|
|
16302
|
+
MosaicMessageSearch.displayName = "MosaicMessageSearch";
|
|
16303
|
+
var sessionCardVariants = classVarianceAuthority.cva(
|
|
16304
|
+
[
|
|
16305
|
+
"rounded-lg border border-border bg-card text-card-foreground shadow-sm transition-all",
|
|
16306
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
16307
|
+
],
|
|
16308
|
+
{
|
|
16309
|
+
variants: {
|
|
16310
|
+
variant: {
|
|
16311
|
+
default: "p-5",
|
|
16312
|
+
compact: "flex items-center justify-between gap-3 p-3"
|
|
16313
|
+
},
|
|
16314
|
+
selectable: {
|
|
16315
|
+
true: "cursor-pointer hover:shadow-md",
|
|
16316
|
+
false: ""
|
|
16317
|
+
}
|
|
16318
|
+
},
|
|
16319
|
+
defaultVariants: {
|
|
16320
|
+
variant: "default",
|
|
16321
|
+
selectable: false
|
|
16322
|
+
}
|
|
16323
|
+
}
|
|
16324
|
+
);
|
|
16325
|
+
function cn110(...classes) {
|
|
16326
|
+
return classes.filter(Boolean).join(" ");
|
|
16327
|
+
}
|
|
16328
|
+
var ACTIVATION_KEYS = /* @__PURE__ */ new Set(["Enter", " "]);
|
|
16329
|
+
function MosaicSessionCard(props) {
|
|
16330
|
+
const { session, formatStatus, className, ref, onSelect, selectLabel } = props;
|
|
16331
|
+
const selectable = Boolean(onSelect);
|
|
16332
|
+
function activate() {
|
|
16333
|
+
onSelect?.(session.id);
|
|
16334
|
+
}
|
|
16335
|
+
const interactionProps = selectable ? {
|
|
16336
|
+
role: "button",
|
|
16337
|
+
tabIndex: 0,
|
|
16338
|
+
"aria-label": selectLabel,
|
|
16339
|
+
onClick: activate,
|
|
16340
|
+
onKeyDown: (event) => {
|
|
16341
|
+
if (ACTIVATION_KEYS.has(event.key)) {
|
|
16342
|
+
event.preventDefault();
|
|
16343
|
+
activate();
|
|
16344
|
+
}
|
|
16345
|
+
}
|
|
16346
|
+
} : {};
|
|
16347
|
+
const statusBadge = /* @__PURE__ */ jsxRuntime.jsx(MosaicBadge, { "data-slot": "session-card-status", children: formatStatus(session.status) });
|
|
16348
|
+
if (props.variant === "compact") {
|
|
16349
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
16350
|
+
MosaicCard,
|
|
16351
|
+
{
|
|
16352
|
+
ref,
|
|
16353
|
+
"data-slot": "session-card",
|
|
16354
|
+
"data-variant": "compact",
|
|
16355
|
+
className: cn110(sessionCardVariants({ variant: "compact", selectable }), className),
|
|
16356
|
+
...interactionProps,
|
|
16357
|
+
children: [
|
|
16358
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 flex-1 truncate text-sm font-medium", children: session.title }),
|
|
16359
|
+
statusBadge
|
|
16360
|
+
]
|
|
16361
|
+
}
|
|
16362
|
+
);
|
|
16363
|
+
}
|
|
16364
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
16365
|
+
MosaicCard,
|
|
16366
|
+
{
|
|
16367
|
+
ref,
|
|
16368
|
+
"data-slot": "session-card",
|
|
16369
|
+
"data-variant": "default",
|
|
16370
|
+
className: cn110(sessionCardVariants({ variant: "default", selectable }), className),
|
|
16371
|
+
...interactionProps,
|
|
16372
|
+
children: [
|
|
16373
|
+
/* @__PURE__ */ jsxRuntime.jsxs(MosaicCardHeader, { className: "flex-row items-center justify-between gap-3 p-0", children: [
|
|
16374
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "line-clamp-1 text-base font-semibold", children: session.title }),
|
|
16375
|
+
statusBadge
|
|
16376
|
+
] }),
|
|
16377
|
+
/* @__PURE__ */ jsxRuntime.jsx(MosaicCardContent, { className: "p-0 pt-3", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
16378
|
+
MosaicCardFooter,
|
|
16379
|
+
{
|
|
16380
|
+
"data-slot": "session-card-updated-at",
|
|
16381
|
+
className: "p-0 pt-2 text-xs text-muted-foreground",
|
|
16382
|
+
children: props.formatUpdatedAt(session.updatedAt)
|
|
16383
|
+
}
|
|
16384
|
+
) })
|
|
16385
|
+
]
|
|
16386
|
+
}
|
|
16387
|
+
);
|
|
16388
|
+
}
|
|
16389
|
+
MosaicSessionCard.displayName = "MosaicSessionCard";
|
|
16390
|
+
var sessionListVariants = classVarianceAuthority.cva([], {
|
|
16391
|
+
variants: {
|
|
16392
|
+
layout: {
|
|
16393
|
+
/** Single-column vertical stack, divided rows. */
|
|
16394
|
+
stack: "flex flex-col divide-y divide-border",
|
|
16395
|
+
/** Responsive tile grid. */
|
|
16396
|
+
grid: "grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",
|
|
16397
|
+
/** Dense single-column stack — tighter row padding, no divider. */
|
|
16398
|
+
compact: "flex flex-col gap-1",
|
|
16399
|
+
/** Horizontal-scroll row of tiles. */
|
|
16400
|
+
inline: "flex flex-row gap-3 overflow-x-auto"
|
|
16401
|
+
}
|
|
16402
|
+
},
|
|
16403
|
+
defaultVariants: {
|
|
16404
|
+
layout: "stack"
|
|
16405
|
+
}
|
|
16406
|
+
});
|
|
16407
|
+
var sessionListItemVariants = classVarianceAuthority.cva([], {
|
|
16408
|
+
variants: {
|
|
16409
|
+
layout: {
|
|
16410
|
+
stack: "py-3",
|
|
16411
|
+
grid: "",
|
|
16412
|
+
compact: "py-1",
|
|
16413
|
+
inline: "shrink-0"
|
|
16414
|
+
}
|
|
16415
|
+
},
|
|
16416
|
+
defaultVariants: {
|
|
16417
|
+
layout: "stack"
|
|
16418
|
+
}
|
|
16419
|
+
});
|
|
16420
|
+
function cn111(...classes) {
|
|
16421
|
+
return classes.filter(Boolean).join(" ");
|
|
16422
|
+
}
|
|
16423
|
+
var NEXT_KEYS5 = /* @__PURE__ */ new Set(["ArrowRight", "ArrowDown"]);
|
|
16424
|
+
var PREV_KEYS5 = /* @__PURE__ */ new Set(["ArrowLeft", "ArrowUp"]);
|
|
16425
|
+
function MosaicSessionList({
|
|
16426
|
+
items,
|
|
16427
|
+
renderItem,
|
|
16428
|
+
layout = "stack",
|
|
16429
|
+
emptyMessage,
|
|
16430
|
+
className,
|
|
16431
|
+
itemClassName,
|
|
16432
|
+
ref
|
|
16433
|
+
}) {
|
|
16434
|
+
const itemRefs = React30.useRef([]);
|
|
16435
|
+
const [focusedIndex, setFocusedIndex] = React30.useState(0);
|
|
16436
|
+
function focusItem(index) {
|
|
16437
|
+
if (items.length === 0) {
|
|
16438
|
+
return;
|
|
16439
|
+
}
|
|
16440
|
+
const clamped = Math.max(0, Math.min(items.length - 1, index));
|
|
16441
|
+
setFocusedIndex(clamped);
|
|
16442
|
+
itemRefs.current[clamped]?.focus();
|
|
16443
|
+
}
|
|
16444
|
+
function handleKeyDown(event, index) {
|
|
16445
|
+
if (NEXT_KEYS5.has(event.key)) {
|
|
16446
|
+
event.preventDefault();
|
|
16447
|
+
focusItem(index + 1);
|
|
16448
|
+
} else if (PREV_KEYS5.has(event.key)) {
|
|
16449
|
+
event.preventDefault();
|
|
16450
|
+
focusItem(index - 1);
|
|
16451
|
+
} else if (event.key === "Home") {
|
|
16452
|
+
event.preventDefault();
|
|
16453
|
+
focusItem(0);
|
|
16454
|
+
} else if (event.key === "End") {
|
|
16455
|
+
event.preventDefault();
|
|
16456
|
+
focusItem(items.length - 1);
|
|
16457
|
+
}
|
|
16458
|
+
}
|
|
16459
|
+
if (items.length === 0) {
|
|
16460
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
16461
|
+
"div",
|
|
16462
|
+
{
|
|
16463
|
+
ref,
|
|
16464
|
+
"data-slot": "session-list",
|
|
16465
|
+
"data-layout": layout,
|
|
16466
|
+
className: cn111(sessionListVariants({ layout }), className),
|
|
16467
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
16468
|
+
"p",
|
|
16469
|
+
{
|
|
16470
|
+
"data-slot": "session-list-empty",
|
|
16471
|
+
className: "py-12 text-center text-sm text-muted-foreground",
|
|
16472
|
+
children: emptyMessage
|
|
16473
|
+
}
|
|
16474
|
+
)
|
|
16475
|
+
}
|
|
16476
|
+
);
|
|
16477
|
+
}
|
|
16478
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
16479
|
+
"ul",
|
|
16480
|
+
{
|
|
16481
|
+
ref,
|
|
16482
|
+
"data-slot": "session-list",
|
|
16483
|
+
"data-layout": layout,
|
|
16484
|
+
className: cn111("list-none", sessionListVariants({ layout }), className),
|
|
16485
|
+
children: items.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
16486
|
+
"li",
|
|
16487
|
+
{
|
|
16488
|
+
ref: (node) => {
|
|
16489
|
+
itemRefs.current[index] = node;
|
|
16490
|
+
},
|
|
16491
|
+
"data-slot": "session-list-item",
|
|
16492
|
+
tabIndex: index === focusedIndex ? 0 : -1,
|
|
16493
|
+
onKeyDown: (event) => handleKeyDown(event, index),
|
|
16494
|
+
onFocus: () => setFocusedIndex(index),
|
|
16495
|
+
className: cn111(sessionListItemVariants({ layout }), itemClassName),
|
|
16496
|
+
children: renderItem(item, index)
|
|
16497
|
+
},
|
|
16498
|
+
item.id
|
|
16499
|
+
))
|
|
16500
|
+
}
|
|
16501
|
+
);
|
|
16502
|
+
}
|
|
16503
|
+
MosaicSessionList.displayName = "MosaicSessionList";
|
|
16504
|
+
var editSessionDialogBodyVariants = classVarianceAuthority.cva(["flex flex-col gap-4"]);
|
|
16505
|
+
var editSessionDialogFieldVariants = classVarianceAuthority.cva(["flex flex-col gap-1.5"]);
|
|
16506
|
+
var editSessionDialogErrorVariants = classVarianceAuthority.cva(["text-xs font-medium text-destructive"]);
|
|
16507
|
+
var editSessionDialogFooterVariants = classVarianceAuthority.cva([
|
|
16508
|
+
"flex items-center justify-end gap-3 border-t border-border pt-4"
|
|
16509
|
+
]);
|
|
16510
|
+
var editSessionDialogButtonVariants = classVarianceAuthority.cva(
|
|
16511
|
+
[
|
|
16512
|
+
"inline-flex min-h-9 items-center justify-center gap-2 rounded-md px-4 text-sm font-medium",
|
|
16513
|
+
"transition-colors disabled:cursor-not-allowed disabled:opacity-50"
|
|
16514
|
+
],
|
|
16515
|
+
{
|
|
16516
|
+
variants: {
|
|
16517
|
+
intent: {
|
|
16518
|
+
cancel: "border border-border bg-background hover:bg-muted",
|
|
16519
|
+
save: "border border-transparent bg-primary text-primary-foreground hover:bg-primary/90"
|
|
16520
|
+
}
|
|
16521
|
+
},
|
|
16522
|
+
defaultVariants: {
|
|
16523
|
+
intent: "cancel"
|
|
16524
|
+
}
|
|
16525
|
+
}
|
|
16526
|
+
);
|
|
16527
|
+
function cn112(...classes) {
|
|
16528
|
+
return classes.filter(Boolean).join(" ");
|
|
16529
|
+
}
|
|
16530
|
+
function MosaicEditSessionDialog({
|
|
16531
|
+
open,
|
|
16532
|
+
onOpenChange,
|
|
16533
|
+
title,
|
|
16534
|
+
description,
|
|
16535
|
+
closeAriaLabel,
|
|
16536
|
+
name,
|
|
16537
|
+
onNameChange,
|
|
16538
|
+
nameLabel,
|
|
16539
|
+
namePlaceholder,
|
|
16540
|
+
nameError,
|
|
16541
|
+
classifications,
|
|
16542
|
+
classification,
|
|
16543
|
+
onClassificationChange,
|
|
16544
|
+
classificationLabel,
|
|
16545
|
+
isSaving,
|
|
16546
|
+
canSave,
|
|
16547
|
+
onSave,
|
|
16548
|
+
onCancel,
|
|
16549
|
+
saveButtonLabel,
|
|
16550
|
+
savingLabel,
|
|
16551
|
+
cancelButtonLabel,
|
|
16552
|
+
className
|
|
16553
|
+
}) {
|
|
16554
|
+
const nameErrorId = React30.useId();
|
|
16555
|
+
if (!open) return null;
|
|
16556
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
16557
|
+
MosaicAdaptiveModal,
|
|
16558
|
+
{
|
|
16559
|
+
isOpen: open,
|
|
16560
|
+
onClose: () => onOpenChange(false),
|
|
16561
|
+
title,
|
|
16562
|
+
description,
|
|
16563
|
+
closeAriaLabel,
|
|
16564
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
16565
|
+
"div",
|
|
16566
|
+
{
|
|
16567
|
+
"data-slot": "edit-session-dialog",
|
|
16568
|
+
className: cn112(editSessionDialogBodyVariants(), className),
|
|
16569
|
+
children: [
|
|
16570
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: editSessionDialogFieldVariants(), children: [
|
|
16571
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { htmlFor: "mosaic-edit-session-name", className: "text-sm font-medium text-foreground", children: nameLabel }),
|
|
16572
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16573
|
+
MosaicInput,
|
|
16574
|
+
{
|
|
16575
|
+
id: "mosaic-edit-session-name",
|
|
16576
|
+
value: name,
|
|
16577
|
+
placeholder: namePlaceholder,
|
|
16578
|
+
onChange: (e) => onNameChange(e.target.value),
|
|
16579
|
+
"aria-invalid": nameError ? "true" : "false",
|
|
16580
|
+
"aria-describedby": nameError ? nameErrorId : void 0
|
|
16581
|
+
}
|
|
16582
|
+
),
|
|
16583
|
+
nameError && /* @__PURE__ */ jsxRuntime.jsx("p", { id: nameErrorId, className: editSessionDialogErrorVariants(), children: nameError })
|
|
16584
|
+
] }),
|
|
16585
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: editSessionDialogFieldVariants(), children: [
|
|
16586
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium text-foreground", children: classificationLabel }),
|
|
16587
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16588
|
+
MosaicSelect,
|
|
16589
|
+
{
|
|
16590
|
+
items: classifications,
|
|
16591
|
+
value: classification,
|
|
16592
|
+
onValueChange: (value) => {
|
|
16593
|
+
if (value) onClassificationChange(value);
|
|
16594
|
+
}
|
|
16595
|
+
}
|
|
16596
|
+
)
|
|
16597
|
+
] }),
|
|
16598
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: editSessionDialogFooterVariants(), children: [
|
|
16599
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16600
|
+
"button",
|
|
16601
|
+
{
|
|
16602
|
+
type: "button",
|
|
16603
|
+
"data-slot": "edit-session-dialog-cancel-button",
|
|
16604
|
+
onClick: onCancel,
|
|
16605
|
+
disabled: isSaving,
|
|
16606
|
+
className: editSessionDialogButtonVariants({ intent: "cancel" }),
|
|
16607
|
+
children: cancelButtonLabel
|
|
16608
|
+
}
|
|
16609
|
+
),
|
|
16610
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16611
|
+
"button",
|
|
16612
|
+
{
|
|
16613
|
+
type: "button",
|
|
16614
|
+
"data-slot": "edit-session-dialog-save-button",
|
|
16615
|
+
onClick: onSave,
|
|
16616
|
+
disabled: !canSave || isSaving,
|
|
16617
|
+
"aria-busy": isSaving ? "true" : "false",
|
|
16618
|
+
className: editSessionDialogButtonVariants({ intent: "save" }),
|
|
16619
|
+
children: isSaving ? savingLabel : saveButtonLabel
|
|
16620
|
+
}
|
|
16621
|
+
)
|
|
16622
|
+
] })
|
|
16623
|
+
]
|
|
16624
|
+
}
|
|
16625
|
+
)
|
|
16626
|
+
}
|
|
16627
|
+
);
|
|
16628
|
+
}
|
|
16629
|
+
MosaicEditSessionDialog.displayName = "MosaicEditSessionDialog";
|
|
16630
|
+
var saveChatAsMemoryFormRootVariants = classVarianceAuthority.cva(["flex flex-col gap-4"]);
|
|
16631
|
+
var saveChatAsMemoryFormFieldVariants = classVarianceAuthority.cva(["flex flex-col gap-1.5"]);
|
|
16632
|
+
var saveChatAsMemoryFormErrorVariants = classVarianceAuthority.cva(["text-xs font-medium text-destructive"]);
|
|
16633
|
+
var saveChatAsMemoryFormFooterVariants = classVarianceAuthority.cva([
|
|
16634
|
+
"flex items-center justify-end gap-3 border-t border-border pt-4"
|
|
16635
|
+
]);
|
|
16636
|
+
var saveChatAsMemoryFormButtonVariants = classVarianceAuthority.cva(
|
|
16637
|
+
[
|
|
16638
|
+
"inline-flex min-h-9 items-center justify-center gap-2 rounded-md px-4 text-sm font-medium",
|
|
16639
|
+
"transition-colors disabled:cursor-not-allowed disabled:opacity-50"
|
|
16640
|
+
],
|
|
16641
|
+
{
|
|
16642
|
+
variants: {
|
|
16643
|
+
intent: {
|
|
16644
|
+
cancel: "border border-border bg-background hover:bg-muted",
|
|
16645
|
+
save: "border border-transparent bg-primary text-primary-foreground hover:bg-primary/90"
|
|
16646
|
+
}
|
|
16647
|
+
},
|
|
16648
|
+
defaultVariants: {
|
|
16649
|
+
intent: "cancel"
|
|
16650
|
+
}
|
|
16651
|
+
}
|
|
16652
|
+
);
|
|
16653
|
+
function cn113(...classes) {
|
|
16654
|
+
return classes.filter(Boolean).join(" ");
|
|
16655
|
+
}
|
|
16656
|
+
function MosaicSaveChatAsMemoryForm({
|
|
16657
|
+
title,
|
|
16658
|
+
onTitleChange,
|
|
16659
|
+
titleLabel,
|
|
16660
|
+
titlePlaceholder,
|
|
16661
|
+
titleError,
|
|
16662
|
+
content,
|
|
16663
|
+
onContentChange,
|
|
16664
|
+
contentLabel,
|
|
16665
|
+
contentPlaceholder,
|
|
16666
|
+
contentError,
|
|
16667
|
+
tags,
|
|
16668
|
+
onAddTag,
|
|
16669
|
+
onRemoveTag,
|
|
16670
|
+
tagsLabel,
|
|
16671
|
+
tagInputPlaceholder,
|
|
16672
|
+
removeTagAriaLabel,
|
|
16673
|
+
suggestedTags,
|
|
16674
|
+
maxTags,
|
|
16675
|
+
isSaving,
|
|
16676
|
+
canSave,
|
|
16677
|
+
onSave,
|
|
16678
|
+
onCancel,
|
|
16679
|
+
saveLabel,
|
|
16680
|
+
savingLabel,
|
|
16681
|
+
cancelLabel,
|
|
16682
|
+
className
|
|
16683
|
+
}) {
|
|
16684
|
+
const titleErrorId = React30.useId();
|
|
16685
|
+
const contentErrorId = React30.useId();
|
|
16686
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
16687
|
+
"div",
|
|
16688
|
+
{
|
|
16689
|
+
"data-slot": "save-chat-as-memory-form",
|
|
16690
|
+
className: cn113(saveChatAsMemoryFormRootVariants(), className),
|
|
16691
|
+
children: [
|
|
16692
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: saveChatAsMemoryFormFieldVariants(), children: [
|
|
16693
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16694
|
+
"label",
|
|
16695
|
+
{
|
|
16696
|
+
htmlFor: "mosaic-save-chat-as-memory-title",
|
|
16697
|
+
className: "text-sm font-medium text-foreground",
|
|
16698
|
+
children: titleLabel
|
|
16699
|
+
}
|
|
16700
|
+
),
|
|
16701
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16702
|
+
MosaicInput,
|
|
16703
|
+
{
|
|
16704
|
+
id: "mosaic-save-chat-as-memory-title",
|
|
16705
|
+
value: title,
|
|
16706
|
+
placeholder: titlePlaceholder,
|
|
16707
|
+
onChange: (e) => onTitleChange(e.target.value),
|
|
16708
|
+
"aria-invalid": titleError ? "true" : "false",
|
|
16709
|
+
"aria-describedby": titleError ? titleErrorId : void 0
|
|
16710
|
+
}
|
|
16711
|
+
),
|
|
16712
|
+
titleError && /* @__PURE__ */ jsxRuntime.jsx("p", { id: titleErrorId, className: saveChatAsMemoryFormErrorVariants(), children: titleError })
|
|
16713
|
+
] }),
|
|
16714
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: saveChatAsMemoryFormFieldVariants(), children: [
|
|
16715
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16716
|
+
"label",
|
|
16717
|
+
{
|
|
16718
|
+
htmlFor: "mosaic-save-chat-as-memory-content",
|
|
16719
|
+
className: "text-sm font-medium text-foreground",
|
|
16720
|
+
children: contentLabel
|
|
16721
|
+
}
|
|
16722
|
+
),
|
|
16723
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16724
|
+
MosaicTextarea,
|
|
16725
|
+
{
|
|
16726
|
+
id: "mosaic-save-chat-as-memory-content",
|
|
16727
|
+
value: content,
|
|
16728
|
+
placeholder: contentPlaceholder,
|
|
16729
|
+
onChange: (e) => onContentChange(e.target.value),
|
|
16730
|
+
rows: 4,
|
|
16731
|
+
"aria-invalid": contentError ? "true" : "false",
|
|
16732
|
+
"aria-describedby": contentError ? contentErrorId : void 0
|
|
16733
|
+
}
|
|
16734
|
+
),
|
|
16735
|
+
contentError && /* @__PURE__ */ jsxRuntime.jsx("p", { id: contentErrorId, className: saveChatAsMemoryFormErrorVariants(), children: contentError })
|
|
16736
|
+
] }),
|
|
16737
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: saveChatAsMemoryFormFieldVariants(), children: [
|
|
16738
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium text-foreground", children: tagsLabel }),
|
|
16739
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16740
|
+
MosaicTagInput,
|
|
16741
|
+
{
|
|
16742
|
+
tags,
|
|
16743
|
+
onAddTag,
|
|
16744
|
+
onRemoveTag,
|
|
16745
|
+
placeholder: tagInputPlaceholder,
|
|
16746
|
+
removeTagAriaLabel,
|
|
16747
|
+
suggestions: suggestedTags,
|
|
16748
|
+
maxTags
|
|
16749
|
+
}
|
|
16750
|
+
)
|
|
16751
|
+
] }),
|
|
16752
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: saveChatAsMemoryFormFooterVariants(), children: [
|
|
16753
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16754
|
+
"button",
|
|
16755
|
+
{
|
|
16756
|
+
type: "button",
|
|
16757
|
+
"data-slot": "save-chat-as-memory-form-cancel-button",
|
|
16758
|
+
onClick: onCancel,
|
|
16759
|
+
disabled: isSaving,
|
|
16760
|
+
className: saveChatAsMemoryFormButtonVariants({ intent: "cancel" }),
|
|
16761
|
+
children: cancelLabel
|
|
16762
|
+
}
|
|
16763
|
+
),
|
|
16764
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16765
|
+
"button",
|
|
16766
|
+
{
|
|
16767
|
+
type: "button",
|
|
16768
|
+
"data-slot": "save-chat-as-memory-form-save-button",
|
|
16769
|
+
onClick: onSave,
|
|
16770
|
+
disabled: !canSave || isSaving,
|
|
16771
|
+
"aria-busy": isSaving ? "true" : "false",
|
|
16772
|
+
className: saveChatAsMemoryFormButtonVariants({ intent: "save" }),
|
|
16773
|
+
children: isSaving ? savingLabel : saveLabel
|
|
16774
|
+
}
|
|
16775
|
+
)
|
|
16776
|
+
] })
|
|
16777
|
+
]
|
|
16778
|
+
}
|
|
16779
|
+
);
|
|
16780
|
+
}
|
|
16781
|
+
MosaicSaveChatAsMemoryForm.displayName = "MosaicSaveChatAsMemoryForm";
|
|
15682
16782
|
|
|
15683
16783
|
Object.defineProperty(exports, "Accordion", {
|
|
15684
16784
|
enumerable: true,
|
|
@@ -15758,6 +16858,7 @@ exports.MosaicDocumentUpload = MosaicDocumentUpload;
|
|
|
15758
16858
|
exports.MosaicDrawer = MosaicDrawer;
|
|
15759
16859
|
exports.MosaicDropdownMenu = MosaicDropdownMenu;
|
|
15760
16860
|
exports.MosaicEditMemoryDialog = MosaicEditMemoryDialog;
|
|
16861
|
+
exports.MosaicEditSessionDialog = MosaicEditSessionDialog;
|
|
15761
16862
|
exports.MosaicEmptyState = MosaicEmptyState;
|
|
15762
16863
|
exports.MosaicFallingPattern = MosaicFallingPattern;
|
|
15763
16864
|
exports.MosaicFeature3Col = MosaicFeature3Col;
|
|
@@ -15789,10 +16890,13 @@ exports.MosaicMemoryCard = MosaicMemoryCard;
|
|
|
15789
16890
|
exports.MosaicMemoryDashboard = MosaicMemoryDashboard;
|
|
15790
16891
|
exports.MosaicMemoryGrid = MosaicMemoryGrid;
|
|
15791
16892
|
exports.MosaicMemoryList = MosaicMemoryList;
|
|
16893
|
+
exports.MosaicMemorySearch = MosaicMemorySearch;
|
|
16894
|
+
exports.MosaicMentionInput = MosaicMentionInput;
|
|
15792
16895
|
exports.MosaicMessageCard = MosaicMessageCard;
|
|
15793
16896
|
exports.MosaicMessageList = MosaicMessageList;
|
|
15794
16897
|
exports.MosaicMessageListDesktop = MessageListDesktop;
|
|
15795
16898
|
exports.MosaicMessageListMobile = MessageListMobile;
|
|
16899
|
+
exports.MosaicMessageSearch = MosaicMessageSearch;
|
|
15796
16900
|
exports.MosaicModelSelector = MosaicModelSelector;
|
|
15797
16901
|
exports.MosaicModuleCard = MosaicModuleCard;
|
|
15798
16902
|
exports.MosaicModuleForm = MosaicModuleForm;
|
|
@@ -15816,12 +16920,16 @@ exports.MosaicQuickAgentSelector = MosaicQuickAgentSelector;
|
|
|
15816
16920
|
exports.MosaicQuickStartPanel = MosaicQuickStartPanel;
|
|
15817
16921
|
exports.MosaicRadioGroup = MosaicRadioGroup;
|
|
15818
16922
|
exports.MosaicRadioGroupItem = MosaicRadioGroupItem;
|
|
16923
|
+
exports.MosaicReplyInput = MosaicReplyInput;
|
|
15819
16924
|
exports.MosaicResizableSplitPane = MosaicResizableSplitPane;
|
|
16925
|
+
exports.MosaicSaveChatAsMemoryForm = MosaicSaveChatAsMemoryForm;
|
|
15820
16926
|
exports.MosaicSaveTemplateModal = MosaicSaveTemplateModal;
|
|
15821
16927
|
exports.MosaicScrollArea = MosaicScrollArea;
|
|
15822
16928
|
exports.MosaicSelect = MosaicSelect;
|
|
15823
16929
|
exports.MosaicSelectorModal = MosaicSelectorModal;
|
|
15824
16930
|
exports.MosaicSeparator = MosaicSeparator;
|
|
16931
|
+
exports.MosaicSessionCard = MosaicSessionCard;
|
|
16932
|
+
exports.MosaicSessionList = MosaicSessionList;
|
|
15825
16933
|
exports.MosaicSignInLayout = MosaicSignInLayout;
|
|
15826
16934
|
exports.MosaicSignUpLayout = MosaicSignUpLayout;
|
|
15827
16935
|
exports.MosaicSkeleton = MosaicSkeleton;
|
|
@@ -15845,6 +16953,8 @@ exports.MosaicTestimonialsGrid = MosaicTestimonialsGrid;
|
|
|
15845
16953
|
exports.MosaicTextarea = MosaicTextarea;
|
|
15846
16954
|
exports.MosaicThemeProvider = MosaicThemeProvider;
|
|
15847
16955
|
exports.MosaicThemeToggle = MosaicThemeToggle;
|
|
16956
|
+
exports.MosaicThreadIndicator = MosaicThreadIndicator;
|
|
16957
|
+
exports.MosaicThreadView = MosaicThreadView;
|
|
15848
16958
|
exports.MosaicToast = MosaicToast;
|
|
15849
16959
|
exports.MosaicToastProvider = MosaicToastProvider;
|
|
15850
16960
|
exports.MosaicToolToggleList = MosaicToolToggleList;
|
|
@@ -15880,20 +16990,41 @@ exports.editMemoryDialogBackdropVariants = editMemoryDialogBackdropVariants;
|
|
|
15880
16990
|
exports.editMemoryDialogErrorVariants = editMemoryDialogErrorVariants;
|
|
15881
16991
|
exports.editMemoryDialogFieldVariants = editMemoryDialogFieldVariants;
|
|
15882
16992
|
exports.editMemoryDialogPopupVariants = editMemoryDialogPopupVariants;
|
|
16993
|
+
exports.editSessionDialogBodyVariants = editSessionDialogBodyVariants;
|
|
16994
|
+
exports.editSessionDialogButtonVariants = editSessionDialogButtonVariants;
|
|
16995
|
+
exports.editSessionDialogErrorVariants = editSessionDialogErrorVariants;
|
|
16996
|
+
exports.editSessionDialogFieldVariants = editSessionDialogFieldVariants;
|
|
16997
|
+
exports.editSessionDialogFooterVariants = editSessionDialogFooterVariants;
|
|
15883
16998
|
exports.marketplaceCardVariants = marketplaceCardVariants;
|
|
15884
16999
|
exports.memoryDashboardViewToggleButtonVariants = memoryDashboardViewToggleButtonVariants;
|
|
15885
17000
|
exports.memoryGridVariants = memoryGridVariants;
|
|
15886
17001
|
exports.memoryListItemVariants = memoryListItemVariants;
|
|
15887
17002
|
exports.memoryListVariants = memoryListVariants;
|
|
17003
|
+
exports.memorySearchFilterChipVariants = memorySearchFilterChipVariants;
|
|
17004
|
+
exports.mentionInputFieldVariants = mentionInputFieldVariants;
|
|
17005
|
+
exports.mentionListItemVariants = mentionListItemVariants;
|
|
17006
|
+
exports.mentionListVariants = mentionListVariants;
|
|
15888
17007
|
exports.pdfViewerFrameVariants = pdfViewerFrameVariants;
|
|
15889
17008
|
exports.pdfViewerStatusVariants = pdfViewerStatusVariants;
|
|
15890
17009
|
exports.pdfViewerToolbarButtonVariants = pdfViewerToolbarButtonVariants;
|
|
15891
17010
|
exports.popoverPopupVariants = popoverPopupVariants;
|
|
17011
|
+
exports.replyInputActionButtonVariants = replyInputActionButtonVariants;
|
|
17012
|
+
exports.replyInputContextVariants = replyInputContextVariants;
|
|
17013
|
+
exports.replyInputRootVariants = replyInputRootVariants;
|
|
17014
|
+
exports.replyInputTextareaVariants = replyInputTextareaVariants;
|
|
17015
|
+
exports.saveChatAsMemoryFormButtonVariants = saveChatAsMemoryFormButtonVariants;
|
|
17016
|
+
exports.saveChatAsMemoryFormErrorVariants = saveChatAsMemoryFormErrorVariants;
|
|
17017
|
+
exports.saveChatAsMemoryFormFieldVariants = saveChatAsMemoryFormFieldVariants;
|
|
17018
|
+
exports.saveChatAsMemoryFormFooterVariants = saveChatAsMemoryFormFooterVariants;
|
|
17019
|
+
exports.saveChatAsMemoryFormRootVariants = saveChatAsMemoryFormRootVariants;
|
|
15892
17020
|
exports.saveTemplateModalBodyVariants = saveTemplateModalBodyVariants;
|
|
15893
17021
|
exports.saveTemplateModalButtonVariants = saveTemplateModalButtonVariants;
|
|
15894
17022
|
exports.saveTemplateModalErrorVariants = saveTemplateModalErrorVariants;
|
|
15895
17023
|
exports.saveTemplateModalFieldVariants = saveTemplateModalFieldVariants;
|
|
15896
17024
|
exports.saveTemplateModalFooterVariants = saveTemplateModalFooterVariants;
|
|
17025
|
+
exports.sessionCardVariants = sessionCardVariants;
|
|
17026
|
+
exports.sessionListItemVariants = sessionListItemVariants;
|
|
17027
|
+
exports.sessionListVariants = sessionListVariants;
|
|
15897
17028
|
exports.skeletonVariants = skeletonVariants;
|
|
15898
17029
|
exports.splitPaneCollapseButtonVariants = splitPaneCollapseButtonVariants;
|
|
15899
17030
|
exports.splitPaneHandleVariants = splitPaneHandleVariants;
|
|
@@ -15908,6 +17039,13 @@ exports.templateAgentCardVariants = templateAgentCardVariants;
|
|
|
15908
17039
|
exports.templateCategoryChipVariants = templateCategoryChipVariants;
|
|
15909
17040
|
exports.templateListVariants = templateListVariants;
|
|
15910
17041
|
exports.templateManagementRowVariants = templateManagementRowVariants;
|
|
17042
|
+
exports.threadIndicatorCountVariants = threadIndicatorCountVariants;
|
|
17043
|
+
exports.threadIndicatorRootVariants = threadIndicatorRootVariants;
|
|
17044
|
+
exports.threadViewEmptyVariants = threadViewEmptyVariants;
|
|
17045
|
+
exports.threadViewRepliesVariants = threadViewRepliesVariants;
|
|
17046
|
+
exports.threadViewReplyVariants = threadViewReplyVariants;
|
|
17047
|
+
exports.threadViewRootMessageVariants = threadViewRootMessageVariants;
|
|
17048
|
+
exports.threadViewRootVariants = threadViewRootVariants;
|
|
15911
17049
|
exports.toastCardVariants = toastCardVariants;
|
|
15912
17050
|
exports.toastDismissButtonVariants = toastDismissButtonVariants;
|
|
15913
17051
|
exports.toastProviderPositionVariants = toastProviderPositionVariants;
|