@embedreach/components 0.3.40 → 0.3.41

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.
@@ -84603,7 +84603,6 @@ const IMAGE_STYLE_OPTIONS = [
84603
84603
  }
84604
84604
  ];
84605
84605
  const AIContentPrompt = forwardRef(({ onGenerateContent, onPromptChange }, ref) => {
84606
- const { sendNotificationAsync } = useSlackNotification();
84607
84606
  const { generateContent, generateContentError, isGeneratingContent } = useGenerateAIContent();
84608
84607
  const {
84609
84608
  state: { selectedChannels }
@@ -84635,12 +84634,6 @@ const AIContentPrompt = forwardRef(({ onGenerateContent, onPromptChange }, ref)
84635
84634
  const handleGenerate = () => {
84636
84635
  const currentPrompt = promptRef.current;
84637
84636
  if (!currentPrompt.trim()) return;
84638
- sendNotificationAsync({
84639
- message: "💬 New AI Email requested",
84640
- product: "engage",
84641
- feature: "ai-email",
84642
- details: { userInput: currentPrompt }
84643
- });
84644
84637
  generateContent(
84645
84638
  {
84646
84639
  userPrompt: currentPrompt,
@@ -118025,11 +118018,16 @@ const AutomationStatistics = ({
118025
118018
  header: "Customer",
118026
118019
  enableSorting: false,
118027
118020
  cell: ({ row }) => {
118028
- const firstName = row.original.first_name || "";
118029
- const lastName = row.original.last_name || "";
118021
+ const displayName = getDisplayName(
118022
+ {
118023
+ firstName: row.original.first_name || "",
118024
+ lastName: row.original.last_name || ""
118025
+ },
118026
+ "Unknown"
118027
+ );
118030
118028
  const email = row.original.email || "";
118031
118029
  return /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
118032
- /* @__PURE__ */ jsx("span", { className: "font-medium", children: firstName && lastName ? `${firstName} ${lastName}` : "Unknown" }),
118030
+ /* @__PURE__ */ jsx("span", { className: "font-medium", children: displayName }),
118033
118031
  email && /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: email })
118034
118032
  ] });
118035
118033
  },
@@ -120059,11 +120057,16 @@ const AutomationsEditorStatsTab = () => {
120059
120057
  header: "Customer",
120060
120058
  enableSorting: false,
120061
120059
  cell: ({ row }) => {
120062
- const firstName = row.original.first_name || "";
120063
- const lastName = row.original.last_name || "";
120060
+ const displayName = getDisplayName(
120061
+ {
120062
+ firstName: row.original.first_name || "",
120063
+ lastName: row.original.last_name || ""
120064
+ },
120065
+ "Unknown"
120066
+ );
120064
120067
  const email = row.original.email || "";
120065
120068
  return /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
120066
- /* @__PURE__ */ jsx("span", { className: "font-medium", children: firstName && lastName ? `${firstName} ${lastName}` : "Unknown" }),
120069
+ /* @__PURE__ */ jsx("span", { className: "font-medium", children: displayName }),
120067
120070
  email && /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: email })
120068
120071
  ] });
120069
120072
  },