@bigbinary/neeto-site-blocks 2.0.3 → 2.0.4
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/index.cjs.js +12 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +12 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -13645,20 +13645,27 @@ var CtaWithEmailAction = function CtaWithEmailAction(_ref) {
|
|
|
13645
13645
|
message: successMessage,
|
|
13646
13646
|
status: "success"
|
|
13647
13647
|
});
|
|
13648
|
-
|
|
13648
|
+
if (button.action === "external") {
|
|
13649
|
+
window.open(button.url, "_blank").focus();
|
|
13650
|
+
} else if (button.action === "page") {
|
|
13651
|
+
window.location.pathname = button.url;
|
|
13652
|
+
} else if (button.action === "internal") {
|
|
13653
|
+
history.pushState(null, "", button.url);
|
|
13654
|
+
}
|
|
13655
|
+
_context.next = 14;
|
|
13649
13656
|
break;
|
|
13650
|
-
case
|
|
13651
|
-
_context.prev =
|
|
13657
|
+
case 11:
|
|
13658
|
+
_context.prev = 11;
|
|
13652
13659
|
_context.t0 = _context["catch"](4);
|
|
13653
13660
|
setResponse({
|
|
13654
13661
|
message: _context.t0.message,
|
|
13655
13662
|
status: "error"
|
|
13656
13663
|
});
|
|
13657
|
-
case
|
|
13664
|
+
case 14:
|
|
13658
13665
|
case "end":
|
|
13659
13666
|
return _context.stop();
|
|
13660
13667
|
}
|
|
13661
|
-
}, _callee, null, [[4,
|
|
13668
|
+
}, _callee, null, [[4, 11]]);
|
|
13662
13669
|
}));
|
|
13663
13670
|
return function handleSubscribe() {
|
|
13664
13671
|
return _ref2.apply(this, arguments);
|