@embedreach/components 0.2.1 → 0.2.3
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 +7 -3
- package/dist/index.umd.js +119 -119
- package/package.json +1 -1
package/dist/chunks/index.js
CHANGED
|
@@ -2834,6 +2834,10 @@ var AutomationTriggerType = /* @__PURE__ */ ((AutomationTriggerType2) => {
|
|
|
2834
2834
|
AutomationTriggerType2["TRIGGER_BASED"] = "trigger_based";
|
|
2835
2835
|
return AutomationTriggerType2;
|
|
2836
2836
|
})(AutomationTriggerType || {});
|
|
2837
|
+
var ReachEventNamesEnum = /* @__PURE__ */ ((ReachEventNamesEnum2) => {
|
|
2838
|
+
ReachEventNamesEnum2["USER_ENTERS_SEGMENT"] = "USER_ENTERS_SEGMENT";
|
|
2839
|
+
return ReachEventNamesEnum2;
|
|
2840
|
+
})(ReachEventNamesEnum || {});
|
|
2837
2841
|
var ActionType = /* @__PURE__ */ ((ActionType2) => {
|
|
2838
2842
|
ActionType2["SEND_COMMUNICATION"] = "send_communication";
|
|
2839
2843
|
ActionType2["WAIT_UNTIL_NEXT_FIXED_TIME"] = "wait_until_next_fixed_time";
|
|
@@ -79789,7 +79793,7 @@ const AutomationEditorTrigger = () => {
|
|
|
79789
79793
|
const renderTriggerData = () => {
|
|
79790
79794
|
switch (automation2.triggerType) {
|
|
79791
79795
|
case AutomationTriggerType.TRIGGER_BASED: {
|
|
79792
|
-
if (automation2.triggerMetadata.triggerType !== AutomationTriggerType.TRIGGER_BASED || automation2.triggerMetadata.eventName !==
|
|
79796
|
+
if (automation2.triggerMetadata.triggerType !== AutomationTriggerType.TRIGGER_BASED || automation2.triggerMetadata.eventName !== ReachEventNamesEnum.USER_ENTERS_SEGMENT || !automation2.triggerMetadata.eventFilter.segment_id) {
|
|
79793
79797
|
return null;
|
|
79794
79798
|
}
|
|
79795
79799
|
const segmentId = automation2.triggerMetadata.eventFilter.segment_id;
|
|
@@ -79989,10 +79993,10 @@ const AutomationFlowMain = () => {
|
|
|
79989
79993
|
}),
|
|
79990
79994
|
rootActionId: automation2.triggerMetadata?.triggerType === AutomationTriggerType.TRIGGER_BASED ? automation2.triggerMetadata.rootActionId : void 0
|
|
79991
79995
|
});
|
|
79992
|
-
let renderTriggerAndAudienceStep = () => /* @__PURE__ */ jsx(
|
|
79996
|
+
let renderTriggerAndAudienceStep = () => /* @__PURE__ */ jsx("div", {});
|
|
79993
79997
|
if (isDetailsVisible || automation2.triggerType === AutomationTriggerType.ONE_TIME) {
|
|
79994
79998
|
renderTriggerAndAudienceStep = () => {
|
|
79995
|
-
return /* @__PURE__ */ jsxs(
|
|
79999
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3", children: [
|
|
79996
80000
|
/* @__PURE__ */ jsx(AutomationEditorTrigger, {}),
|
|
79997
80001
|
automation2.triggerType === AutomationTriggerType.ONE_TIME && /* @__PURE__ */ jsx(AutomationAudienceSelector, {})
|
|
79998
80002
|
] });
|