@bigbinary/neeto-site-blocks 2.0.3 → 2.0.8
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 +15 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +15 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -7337,7 +7337,7 @@ var LinkElement = function LinkElement(_ref) {
|
|
|
7337
7337
|
index = _ref.index,
|
|
7338
7338
|
router = _ref.router,
|
|
7339
7339
|
otherProps = _objectWithoutProperties__default["default"](_ref, _excluded$y);
|
|
7340
|
-
var baseClass = classnames__default["default"]("
|
|
7340
|
+
var baseClass = classnames__default["default"]("flex items-center transition-all duration-300 ease-in-out relative", {
|
|
7341
7341
|
"neeto-site-highlight__element": disableButtonAndLinks && !isAddNewPane,
|
|
7342
7342
|
"pointer-events-none": isAddNewPane || !disableButtonAndLinks && action === ""
|
|
7343
7343
|
});
|
|
@@ -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);
|
|
@@ -13831,9 +13838,9 @@ var EmbedBooking = function EmbedBooking(_ref) {
|
|
|
13831
13838
|
code = _properties$embed.code,
|
|
13832
13839
|
embedPosition = _properties$embed.embedPosition,
|
|
13833
13840
|
src = properties.backgroundImage.src;
|
|
13834
|
-
var iframeInitialContent = neetoCist.isNotEmpty(code) ? "<!DOCTYPE html><html><head></head><body><div class=\"embed-booking\">\n ".concat(code, "\n </div></body></html>") : (disableButtonAndLinks || isAddNewPane) && embedPage(embedUrl);
|
|
13841
|
+
var iframeInitialContent = neetoCist.isNotEmpty(code) ? "<!DOCTYPE html><html><head><style>html,body{margin:0;padding:0;border:none;}</style></head><body><div class=\"embed-booking\">\n ".concat(code, "\n </div></body></html>") : (disableButtonAndLinks || isAddNewPane) && embedPage(embedUrl);
|
|
13835
13842
|
var baseClasses = "grid gap-y-6 lg:gap-6 grid-cols-12 grid-flow-row-dense";
|
|
13836
|
-
var mediaBaseClasses = classnames__default["default"]("col-span-12 flex flex-col items-center justify-center !w-full min-h-[550px] lg:min-h-[715px]
|
|
13843
|
+
var mediaBaseClasses = classnames__default["default"]("col-span-12 flex flex-col items-center justify-center !w-full min-h-[550px] lg:min-h-[715px]", {
|
|
13837
13844
|
"order-1 lg:col-span-7": POSITIONS.LEFT.label === embedPosition,
|
|
13838
13845
|
"order-2 lg:col-span-7": POSITIONS.RIGHT.label === embedPosition,
|
|
13839
13846
|
"lg:col-span-12 flex justify-center": POSITIONS.BOTTOM.label === embedPosition,
|