@charisol/plexo-sdk 1.0.40 → 1.0.41

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.
@@ -1364,21 +1364,23 @@ var Z = (f) => {
1364
1364
  "htmlClass",
1365
1365
  "customCss",
1366
1366
  "customJs",
1367
- "textColor"
1367
+ "textColor",
1368
+ "favicon"
1368
1369
  ], a = {};
1369
1370
  for (let e of Object.keys(r)) i.includes(e) || (a[e] = r[e]);
1370
- let o = z(a), s = typeof r.htmlTitle == "string" && r.htmlTitle.trim() ? r.htmlTitle.trim() : typeof e?.name == "string" && e.name.trim() ? e.name.trim() : "Plexo Rendered Page", c = G("id", r.htmlId), l = G("class", r.htmlClass), u = typeof r.customCss == "string" && r.customCss.trim() ? r.customCss.trim() : "", d = typeof r.customJs == "string" && r.customJs.trim() ? r.customJs.trim() : "", f = Array.isArray(n.rows) ? n.rows : Array.isArray(t.rows) ? t.rows : Array.isArray(e.rows) ? e.rows : [], p = S(x(f, [r.fontFamily])), m = {
1371
+ let o = z(a), s = typeof r.htmlTitle == "string" && r.htmlTitle.trim() ? r.htmlTitle.trim() : typeof e?.name == "string" && e.name.trim() ? e.name.trim() : "Plexo Rendered Page", c = G("id", r.htmlId), l = G("class", r.htmlClass), u = typeof r.customCss == "string" && r.customCss.trim() ? r.customCss.trim() : "", d = typeof r.customJs == "string" && r.customJs.trim() ? r.customJs.trim() : "", f = typeof r.favicon == "string" && r.favicon.trim() ? r.favicon.trim() : "", p = Array.isArray(n.rows) ? n.rows : Array.isArray(t.rows) ? t.rows : Array.isArray(e.rows) ? e.rows : [], m = S(x(p, [r.fontFamily])), h = {
1371
1372
  tablet: [],
1372
1373
  mobile: []
1373
- }, h = "";
1374
- for (let e of f) h += Q(e, m);
1375
- let g = m.tablet.length ? `\n ${m.tablet.join("\n ")}` : "", _ = m.mobile.length ? `\n ${m.mobile.join("\n ")}` : "", v = `<!DOCTYPE html>
1374
+ }, g = "";
1375
+ for (let e of p) g += Q(e, h);
1376
+ let _ = h.tablet.length ? `\n ${h.tablet.join("\n ")}` : "", v = h.mobile.length ? `\n ${h.mobile.join("\n ")}` : "", y = `<!DOCTYPE html>
1376
1377
  <html>
1377
1378
  <head>
1378
1379
  <meta charset="utf-8">
1379
1380
  <title>${W(s)}</title>
1381
+ ${f ? `<link rel="icon" href="${W(f)}">` : ""}
1380
1382
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
1381
- ${p ? `<link rel="stylesheet" href="${p}">` : ""}
1383
+ ${m ? `<link rel="stylesheet" href="${m}">` : ""}
1382
1384
  <style>
1383
1385
  body { margin: 0; font-family: ${F}; }
1384
1386
  .plexo-row {
@@ -1388,7 +1390,7 @@ var Z = (f) => {
1388
1390
  /* Tablet: auto-scaled fonts/heights/spacing (see utilities/responsiveDefaults.ts) and
1389
1391
  any explicit per-element styleTablet/stylesTablet override — columns stay side by
1390
1392
  side at this width. */
1391
- @media (min-width: 769px) and (max-width: 1024px) {${g}
1393
+ @media (min-width: 769px) and (max-width: 1024px) {${_}
1392
1394
  }
1393
1395
  @media (max-width: 768px) {
1394
1396
  .plexo-row {
@@ -1398,17 +1400,17 @@ var Z = (f) => {
1398
1400
  width: 100% !important;
1399
1401
  max-width: 100% !important;
1400
1402
  margin-bottom: 16px;
1401
- }${_}
1403
+ }${v}
1402
1404
  }
1403
1405
  </style>
1404
1406
  ${u ? `<style>\n${u}\n </style>` : ""}
1405
1407
  </head>
1406
1408
  <body${c}${l} style="${o}">
1407
1409
  <div style="max-width: 1200px; margin: 0 auto; width: 100%;">`;
1408
- return v += h, v += `\n </div>
1410
+ return y += g, y += `\n </div>
1409
1411
  ${d ? ` <script>\n${d}\n <\/script>` : ""}
1410
1412
  </body>
1411
- </html>`, v = v.replace(/<span[^>]*data-merge-val="([^"]*)"[^>]*>[\s\S]*?<\/span>/gi, "$1"), v;
1413
+ </html>`, y = y.replace(/<span[^>]*data-merge-val="([^"]*)"[^>]*>[\s\S]*?<\/span>/gi, "$1"), y;
1412
1414
  };
1413
1415
  function ee(e) {
1414
1416
  return $(e).replace(/<[^>]*>/g, " ").replace(/\s+/g, " ").trim();
package/dist/compiler.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c, u as l } from "./compiler-CogJrihV.js";
1
+ import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c, u as l } from "./compiler-DDrxFhGt.js";
2
2
  export { c as DEFAULT_BODY_FONT_FAMILY, i as FORM_NON_CSS_STYLE_KEYS, o as collectResponsiveRule, n as compileToHTML, e as compileToHTMLWithStrataAuto, a as compileToPlainText, s as convertSectionRowToPlexoRow, t as getFormDefaultStyle, r as getInlineStylesImportant, l as injectStrataBundle };
@@ -8,6 +8,7 @@ interface BodyGlobalSettingsTabProps {
8
8
  notify?: (message: string) => void;
9
9
  ICONS: Record<string, React.ReactNode>;
10
10
  handleUploadMock: () => void;
11
+ handleUploadFavicon?: () => void;
11
12
  InlineColorPicker: React.ComponentType<any>;
12
13
  InlineAlignment: React.ComponentType<any>;
13
14
  InlineSelect: React.ComponentType<any>;