@charisol/plexo-sdk 1.0.11 → 1.0.12

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/compiler.js CHANGED
@@ -316,7 +316,17 @@ var t = (e = {}) => !e || typeof e != "object" ? "" : Object.entries(e).filter((
316
316
  } : {
317
317
  style: {},
318
318
  rows: []
319
- }), s = a.style || {}, c = t(s), l = typeof s.htmlTitle == "string" && s.htmlTitle.trim() ? s.htmlTitle.trim() : "Plexo Rendered Page", u = i("id", s.htmlId), d = i("class", s.htmlClass), f = typeof s.customCss == "string" && s.customCss.trim() ? s.customCss.trim() : "", p = typeof s.customJs == "string" && s.customJs.trim() ? s.customJs.trim() : "", m = `<!DOCTYPE html>
319
+ }), s = { ...a.style || {} };
320
+ for (let e of [
321
+ "backgroundColor",
322
+ "background",
323
+ "color",
324
+ "textColor",
325
+ "fontFamily",
326
+ "htmlTitle"
327
+ ]) s[e] === void 0 && (a[e] === void 0 ? n[e] !== void 0 && (s[e] = n[e]) : s[e] = a[e]);
328
+ s.backgroundColor && !s.background ? s.background = s.backgroundColor : s.background && !s.backgroundColor && (s.backgroundColor = s.background), s.textColor && !s.color && (s.color = s.textColor);
329
+ let c = t(s), l = typeof s.htmlTitle == "string" && s.htmlTitle.trim() ? s.htmlTitle.trim() : typeof e?.name == "string" && e.name.trim() ? e.name.trim() : "Plexo Rendered Page", u = i("id", s.htmlId), d = i("class", s.htmlClass), f = typeof s.customCss == "string" && s.customCss.trim() ? s.customCss.trim() : "", p = typeof s.customJs == "string" && s.customJs.trim() ? s.customJs.trim() : "", m = `<!DOCTYPE html>
320
330
  <html>
321
331
  <head>
322
332
  <meta charset="utf-8">
package/dist/index.js CHANGED
@@ -1549,6 +1549,10 @@ var A = [
1549
1549
  }
1550
1550
  }, De = (e) => {
1551
1551
  let t = JSON.parse(JSON.stringify(e)), n = Ee("form_container");
1552
+ if (t.body && t.body.style) {
1553
+ let e = t.body.style;
1554
+ e.backgroundColor && !e.background && (e.background = e.backgroundColor);
1555
+ }
1552
1556
  return t.body.rows.forEach((e) => {
1553
1557
  e.columns.forEach((e) => {
1554
1558
  e.elements.forEach((e) => {
@@ -3300,7 +3304,7 @@ var Ie = ({ activeTab: e, setActiveTab: t, showSaveButton: n, isSavingLayout: r,
3300
3304
  children: [
3301
3305
  /* @__PURE__ */ E(s, {
3302
3306
  label: "Background",
3303
- value: e.body.style.background || "#f1f5f9",
3307
+ value: e.body.style.background || e.body.style.backgroundColor || "#f1f5f9",
3304
3308
  onChange: (e) => t({ background: e })
3305
3309
  }),
3306
3310
  /* @__PURE__ */ E(s, {
@@ -50771,7 +50775,7 @@ var tF = (e) => ({ body: {
50771
50775
  group: e.category,
50772
50776
  disabled: e.width > qt,
50773
50777
  disabledReason: e.width > qt ? "Requires a larger screen to preview" : void 0
50774
- })), yr = Gt === "dark" ? V.body.style.darkBackground || "#0f172a" : V.body.style.background || "#ffffff", br = e(V), xr = n(V), Sr = M ? ((e) => {
50778
+ })), yr = Gt === "dark" ? V.body.style.darkBackground || "#0f172a" : V.body.style.background || V.body.style.backgroundColor || "#ffffff", br = e(V), xr = n(V), Sr = M ? ((e) => {
50775
50779
  let t = (n) => {
50776
50780
  for (let r of n) {
50777
50781
  if (r.columns.some((t) => t.id === e)) return r;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@charisol/plexo-sdk",
3
3
  "private": false,
4
- "version": "1.0.11",
4
+ "version": "1.0.12",
5
5
  "description": "Plexo visual email and landing page builder SDK — drag-and-drop template editor with AI integration.",
6
6
  "keywords": [
7
7
  "email-builder",