@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.js
CHANGED
|
@@ -11965,7 +11965,7 @@ var _templateObject$g;
|
|
|
11965
11965
|
var html$g = String.raw;
|
|
11966
11966
|
var BookipayBrandFooter = function BookipayBrandFooter(_ref) {
|
|
11967
11967
|
var _ref$logoUrl = _ref.logoUrl,
|
|
11968
|
-
logoUrl = _ref$logoUrl === void 0 ? 'https://s3.amazonaws.com/bookipi.com/assets/img/app/
|
|
11968
|
+
logoUrl = _ref$logoUrl === void 0 ? 'https://s3.amazonaws.com/bookipi.com/assets/img/app/bookipi_brand_logo_footer_v2.png' : _ref$logoUrl,
|
|
11969
11969
|
_ref$title = _ref.title,
|
|
11970
11970
|
title = _ref$title === void 0 ? 'Generated by Free invoice app' : _ref$title,
|
|
11971
11971
|
_ref$cta = _ref.cta,
|
|
@@ -11979,7 +11979,7 @@ var BookipayBrandFooter = function BookipayBrandFooter(_ref) {
|
|
|
11979
11979
|
if (!title) {
|
|
11980
11980
|
return '';
|
|
11981
11981
|
}
|
|
11982
|
-
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:
|
|
11982
|
+
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>" : '');
|
|
11983
11983
|
};
|
|
11984
11984
|
|
|
11985
11985
|
var _templateObject$h, _templateObject2$7, _templateObject3$3;
|
|
@@ -12309,7 +12309,7 @@ var renderOldLayout = (function (_ref) {
|
|
|
12309
12309
|
t: t,
|
|
12310
12310
|
title: footerBrandText
|
|
12311
12311
|
}, footerBrandProps)) : '', !removeHtmlStandardDom ? '</body></html>' : '');
|
|
12312
|
-
var html = htmlRaw(_templateObject2$8 || (_templateObject2$8 = _taggedTemplateLiteralLoose(["\n ", "\n "])), showFooterBrand ? "<table style=\"width: 100
|
|
12312
|
+
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);
|
|
12313
12313
|
return {
|
|
12314
12314
|
html: html,
|
|
12315
12315
|
timeZone: timeZone,
|
|
@@ -12791,7 +12791,7 @@ var renderNewLayout = (function (_ref) {
|
|
|
12791
12791
|
t: t,
|
|
12792
12792
|
title: footerBrandText
|
|
12793
12793
|
}, footerBrandProps)) : '', !removeHtmlStandardDom ? '</body></html>' : '');
|
|
12794
|
-
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);
|
|
12794
|
+
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);
|
|
12795
12795
|
return {
|
|
12796
12796
|
html: html,
|
|
12797
12797
|
timeZone: timeZone,
|
|
@@ -13926,7 +13926,7 @@ var _templateObject$K;
|
|
|
13926
13926
|
var html$I = String.raw;
|
|
13927
13927
|
var BookipayBrandFooter$1 = function BookipayBrandFooter(_ref) {
|
|
13928
13928
|
var _ref$logoUrl = _ref.logoUrl,
|
|
13929
|
-
logoUrl = _ref$logoUrl === void 0 ? 'https://s3.amazonaws.com/bookipi.com/assets/img/app/
|
|
13929
|
+
logoUrl = _ref$logoUrl === void 0 ? 'https://s3.amazonaws.com/bookipi.com/assets/img/app/bookipi_brand_logo_footer_v2.png' : _ref$logoUrl,
|
|
13930
13930
|
_ref$title = _ref.title,
|
|
13931
13931
|
title = _ref$title === void 0 ? 'Generated by Free invoice app' : _ref$title,
|
|
13932
13932
|
_ref$cta = _ref.cta,
|
|
@@ -13940,7 +13940,7 @@ var BookipayBrandFooter$1 = function BookipayBrandFooter(_ref) {
|
|
|
13940
13940
|
if (!title) {
|
|
13941
13941
|
return '';
|
|
13942
13942
|
}
|
|
13943
|
-
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:
|
|
13943
|
+
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>" : '');
|
|
13944
13944
|
};
|
|
13945
13945
|
|
|
13946
13946
|
var _templateObject$L, _templateObject2$m, _templateObject3$9;
|
|
@@ -14083,7 +14083,7 @@ var renderLayout = (function (_ref) {
|
|
|
14083
14083
|
}, footerBrandProps, {
|
|
14084
14084
|
defaultLang: defaultLang
|
|
14085
14085
|
})) : '', !removeHtmlStandardDom ? '</body></html>' : '');
|
|
14086
|
-
var html = htmlRaw$2(_templateObject2$o || (_templateObject2$o = _taggedTemplateLiteralLoose(["\n ", "\n "])), showFooterBrand ? "<table style=\"width: 100
|
|
14086
|
+
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);
|
|
14087
14087
|
return {
|
|
14088
14088
|
html: html,
|
|
14089
14089
|
timeZone: timeZone,
|