@designcrowd/library.brand-page 5.17.25-undo-18 → 5.17.25-undo-19

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 (44) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-CBDi9mm7.js → CreatedOnBrandCrowd-de-de-jjqBiULc.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-DmYTrPGS.js → CreatedOnBrandCrowd-en-us-B6h7bcbj.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-CTS46dMT.js → CreatedOnBrandCrowd-es-es-Cmys6ypT.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-CR5a9MI7.js → CreatedOnBrandCrowd-fr-ca-Ceybzq8J.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-CR5a9MI7.js → CreatedOnBrandCrowd-fr-fr-Ceybzq8J.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-rYxhXB9n.js → CreatedOnBrandCrowd-pt-br-CHV5Fh4C.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-rYxhXB9n.js → CreatedOnBrandCrowd-pt-pt-CHV5Fh4C.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-D7ux7LvX.js → CreatedOnDcom-de-de-t2W_ziW-.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-CgxnIdbw.js → CreatedOnDcom-en-us-CsPm5hFT.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-CrmM6DV3.js → CreatedOnDcom-es-es-DjQbRJVQ.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-C7THZHWN.js → CreatedOnDcom-fr-ca-DK6rTyy-.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-BfngdllS.js → CreatedOnDcom-fr-fr-D_lMd4Dy.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-Chk85LOQ.js → CreatedOnDcom-pt-br-CZBLwwrp.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-D-OsPtCB.js → CreatedOnDcom-pt-pt-Hl48EO74.js} +1 -1
  15. package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.d.ts +0 -1
  16. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +0 -1
  17. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMakerTemplateSettings.mixin.d.ts +0 -1
  18. package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +0 -1
  19. package/lib/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.d.ts +0 -1
  20. package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +0 -1
  21. package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +0 -1
  22. package/lib/src/brand-page-maker/components/social-share/SocialShare.mixin.d.ts +0 -1
  23. package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +0 -1
  24. package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.js +0 -6
  25. package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.d.ts +0 -1
  26. package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +7 -12
  27. package/lib/src/index.mjs +1 -1
  28. package/lib/src/{lib-BquHX4Ed.js → lib-CWzbO4Vy.js} +49 -13
  29. package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +0 -1
  30. package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +0 -1
  31. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +0 -1
  32. package/lib/src/shared/logo-settings/components/EditLogoSettings.mixin.d.ts +2 -1
  33. package/lib/src/shared/logo-settings/components/EditLogoSettings.mixin.js +10 -1
  34. package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +0 -1
  35. package/lib/src/shared/logo-settings/store/editable-logo-store.js +18 -0
  36. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +0 -1
  37. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +0 -1
  38. package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +0 -1
  39. package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +0 -1
  40. package/package.json +1 -1
  41. package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.ts +0 -6
  42. package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +7 -13
  43. package/src/shared/logo-settings/components/EditLogoSettings.mixin.ts +14 -1
  44. package/src/shared/logo-settings/store/editable-logo-store.ts +36 -0
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BquHX4Ed.js";
2
+ import { _ as t } from "./lib-CWzbO4Vy.js";
3
3
  const i = {}, h = {
4
4
  width: "275",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BquHX4Ed.js";
2
+ import { _ as t } from "./lib-CWzbO4Vy.js";
3
3
  const i = {}, h = {
4
4
  width: "251",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BquHX4Ed.js";
2
+ import { _ as t } from "./lib-CWzbO4Vy.js";
3
3
  const i = {}, h = {
4
4
  width: "250",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BquHX4Ed.js";
2
+ import { _ as t } from "./lib-CWzbO4Vy.js";
3
3
  const i = {}, h = {
4
4
  width: "237",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BquHX4Ed.js";
2
+ import { _ as t } from "./lib-CWzbO4Vy.js";
3
3
  const i = {}, h = {
4
4
  width: "237",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BquHX4Ed.js";
2
+ import { _ as t } from "./lib-CWzbO4Vy.js";
3
3
  const i = {}, h = {
4
4
  width: "263",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BquHX4Ed.js";
2
+ import { _ as t } from "./lib-CWzbO4Vy.js";
3
3
  const i = {}, h = {
4
4
  width: "263",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-BquHX4Ed.js";
2
+ import { _ as e } from "./lib-CWzbO4Vy.js";
3
3
  const M = {}, Z = {
4
4
  width: "242",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-BquHX4Ed.js";
2
+ import { _ as e } from "./lib-CWzbO4Vy.js";
3
3
  const i = {}, M = {
4
4
  width: "231",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-BquHX4Ed.js";
2
+ import { _ as e } from "./lib-CWzbO4Vy.js";
3
3
  const M = {}, Z = {
4
4
  width: "230",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-BquHX4Ed.js";
2
+ import { _ as e } from "./lib-CWzbO4Vy.js";
3
3
  const i = {}, l = {
4
4
  width: "216",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-BquHX4Ed.js";
2
+ import { _ as e } from "./lib-CWzbO4Vy.js";
3
3
  const i = {}, l = {
4
4
  width: "216",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as M } from "./lib-BquHX4Ed.js";
2
+ import { _ as M } from "./lib-CWzbO4Vy.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as M } from "./lib-BquHX4Ed.js";
2
+ import { _ as M } from "./lib-CWzbO4Vy.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -103,7 +103,6 @@ declare const _default: import("vue").DefineComponent<{}, {
103
103
  description?: string | undefined;
104
104
  isPublished?: boolean | undefined;
105
105
  noDescription?: boolean | undefined;
106
- resetHistory?: boolean | undefined;
107
106
  }): Promise<void>;
108
107
  hideChangeTemplateConfirmModal(): void;
109
108
  onBackgroundChanged(): void;
@@ -148,7 +148,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
148
148
  description?: string | undefined;
149
149
  isPublished?: boolean | undefined;
150
150
  noDescription?: boolean | undefined;
151
- resetHistory?: boolean | undefined;
152
151
  }): Promise<void>;
153
152
  hideChangeTemplateConfirmModal(): void;
154
153
  onBackgroundChanged(): void;
@@ -92,7 +92,6 @@ declare const _default: import("vue").DefineComponent<{}, {
92
92
  description?: string | undefined;
93
93
  isPublished?: boolean | undefined;
94
94
  noDescription?: boolean | undefined;
95
- resetHistory?: boolean | undefined;
96
95
  }): Promise<void>;
97
96
  hideChangeTemplateConfirmModal(): void;
98
97
  onBackgroundChanged(): void;
@@ -598,7 +598,6 @@ declare const _default: import("vue").DefineComponent<{}, {
598
598
  description?: string | undefined;
599
599
  isPublished?: boolean | undefined;
600
600
  noDescription?: boolean | undefined;
601
- resetHistory?: boolean | undefined;
602
601
  }): Promise<void>;
603
602
  hideChangeTemplateConfirmModal(): void;
604
603
  onBackgroundChanged(): void;
@@ -98,7 +98,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
98
98
  description?: string | undefined;
99
99
  isPublished?: boolean | undefined;
100
100
  noDescription?: boolean | undefined;
101
- resetHistory?: boolean | undefined;
102
101
  }): Promise<void>;
103
102
  hideChangeTemplateConfirmModal(): void;
104
103
  onBackgroundChanged(): void;
@@ -404,7 +404,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
404
404
  description?: string | undefined;
405
405
  isPublished?: boolean | undefined;
406
406
  noDescription?: boolean | undefined;
407
- resetHistory?: boolean | undefined;
408
407
  }): Promise<void>;
409
408
  hideChangeTemplateConfirmModal(): void;
410
409
  onBackgroundChanged(): void;
@@ -405,7 +405,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
405
405
  description?: string | undefined;
406
406
  isPublished?: boolean | undefined;
407
407
  noDescription?: boolean | undefined;
408
- resetHistory?: boolean | undefined;
409
408
  }): Promise<void>;
410
409
  hideChangeTemplateConfirmModal(): void;
411
410
  onBackgroundChanged(): void;
@@ -108,7 +108,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
108
108
  description?: string | undefined;
109
109
  isPublished?: boolean | undefined;
110
110
  noDescription?: boolean | undefined;
111
- resetHistory?: boolean | undefined;
112
111
  }): Promise<void>;
113
112
  hideChangeTemplateConfirmModal(): void;
114
113
  onBackgroundChanged(): void;
@@ -456,7 +456,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
456
456
  description?: string | undefined;
457
457
  isPublished?: boolean | undefined;
458
458
  noDescription?: boolean | undefined;
459
- resetHistory?: boolean | undefined;
460
459
  }): Promise<void>;
461
460
  hideChangeTemplateConfirmModal(): void;
462
461
  onBackgroundChanged(): void;
@@ -795,12 +795,6 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
795
795
  try {
796
796
  await brandPageMakerStore.enqueueSaveSuccessMessage({
797
797
  isPublished: this.isPublished,
798
- // Top-level Save Progress / Publish flow → re-baseline undo
799
- // history per PRD §3. Settings-only callers of
800
- // enqueueSaveSuccessMessage (updateBrandPage,
801
- // updateSensitiveContent, saveTemplate) don't set this flag
802
- // and so leave the user's undo stack alone.
803
- resetHistory: true,
804
798
  });
805
799
  }
806
800
  finally {
@@ -173,7 +173,6 @@ export declare const useBrandPageMakerStore: import("pinia").StoreDefinition<"br
173
173
  description?: string;
174
174
  isPublished?: boolean;
175
175
  noDescription?: boolean;
176
- resetHistory?: boolean;
177
176
  }): Promise<void>;
178
177
  hideChangeTemplateConfirmModal(): void;
179
178
  onBackgroundChanged(): void;
@@ -387,20 +387,15 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
387
387
  description: payload.noDescription ? '' : description,
388
388
  },
389
389
  });
390
- // PRD §3 Non-Goals: undo history resets on save/publish so the
391
- // saved state becomes the new clean baseline. Scoped to top-level
392
- // Save Progress / Publish presses via the explicit `resetHistory`
393
- // opt-in — the prepurchase flow (BrandCrowd.Net's
394
- // /brand-sites/prepurchase/upsert handler) and the post-purchase
395
- // flow (containerStore.saveBrandPage) both pass it. Settings-only
396
- // saves (updateBrandPage / updateSensitiveContent) and admin
397
- // saveTemplate funnel through here too but DON'T set the flag,
398
- // so their success toasts don't disturb the user's undo stack.
390
+ // Any successful save re-baselines the undo stack so a user can't
391
+ // undo back past the persisted state. This covers Save Progress /
392
+ // Publish AND settings-only saves (updateBrandPage,
393
+ // updateSensitiveContent, admin saveTemplate) — settings-tab
394
+ // actions persist the metadata, so allowing undo to roll them
395
+ // back would let the local stack drift from what's saved.
399
396
  // reset() no-ops in non-undo-redo sessions (no baseline = nothing
400
397
  // to clear).
401
- if (payload.resetHistory) {
402
- useHistoryStore().reset();
403
- }
398
+ useHistoryStore().reset();
404
399
  },
405
400
  hideChangeTemplateConfirmModal() {
406
401
  this.setIsChangeTemplateConfirmModalVisible({
package/lib/src/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { A as E, a as T, b as s, c as I, d as S, e as N, f as e, B as A, g as O, h as C, i as G, j as D, k as P, l as t, m as R, n as L, o as M, p as o, q as r, r as b, s as n, t as F, u as i, v as l, w as g, x as B, y as c, z as Y, C as U, D as d, E as u, F as H, G as p, H as y, I as K, J as k, K as m, L as V, M as X, N as h, O as v, P as W, Q as f, R as x, S as z, T as w, U as Z, V as j, W as Q, X as q, Y as J, Z as $, $ as aa, a0 as _a, a1 as Ea, a2 as Ta, a3 as sa, a4 as Ia, a5 as Sa, a6 as Na, a7 as ea, a8 as Aa, a9 as Oa, aa as Ca, ab as Ga, ac as Da, ad as Pa, ae as ta, af as Ra, ag as La, ah as Ma, ai as oa, aj as ra, ak as ba, al as na, am as Fa, an as ia, ao as la, ap as ga, aq as Ba, ar as ca, as as Ya, at as Ua, au as da, av as ua, aw as Ha, ax as pa, ay as ya, az as Ka, aA as ka, aB as ma, aC as Va, aD as Xa, aE as ha, aF as va, aG as Wa, aH as fa, aI as xa, aJ as za, aK as wa, aL as Za, aM as ja, aN as Qa, aO as qa, aP as Ja, aQ as $a, aR as a_, aS as __, aT as E_, aU as T_, aV as s_, aW as I_, aX as S_, aY as N_, aZ as e_, a_ as A_, a$ as O_, b0 as C_, b1 as G_, b2 as D_, b3 as P_, b4 as t_, b5 as R_, b6 as L_, b7 as M_, b8 as o_, b9 as r_, ba as b_, bb as n_, bc as F_, bd as i_, be as l_, bf as g_, bg as B_, bh as c_, bi as Y_, bj as U_, bk as d_, bl as u_, bm as H_, bn as p_, bo as y_, bp as K_, bq as k_, br as m_, bs as V_, bt as X_, bu as h_, bv as v_, bw as W_, bx as f_, by as x_, bz as z_, bA as w_, bB as Z_, bC as j_, bD as Q_, bE as q_, bF as J_, bG as $_, bH as aE, bI as _E, bJ as EE, bK as TE, bL as sE, bM as IE, bN as SE, bO as NE, bP as eE, bQ as AE, bR as OE, bS as CE, bT as GE, bU as DE, bV as PE, bW as tE, bX as RE, bY as LE, bZ as ME, b_ as oE, b$ as rE, c0 as bE, c1 as nE, c2 as FE, c3 as iE, c4 as lE, c5 as gE, c6 as BE, c7 as cE, c8 as YE, c9 as UE, ca as dE, cb as uE, cc as HE, cd as pE, ce as yE, cf as KE, cg as kE, ch as mE, ci as VE, cj as XE, ck as hE, cl as vE, cm as WE, cn as fE, co as xE } from "./lib-BquHX4Ed.js";
1
+ import { A as E, a as T, b as s, c as I, d as S, e as N, f as e, B as A, g as O, h as C, i as G, j as D, k as P, l as t, m as R, n as L, o as M, p as o, q as r, r as b, s as n, t as F, u as i, v as l, w as g, x as B, y as c, z as Y, C as U, D as d, E as u, F as H, G as p, H as y, I as K, J as k, K as m, L as V, M as X, N as h, O as v, P as W, Q as f, R as x, S as z, T as w, U as Z, V as j, W as Q, X as q, Y as J, Z as $, $ as aa, a0 as _a, a1 as Ea, a2 as Ta, a3 as sa, a4 as Ia, a5 as Sa, a6 as Na, a7 as ea, a8 as Aa, a9 as Oa, aa as Ca, ab as Ga, ac as Da, ad as Pa, ae as ta, af as Ra, ag as La, ah as Ma, ai as oa, aj as ra, ak as ba, al as na, am as Fa, an as ia, ao as la, ap as ga, aq as Ba, ar as ca, as as Ya, at as Ua, au as da, av as ua, aw as Ha, ax as pa, ay as ya, az as Ka, aA as ka, aB as ma, aC as Va, aD as Xa, aE as ha, aF as va, aG as Wa, aH as fa, aI as xa, aJ as za, aK as wa, aL as Za, aM as ja, aN as Qa, aO as qa, aP as Ja, aQ as $a, aR as a_, aS as __, aT as E_, aU as T_, aV as s_, aW as I_, aX as S_, aY as N_, aZ as e_, a_ as A_, a$ as O_, b0 as C_, b1 as G_, b2 as D_, b3 as P_, b4 as t_, b5 as R_, b6 as L_, b7 as M_, b8 as o_, b9 as r_, ba as b_, bb as n_, bc as F_, bd as i_, be as l_, bf as g_, bg as B_, bh as c_, bi as Y_, bj as U_, bk as d_, bl as u_, bm as H_, bn as p_, bo as y_, bp as K_, bq as k_, br as m_, bs as V_, bt as X_, bu as h_, bv as v_, bw as W_, bx as f_, by as x_, bz as z_, bA as w_, bB as Z_, bC as j_, bD as Q_, bE as q_, bF as J_, bG as $_, bH as aE, bI as _E, bJ as EE, bK as TE, bL as sE, bM as IE, bN as SE, bO as NE, bP as eE, bQ as AE, bR as OE, bS as CE, bT as GE, bU as DE, bV as PE, bW as tE, bX as RE, bY as LE, bZ as ME, b_ as oE, b$ as rE, c0 as bE, c1 as nE, c2 as FE, c3 as iE, c4 as lE, c5 as gE, c6 as BE, c7 as cE, c8 as YE, c9 as UE, ca as dE, cb as uE, cc as HE, cd as pE, ce as yE, cf as KE, cg as kE, ch as mE, ci as VE, cj as XE, ck as hE, cl as vE, cm as WE, cn as fE, co as xE } from "./lib-CWzbO4Vy.js";
2
2
  import { createPinia as wE, setActivePinia as ZE } from "pinia";
3
3
  export {
4
4
  E as ABOUT_SECTION_SETTINGS_CONFIG,
@@ -62423,10 +62423,10 @@ const Yn = /* @__PURE__ */ Z6(GB1), WB1 = (e, t, n) => {
62423
62423
  Z2(() => n.context.isDesignCom, async () => {
62424
62424
  const M = P6().toLowerCase(), _ = n.context.isDesignCom ? "Dcom" : "BrandCrowd";
62425
62425
  try {
62426
- const { default: V } = await wk(/* @__PURE__ */ Object.assign({ "./watermark/CreatedOnBrandCrowd-de-de.vue": () => import("./CreatedOnBrandCrowd-de-de-CBDi9mm7.js"), "./watermark/CreatedOnBrandCrowd-en-us.vue": () => import("./CreatedOnBrandCrowd-en-us-DmYTrPGS.js"), "./watermark/CreatedOnBrandCrowd-es-es.vue": () => import("./CreatedOnBrandCrowd-es-es-CTS46dMT.js"), "./watermark/CreatedOnBrandCrowd-fr-ca.vue": () => import("./CreatedOnBrandCrowd-fr-ca-CR5a9MI7.js"), "./watermark/CreatedOnBrandCrowd-fr-fr.vue": () => import("./CreatedOnBrandCrowd-fr-fr-CR5a9MI7.js"), "./watermark/CreatedOnBrandCrowd-pt-br.vue": () => import("./CreatedOnBrandCrowd-pt-br-rYxhXB9n.js"), "./watermark/CreatedOnBrandCrowd-pt-pt.vue": () => import("./CreatedOnBrandCrowd-pt-pt-rYxhXB9n.js"), "./watermark/CreatedOnDcom-de-de.vue": () => import("./CreatedOnDcom-de-de-D7ux7LvX.js"), "./watermark/CreatedOnDcom-en-us.vue": () => import("./CreatedOnDcom-en-us-CgxnIdbw.js"), "./watermark/CreatedOnDcom-es-es.vue": () => import("./CreatedOnDcom-es-es-CrmM6DV3.js"), "./watermark/CreatedOnDcom-fr-ca.vue": () => import("./CreatedOnDcom-fr-ca-C7THZHWN.js"), "./watermark/CreatedOnDcom-fr-fr.vue": () => import("./CreatedOnDcom-fr-fr-BfngdllS.js"), "./watermark/CreatedOnDcom-pt-br.vue": () => import("./CreatedOnDcom-pt-br-Chk85LOQ.js"), "./watermark/CreatedOnDcom-pt-pt.vue": () => import("./CreatedOnDcom-pt-pt-D-OsPtCB.js") }), `./watermark/CreatedOn${_}-${M}.vue`, 3);
62426
+ const { default: V } = await wk(/* @__PURE__ */ Object.assign({ "./watermark/CreatedOnBrandCrowd-de-de.vue": () => import("./CreatedOnBrandCrowd-de-de-jjqBiULc.js"), "./watermark/CreatedOnBrandCrowd-en-us.vue": () => import("./CreatedOnBrandCrowd-en-us-B6h7bcbj.js"), "./watermark/CreatedOnBrandCrowd-es-es.vue": () => import("./CreatedOnBrandCrowd-es-es-Cmys6ypT.js"), "./watermark/CreatedOnBrandCrowd-fr-ca.vue": () => import("./CreatedOnBrandCrowd-fr-ca-Ceybzq8J.js"), "./watermark/CreatedOnBrandCrowd-fr-fr.vue": () => import("./CreatedOnBrandCrowd-fr-fr-Ceybzq8J.js"), "./watermark/CreatedOnBrandCrowd-pt-br.vue": () => import("./CreatedOnBrandCrowd-pt-br-CHV5Fh4C.js"), "./watermark/CreatedOnBrandCrowd-pt-pt.vue": () => import("./CreatedOnBrandCrowd-pt-pt-CHV5Fh4C.js"), "./watermark/CreatedOnDcom-de-de.vue": () => import("./CreatedOnDcom-de-de-t2W_ziW-.js"), "./watermark/CreatedOnDcom-en-us.vue": () => import("./CreatedOnDcom-en-us-CsPm5hFT.js"), "./watermark/CreatedOnDcom-es-es.vue": () => import("./CreatedOnDcom-es-es-DjQbRJVQ.js"), "./watermark/CreatedOnDcom-fr-ca.vue": () => import("./CreatedOnDcom-fr-ca-DK6rTyy-.js"), "./watermark/CreatedOnDcom-fr-fr.vue": () => import("./CreatedOnDcom-fr-fr-D_lMd4Dy.js"), "./watermark/CreatedOnDcom-pt-br.vue": () => import("./CreatedOnDcom-pt-br-CZBLwwrp.js"), "./watermark/CreatedOnDcom-pt-pt.vue": () => import("./CreatedOnDcom-pt-pt-Hl48EO74.js") }), `./watermark/CreatedOn${_}-${M}.vue`, 3);
62427
62427
  i.value = V;
62428
62428
  } catch {
62429
- const { default: H } = await wk(/* @__PURE__ */ Object.assign({ "./watermark/CreatedOnBrandCrowd-en-us.vue": () => import("./CreatedOnBrandCrowd-en-us-DmYTrPGS.js"), "./watermark/CreatedOnDcom-en-us.vue": () => import("./CreatedOnDcom-en-us-CgxnIdbw.js") }), `./watermark/CreatedOn${_}-en-us.vue`, 3);
62429
+ const { default: H } = await wk(/* @__PURE__ */ Object.assign({ "./watermark/CreatedOnBrandCrowd-en-us.vue": () => import("./CreatedOnBrandCrowd-en-us-B6h7bcbj.js"), "./watermark/CreatedOnDcom-en-us.vue": () => import("./CreatedOnDcom-en-us-CsPm5hFT.js") }), `./watermark/CreatedOn${_}-en-us.vue`, 3);
62430
62430
  i.value = H;
62431
62431
  }
62432
62432
  }, {
@@ -74518,13 +74518,7 @@ const Zk = () => vp || (vp = new IY1()), ud = (e, t) => EY1(e).then(
74518
74518
  if (this.triggerSaveSuccessMessage)
74519
74519
  try {
74520
74520
  await e.enqueueSaveSuccessMessage({
74521
- isPublished: this.isPublished,
74522
- // Top-level Save Progress / Publish flow → re-baseline undo
74523
- // history per PRD §3. Settings-only callers of
74524
- // enqueueSaveSuccessMessage (updateBrandPage,
74525
- // updateSensitiveContent, saveTemplate) don't set this flag
74526
- // and so leave the user's undo stack alone.
74527
- resetHistory: !0
74521
+ isPublished: this.isPublished
74528
74522
  });
74529
74523
  } finally {
74530
74524
  await this.setTriggerSaveSuccessMessage({
@@ -75811,7 +75805,17 @@ const _3 = ne("uiContentSettings", {
75811
75805
  i,
75812
75806
  void 0,
75813
75807
  r
75814
- ), await this.updateMetadataAsync(i, !1, r), o = n.getLogoDraftAssetByToken(this.logoDraftToken), o != null && o.isByo || this.setEnableEditMode(!0);
75808
+ ), await this.updateMetadataAsync(i, !1, r), o = n.getLogoDraftAssetByToken(this.logoDraftToken), o != null && o.isByo || this.setEnableEditMode(!0), console.log(
75809
+ "[logo-debug] init complete | logoDraftToken=",
75810
+ this.logoDraftToken,
75811
+ "| textObjects=",
75812
+ this.logoEdits.textObjects.map((a) => ({
75813
+ id: a.id,
75814
+ role: a.role,
75815
+ text: a.text,
75816
+ textEnabled: a.textEnabled
75817
+ }))
75818
+ );
75815
75819
  },
75816
75820
  resetLogoEdits() {
75817
75821
  this.logoEdits = {
@@ -75897,6 +75901,17 @@ const _3 = ne("uiContentSettings", {
75897
75901
  return this.editableLogoVariations.find((t) => t.base64 === e) || this.editableLogoVariations[0];
75898
75902
  },
75899
75903
  async updateEditableLogoImageUrlAsync(e, t, n) {
75904
+ console.log(
75905
+ "[logo-debug] BEFORE API call | logoDraftToken=",
75906
+ this.logoDraftToken,
75907
+ "| textObjects=",
75908
+ this.logoEdits.textObjects.map((s) => ({
75909
+ id: s.id,
75910
+ role: s.role,
75911
+ text: s.text,
75912
+ textEnabled: s.textEnabled
75913
+ }))
75914
+ );
75900
75915
  const i = this.editableLogoVariations.map(
75901
75916
  (s) => this.updateEditableLogoImageByVariationAsync(
75902
75917
  s,
@@ -75904,7 +75919,17 @@ const _3 = ne("uiContentSettings", {
75904
75919
  n
75905
75920
  )
75906
75921
  );
75907
- await Promise.all(i);
75922
+ await Promise.all(i), console.log(
75923
+ "[logo-debug] AFTER API call | logoDraftToken=",
75924
+ this.logoDraftToken,
75925
+ "| textObjects=",
75926
+ this.logoEdits.textObjects.map((s) => ({
75927
+ id: s.id,
75928
+ role: s.role,
75929
+ text: s.text,
75930
+ textEnabled: s.textEnabled
75931
+ }))
75932
+ );
75908
75933
  const o = b3();
75909
75934
  [V2.header, V2.footer].forEach((s) => {
75910
75935
  [W1.desktop, W1.mobile].forEach((r) => {
@@ -76605,7 +76630,7 @@ const _3 = ne("uiContentSettings", {
76605
76630
  label: M2("saveSuccess"),
76606
76631
  description: e.noDescription ? "" : t
76607
76632
  }
76608
- }), e.resetHistory && b0().reset();
76633
+ }), b0().reset();
76609
76634
  },
76610
76635
  hideChangeTemplateConfirmModal() {
76611
76636
  this.setIsChangeTemplateConfirmModalVisible({
@@ -102292,7 +102317,18 @@ const ow2 = /* @__PURE__ */ w(nw2, [["render", iw2], ["__scopeId", "data-v-050b1
102292
102317
  const t = this.convertBpColorToFabricColor(e);
102293
102318
  this.logoColors[e.id].toColor = t, this.onUpdate();
102294
102319
  },
102295
- onUpdate: he(async function() {
102320
+ onUpdate(...e) {
102321
+ return console.log(
102322
+ "[logo-debug] keystroke | textObjects=",
102323
+ this.editableLogoStore.logoEdits.textObjects.map((t) => ({
102324
+ id: t.id,
102325
+ role: t.role,
102326
+ text: t.text,
102327
+ textEnabled: t.textEnabled
102328
+ }))
102329
+ ), this._onUpdateDebounced(...e);
102330
+ },
102331
+ _onUpdateDebounced: he(async function() {
102296
102332
  return await this.editableLogoStore.updateEditableLogoImageUrlAsync(), !0;
102297
102333
  }, 300),
102298
102334
  onToggleText(e, t) {
@@ -130,7 +130,6 @@ declare const _default: import("vue").DefineComponent<{}, {
130
130
  description?: string | undefined;
131
131
  isPublished?: boolean | undefined;
132
132
  noDescription?: boolean | undefined;
133
- resetHistory?: boolean | undefined;
134
133
  }): Promise<void>;
135
134
  hideChangeTemplateConfirmModal(): void;
136
135
  onBackgroundChanged(): void;
@@ -646,7 +646,6 @@ declare const _default: import("vue").DefineComponent<{}, {
646
646
  description?: string | undefined;
647
647
  isPublished?: boolean | undefined;
648
648
  noDescription?: boolean | undefined;
649
- resetHistory?: boolean | undefined;
650
649
  }): Promise<void>;
651
650
  hideChangeTemplateConfirmModal(): void;
652
651
  onBackgroundChanged(): void;
@@ -593,7 +593,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
593
593
  description?: string | undefined;
594
594
  isPublished?: boolean | undefined;
595
595
  noDescription?: boolean | undefined;
596
- resetHistory?: boolean | undefined;
597
596
  }): Promise<void>;
598
597
  hideChangeTemplateConfirmModal(): void;
599
598
  onBackgroundChanged(): void;
@@ -440,7 +440,8 @@ declare const _default: import("vue").DefineComponent<{}, {
440
440
  convertBpColorToFabricColor(selectedColor: any): any;
441
441
  onSelectTextColor(selectedColor: any, i: any): void;
442
442
  onLogoColorSelected(selectedColor: any): void;
443
- onUpdate: import("lodash.debounce").DebounceHandle;
443
+ onUpdate(...args: any[]): any;
444
+ _onUpdateDebounced: import("lodash.debounce").DebounceHandle;
444
445
  onToggleText(e: boolean, i: number): void;
445
446
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
446
447
  export default _default;
@@ -181,7 +181,16 @@ export default defineComponent({
181
181
  this.logoColors[selectedColor.id].toColor = newColor;
182
182
  this.onUpdate();
183
183
  },
184
- onUpdate: debounce(async function () {
184
+ onUpdate(...args) {
185
+ console.log('[logo-debug] keystroke | textObjects=', this.editableLogoStore.logoEdits.textObjects.map((t) => ({
186
+ id: t.id,
187
+ role: t.role,
188
+ text: t.text,
189
+ textEnabled: t.textEnabled,
190
+ })));
191
+ return this._onUpdateDebounced(...args);
192
+ },
193
+ _onUpdateDebounced: debounce(async function () {
185
194
  await this.editableLogoStore.updateEditableLogoImageUrlAsync();
186
195
  return true;
187
196
  }, 300),
@@ -120,7 +120,6 @@ declare const _default: import("vue").DefineComponent<{}, {
120
120
  description?: string | undefined;
121
121
  isPublished?: boolean | undefined;
122
122
  noDescription?: boolean | undefined;
123
- resetHistory?: boolean | undefined;
124
123
  }): Promise<void>;
125
124
  hideChangeTemplateConfirmModal(): void;
126
125
  onBackgroundChanged(): void;
@@ -110,6 +110,12 @@ export const useUiEditableLogoStore = defineStore('uiEditableLogo', {
110
110
  if (!logoDraft?.isByo) {
111
111
  this.setEnableEditMode(true);
112
112
  }
113
+ console.log('[logo-debug] init complete | logoDraftToken=', this.logoDraftToken, '| textObjects=', this.logoEdits.textObjects.map((t) => ({
114
+ id: t.id,
115
+ role: t.role,
116
+ text: t.text,
117
+ textEnabled: t.textEnabled,
118
+ })));
113
119
  },
114
120
  resetLogoEdits() {
115
121
  this.logoEdits = {
@@ -216,8 +222,20 @@ export const useUiEditableLogoStore = defineStore('uiEditableLogo', {
216
222
  this.editableLogoVariations[0]);
217
223
  },
218
224
  async updateEditableLogoImageUrlAsync(defaultPrimaryText, overrideLogoVariation, layout) {
225
+ console.log('[logo-debug] BEFORE API call | logoDraftToken=', this.logoDraftToken, '| textObjects=', this.logoEdits.textObjects.map((t) => ({
226
+ id: t.id,
227
+ role: t.role,
228
+ text: t.text,
229
+ textEnabled: t.textEnabled,
230
+ })));
219
231
  const tasks = this.editableLogoVariations.map((x) => this.updateEditableLogoImageByVariationAsync(x, defaultPrimaryText, layout));
220
232
  await Promise.all(tasks);
233
+ console.log('[logo-debug] AFTER API call | logoDraftToken=', this.logoDraftToken, '| textObjects=', this.logoEdits.textObjects.map((t) => ({
234
+ id: t.id,
235
+ role: t.role,
236
+ text: t.text,
237
+ textEnabled: t.textEnabled,
238
+ })));
221
239
  const pageSettingStore = useUiPageSettingsStore();
222
240
  [PAGE_SECTIONS.header, PAGE_SECTIONS.footer].forEach((section) => {
223
241
  [VIEWPORTS.desktop, VIEWPORTS.mobile].forEach((viewport) => {
@@ -3813,7 +3813,6 @@ declare const _default: import("vue").DefineComponent<{}, {
3813
3813
  description?: string | undefined;
3814
3814
  isPublished?: boolean | undefined;
3815
3815
  noDescription?: boolean | undefined;
3816
- resetHistory?: boolean | undefined;
3817
3816
  }): Promise<void>;
3818
3817
  hideChangeTemplateConfirmModal(): void;
3819
3818
  onBackgroundChanged(): void;
@@ -4396,7 +4396,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4396
4396
  description?: string | undefined;
4397
4397
  isPublished?: boolean | undefined;
4398
4398
  noDescription?: boolean | undefined;
4399
- resetHistory?: boolean | undefined;
4400
4399
  }): Promise<void>;
4401
4400
  hideChangeTemplateConfirmModal(): void;
4402
4401
  onBackgroundChanged(): void;
@@ -183,7 +183,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
183
183
  description?: string | undefined;
184
184
  isPublished?: boolean | undefined;
185
185
  noDescription?: boolean | undefined;
186
- resetHistory?: boolean | undefined;
187
186
  }): Promise<void>;
188
187
  hideChangeTemplateConfirmModal(): void;
189
188
  onBackgroundChanged(): void;
@@ -561,7 +561,6 @@ declare const _default: import("vue").DefineComponent<{}, {
561
561
  description?: string | undefined;
562
562
  isPublished?: boolean | undefined;
563
563
  noDescription?: boolean | undefined;
564
- resetHistory?: boolean | undefined;
565
564
  }): Promise<void>;
566
565
  hideChangeTemplateConfirmModal(): void;
567
566
  onBackgroundChanged(): void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@designcrowd/library.brand-page",
3
3
  "description": "A collection of Maker/Designer applications",
4
- "version": "5.17.25-undo-18",
4
+ "version": "5.17.25-undo-19",
5
5
  "author": "Design.com Eng",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -1226,12 +1226,6 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
1226
1226
  try {
1227
1227
  await brandPageMakerStore.enqueueSaveSuccessMessage({
1228
1228
  isPublished: this.isPublished,
1229
- // Top-level Save Progress / Publish flow → re-baseline undo
1230
- // history per PRD §3. Settings-only callers of
1231
- // enqueueSaveSuccessMessage (updateBrandPage,
1232
- // updateSensitiveContent, saveTemplate) don't set this flag
1233
- // and so leave the user's undo stack alone.
1234
- resetHistory: true,
1235
1229
  });
1236
1230
  } finally {
1237
1231
  await this.setTriggerSaveSuccessMessage({
@@ -651,7 +651,6 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
651
651
  description?: string;
652
652
  isPublished?: boolean;
653
653
  noDescription?: boolean;
654
- resetHistory?: boolean;
655
654
  } = {},
656
655
  ) {
657
656
  const description = payload.description
@@ -668,20 +667,15 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
668
667
  },
669
668
  });
670
669
 
671
- // PRD §3 Non-Goals: undo history resets on save/publish so the
672
- // saved state becomes the new clean baseline. Scoped to top-level
673
- // Save Progress / Publish presses via the explicit `resetHistory`
674
- // opt-in — the prepurchase flow (BrandCrowd.Net's
675
- // /brand-sites/prepurchase/upsert handler) and the post-purchase
676
- // flow (containerStore.saveBrandPage) both pass it. Settings-only
677
- // saves (updateBrandPage / updateSensitiveContent) and admin
678
- // saveTemplate funnel through here too but DON'T set the flag,
679
- // so their success toasts don't disturb the user's undo stack.
670
+ // Any successful save re-baselines the undo stack so a user can't
671
+ // undo back past the persisted state. This covers Save Progress /
672
+ // Publish AND settings-only saves (updateBrandPage,
673
+ // updateSensitiveContent, admin saveTemplate) — settings-tab
674
+ // actions persist the metadata, so allowing undo to roll them
675
+ // back would let the local stack drift from what's saved.
680
676
  // reset() no-ops in non-undo-redo sessions (no baseline = nothing
681
677
  // to clear).
682
- if (payload.resetHistory) {
683
- useHistoryStore().reset();
684
- }
678
+ useHistoryStore().reset();
685
679
  },
686
680
  hideChangeTemplateConfirmModal() {
687
681
  this.setIsChangeTemplateConfirmModalVisible({
@@ -217,7 +217,20 @@ export default defineComponent({
217
217
  this.logoColors[selectedColor.id].toColor = newColor;
218
218
  this.onUpdate();
219
219
  },
220
- onUpdate: debounce(async function () {
220
+ onUpdate(...args: any[]) {
221
+ console.log(
222
+ '[logo-debug] keystroke | textObjects=',
223
+ this.editableLogoStore.logoEdits.textObjects.map((t) => ({
224
+ id: t.id,
225
+ role: t.role,
226
+ text: t.text,
227
+ textEnabled: t.textEnabled,
228
+ })),
229
+ );
230
+
231
+ return this._onUpdateDebounced(...args);
232
+ },
233
+ _onUpdateDebounced: debounce(async function () {
221
234
  await this.editableLogoStore.updateEditableLogoImageUrlAsync();
222
235
 
223
236
  return true;
@@ -257,6 +257,18 @@ export const useUiEditableLogoStore = defineStore('uiEditableLogo', {
257
257
  if (!logoDraft?.isByo) {
258
258
  this.setEnableEditMode(true);
259
259
  }
260
+
261
+ console.log(
262
+ '[logo-debug] init complete | logoDraftToken=',
263
+ this.logoDraftToken,
264
+ '| textObjects=',
265
+ this.logoEdits.textObjects.map((t) => ({
266
+ id: t.id,
267
+ role: t.role,
268
+ text: t.text,
269
+ textEnabled: t.textEnabled,
270
+ })),
271
+ );
260
272
  },
261
273
 
262
274
  resetLogoEdits() {
@@ -403,6 +415,18 @@ export const useUiEditableLogoStore = defineStore('uiEditableLogo', {
403
415
  overrideLogoVariation?: number | undefined,
404
416
  layout?: string,
405
417
  ): Promise<void> {
418
+ console.log(
419
+ '[logo-debug] BEFORE API call | logoDraftToken=',
420
+ this.logoDraftToken,
421
+ '| textObjects=',
422
+ this.logoEdits.textObjects.map((t) => ({
423
+ id: t.id,
424
+ role: t.role,
425
+ text: t.text,
426
+ textEnabled: t.textEnabled,
427
+ })),
428
+ );
429
+
406
430
  const tasks = this.editableLogoVariations.map((x) =>
407
431
  this.updateEditableLogoImageByVariationAsync(
408
432
  x,
@@ -413,6 +437,18 @@ export const useUiEditableLogoStore = defineStore('uiEditableLogo', {
413
437
 
414
438
  await Promise.all(tasks);
415
439
 
440
+ console.log(
441
+ '[logo-debug] AFTER API call | logoDraftToken=',
442
+ this.logoDraftToken,
443
+ '| textObjects=',
444
+ this.logoEdits.textObjects.map((t) => ({
445
+ id: t.id,
446
+ role: t.role,
447
+ text: t.text,
448
+ textEnabled: t.textEnabled,
449
+ })),
450
+ );
451
+
416
452
  const pageSettingStore = useUiPageSettingsStore();
417
453
 
418
454
  [PAGE_SECTIONS.header, PAGE_SECTIONS.footer].forEach((section) => {