@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.js
CHANGED
|
@@ -13626,20 +13626,27 @@ var CtaWithEmailAction = function CtaWithEmailAction(_ref) {
|
|
|
13626
13626
|
message: successMessage,
|
|
13627
13627
|
status: "success"
|
|
13628
13628
|
});
|
|
13629
|
-
|
|
13629
|
+
if (button.action === "external") {
|
|
13630
|
+
window.open(button.url, "_blank").focus();
|
|
13631
|
+
} else if (button.action === "page") {
|
|
13632
|
+
window.location.pathname = button.url;
|
|
13633
|
+
} else if (button.action === "internal") {
|
|
13634
|
+
history.pushState(null, "", button.url);
|
|
13635
|
+
}
|
|
13636
|
+
_context.next = 14;
|
|
13630
13637
|
break;
|
|
13631
|
-
case
|
|
13632
|
-
_context.prev =
|
|
13638
|
+
case 11:
|
|
13639
|
+
_context.prev = 11;
|
|
13633
13640
|
_context.t0 = _context["catch"](4);
|
|
13634
13641
|
setResponse({
|
|
13635
13642
|
message: _context.t0.message,
|
|
13636
13643
|
status: "error"
|
|
13637
13644
|
});
|
|
13638
|
-
case
|
|
13645
|
+
case 14:
|
|
13639
13646
|
case "end":
|
|
13640
13647
|
return _context.stop();
|
|
13641
13648
|
}
|
|
13642
|
-
}, _callee, null, [[4,
|
|
13649
|
+
}, _callee, null, [[4, 11]]);
|
|
13643
13650
|
}));
|
|
13644
13651
|
return function handleSubscribe() {
|
|
13645
13652
|
return _ref2.apply(this, arguments);
|