@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.js CHANGED
@@ -7318,7 +7318,7 @@ var LinkElement = function LinkElement(_ref) {
7318
7318
  index = _ref.index,
7319
7319
  router = _ref.router,
7320
7320
  otherProps = _objectWithoutProperties(_ref, _excluded$y);
7321
- var baseClass = classnames("inline-flex items-center transition-all duration-300 ease-in-out relative", {
7321
+ var baseClass = classnames("flex items-center transition-all duration-300 ease-in-out relative", {
7322
7322
  "neeto-site-highlight__element": disableButtonAndLinks && !isAddNewPane,
7323
7323
  "pointer-events-none": isAddNewPane || !disableButtonAndLinks && action === ""
7324
7324
  });
@@ -13626,20 +13626,27 @@ var CtaWithEmailAction = function CtaWithEmailAction(_ref) {
13626
13626
  message: successMessage,
13627
13627
  status: "success"
13628
13628
  });
13629
- _context.next = 13;
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 10:
13632
- _context.prev = 10;
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 13:
13645
+ case 14:
13639
13646
  case "end":
13640
13647
  return _context.stop();
13641
13648
  }
13642
- }, _callee, null, [[4, 10]]);
13649
+ }, _callee, null, [[4, 11]]);
13643
13650
  }));
13644
13651
  return function handleSubscribe() {
13645
13652
  return _ref2.apply(this, arguments);
@@ -13812,9 +13819,9 @@ var EmbedBooking = function EmbedBooking(_ref) {
13812
13819
  code = _properties$embed.code,
13813
13820
  embedPosition = _properties$embed.embedPosition,
13814
13821
  src = properties.backgroundImage.src;
13815
- var iframeInitialContent = isNotEmpty(code) ? "<!DOCTYPE html><html><head></head><body><div class=\"embed-booking\">\n ".concat(code, "\n </div></body></html>") : (disableButtonAndLinks || isAddNewPane) && embedPage(embedUrl);
13822
+ var iframeInitialContent = 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);
13816
13823
  var baseClasses = "grid gap-y-6 lg:gap-6 grid-cols-12 grid-flow-row-dense";
13817
- var mediaBaseClasses = classnames("col-span-12 flex flex-col items-center justify-center !w-full min-h-[550px] lg:min-h-[715px] border border-gray-100", {
13824
+ var mediaBaseClasses = classnames("col-span-12 flex flex-col items-center justify-center !w-full min-h-[550px] lg:min-h-[715px]", {
13818
13825
  "order-1 lg:col-span-7": POSITIONS.LEFT.label === embedPosition,
13819
13826
  "order-2 lg:col-span-7": POSITIONS.RIGHT.label === embedPosition,
13820
13827
  "lg:col-span-12 flex justify-center": POSITIONS.BOTTOM.label === embedPosition,