@wealthx/shadcn 1.5.28 → 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.
@@ -1,16 +1,32 @@
1
1
  import {
2
+ AddEditRuleModal,
2
3
  AgentCard,
4
+ AgentConfigForm,
3
5
  AgentMenuModal,
4
6
  IntegrationInstructionCard,
5
7
  IntegrationServiceCard,
6
- ServiceConfigurationModal
7
- } from "../../../chunk-T5PGVLMR.mjs";
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
- ServiceConfigurationModal
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.jsxs)("div", { className: "flex items-center gap-2", children: [
1609
- onLetAiHandle && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Button, { variant: "outline", size: "sm", onClick: onLetAiHandle, children: [
1610
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react5.Bot, { className: "mr-1.5 size-3.5" }),
1611
- "Let AI Handle"
1612
- ] }),
1613
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
1614
- Button,
1615
- {
1616
- size: "sm",
1617
- onClick: () => {
1618
- var _a;
1619
- const html = (_a = editor == null ? void 0 : editor.getHTML()) != null ? _a : "";
1620
- onSendEmail == null ? void 0 : onSendEmail({
1621
- content: html,
1622
- to: emailTo,
1623
- cc: emailCc,
1624
- subject: emailSubject,
1625
- isReply: emailMode === "reply"
1626
- });
1627
- editor == null ? void 0 : editor.commands.clearContent();
1628
- },
1629
- disabled: !editor || editor.isEmpty || !emailTo.trim(),
1630
- children: [
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-CE2WONIY.mjs";
12
+ } from "../../../chunk-AE4JKISB.mjs";
13
13
  import "../../../chunk-3S6KVFF5.mjs";
14
14
  import "../../../chunk-WE4YKBDE.mjs";
15
15
  import "../../../chunk-T5FRVEJQ.mjs";