@charisol/plexo-sdk 2.0.30 → 2.0.31

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/v2.js +10 -10
  2. package/package.json +1 -1
package/dist/v2.js CHANGED
@@ -15212,7 +15212,7 @@ var fd = ({ node: e }) => {
15212
15212
  h.current = !1;
15213
15213
  return;
15214
15214
  }
15215
- if (!t.onSave || t.autoSave) return;
15215
+ if (!t.onSave || t.autoSave || t.saveState) return;
15216
15216
  m("waiting");
15217
15217
  let e = setTimeout(() => void v(), 1500);
15218
15218
  return () => clearTimeout(e);
@@ -15220,7 +15220,7 @@ var fd = ({ node: e }) => {
15220
15220
  let b = ks(t.onPublish), x = t.pageSource ? t.pageSource.pages : n.map((e) => ({
15221
15221
  id: e.id,
15222
15222
  name: e.name
15223
- })), S = t.pageSource ? t.pageSource.currentId : r, C = (e) => t.pageSource ? void t.pageSource.onSelect(e) : i(e), w = u === "mobile", T = "grid place-items-center shrink-0 w-9 h-9 rounded-lg text-px-text hover:bg-px-raised2 cursor-pointer disabled:opacity-30 disabled:cursor-default transition-colors", E = (e) => `grid place-items-center w-9 h-8 rounded-md cursor-pointer ${e ? "bg-px-surface text-px-text shadow" : "text-px-muted hover:text-px-text"}`;
15223
+ })), S = t.pageSource ? t.pageSource.currentId : r, C = (e) => t.pageSource ? void t.pageSource.onSelect(e) : i(e), w = u === "mobile", T = t.saveState ? t.saveState === "error" ? "error" : t.saveState === "idle" || t.saveState === "saved" ? "saved" : "saving" : p, E = "grid place-items-center shrink-0 w-9 h-9 rounded-lg text-px-text hover:bg-px-raised2 cursor-pointer disabled:opacity-30 disabled:cursor-default transition-colors", D = (e) => `grid place-items-center w-9 h-8 rounded-md cursor-pointer ${e ? "bg-px-surface text-px-text shadow" : "text-px-muted hover:text-px-text"}`;
15224
15224
  return /* @__PURE__ */ J("header", {
15225
15225
  className: "h-14 shrink-0 flex items-center gap-1.5 px-3 border-b border-px-line bg-px-surface overflow-hidden",
15226
15226
  children: [
@@ -15245,7 +15245,7 @@ var fd = ({ node: e }) => {
15245
15245
  children: [
15246
15246
  /* @__PURE__ */ q("button", {
15247
15247
  type: "button",
15248
- className: T,
15248
+ className: E,
15249
15249
  onClick: a,
15250
15250
  disabled: !s,
15251
15251
  "aria-label": "Undo",
@@ -15254,7 +15254,7 @@ var fd = ({ node: e }) => {
15254
15254
  }),
15255
15255
  /* @__PURE__ */ q("button", {
15256
15256
  type: "button",
15257
- className: T,
15257
+ className: E,
15258
15258
  onClick: o,
15259
15259
  disabled: !c,
15260
15260
  "aria-label": "Redo",
@@ -15276,7 +15276,7 @@ var fd = ({ node: e }) => {
15276
15276
  "aria-label": "Computer",
15277
15277
  title: "See it on a computer",
15278
15278
  onClick: () => d("desktop"),
15279
- className: E(!w),
15279
+ className: D(!w),
15280
15280
  children: /* @__PURE__ */ q(pt, { className: "w-4 h-4" })
15281
15281
  }), /* @__PURE__ */ q("button", {
15282
15282
  type: "button",
@@ -15285,7 +15285,7 @@ var fd = ({ node: e }) => {
15285
15285
  "aria-label": "Phone",
15286
15286
  title: "See it on a phone",
15287
15287
  onClick: () => d("mobile"),
15288
- className: E(w),
15288
+ className: D(w),
15289
15289
  children: /* @__PURE__ */ q(O, { className: "w-4 h-4" })
15290
15290
  })]
15291
15291
  })
@@ -15293,7 +15293,7 @@ var fd = ({ node: e }) => {
15293
15293
  }),
15294
15294
  /* @__PURE__ */ q("button", {
15295
15295
  type: "button",
15296
- className: T,
15296
+ className: E,
15297
15297
  onClick: e,
15298
15298
  "aria-label": "Help",
15299
15299
  title: "Show me how this works",
@@ -15311,15 +15311,15 @@ var fd = ({ node: e }) => {
15311
15311
  onClick: () => l(!0),
15312
15312
  children: [/* @__PURE__ */ q(y, { className: "w-4 h-4" }), "Preview"]
15313
15313
  }),
15314
- t.onSave && /* @__PURE__ */ q("span", {
15314
+ (t.onSave || t.saveState) && /* @__PURE__ */ q("span", {
15315
15315
  role: "status",
15316
15316
  className: "hidden lg:inline-flex items-center gap-1 shrink-0 whitespace-nowrap text-[11px] text-px-muted",
15317
- children: p === "error" ? /* @__PURE__ */ q("button", {
15317
+ children: T === "error" ? /* @__PURE__ */ q("button", {
15318
15318
  type: "button",
15319
15319
  onClick: () => void v(),
15320
15320
  className: "underline text-red-300 cursor-pointer",
15321
15321
  children: "Couldn’t keep your changes — try again"
15322
- }) : p === "saved" ? /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q(xt, { className: "w-3.5 h-3.5 text-px-accent" }), "All changes kept safe"] }) : "Keeping your changes safe…"
15322
+ }) : T === "saved" ? /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q(xt, { className: "w-3.5 h-3.5 text-px-accent" }), "All changes kept safe"] }) : "Keeping your changes safe…"
15323
15323
  }),
15324
15324
  t.onPublish && /* @__PURE__ */ q("button", {
15325
15325
  type: "button",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@charisol/plexo-sdk",
3
3
  "private": false,
4
- "version": "2.0.30",
4
+ "version": "2.0.31",
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",