@charisol/plexo-sdk 1.4.15 → 1.4.16

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 +23 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -55357,18 +55357,31 @@ var ZW = ({ value: e, onChange: t, sitePages: n }) => {
55357
55357
  });
55358
55358
  }, wG = (e) => {
55359
55359
  let { selectedElement: t, currentAttrs: n, openAccordions: r, toggleAccordion: i, onTransientAttrChange: a, AccordionSection: o, InlineSelect: s, commerceProducts: c } = e;
55360
- if (!t || t.type !== "product" && t.type !== "booking") return null;
55360
+ if (!t || t.type !== "product" && t.type !== "booking" || t.type === "product" && n.mode === "detail") return null;
55361
55361
  let l = t.type === "booking", u = l ? "serviceId" : "productId", d = (c || []).filter((e) => !l || e.kind === "SERVICE").map((e) => ({
55362
55362
  label: e.name,
55363
55363
  value: e.id
55364
- }));
55364
+ })), f = [
55365
+ {
55366
+ label: "Full card",
55367
+ value: ""
55368
+ },
55369
+ {
55370
+ label: "Compact (quantity + button only)",
55371
+ value: "bare"
55372
+ },
55373
+ {
55374
+ label: "Dark card",
55375
+ value: "teaser"
55376
+ }
55377
+ ];
55365
55378
  return /* @__PURE__ */ P(o, {
55366
55379
  title: l ? "Consultation settings" : "Product settings",
55367
55380
  isOpen: r.link,
55368
55381
  onToggle: () => i("link"),
55369
- children: /* @__PURE__ */ P("div", {
55382
+ children: /* @__PURE__ */ F("div", {
55370
55383
  className: "flex flex-col gap-1",
55371
- children: d.length === 0 ? /* @__PURE__ */ P("p", {
55384
+ children: [d.length === 0 ? /* @__PURE__ */ P("p", {
55372
55385
  className: "text-xs text-slate-400 py-2",
55373
55386
  children: l ? "No bookable services yet — add one under Commerce → Products first." : "No products yet — add one under Commerce → Products first."
55374
55387
  }) : /* @__PURE__ */ P(s, {
@@ -55379,7 +55392,12 @@ var ZW = ({ value: e, onChange: t, sitePages: n }) => {
55379
55392
  value: ""
55380
55393
  }, ...d],
55381
55394
  onChange: (e) => a(u, e || null)
55382
- })
55395
+ }), !l && /* @__PURE__ */ P(s, {
55396
+ label: "Card style",
55397
+ value: n.mode || "",
55398
+ options: f,
55399
+ onChange: (e) => a("mode", e || null)
55400
+ })]
55383
55401
  })
55384
55402
  });
55385
55403
  }, TG = (e) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@charisol/plexo-sdk",
3
3
  "private": false,
4
- "version": "1.4.15",
4
+ "version": "1.4.16",
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",