@charisol/plexo-sdk 1.4.35 → 1.4.36

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.
Files changed (2) hide show
  1. package/dist/index.js +26 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -60031,13 +60031,13 @@ var gK = (e) => ({ body: {
60031
60031
  backgroundSize: "cover",
60032
60032
  backgroundPosition: "center",
60033
60033
  backgroundRepeat: "no-repeat"
60034
- }), mn("body"), _t(null)) : o.type === "favicon" ? (tt({ favicon: r }), mn("body"), _t(null)) : ti && Ir({
60034
+ }), mn("body"), _t(null)) : o.type === "favicon" ? (tt({ favicon: r }), mn("body"), _t(null)) : (ti || ni) && Ir({
60035
60035
  backgroundImage: `url(${r})`,
60036
60036
  backgroundSize: "cover",
60037
60037
  backgroundPosition: "center",
60038
60038
  backgroundRepeat: "no-repeat"
60039
60039
  });
60040
- else ti && Ir({
60040
+ else (ti || ni) && Ir({
60041
60041
  backgroundImage: `url(${r})`,
60042
60042
  backgroundSize: "cover",
60043
60043
  backgroundPosition: "center",
@@ -61344,6 +61344,30 @@ var gK = (e) => ({ body: {
61344
61344
  value: Q.backgroundColor || "transparent",
61345
61345
  onChange: (e) => Y("backgroundColor", e)
61346
61346
  }),
61347
+ /* @__PURE__ */ P($G, {
61348
+ label: "Upload background",
61349
+ onUploadMock: Z
61350
+ }),
61351
+ /* @__PURE__ */ P(UG, {
61352
+ label: "Image URL",
61353
+ value: (() => {
61354
+ let e = Q.backgroundImage || "", t = e.match(/^url\(['"]?([^'"\)]+)['"]?\)$/);
61355
+ return t ? t[1] : e.replace(/^url\(|\)$/g, "");
61356
+ })(),
61357
+ onChange: (e) => {
61358
+ e.trim() ? Ir({
61359
+ backgroundImage: `url(${e})`,
61360
+ backgroundSize: Q.backgroundSize || "cover",
61361
+ backgroundPosition: Q.backgroundPosition || "center",
61362
+ backgroundRepeat: Q.backgroundRepeat || "no-repeat"
61363
+ }) : Ir({
61364
+ backgroundImage: "",
61365
+ backgroundSize: "",
61366
+ backgroundPosition: "",
61367
+ backgroundRepeat: ""
61368
+ });
61369
+ }
61370
+ }),
61347
61371
  /* @__PURE__ */ P(QG, {
61348
61372
  label: "Padding",
61349
61373
  stylePrefix: "padding",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@charisol/plexo-sdk",
3
3
  "private": false,
4
- "version": "1.4.35",
4
+ "version": "1.4.36",
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",