@embedreach/components 0.2.16 → 0.2.18

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.
@@ -13023,7 +13023,7 @@ const ToastClose = React.forwardRef(({ className: className2, ...props2 }, ref)
13023
13023
  {
13024
13024
  ref,
13025
13025
  className: cn$1(
13026
- "absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",
13026
+ "absolute right-1 top-1 rounded-md p-1 text-foreground/50 hover:text-foreground focus:outline-none focus:ring-1 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",
13027
13027
  className2
13028
13028
  ),
13029
13029
  "toast-close": "",
@@ -46411,7 +46411,7 @@ const stripoKeys = {
46411
46411
  token: () => [...stripoKeys.all, "token"],
46412
46412
  editorData: () => [...stripoKeys.all, "editorData"],
46413
46413
  templates: () => [...stripoKeys.all, "templates"],
46414
- demoTemplate: () => [...stripoKeys.templates(), "demo"]
46414
+ templateForActionId: (automationId, actionId) => [...stripoKeys.templates(), automationId, actionId]
46415
46415
  };
46416
46416
  const getStripoToken = async () => {
46417
46417
  const response = await baseRequest(`${STRIPO_PATH}/token`);
@@ -46445,7 +46445,7 @@ const useStripoEditorData = () => {
46445
46445
  const useStripoTemplateForActionId = (args) => {
46446
46446
  const { automationId, actionId } = args;
46447
46447
  return useQuery({
46448
- queryKey: ["stripo", "templates", automationId, actionId],
46448
+ queryKey: stripoKeys.templateForActionId(automationId, actionId),
46449
46449
  queryFn: () => getTemplateForActionId({ automationId, actionId }),
46450
46450
  ...CACHE_STANDARD
46451
46451
  });
@@ -54567,7 +54567,7 @@ function TanstackTable({
54567
54567
  const TableSkeleton = () => /* @__PURE__ */ jsx("div", { className: "h-full w-full flex items-center justify-center", children: /* @__PURE__ */ jsx(BasicLoader, {}) });
54568
54568
  return /* @__PURE__ */ jsxs("div", { className: "flex flex-col h-full border rounded-lg shadow-sm hover:shadow-md transition-shadow duration-300 overflow-hidden", children: [
54569
54569
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-start gap-3 py-4 px-2 sticky top-0 z-20 bg-primary/5 border-b rounded-t-md md:flex-row md:items-center md:justify-between", children: [
54570
- /* @__PURE__ */ jsx("div", { className: "w-full md:w-1/4", children: /* @__PURE__ */ jsx(
54570
+ /* @__PURE__ */ jsx("div", { className: "md:w-1/4", children: /* @__PURE__ */ jsx(
54571
54571
  Input,
54572
54572
  {
54573
54573
  placeholder: "Search...",
@@ -63696,7 +63696,7 @@ const EmailPreview = ({
63696
63696
  )
63697
63697
  ] }),
63698
63698
  /* @__PURE__ */ jsxs("div", { children: [
63699
- /* @__PURE__ */ jsx(Label$1, { className: "", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 py-1", children: [
63699
+ /* @__PURE__ */ jsx(Label$1, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 py-1", children: [
63700
63700
  "From Name",
63701
63701
  /* @__PURE__ */ jsx(
63702
63702
  InfoTooltip,
@@ -63718,7 +63718,7 @@ const EmailPreview = ({
63718
63718
  )
63719
63719
  ] }),
63720
63720
  /* @__PURE__ */ jsxs("div", { children: [
63721
- /* @__PURE__ */ jsx(Label$1, { className: "", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 py-1", children: [
63721
+ /* @__PURE__ */ jsx(Label$1, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 py-1", children: [
63722
63722
  "Reply To Email",
63723
63723
  /* @__PURE__ */ jsx(
63724
63724
  InfoTooltip,
@@ -64430,6 +64430,9 @@ const TitleAndResetButton = ({ title: title2, type }) => {
64430
64430
  queryClient.invalidateQueries({
64431
64431
  queryKey: communicationGroupQueryKeys.all
64432
64432
  });
64433
+ queryClient.invalidateQueries({
64434
+ queryKey: stripoKeys.templates()
64435
+ });
64433
64436
  toast2({
64434
64437
  title: "Communication reset to default!"
64435
64438
  });