@wealthx/shadcn 1.5.27 → 1.5.29
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/.turbo/turbo-build.log +88 -88
- package/CHANGELOG.md +12 -0
- package/dist/{chunk-CE2WONIY.mjs → chunk-AE4JKISB.mjs} +27 -31
- package/dist/chunk-BZWQU52U.mjs +1025 -0
- package/dist/components/ui/ai-builder/index.js +1026 -9
- package/dist/components/ui/ai-builder/index.mjs +27 -3
- package/dist/components/ui/ai-conversations/index.js +27 -31
- package/dist/components/ui/ai-conversations/index.mjs +1 -1
- package/dist/index.js +4989 -4949
- package/dist/index.mjs +2 -2
- package/dist/styles.css +1 -1
- package/package.json +4 -1
- package/src/components/ui/ai-builder/agent-card.tsx +7 -5
- package/src/components/ui/ai-builder/agent-settings.tsx +709 -0
- package/src/components/ui/ai-builder/index.tsx +27 -0
- package/src/components/ui/ai-builder/service-config-modal.tsx +48 -6
- package/src/components/ui/ai-builder/types.ts +26 -0
- package/src/components/ui/ai-conversations/thread.tsx +9 -11
- package/src/styles/styles-css.ts +1 -1
- package/dist/chunk-HSL23TOM.mjs +0 -443
|
@@ -1,16 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
|
+
AddEditRuleModal,
|
|
2
3
|
AgentCard,
|
|
4
|
+
AgentConfigForm,
|
|
3
5
|
AgentMenuModal,
|
|
4
6
|
IntegrationInstructionCard,
|
|
5
7
|
IntegrationServiceCard,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
ResponseTemplateEditModal,
|
|
9
|
+
RuleOrderBadge,
|
|
10
|
+
RuleSetSection,
|
|
11
|
+
SectionHeader,
|
|
12
|
+
ServiceConfigurationModal,
|
|
13
|
+
SettingCard,
|
|
14
|
+
SettingRow
|
|
15
|
+
} from "../../../chunk-BZWQU52U.mjs";
|
|
16
|
+
import "../../../chunk-3S6KVFF5.mjs";
|
|
8
17
|
import "../../../chunk-3VDET466.mjs";
|
|
9
18
|
import "../../../chunk-PNSYFE3K.mjs";
|
|
19
|
+
import "../../../chunk-WE4YKBDE.mjs";
|
|
20
|
+
import "../../../chunk-GT3RU6GA.mjs";
|
|
10
21
|
import "../../../chunk-IKXYTCSB.mjs";
|
|
22
|
+
import "../../../chunk-K6VCC2MK.mjs";
|
|
11
23
|
import "../../../chunk-T5FRVEJQ.mjs";
|
|
12
24
|
import "../../../chunk-H6NQTIF4.mjs";
|
|
25
|
+
import "../../../chunk-2GIYVERS.mjs";
|
|
26
|
+
import "../../../chunk-BS75ICOO.mjs";
|
|
13
27
|
import "../../../chunk-X6RC5UWB.mjs";
|
|
28
|
+
import "../../../chunk-LSRGA5BI.mjs";
|
|
29
|
+
import "../../../chunk-LBTHZSBT.mjs";
|
|
14
30
|
import "../../../chunk-XYSRRDBH.mjs";
|
|
15
31
|
import "../../../chunk-FRCTOAKZ.mjs";
|
|
16
32
|
import "../../../chunk-NOOEKOWY.mjs";
|
|
@@ -18,9 +34,17 @@ import "../../../chunk-R4HCRDU5.mjs";
|
|
|
18
34
|
import "../../../chunk-AFML43VJ.mjs";
|
|
19
35
|
import "../../../chunk-WNQUEZJF.mjs";
|
|
20
36
|
export {
|
|
37
|
+
AddEditRuleModal,
|
|
21
38
|
AgentCard,
|
|
39
|
+
AgentConfigForm,
|
|
22
40
|
AgentMenuModal,
|
|
23
41
|
IntegrationInstructionCard,
|
|
24
42
|
IntegrationServiceCard,
|
|
25
|
-
|
|
43
|
+
ResponseTemplateEditModal,
|
|
44
|
+
RuleOrderBadge,
|
|
45
|
+
RuleSetSection,
|
|
46
|
+
SectionHeader,
|
|
47
|
+
ServiceConfigurationModal,
|
|
48
|
+
SettingCard,
|
|
49
|
+
SettingRow
|
|
26
50
|
};
|
|
@@ -1408,6 +1408,7 @@ function ChatComposer({
|
|
|
1408
1408
|
emailReplySubject,
|
|
1409
1409
|
className
|
|
1410
1410
|
}) {
|
|
1411
|
+
const initialChannelRef = import_react3.default.useRef(channelProp);
|
|
1411
1412
|
const [channel, setChannel] = import_react3.default.useState(
|
|
1412
1413
|
isEmailIntegrated ? channelProp : "chat"
|
|
1413
1414
|
);
|
|
@@ -1605,35 +1606,29 @@ function ChatComposer({
|
|
|
1605
1606
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(ComposerLinkPopover, { editor }),
|
|
1606
1607
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(ComposerToolbarButton, { label: "Attach file", icon: import_lucide_react5.Paperclip })
|
|
1607
1608
|
] }),
|
|
1608
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react5.Send, { className: "mr-1.5 size-3.5" }),
|
|
1632
|
-
"Send Email"
|
|
1633
|
-
]
|
|
1634
|
-
}
|
|
1635
|
-
)
|
|
1636
|
-
] })
|
|
1609
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
1610
|
+
Button,
|
|
1611
|
+
{
|
|
1612
|
+
size: "sm",
|
|
1613
|
+
onClick: () => {
|
|
1614
|
+
var _a;
|
|
1615
|
+
const html = (_a = editor == null ? void 0 : editor.getHTML()) != null ? _a : "";
|
|
1616
|
+
onSendEmail == null ? void 0 : onSendEmail({
|
|
1617
|
+
content: html,
|
|
1618
|
+
to: emailTo,
|
|
1619
|
+
cc: emailCc,
|
|
1620
|
+
subject: emailSubject,
|
|
1621
|
+
isReply: emailMode === "reply"
|
|
1622
|
+
});
|
|
1623
|
+
editor == null ? void 0 : editor.commands.clearContent();
|
|
1624
|
+
},
|
|
1625
|
+
disabled: !editor || editor.isEmpty || !emailTo.trim(),
|
|
1626
|
+
children: [
|
|
1627
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react5.Send, { className: "mr-1.5 size-3.5" }),
|
|
1628
|
+
"Send Email"
|
|
1629
|
+
]
|
|
1630
|
+
}
|
|
1631
|
+
) })
|
|
1637
1632
|
] })
|
|
1638
1633
|
]
|
|
1639
1634
|
}
|
|
@@ -1649,7 +1644,7 @@ function ChatComposer({
|
|
|
1649
1644
|
}
|
|
1650
1645
|
),
|
|
1651
1646
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex items-center justify-between", children: [
|
|
1652
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Button, { variant: "outline", size: "sm", onClick: onLetAiHandle, children: [
|
|
1647
|
+
initialChannelRef.current !== "email" && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Button, { variant: "outline", size: "sm", onClick: onLetAiHandle, children: [
|
|
1653
1648
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react5.Bot, { className: "mr-1.5 size-3.5" }),
|
|
1654
1649
|
"Let AI Handle"
|
|
1655
1650
|
] }),
|
|
@@ -1657,6 +1652,7 @@ function ChatComposer({
|
|
|
1657
1652
|
Button,
|
|
1658
1653
|
{
|
|
1659
1654
|
size: "sm",
|
|
1655
|
+
className: "ml-auto",
|
|
1660
1656
|
onClick: () => onSend == null ? void 0 : onSend(inputValue),
|
|
1661
1657
|
disabled: !inputValue.trim(),
|
|
1662
1658
|
children: [
|
|
@@ -1773,7 +1769,7 @@ function ChatThread({
|
|
|
1773
1769
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "hidden items-center gap-2 md:flex", children: [
|
|
1774
1770
|
isClosed && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Button, { variant: "outline", size: "sm", onClick: onReopen, children: "Reopen" }),
|
|
1775
1771
|
!isClosed && aiIsHandling && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Button, { size: "sm", onClick: onTakeOver, children: "Take Over" }),
|
|
1776
|
-
!isClosed && !aiIsHandling && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Button, { variant: "outline", size: "sm", onClick: onLetAiHandle, children: [
|
|
1772
|
+
!isClosed && !aiIsHandling && channel !== "email" && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Button, { variant: "outline", size: "sm", onClick: onLetAiHandle, children: [
|
|
1777
1773
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react5.Bot, { className: "mr-1.5 size-3.5" }),
|
|
1778
1774
|
"Let AI Handle"
|
|
1779
1775
|
] })
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
ConversationStatusChip,
|
|
10
10
|
ConversationsPage,
|
|
11
11
|
LeadInfoPanel
|
|
12
|
-
} from "../../../chunk-
|
|
12
|
+
} from "../../../chunk-AE4JKISB.mjs";
|
|
13
13
|
import "../../../chunk-3S6KVFF5.mjs";
|
|
14
14
|
import "../../../chunk-WE4YKBDE.mjs";
|
|
15
15
|
import "../../../chunk-T5FRVEJQ.mjs";
|