@embedreach/components 0.2.32 → 0.2.35
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/chunks/index.js +39 -25
- package/dist/index.umd.js +113 -113
- package/package.json +1 -1
package/dist/chunks/index.js
CHANGED
|
@@ -36250,7 +36250,18 @@ const customAutomationOverridesReducer = (state, action) => {
|
|
|
36250
36250
|
...state,
|
|
36251
36251
|
hideSales: action.payload
|
|
36252
36252
|
};
|
|
36253
|
+
case "SET_FROM_NAME_SETTINGS_TEXT":
|
|
36254
|
+
return {
|
|
36255
|
+
...state,
|
|
36256
|
+
fromNameSettingsText: action.payload
|
|
36257
|
+
};
|
|
36258
|
+
case "SET_FROM_NAME_SETTINGS_LINK":
|
|
36259
|
+
return {
|
|
36260
|
+
...state,
|
|
36261
|
+
fromNameSettingsLink: action.payload
|
|
36262
|
+
};
|
|
36253
36263
|
default:
|
|
36264
|
+
console.warn(`Unknown action type: ${action}`);
|
|
36254
36265
|
return state;
|
|
36255
36266
|
}
|
|
36256
36267
|
};
|
|
@@ -62749,9 +62760,7 @@ const getSmsChannelSenders = (args) => {
|
|
|
62749
62760
|
smsApplication: null
|
|
62750
62761
|
};
|
|
62751
62762
|
});
|
|
62752
|
-
return toReturn
|
|
62753
|
-
(item) => item.smsApplication !== null && item.smsApplication !== void 0
|
|
62754
|
-
);
|
|
62763
|
+
return toReturn;
|
|
62755
62764
|
};
|
|
62756
62765
|
function toDate$1(argument) {
|
|
62757
62766
|
const argStr = Object.prototype.toString.call(argument);
|
|
@@ -72813,6 +72822,25 @@ const TabsContent = React.forwardRef(({ className: className2, ...props2 }, ref)
|
|
|
72813
72822
|
}
|
|
72814
72823
|
));
|
|
72815
72824
|
TabsContent.displayName = Content.displayName;
|
|
72825
|
+
const DialogCloseButton = ({ onOpenChange }) => {
|
|
72826
|
+
return /* @__PURE__ */ jsx(
|
|
72827
|
+
"div",
|
|
72828
|
+
{
|
|
72829
|
+
role: "button",
|
|
72830
|
+
tabIndex: 0,
|
|
72831
|
+
"aria-label": "Close dialog",
|
|
72832
|
+
onClick: () => onOpenChange(false),
|
|
72833
|
+
onKeyDown: (e4) => {
|
|
72834
|
+
if (e4.key === "Enter" || e4.key === " ") {
|
|
72835
|
+
onOpenChange(false);
|
|
72836
|
+
}
|
|
72837
|
+
},
|
|
72838
|
+
className: "absolute top-3 right-3 z-20 rounded-full p-2 bg-white/80 shadow-lg border border-gray-200 hover:bg-primary/90 hover:text-white active:bg-primary/95 transition-all duration-200 focus:outline-none focus:ring-4 focus:ring-primary/30 focus:ring-offset-2 group cursor-pointer",
|
|
72839
|
+
style: { boxShadow: "0 4px 24px 0 rgba(0,0,0,0.10)" },
|
|
72840
|
+
children: /* @__PURE__ */ jsx(IconDefinitions.CloseButton, { className: "w-5 h-5 text-primary group-hover:text-primary-foreground group-active:text-primary-foreground transition-colors duration-200" })
|
|
72841
|
+
}
|
|
72842
|
+
);
|
|
72843
|
+
};
|
|
72816
72844
|
function usePrevious(value) {
|
|
72817
72845
|
const ref = React.useRef({ value, previous: value });
|
|
72818
72846
|
return React.useMemo(() => {
|
|
@@ -73029,7 +73057,11 @@ const SelectEmailOrSMS = ({
|
|
|
73029
73057
|
return /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
73030
73058
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
73031
73059
|
/* @__PURE__ */ jsx("h3", { className: "text-xl font-medium text-foreground", children: "Message Types" }),
|
|
73032
|
-
/* @__PURE__ */
|
|
73060
|
+
/* @__PURE__ */ jsxs("p", { className: "text-muted-foreground mb-2 text-sm", children: [
|
|
73061
|
+
"Select the channels you want to use in this",
|
|
73062
|
+
" ",
|
|
73063
|
+
automationType === AutomationTriggerType.ONE_TIME ? t$1("engage:broadcast").toLowerCase() : t$1("engage:automation").toLowerCase()
|
|
73064
|
+
] })
|
|
73033
73065
|
] }),
|
|
73034
73066
|
/* @__PURE__ */ jsx("div", { className: "w-full grid grid-cols-2 gap-3", children: channelOptions.map((option) => /* @__PURE__ */ jsxs(
|
|
73035
73067
|
Root$4,
|
|
@@ -73199,7 +73231,7 @@ const EditCampaignContent = ({
|
|
|
73199
73231
|
}),
|
|
73200
73232
|
[channelSenders?.results, channelAccounts?.results]
|
|
73201
73233
|
);
|
|
73202
|
-
const smsChannelSenders =
|
|
73234
|
+
const smsChannelSenders = useMemo(
|
|
73203
73235
|
() => getSmsChannelSenders({
|
|
73204
73236
|
channelSenders: channelSenders?.results ?? [],
|
|
73205
73237
|
channelAccounts: channelAccounts?.results ?? [],
|
|
@@ -73257,16 +73289,7 @@ const EditCampaignContentDialog = ({ open, onOpenChange }) => {
|
|
|
73257
73289
|
/* @__PURE__ */ jsx(DialogTitle, { children: "Edit Campaign Content" }),
|
|
73258
73290
|
/* @__PURE__ */ jsx(DialogDescription, { children: "Edit the content of the campaign" })
|
|
73259
73291
|
] }),
|
|
73260
|
-
/* @__PURE__ */ jsx(
|
|
73261
|
-
Button$1,
|
|
73262
|
-
{
|
|
73263
|
-
"aria-label": "Close dialog",
|
|
73264
|
-
onClick: () => onOpenChange(false),
|
|
73265
|
-
className: "absolute top-3 right-3 z-20 rounded-full p-2 bg-white/80 shadow-lg border border-gray-200 hover:bg-primary/90 hover:text-white active:bg-primary/95 transition-all duration-200 focus:outline-none focus:ring-4 focus:ring-primary/30 focus:ring-offset-2 group",
|
|
73266
|
-
style: { boxShadow: "0 4px 24px 0 rgba(0,0,0,0.10)" },
|
|
73267
|
-
children: /* @__PURE__ */ jsx(IconDefinitions.CloseButton, { className: "w-7 h-7 text-primary group-hover:text-primary-foreground group-active:text-primary-foreground transition-colors duration-200" })
|
|
73268
|
-
}
|
|
73269
|
-
),
|
|
73292
|
+
/* @__PURE__ */ jsx(DialogCloseButton, { onOpenChange }),
|
|
73270
73293
|
/* @__PURE__ */ jsx(EditCampaignContent, {})
|
|
73271
73294
|
]
|
|
73272
73295
|
}
|
|
@@ -73414,16 +73437,7 @@ const ExpandButton = ({ expandDialogContent }) => {
|
|
|
73414
73437
|
/* @__PURE__ */ jsx(DialogDescription, { children: "Expanded view of communication content" })
|
|
73415
73438
|
] }),
|
|
73416
73439
|
/* @__PURE__ */ jsxs("div", { className: "h-full flex flex-col overflow-hidden rounded-xl", children: [
|
|
73417
|
-
/* @__PURE__ */ jsx(
|
|
73418
|
-
Button$1,
|
|
73419
|
-
{
|
|
73420
|
-
"aria-label": "Close dialog",
|
|
73421
|
-
onClick: () => setExpandClicked(false),
|
|
73422
|
-
className: "absolute top-3 right-3 z-20 rounded-full p-2 bg-white/80 shadow-lg border border-gray-200 hover:bg-primary/90 hover:text-white active:bg-primary/95 transition-all duration-200 focus:outline-none focus:ring-4 focus:ring-primary/30 focus:ring-offset-2 group",
|
|
73423
|
-
style: { boxShadow: "0 4px 24px 0 rgba(0,0,0,0.10)" },
|
|
73424
|
-
children: /* @__PURE__ */ jsx(IconDefinitions.CloseButton, { className: "w-7 h-7 text-primary group-hover:text-primary-foreground group-active:text-primary-foreground transition-colors duration-200" })
|
|
73425
|
-
}
|
|
73426
|
-
),
|
|
73440
|
+
/* @__PURE__ */ jsx(DialogCloseButton, { onOpenChange: setExpandClicked }),
|
|
73427
73441
|
expandDialogContent
|
|
73428
73442
|
] })
|
|
73429
73443
|
]
|