@embedreach/components 0.1.66 → 0.1.68

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.
@@ -26068,13 +26068,17 @@ function CreateAutomationDialog({
26068
26068
  iconDefinitions,
26069
26069
  automationType
26070
26070
  }) {
26071
+ const onCloseInner = (createdAutomation) => {
26072
+ onClose?.(createdAutomation);
26073
+ setOpen(false);
26074
+ };
26071
26075
  return /* @__PURE__ */ jsx(Dialog$1, { open, onOpenChange: setOpen, children: /* @__PURE__ */ jsxs(
26072
26076
  DialogContent$1,
26073
26077
  {
26074
26078
  className: "flex max-h-[86vh] flex-col gap-0 overflow-visible max-w-5xl w-full",
26075
26079
  hideCloseButton: true,
26076
26080
  children: [
26077
- /* @__PURE__ */ jsx(DialogHeader, { className: "p-8 pb-4", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
26081
+ /* @__PURE__ */ jsx(DialogHeader, { className: "", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
26078
26082
  /* @__PURE__ */ jsxs(VisuallyHidden, { children: [
26079
26083
  /* @__PURE__ */ jsx(DialogTitle$1, { className: "text-3xl font-normal", children: "Create Automation" }),
26080
26084
  /* @__PURE__ */ jsx(DialogDescription$1, { children: "Create a new automation to send messages to your customers." })
@@ -26093,7 +26097,7 @@ function CreateAutomationDialog({
26093
26097
  /* @__PURE__ */ jsx(
26094
26098
  CreateAutomationModal,
26095
26099
  {
26096
- onClose,
26100
+ onClose: onCloseInner,
26097
26101
  iconDefinitions,
26098
26102
  automationType
26099
26103
  }
@@ -40136,13 +40140,17 @@ function SegmentBuilderDialog({
40136
40140
  segmentId,
40137
40141
  onSegmentUpdated
40138
40142
  }) {
40143
+ const onCloseInner = (createdSegment) => {
40144
+ onSegmentUpdated?.(createdSegment);
40145
+ setOpen(false);
40146
+ };
40139
40147
  return /* @__PURE__ */ jsx(Dialog$1, { open, onOpenChange: setOpen, children: /* @__PURE__ */ jsxs(
40140
40148
  DialogContent$1,
40141
40149
  {
40142
40150
  className: "flex max-h-[86vh] flex-col gap-0 overflow-visible max-w-5xl w-full",
40143
40151
  hideCloseButton: true,
40144
40152
  children: [
40145
- /* @__PURE__ */ jsx(DialogHeader, { className: "p-8 pb-4", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
40153
+ /* @__PURE__ */ jsx(DialogHeader, { className: "", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
40146
40154
  /* @__PURE__ */ jsx(DialogTitle$1, { className: "text-3xl font-normal", children: segmentId ? "Edit Segment" : "Create Segment" }),
40147
40155
  /* @__PURE__ */ jsx(VisuallyHidden, { children: /* @__PURE__ */ jsx(DialogDescription$1, { children: segmentId ? "Edit Segment" : "Create Segment" }) }),
40148
40156
  /* @__PURE__ */ jsx(
@@ -40160,11 +40168,8 @@ function SegmentBuilderDialog({
40160
40168
  SegmentBuilder,
40161
40169
  {
40162
40170
  segmentId,
40163
- setOpen: (val) => {
40164
- setOpen(val);
40165
- onSegmentUpdated?.(false);
40166
- },
40167
- onSegmentUpdated
40171
+ setOpen,
40172
+ onSegmentUpdated: onCloseInner
40168
40173
  }
40169
40174
  )
40170
40175
  ]