@fayz-ai/plugin-crm 0.32.0 → 0.32.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.js +13 -7
- package/dist/index.js.map +1 -1
- package/dist/views/DealCardModal.d.ts.map +1 -1
- package/package.json +6 -5
package/dist/index.js
CHANGED
|
@@ -6,6 +6,7 @@ import { Archive, FileX2, FileCheck2, Send, FilePlus2, XCircle, Trophy, PhoneCal
|
|
|
6
6
|
import { Button, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, Badge, Checkbox, toast, defineKpiWidget, defineChartWidget, defineCustomWidget, defineTableWidget, PageTransition, ModulePage, SubpageHeader, TooltipProvider, Tooltip, TooltipTrigger, TooltipContent, Switch, ConfirmDialog, useIsWide, PageHeaderActions, FilterChip, MultiSelect, FilterMenu, FilterMenuRow, PersonAvatar, ListView, Modal, ModalContent, ModalHeader, ModalTitle, ModalBody, Input, Textarea, ModalFooter, useSaveBar, SearchSelect, DatePicker, FilterPanel, FilterPanelField, RequiredFilter, Card, DataTable, Dropdown, DropdownTrigger, DropdownContent, DropdownItem, PhoneLink, ComingSoon, DashboardCanvas, ModalDescription, PageViewBar, PersonPicker, cn, HeaderTabs, SheetBody, SheetFooter, Popover, PopoverTrigger, PopoverContent, getLucideIcon, DictateButton, DropdownLabel, DropdownSeparator, normalizePhone, KpiCard, ChartWidget, CardHeader, CardTitle, CardContent, TableWidget } from '@fayz-ai/ui';
|
|
7
7
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
8
8
|
import { createPortal } from 'react-dom';
|
|
9
|
+
import { HelpdeskStatusPanel } from '@fayz-ai/plugin-support';
|
|
9
10
|
import { createStore as createStore$1 } from 'zustand/vanilla';
|
|
10
11
|
|
|
11
12
|
// src/index.ts
|
|
@@ -5489,6 +5490,11 @@ function DealCardModal({ dealId, open, onClose, onViewLead, onViewQuote, onViewC
|
|
|
5489
5490
|
/* @__PURE__ */ jsx(ActivityTimeline, { activities: shownActivities, loading: activitiesLoading, locale: currency.locale, contactName: deal?.contactName })
|
|
5490
5491
|
] }),
|
|
5491
5492
|
/* @__PURE__ */ jsxs("div", { className: (wide ? "min-h-0 shrink-0 overflow-y-auto border-l" : "border-t") + " space-y-5 p-5", style: wide ? { width: "18rem" } : void 0, children: [
|
|
5493
|
+
(() => {
|
|
5494
|
+
const storeTenantId = company?.metadata?.tenant_id_v2;
|
|
5495
|
+
if (!storeTenantId || typeof storeTenantId !== "string") return null;
|
|
5496
|
+
return /* @__PURE__ */ jsx(Section, { title: "Chamados desta loja", children: /* @__PURE__ */ jsx(HelpdeskStatusPanel, { tenantId: storeTenantId }) });
|
|
5497
|
+
})(),
|
|
5492
5498
|
deal?.groupName && /* @__PURE__ */ jsx(Section, { title: t2("crm.card.groupTitle"), children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 rounded-card border bg-muted/20 px-3 py-3", children: [
|
|
5493
5499
|
/* @__PURE__ */ jsx(Network, { className: "h-4 w-4 shrink-0 text-muted-foreground" }),
|
|
5494
5500
|
/* @__PURE__ */ jsxs("span", { className: "min-w-0 flex-1", children: [
|
|
@@ -33695,10 +33701,10 @@ function createCrmPlugin(options) {
|
|
|
33695
33701
|
}
|
|
33696
33702
|
},
|
|
33697
33703
|
suggestions: [
|
|
33698
|
-
{ label: "
|
|
33699
|
-
{ label: "
|
|
33700
|
-
{ label: "
|
|
33701
|
-
{ label: "
|
|
33704
|
+
{ label: "Quantos clientes temos?", verticalId: "beauty" },
|
|
33705
|
+
{ label: "Quantos clientes temos?", verticalId: "services" },
|
|
33706
|
+
{ label: "Quantos pacientes hoje?", verticalId: "health" },
|
|
33707
|
+
{ label: "Quem s\xE3o meus melhores clientes?" }
|
|
33702
33708
|
],
|
|
33703
33709
|
permission: { feature: "sales", action: "read" }
|
|
33704
33710
|
},
|
|
@@ -33718,9 +33724,9 @@ function createCrmPlugin(options) {
|
|
|
33718
33724
|
},
|
|
33719
33725
|
permission: { feature: "sales", action: "read" },
|
|
33720
33726
|
suggestions: [
|
|
33721
|
-
{ label: "
|
|
33722
|
-
{ label: "
|
|
33723
|
-
{ label: "
|
|
33727
|
+
{ label: "Mostre os leads novos desta semana" },
|
|
33728
|
+
{ label: "Quais leads precisam de follow-up?" },
|
|
33729
|
+
{ label: "Qual nossa taxa de convers\xE3o?" }
|
|
33724
33730
|
]
|
|
33725
33731
|
},
|
|
33726
33732
|
{
|