@fayz-ai/plugin-conversations 0.39.0 → 0.40.0
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/{ConversationsPage-P6U7BNZO.js → ConversationsPage-OA5UAMU3.js} +41 -36
- package/dist/ConversationsPage-OA5UAMU3.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/migrations/index.d.ts +1 -0
- package/dist/migrations/index.d.ts.map +1 -1
- package/dist/migrations/main.browser.js +2 -1
- package/dist/migrations/main.browser.js.map +1 -1
- package/dist/migrations/main.js +103 -1
- package/dist/migrations/main.js.map +1 -1
- package/dist/views/ContactPanel.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/ConversationsPage-P6U7BNZO.js.map +0 -1
|
@@ -1742,41 +1742,46 @@ function ContactPanel({ contact, onClose, className }) {
|
|
|
1742
1742
|
contact.contactPersonId ?? profile?.id ?? null,
|
|
1743
1743
|
contact.channel === "whatsapp" ? contact.contactHandle : profile?.phone ?? null
|
|
1744
1744
|
);
|
|
1745
|
-
return
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1745
|
+
return (
|
|
1746
|
+
// Opaque by default: on a phone (and in the floating inbox) the panel
|
|
1747
|
+
// OVERLAYS the thread, and a tinted transparent panel let the messages
|
|
1748
|
+
// show through. Docked beside the thread it takes the soft tint back.
|
|
1749
|
+
/* @__PURE__ */ jsxs("aside", { className: cn("flex shrink-0 flex-col overflow-y-auto border-l border-border bg-background pb-4", className), children: [
|
|
1750
|
+
/* @__PURE__ */ jsxs("div", { className: "sticky top-0 z-10 flex items-center justify-between border-b border-border bg-card px-3 py-2", children: [
|
|
1751
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-semibold text-foreground", children: t("conversations.contact.details") }),
|
|
1752
|
+
onClose && /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "icon", onClick: onClose, "aria-label": t("conversations.contact.closeDetails"), children: /* @__PURE__ */ jsx(X, { className: "h-4 w-4" }) })
|
|
1753
|
+
] }),
|
|
1754
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-2 bg-card px-4 py-5 text-center", children: [
|
|
1755
|
+
/* @__PURE__ */ jsx(Avatar, { name: contact.contactName, accent: contact.accent, size: "lg", channel: contact.channel }),
|
|
1756
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
1757
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm font-semibold text-foreground", children: profile?.name ?? contact.contactName }),
|
|
1758
|
+
profile?.company && /* @__PURE__ */ jsxs("p", { className: "mt-0.5 flex items-center justify-center gap-1 text-xs text-muted-foreground", children: [
|
|
1759
|
+
/* @__PURE__ */ jsx(Building2, { className: "h-3 w-3 shrink-0" }),
|
|
1760
|
+
/* @__PURE__ */ jsx("span", { className: "truncate", children: [profile.company.role, profile.company.name].filter(Boolean).join(" \xB7 ") })
|
|
1761
|
+
] }),
|
|
1762
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: contact.contactHandle })
|
|
1757
1763
|
] }),
|
|
1758
|
-
/* @__PURE__ */ jsx(
|
|
1764
|
+
/* @__PURE__ */ jsx(ChannelBadge, { channel: contact.channel })
|
|
1759
1765
|
] }),
|
|
1760
|
-
/* @__PURE__ */ jsx(
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
] });
|
|
1766
|
+
profile === void 0 && /* @__PURE__ */ jsx("p", { className: "px-4 pt-4 text-xs text-muted-foreground", children: t("conversations.profile.loading") }),
|
|
1767
|
+
profile === null && /* @__PURE__ */ jsx("p", { className: "px-4 pt-4 text-xs text-muted-foreground", children: t("conversations.profile.notInCrm") }),
|
|
1768
|
+
profile && /* @__PURE__ */ jsx(ProfileSections, { profile }),
|
|
1769
|
+
(disposition.phone || disposition.stopped) && /* @__PURE__ */ jsx(Section, { title: t("conversations.disposition.section"), children: /* @__PURE__ */ jsx(Rows, { rows: [
|
|
1770
|
+
[t("conversations.disposition.phoneStatusRow"), disposition.phone ? /* @__PURE__ */ jsx("span", { className: disposition.phone.status === "ok" ? void 0 : "text-destructive", children: phoneStatusLine(t, disposition.phone) }) : null],
|
|
1771
|
+
[t("conversations.disposition.stoppedRow"), disposition.stopped ? stoppedJourneyLine(t, disposition.stopped) : null]
|
|
1772
|
+
] }) }),
|
|
1773
|
+
/* @__PURE__ */ jsx(Section, { title: t("conversations.profile.conversation"), children: /* @__PURE__ */ jsx(Rows, { rows: [
|
|
1774
|
+
[t("conversations.contact.channel"), channelLabel(contact.channel)],
|
|
1775
|
+
[t("conversations.contact.status"), t(`conversations.status.${contact.status}`)],
|
|
1776
|
+
[t("conversations.contact.assignedTo"), contact.assignedTo],
|
|
1777
|
+
// Who answers this conversation may not be who follows the lead up:
|
|
1778
|
+
// side by side on purpose — when they differ, that is information.
|
|
1779
|
+
[t("conversations.contact.leadOwner"), contact.leadOwnerName],
|
|
1780
|
+
[t("conversations.contact.location"), contact.location],
|
|
1781
|
+
[t("conversations.contact.note"), contact.note]
|
|
1782
|
+
] }) })
|
|
1783
|
+
] })
|
|
1784
|
+
);
|
|
1780
1785
|
}
|
|
1781
1786
|
function ProfileSections({ profile }) {
|
|
1782
1787
|
const t = useTranslation();
|
|
@@ -2065,7 +2070,7 @@ function InboxView({ layout = "page", newSignal = 0 } = {}) {
|
|
|
2065
2070
|
{
|
|
2066
2071
|
contact: selected,
|
|
2067
2072
|
onClose: () => setPanelOpen(false),
|
|
2068
|
-
className: cn("absolute inset-y-0 right-0 z-20 w-[340px] max-w-[88%] shadow-2xl", !dock && "xl:static xl:z-auto xl:w-[300px] xl:max-w-none xl:shadow-none")
|
|
2073
|
+
className: cn("absolute inset-y-0 right-0 z-20 w-[340px] max-w-[88%] shadow-2xl", !dock && "xl:static xl:z-auto xl:w-[300px] xl:max-w-none xl:bg-muted/20 xl:shadow-none")
|
|
2069
2074
|
}
|
|
2070
2075
|
)
|
|
2071
2076
|
] })
|
|
@@ -2138,5 +2143,5 @@ function ConversationsPage({ store, config }) {
|
|
|
2138
2143
|
}
|
|
2139
2144
|
|
|
2140
2145
|
export { ConversationsPage, conversationIdFromPath };
|
|
2141
|
-
//# sourceMappingURL=ConversationsPage-
|
|
2142
|
-
//# sourceMappingURL=ConversationsPage-
|
|
2146
|
+
//# sourceMappingURL=ConversationsPage-OA5UAMU3.js.map
|
|
2147
|
+
//# sourceMappingURL=ConversationsPage-OA5UAMU3.js.map
|