@sesionario/blocks 1.40.0 → 1.41.0-rc.1
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/dist/index.cjs +43 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +43 -10
- package/dist/index.js.map +1 -1
- package/dist/navigation-progress.cjs +92 -13
- package/dist/navigation-progress.cjs.map +1 -1
- package/dist/navigation-progress.d.cts +17 -3
- package/dist/navigation-progress.d.ts +17 -3
- package/dist/navigation-progress.js +91 -14
- package/dist/navigation-progress.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -7228,14 +7228,26 @@ function ChatMessageList({
|
|
|
7228
7228
|
messages,
|
|
7229
7229
|
currentUserId,
|
|
7230
7230
|
emptyTitle = "Sin mensajes",
|
|
7231
|
-
emptyDescription = "Escribe para iniciar la conversaci\xF3n."
|
|
7231
|
+
emptyDescription = "Escribe para iniciar la conversaci\xF3n.",
|
|
7232
|
+
compactEmpty = false
|
|
7232
7233
|
}) {
|
|
7233
7234
|
if (messages.length === 0) {
|
|
7234
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7235
|
-
|
|
7236
|
-
|
|
7237
|
-
|
|
7238
|
-
|
|
7235
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7236
|
+
"div",
|
|
7237
|
+
{
|
|
7238
|
+
className: compactEmpty ? "flex h-full flex-col items-center justify-center gap-1 px-4 py-3 text-center" : "flex h-full flex-col items-center justify-center gap-2 p-6 text-center",
|
|
7239
|
+
children: [
|
|
7240
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7241
|
+
lucideReact.MessageCircleDashedIcon,
|
|
7242
|
+
{
|
|
7243
|
+
className: compactEmpty ? "size-5 text-muted-foreground" : "size-8 text-muted-foreground"
|
|
7244
|
+
}
|
|
7245
|
+
),
|
|
7246
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium", children: emptyTitle }),
|
|
7247
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: emptyDescription })
|
|
7248
|
+
]
|
|
7249
|
+
}
|
|
7250
|
+
);
|
|
7239
7251
|
}
|
|
7240
7252
|
return /* @__PURE__ */ jsxRuntime.jsx(MessageScrollerProvider, { autoScroll: true, children: /* @__PURE__ */ jsxRuntime.jsxs(MessageScroller, { children: [
|
|
7241
7253
|
/* @__PURE__ */ jsxRuntime.jsx(MessageScrollerViewport, { children: /* @__PURE__ */ jsxRuntime.jsx(MessageScrollerContent, { className: "gap-4 p-4", children: messages.map((m) => {
|
|
@@ -7578,7 +7590,7 @@ function ThreadPanel({
|
|
|
7578
7590
|
className
|
|
7579
7591
|
),
|
|
7580
7592
|
children: [
|
|
7581
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-
|
|
7593
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 border-b bg-primary/10 px-2 py-2", children: [
|
|
7582
7594
|
showBack && onBack ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
7583
7595
|
Button,
|
|
7584
7596
|
{
|
|
@@ -7590,7 +7602,24 @@ function ThreadPanel({
|
|
|
7590
7602
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeft, { className: "size-4" })
|
|
7591
7603
|
}
|
|
7592
7604
|
) : null,
|
|
7605
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7606
|
+
"span",
|
|
7607
|
+
{
|
|
7608
|
+
className: "flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-full bg-primary text-[11px] font-semibold text-primary-foreground",
|
|
7609
|
+
style: thread.avatarUrl ? void 0 : avatarFallbackStyle(thread.title),
|
|
7610
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7611
|
+
SafeImage,
|
|
7612
|
+
{
|
|
7613
|
+
src: thread.avatarUrl,
|
|
7614
|
+
alt: "",
|
|
7615
|
+
className: "size-full object-cover",
|
|
7616
|
+
fallback: getInitials(thread.eyebrow ?? thread.title)
|
|
7617
|
+
}
|
|
7618
|
+
)
|
|
7619
|
+
}
|
|
7620
|
+
),
|
|
7593
7621
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1 px-1", children: [
|
|
7622
|
+
thread.eyebrow ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "truncate text-[11px] font-semibold tracking-wide text-primary", children: thread.eyebrow }) : null,
|
|
7594
7623
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "truncate text-sm font-semibold", children: thread.title }),
|
|
7595
7624
|
thread.subtitle ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "truncate text-xs text-muted-foreground", children: thread.subtitle }) : null
|
|
7596
7625
|
] }),
|
|
@@ -7611,7 +7640,8 @@ function ThreadPanel({
|
|
|
7611
7640
|
{
|
|
7612
7641
|
messages,
|
|
7613
7642
|
currentUserId,
|
|
7614
|
-
emptyDescription: labels.emptyThread
|
|
7643
|
+
emptyDescription: labels.emptyThread,
|
|
7644
|
+
compactEmpty: true
|
|
7615
7645
|
}
|
|
7616
7646
|
) }),
|
|
7617
7647
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "border-t p-3", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -7662,7 +7692,7 @@ function ListPanel({
|
|
|
7662
7692
|
className
|
|
7663
7693
|
),
|
|
7664
7694
|
children: [
|
|
7665
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between border-b px-3 py-2", children: [
|
|
7695
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between border-b bg-primary/10 px-3 py-2", children: [
|
|
7666
7696
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-semibold", children: labels.listTitle }),
|
|
7667
7697
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7668
7698
|
Button,
|
|
@@ -7699,7 +7729,7 @@ function ListPanel({
|
|
|
7699
7729
|
}
|
|
7700
7730
|
)
|
|
7701
7731
|
] }) }) : null,
|
|
7702
|
-
/* @__PURE__ */ jsxRuntime.jsx("ul", { className: "min-h-0 flex-1 overflow-y-auto p-1", children: filtered.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("li", { className: "px-3 py-
|
|
7732
|
+
/* @__PURE__ */ jsxRuntime.jsx("ul", { className: "min-h-0 flex-1 overflow-y-auto p-1", children: filtered.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("li", { className: "px-3 py-4 text-center text-xs text-muted-foreground", children: labels.emptyList }) : filtered.map((item) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7703
7733
|
"button",
|
|
7704
7734
|
{
|
|
7705
7735
|
type: "button",
|
|
@@ -7723,6 +7753,7 @@ function ListPanel({
|
|
|
7723
7753
|
}
|
|
7724
7754
|
),
|
|
7725
7755
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "min-w-0 flex-1", children: [
|
|
7756
|
+
item.eyebrow ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "block truncate text-[11px] font-semibold tracking-wide text-primary", children: item.eyebrow }) : null,
|
|
7726
7757
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "block truncate text-sm font-medium", children: item.title }),
|
|
7727
7758
|
item.subtitle ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "block truncate text-xs text-muted-foreground", children: item.subtitle }) : null
|
|
7728
7759
|
] }),
|
|
@@ -7848,6 +7879,8 @@ function SupportMessengerProvider({
|
|
|
7848
7879
|
key: item.key,
|
|
7849
7880
|
title: item.title,
|
|
7850
7881
|
subtitle: item.subtitle,
|
|
7882
|
+
eyebrow: item.eyebrow,
|
|
7883
|
+
avatarUrl: item.avatarUrl,
|
|
7851
7884
|
conversationId: item.conversationId,
|
|
7852
7885
|
open: item.open
|
|
7853
7886
|
});
|