@designcrowd/library.brand-page 6.0.6-undo-3 → 6.0.6-undo-5

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 (34) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-x7BcD7Sj.js → CreatedOnBrandCrowd-de-de-BRaWY6nF.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-CG-ThD_q.js → CreatedOnBrandCrowd-en-us-D0DuxW2v.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-aab4_Re2.js → CreatedOnBrandCrowd-es-es-Du0Wjx0E.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-Drl8X5uh.js → CreatedOnBrandCrowd-fr-ca-Cz1OGFZT.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-Drl8X5uh.js → CreatedOnBrandCrowd-fr-fr-Cz1OGFZT.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-8Ib7T70i.js → CreatedOnBrandCrowd-pt-br-TfMgQ231.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-8Ib7T70i.js → CreatedOnBrandCrowd-pt-pt-TfMgQ231.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-FJtydzc5.js → CreatedOnDcom-de-de-CIxWfXsX.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-BMiXru6P.js → CreatedOnDcom-en-us-BQeFEYIF.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-B8Srdnku.js → CreatedOnDcom-es-es-Bu9Nr8t-.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-tcXGiBNt.js → CreatedOnDcom-fr-ca-Dpsu-wxQ.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-nE1cuUEU.js → CreatedOnDcom-fr-fr-CWGZAKa0.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-DxCCXCg8.js → CreatedOnDcom-pt-br-Ds8H3Kiq.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-Csabip9G.js → CreatedOnDcom-pt-pt-kDx8VWIo.js} +1 -1
  15. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +4 -4
  16. package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +4 -4
  17. package/lib/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.js +6 -1
  18. package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +9 -3
  19. package/lib/src/index.mjs +1 -1
  20. package/lib/src/{lib-C_UlYMJy.js → lib-BJdIOaxe.js} +1247 -1244
  21. package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +4 -4
  22. package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +4 -4
  23. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +4 -4
  24. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +4 -4
  25. package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.d.ts +4 -4
  26. package/lib/src/shared/content-settings/store/content-settings-store.d.ts +4 -4
  27. package/lib/src/shared/content-settings/store/content-settings-store.js +24 -4
  28. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +4 -4
  29. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +4 -4
  30. package/package.json +1 -1
  31. package/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.ts +6 -1
  32. package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +9 -3
  33. package/src/shared/content-settings/store/content-settings-store.test.ts +28 -1
  34. package/src/shared/content-settings/store/content-settings-store.ts +28 -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-C_UlYMJy.js";
2
+ import { _ as t } from "./lib-BJdIOaxe.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-C_UlYMJy.js";
2
+ import { _ as t } from "./lib-BJdIOaxe.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-C_UlYMJy.js";
2
+ import { _ as t } from "./lib-BJdIOaxe.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-C_UlYMJy.js";
2
+ import { _ as t } from "./lib-BJdIOaxe.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-C_UlYMJy.js";
2
+ import { _ as t } from "./lib-BJdIOaxe.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-C_UlYMJy.js";
2
+ import { _ as t } from "./lib-BJdIOaxe.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-C_UlYMJy.js";
2
+ import { _ as t } from "./lib-BJdIOaxe.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-C_UlYMJy.js";
2
+ import { _ as e } from "./lib-BJdIOaxe.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-C_UlYMJy.js";
2
+ import { _ as e } from "./lib-BJdIOaxe.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-C_UlYMJy.js";
2
+ import { _ as e } from "./lib-BJdIOaxe.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-C_UlYMJy.js";
2
+ import { _ as e } from "./lib-BJdIOaxe.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-C_UlYMJy.js";
2
+ import { _ as e } from "./lib-BJdIOaxe.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-C_UlYMJy.js";
2
+ import { _ as M } from "./lib-BJdIOaxe.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-C_UlYMJy.js";
2
+ import { _ as M } from "./lib-BJdIOaxe.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -844,14 +844,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
844
844
  resetMode(): void;
845
845
  updateItemValue(payload: import("../../../shared/content-settings/models").UpdateItemValuePayload<unknown>): void;
846
846
  updateMultipleItemValues({ id, name, value, isHydrationWrite, }: import("../../../shared/content-settings/models").UpdateMultipleItemValuesPayload<any>): void;
847
- updateTextStyleType({ id, name, value, }: import("../../../shared/content-settings/models").UpdateMultipleItemValuesPayload<any>): void;
848
- updateTextStyles({ id, name, value, }: import("../../../shared/content-settings/models").UpdateMultipleItemValuesPayload<any>): void;
847
+ updateTextStyleType({ id, name, value, isHydrationWrite, }: import("../../../shared/content-settings/models").UpdateMultipleItemValuesPayload<any>): void;
848
+ updateTextStyles({ id, name, value, isHydrationWrite, }: import("../../../shared/content-settings/models").UpdateMultipleItemValuesPayload<any>): void;
849
849
  getTextStyles({ id, name }: {
850
850
  id: string;
851
851
  name: string;
852
852
  }): unknown;
853
- updateTextItemTextStyleType({ id, name, value, index, }: import("../../../shared/content-settings/models").UpdateMultipleItemValuesPayload<any>): void;
854
- updateTextItemTextStyleTypeWithStyles({ id, name, value, index, }: import("../../../shared/content-settings/models").UpdateMultipleItemValuesPayload<any>): void;
853
+ updateTextItemTextStyleType({ id, name, value, index, isHydrationWrite, }: import("../../../shared/content-settings/models").UpdateMultipleItemValuesPayload<any>): void;
854
+ updateTextItemTextStyleTypeWithStyles({ id, name, value, index, isHydrationWrite, }: import("../../../shared/content-settings/models").UpdateMultipleItemValuesPayload<any>): void;
855
855
  _setActiveCategoryTab({ activeCategoryTab, }: {
856
856
  activeCategoryTab: import("@brand-page-maker/models").ItemCategory;
857
857
  }): void;
@@ -434,14 +434,14 @@ declare const _default: import("vue").DefineComponent<{}, {
434
434
  resetMode(): void;
435
435
  updateItemValue(payload: import("@shared/content-settings/models").UpdateItemValuePayload<unknown>): void;
436
436
  updateMultipleItemValues({ id, name, value, isHydrationWrite, }: import("@shared/content-settings/models").UpdateMultipleItemValuesPayload<any>): void;
437
- updateTextStyleType({ id, name, value, }: import("@shared/content-settings/models").UpdateMultipleItemValuesPayload<any>): void;
438
- updateTextStyles({ id, name, value, }: import("@shared/content-settings/models").UpdateMultipleItemValuesPayload<any>): void;
437
+ updateTextStyleType({ id, name, value, isHydrationWrite, }: import("@shared/content-settings/models").UpdateMultipleItemValuesPayload<any>): void;
438
+ updateTextStyles({ id, name, value, isHydrationWrite, }: import("@shared/content-settings/models").UpdateMultipleItemValuesPayload<any>): void;
439
439
  getTextStyles({ id, name }: {
440
440
  id: string;
441
441
  name: string;
442
442
  }): unknown;
443
- updateTextItemTextStyleType({ id, name, value, index, }: import("@shared/content-settings/models").UpdateMultipleItemValuesPayload<any>): void;
444
- updateTextItemTextStyleTypeWithStyles({ id, name, value, index, }: import("@shared/content-settings/models").UpdateMultipleItemValuesPayload<any>): void;
443
+ updateTextItemTextStyleType({ id, name, value, index, isHydrationWrite, }: import("@shared/content-settings/models").UpdateMultipleItemValuesPayload<any>): void;
444
+ updateTextItemTextStyleTypeWithStyles({ id, name, value, index, isHydrationWrite, }: import("@shared/content-settings/models").UpdateMultipleItemValuesPayload<any>): void;
445
445
  _setActiveCategoryTab({ activeCategoryTab, }: {
446
446
  activeCategoryTab: import("../../models").ItemCategory;
447
447
  }): void;
@@ -368,7 +368,11 @@ export const useRichTextEditor = (model, props, emit, fontSettings, fontStyleDro
368
368
  const globalStyles = selectedTextStyle ?? selectedGlobalTextStyles.value?.style;
369
369
  const currentAlignment = editor.getAttributes(editor.state.selection.$anchor.node().type.name);
370
370
  if (globalStyles) {
371
- // sync content settings style
371
+ // sync content settings style — a mount-time re-derivation, not a user
372
+ // edit. Flag it so the store folds it into the current undo head: this
373
+ // write lands ~100ms BEFORE the editor's canonical text write-back, and
374
+ // an unflagged write here would open a plain capture burst that
375
+ // swallows the flagged text write into a phantom entry (BP-5810).
372
376
  contentSettingStore.updateTextStyles({
373
377
  id: props.rawId,
374
378
  name: props.name,
@@ -382,6 +386,7 @@ export const useRichTextEditor = (model, props, emit, fontSettings, fontStyleDro
382
386
  lineHeight: globalStyles.lineHeight,
383
387
  letterSpacing: globalStyles.letterSpacing,
384
388
  },
389
+ isHydrationWrite: !editor.isFocused,
385
390
  });
386
391
  // sync toolbar editor styles
387
392
  fontSettings.selectedFont = globalStyles?.fontFamily ?? 'Lato';
@@ -634,9 +634,15 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
634
634
  const logoImage = logoUtil.getLogoImageFromModel(snapshot);
635
635
  if (!logoImage)
636
636
  return;
637
- logoSettingsStore.setState({
638
- newState: { selectedLogoImage: logoImage },
639
- });
637
+ // Assign a FRESH object — the same way the upload/selection flows
638
+ // write selectedLogoImage. A setState/$patch here deep-merges into the
639
+ // existing object, so the templates store's deep watcher receives
640
+ // old === new (same reference), sees no logoDraftToken change, and
641
+ // never refetches the template previews. Post-purchase that watcher
642
+ // is the ONLY refetch path (previews are keyed by logoDraftToken and
643
+ // the designed-logo re-render below is pre-purchase-only), which left
644
+ // the sidebar stuck on the undone logo (BP-5814).
645
+ logoSettingsStore.setSelectedLogoImage({ ...logoImage });
640
646
  const draftToken = logoImage.logoDraftToken;
641
647
  if (!draftToken)
642
648
  return;
package/lib/src/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { A as T, a as E, 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 t, j as G, k as D, l as P, m as R, n as L, o, p as M, q as r, r as n, s as b, t as l, u as F, v as i, w as c, x as g, y as B, 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 m, K as k, L as V, M as X, N as v, O as h, P as f, Q as W, R as x, S as z, T as w, U as Z, V as j, W as q, X as J, Y as Q, Z as $, $ as aa, a0 as _a, a1 as Ta, a2 as Ea, 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 ta, ac as Ga, ad as Da, ae as Pa, af as Ra, ag as La, ah as oa, ai as Ma, aj as ra, ak as na, al as ba, am as la, an as Fa, ao as ia, ap as ca, aq as ga, ar as Ba, 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 ma, aB as ka, aC as Va, aD as Xa, aE as va, aF as ha, aG as fa, aH as Wa, aI as xa, aJ as za, aK as wa, aL as Za, aM as ja, aN as qa, aO as Ja, aP as Qa, aQ as $a, aR as a_, aS as __, aT as T_, aU as E_, 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 t_, b2 as G_, b3 as D_, b4 as P_, b5 as R_, b6 as L_, b7 as o_, b8 as M_, b9 as r_, ba as n_, bb as b_, bc as l_, bd as F_, be as i_, bf as c_, bg as g_, bh as B_, 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 m_, br as k_, bs as V_, bt as X_, bu as v_, bv as h_, bw as f_, bx as W_, by as x_, bz as z_, bA as w_, bB as Z_, bC as j_, bD as q_, bE as J_, bF as Q_, bG as $_, bH as aT, bI as _T, bJ as TT, bK as ET, bL as sT, bM as IT, bN as ST, bO as NT, bP as eT, bQ as AT, bR as OT, bS as CT, bT as tT, bU as GT, bV as DT, bW as PT, bX as RT, bY as LT, bZ as oT, b_ as MT, b$ as rT, c0 as nT, c1 as bT, c2 as lT, c3 as FT, c4 as iT, c5 as cT, c6 as gT, c7 as BT, c8 as YT, c9 as UT, ca as dT, cb as uT, cc as HT, cd as pT, ce as yT, cf as KT, cg as mT, ch as kT, ci as VT, cj as XT, ck as vT, cl as hT, cm as fT, cn as WT, co as xT, cp as zT, cq as wT, cr as ZT, cs as jT, ct as qT, cu as JT } from "./lib-C_UlYMJy.js";
1
+ import { A as T, a as E, 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 t, j as G, k as D, l as P, m as R, n as L, o, p as M, q as r, r as n, s as b, t as l, u as F, v as i, w as c, x as g, y as B, 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 m, K as k, L as V, M as X, N as v, O as h, P as f, Q as W, R as x, S as z, T as w, U as Z, V as j, W as q, X as J, Y as Q, Z as $, $ as aa, a0 as _a, a1 as Ta, a2 as Ea, 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 ta, ac as Ga, ad as Da, ae as Pa, af as Ra, ag as La, ah as oa, ai as Ma, aj as ra, ak as na, al as ba, am as la, an as Fa, ao as ia, ap as ca, aq as ga, ar as Ba, 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 ma, aB as ka, aC as Va, aD as Xa, aE as va, aF as ha, aG as fa, aH as Wa, aI as xa, aJ as za, aK as wa, aL as Za, aM as ja, aN as qa, aO as Ja, aP as Qa, aQ as $a, aR as a_, aS as __, aT as T_, aU as E_, 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 t_, b2 as G_, b3 as D_, b4 as P_, b5 as R_, b6 as L_, b7 as o_, b8 as M_, b9 as r_, ba as n_, bb as b_, bc as l_, bd as F_, be as i_, bf as c_, bg as g_, bh as B_, 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 m_, br as k_, bs as V_, bt as X_, bu as v_, bv as h_, bw as f_, bx as W_, by as x_, bz as z_, bA as w_, bB as Z_, bC as j_, bD as q_, bE as J_, bF as Q_, bG as $_, bH as aT, bI as _T, bJ as TT, bK as ET, bL as sT, bM as IT, bN as ST, bO as NT, bP as eT, bQ as AT, bR as OT, bS as CT, bT as tT, bU as GT, bV as DT, bW as PT, bX as RT, bY as LT, bZ as oT, b_ as MT, b$ as rT, c0 as nT, c1 as bT, c2 as lT, c3 as FT, c4 as iT, c5 as cT, c6 as gT, c7 as BT, c8 as YT, c9 as UT, ca as dT, cb as uT, cc as HT, cd as pT, ce as yT, cf as KT, cg as mT, ch as kT, ci as VT, cj as XT, ck as vT, cl as hT, cm as fT, cn as WT, co as xT, cp as zT, cq as wT, cr as ZT, cs as jT, ct as qT, cu as JT } from "./lib-BJdIOaxe.js";
2
2
  import { createPinia as $T, setActivePinia as aE } from "pinia";
3
3
  export {
4
4
  T as ABOUT_SECTION_SETTINGS_CONFIG,