@bookipi/htmlgenerator 1.9.3 → 1.9.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.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +7 -7
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -11964,7 +11964,7 @@ var _templateObject$g;
|
|
|
11964
11964
|
var html$g = String.raw;
|
|
11965
11965
|
var BookipayBrandFooter = function BookipayBrandFooter(_ref) {
|
|
11966
11966
|
var _ref$logoUrl = _ref.logoUrl,
|
|
11967
|
-
logoUrl = _ref$logoUrl === void 0 ? 'https://s3.amazonaws.com/bookipi.com/assets/img/app/
|
|
11967
|
+
logoUrl = _ref$logoUrl === void 0 ? 'https://s3.amazonaws.com/bookipi.com/assets/img/app/bookipi_brand_logo_footer_v2.png' : _ref$logoUrl,
|
|
11968
11968
|
_ref$title = _ref.title,
|
|
11969
11969
|
title = _ref$title === void 0 ? 'Generated by Free invoice app' : _ref$title,
|
|
11970
11970
|
_ref$cta = _ref.cta,
|
|
@@ -11978,7 +11978,7 @@ var BookipayBrandFooter = function BookipayBrandFooter(_ref) {
|
|
|
11978
11978
|
if (!title) {
|
|
11979
11979
|
return '';
|
|
11980
11980
|
}
|
|
11981
|
-
return html$g(_templateObject$g || (_templateObject$g = _taggedTemplateLiteralLoose(["<div\n class=\"print-footer\"\n style=\"background-color:#EBF5FF;padding:16px;display:flex;justify-content:space-between;align-items:center;position:", ";bottom:0;left:0;right:0;\"\n >\n <div style=\"display:
|
|
11981
|
+
return html$g(_templateObject$g || (_templateObject$g = _taggedTemplateLiteralLoose(["<div\n class=\"print-footer\"\n style=\"background-color:#EBF5FF;padding:16px;display:flex;justify-content:space-between;align-items:center;position:", ";bottom:0;left:0;right:0;\"\n >\n <div style=\"display:flex;color:black;flex:1;align-items:center;min-width:0;max-width:70%;margin-right:16px;\">\n ", "\n <span style=\"overflow:hidden;text-overflow:ellipsis;white-space:nowrap;\">", "</span>\n </div>\n ", "\n ", "\n </div>"])), position, logoUrl ? "<img alt=\"brand logo\" style=\"max-height:24px;margin-right:16px;flex-shrink:0;\" src=\"" + logoUrl + "\" />" : '', t ? t(title) : title, cta !== null && cta !== void 0 && cta.label && cta !== null && cta !== void 0 && cta.url ? "<a class=\"btn-url\" href=\"" + cta.url + "\" style=\"color:#1C64F2;line-height:2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex-shrink:1;max-width:30%;\" target=\"_blank\" rel=\"noopener noreferrer\">" + (t ? t(cta.label) : cta.label) + "</a>" : '', cta !== null && cta !== void 0 && cta.label && cta !== null && cta !== void 0 && cta.action ? "<span class=\"btn-url\" onclick=\"window.postMessage({ type: '" + (cta === null || cta === void 0 ? void 0 : cta.action) + "' }, '*')\" style=\"color:#1C64F2;line-height:2;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex-shrink:1;max-width:30%;\">" + (t ? t(cta.label) : cta.label) + "</span>" : '');
|
|
11982
11982
|
};
|
|
11983
11983
|
|
|
11984
11984
|
var _templateObject$h, _templateObject2$7, _templateObject3$3;
|
|
@@ -12308,7 +12308,7 @@ var renderOldLayout = (function (_ref) {
|
|
|
12308
12308
|
t: t,
|
|
12309
12309
|
title: footerBrandText
|
|
12310
12310
|
}, footerBrandProps)) : '', !removeHtmlStandardDom ? '</body></html>' : '');
|
|
12311
|
-
var html = htmlRaw(_templateObject2$8 || (_templateObject2$8 = _taggedTemplateLiteralLoose(["\n ", "\n "])), showFooterBrand ? "<table style=\"width: 100
|
|
12311
|
+
var html = htmlRaw(_templateObject2$8 || (_templateObject2$8 = _taggedTemplateLiteralLoose(["\n ", "\n "])), showFooterBrand ? "<table style=\"width: 100%; margin-left:auto; margin-right:auto;\">\n <tbody>\n <tr>\n <td>\n " + content + "\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td class=\"print-footer-spacer\">\n </td>\n </tr>\n </tfoot>\n </table>" : content);
|
|
12312
12312
|
return {
|
|
12313
12313
|
html: html,
|
|
12314
12314
|
timeZone: timeZone,
|
|
@@ -12790,7 +12790,7 @@ var renderNewLayout = (function (_ref) {
|
|
|
12790
12790
|
t: t,
|
|
12791
12791
|
title: footerBrandText
|
|
12792
12792
|
}, footerBrandProps)) : '', !removeHtmlStandardDom ? '</body></html>' : '');
|
|
12793
|
-
var html = htmlRaw$1(_templateObject2$e || (_templateObject2$e = _taggedTemplateLiteralLoose(["\n ", "\n "])), showFooterBrand ? "<table>\n <tbody>\n <tr>\n <td>\n " + content + "\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td class=\"print-footer-spacer\">\n </td>\n </tr>\n </tfoot>\n </table>" : content);
|
|
12793
|
+
var html = htmlRaw$1(_templateObject2$e || (_templateObject2$e = _taggedTemplateLiteralLoose(["\n ", "\n "])), showFooterBrand ? "<table style=\"width: 100%; margin-left:auto; margin-right:auto;\">\n <tbody>\n <tr>\n <td>\n " + content + "\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td class=\"print-footer-spacer\">\n </td>\n </tr>\n </tfoot>\n </table>" : content);
|
|
12794
12794
|
return {
|
|
12795
12795
|
html: html,
|
|
12796
12796
|
timeZone: timeZone,
|
|
@@ -13925,7 +13925,7 @@ var _templateObject$K;
|
|
|
13925
13925
|
var html$I = String.raw;
|
|
13926
13926
|
var BookipayBrandFooter$1 = function BookipayBrandFooter(_ref) {
|
|
13927
13927
|
var _ref$logoUrl = _ref.logoUrl,
|
|
13928
|
-
logoUrl = _ref$logoUrl === void 0 ? 'https://s3.amazonaws.com/bookipi.com/assets/img/app/
|
|
13928
|
+
logoUrl = _ref$logoUrl === void 0 ? 'https://s3.amazonaws.com/bookipi.com/assets/img/app/bookipi_brand_logo_footer_v2.png' : _ref$logoUrl,
|
|
13929
13929
|
_ref$title = _ref.title,
|
|
13930
13930
|
title = _ref$title === void 0 ? 'Generated by Free invoice app' : _ref$title,
|
|
13931
13931
|
_ref$cta = _ref.cta,
|
|
@@ -13939,7 +13939,7 @@ var BookipayBrandFooter$1 = function BookipayBrandFooter(_ref) {
|
|
|
13939
13939
|
if (!title) {
|
|
13940
13940
|
return '';
|
|
13941
13941
|
}
|
|
13942
|
-
return html$I(_templateObject$K || (_templateObject$K = _taggedTemplateLiteralLoose(["<div\n class=\"print-footer\"\n style=\"background-color:#EBF5FF;padding:16px;display:flex;justify-content:space-between;align-items:center;position:", ";bottom:0;left:0;right:0;\"\n >\n <div style=\"display:
|
|
13942
|
+
return html$I(_templateObject$K || (_templateObject$K = _taggedTemplateLiteralLoose(["<div\n class=\"print-footer\"\n style=\"background-color:#EBF5FF;padding:16px;display:flex;justify-content:space-between;align-items:center;position:", ";bottom:0;left:0;right:0;\"\n >\n <div style=\"display:flex;color:black;flex:1;align-items:center;min-width:0;max-width:70%;margin-right:16px;\">\n ", "\n <span style=\"overflow:hidden;text-overflow:ellipsis;white-space:nowrap;\">", "</span>\n </div>\n ", "\n ", "\n </div>"])), position, logoUrl ? "<img alt=\"brand logo\" style=\"max-height:24px;margin-right:16px;flex-shrink:0;\" src=\"" + logoUrl + "\" />" : '', defaultLang['brand_footer_title'] || title, cta !== null && cta !== void 0 && cta.label && cta !== null && cta !== void 0 && cta.url ? "<a class=\"btn-url\" href=\"" + cta.url + "\" style=\"color:#1C64F2;line-height:2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex-shrink:1;max-width:30%;\" target=\"_blank\" rel=\"noopener noreferrer\">" + (defaultLang['download_app'] || cta.label) + "</a>" : '', cta !== null && cta !== void 0 && cta.label && cta !== null && cta !== void 0 && cta.action ? "<span class=\"btn-url\" onclick=\"window.postMessage({ type: '" + (cta === null || cta === void 0 ? void 0 : cta.action) + "' }, '*')\" style=\"color:#1C64F2;line-height:2;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex-shrink:1;max-width:30%;\">" + (defaultLang['download_app'] || cta.label) + "</span>" : '');
|
|
13943
13943
|
};
|
|
13944
13944
|
|
|
13945
13945
|
var _templateObject$L, _templateObject2$m, _templateObject3$9;
|
|
@@ -14082,7 +14082,7 @@ var renderLayout = (function (_ref) {
|
|
|
14082
14082
|
}, footerBrandProps, {
|
|
14083
14083
|
defaultLang: defaultLang
|
|
14084
14084
|
})) : '', !removeHtmlStandardDom ? '</body></html>' : '');
|
|
14085
|
-
var html = htmlRaw$2(_templateObject2$o || (_templateObject2$o = _taggedTemplateLiteralLoose(["\n ", "\n "])), showFooterBrand ? "<table style=\"width: 100
|
|
14085
|
+
var html = htmlRaw$2(_templateObject2$o || (_templateObject2$o = _taggedTemplateLiteralLoose(["\n ", "\n "])), showFooterBrand ? "<table style=\"width: 100%; margin-left:auto; margin-right:auto;\">\n <tbody>\n <tr>\n <td>\n " + content + "\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td class=\"print-footer-spacer\">\n </td>\n </tr>\n </tfoot>\n </table>" : content);
|
|
14086
14086
|
return {
|
|
14087
14087
|
html: html,
|
|
14088
14088
|
timeZone: timeZone,
|