@designcrowd/library.brand-page 6.1.3-jy-4 → 6.1.3

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-CnS9ggTJ.js → CreatedOnBrandCrowd-de-de-Lk8J1vHg.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-5_9wFMKJ.js → CreatedOnBrandCrowd-en-us-BbXj5fb1.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-BmfWsx-3.js → CreatedOnBrandCrowd-es-es-CjnqvYCi.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-Baq85eD8.js → CreatedOnBrandCrowd-fr-ca-Dbjv4qpN.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-Baq85eD8.js → CreatedOnBrandCrowd-fr-fr-Dbjv4qpN.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-g_C5KAuW.js → CreatedOnBrandCrowd-pt-br-BZIOPEvL.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-g_C5KAuW.js → CreatedOnBrandCrowd-pt-pt-BZIOPEvL.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-DvogBiCy.js → CreatedOnDcom-de-de-aN4JMRDI.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-BQkzFgXC.js → CreatedOnDcom-en-us-f3VD6Pz4.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-D6lvCNfm.js → CreatedOnDcom-es-es-CQhNdtRP.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-4R_yOlmh.js → CreatedOnDcom-fr-ca-CFsC_XoO.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-DWzXKRl2.js → CreatedOnDcom-fr-fr-J4ZtCBO9.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-DrBTyq1_.js → CreatedOnDcom-pt-br-C1yFugh_.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-DPiH9NzN.js → CreatedOnDcom-pt-pt-ycOo5lDn.js} +1 -1
  15. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +0 -2
  16. package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +0 -2
  17. package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.d.ts +0 -2
  18. package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +0 -2
  19. package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +0 -2
  20. package/lib/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.mixin.d.ts +0 -2
  21. package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +0 -2
  22. package/lib/src/brand-page-maker/components/upgrade-to-premium-button/UpgradeToPremiumButton.mixin.d.ts +0 -2
  23. package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.d.ts +1 -4
  24. package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.js +0 -8
  25. package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +0 -6
  26. package/lib/src/index.mjs +1 -1
  27. package/lib/src/{lib-Cl-TTy5k.js → lib-CVwyHyBz.js} +5 -21
  28. package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.d.ts +0 -2
  29. package/lib/src/shared/logo-settings/components/EditLogoSettings.mixin.d.ts +0 -1
  30. package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +0 -3
  31. package/lib/src/shared/logo-settings/store/editable-logo-store.d.ts +0 -2
  32. package/lib/src/shared/logo-settings/store/editable-logo-store.js +1 -15
  33. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +0 -2
  34. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +0 -3
  35. package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +0 -2
  36. package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +0 -2
  37. package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +0 -2
  38. package/package.json +1 -1
  39. package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.ts +1 -18
  40. package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +0 -7
  41. package/src/shared/logo-settings/store/editable-logo-store.ts +1 -22
  42. package/lib/src/metadata-builder/builders/reorder-pages-builder.d.ts +0 -13
  43. package/lib/src/metadata-builder/builders/reorder-pages-builder.js +0 -49
  44. package/src/metadata-builder/builders/reorder-pages-builder.ts +0 -80
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-Cl-TTy5k.js";
2
+ import { _ as t } from "./lib-CVwyHyBz.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-Cl-TTy5k.js";
2
+ import { _ as t } from "./lib-CVwyHyBz.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-Cl-TTy5k.js";
2
+ import { _ as t } from "./lib-CVwyHyBz.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-Cl-TTy5k.js";
2
+ import { _ as t } from "./lib-CVwyHyBz.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-Cl-TTy5k.js";
2
+ import { _ as t } from "./lib-CVwyHyBz.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-Cl-TTy5k.js";
2
+ import { _ as t } from "./lib-CVwyHyBz.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-Cl-TTy5k.js";
2
+ import { _ as t } from "./lib-CVwyHyBz.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-Cl-TTy5k.js";
2
+ import { _ as e } from "./lib-CVwyHyBz.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-Cl-TTy5k.js";
2
+ import { _ as e } from "./lib-CVwyHyBz.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-Cl-TTy5k.js";
2
+ import { _ as e } from "./lib-CVwyHyBz.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-Cl-TTy5k.js";
2
+ import { _ as e } from "./lib-CVwyHyBz.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-Cl-TTy5k.js";
2
+ import { _ as e } from "./lib-CVwyHyBz.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-Cl-TTy5k.js";
2
+ import { _ as M } from "./lib-CVwyHyBz.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-Cl-TTy5k.js";
2
+ import { _ as M } from "./lib-CVwyHyBz.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -278,7 +278,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
278
278
  triggerSaveSuccessMessage: boolean;
279
279
  isDesignCom: boolean;
280
280
  isPrePurchase: boolean;
281
- prePurchaseBrandKitLogoDraftToken: string;
282
281
  makerFonts: any[];
283
282
  eventButtonLocation?: string | undefined;
284
283
  websiteUpsellModalViewModel?: any;
@@ -357,7 +356,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
357
356
  triggerSaveSuccessMessage: boolean;
358
357
  isDesignCom: boolean;
359
358
  isPrePurchase: boolean;
360
- prePurchaseBrandKitLogoDraftToken: string;
361
359
  makerFonts: any[];
362
360
  eventButtonLocation?: string | undefined;
363
361
  websiteUpsellModalViewModel?: any;
@@ -721,7 +721,6 @@ declare const _default: import("vue").DefineComponent<{}, {
721
721
  triggerSaveSuccessMessage: boolean;
722
722
  isDesignCom: boolean;
723
723
  isPrePurchase: boolean;
724
- prePurchaseBrandKitLogoDraftToken: string;
725
724
  makerFonts: any[];
726
725
  eventButtonLocation?: string | undefined;
727
726
  websiteUpsellModalViewModel?: any;
@@ -800,7 +799,6 @@ declare const _default: import("vue").DefineComponent<{}, {
800
799
  triggerSaveSuccessMessage: boolean;
801
800
  isDesignCom: boolean;
802
801
  isPrePurchase: boolean;
803
- prePurchaseBrandKitLogoDraftToken: string;
804
802
  makerFonts: any[];
805
803
  eventButtonLocation?: string | undefined;
806
804
  websiteUpsellModalViewModel?: any;
@@ -64,7 +64,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
64
64
  triggerSaveSuccessMessage: boolean;
65
65
  isDesignCom: boolean;
66
66
  isPrePurchase: boolean;
67
- prePurchaseBrandKitLogoDraftToken: string;
68
67
  makerFonts: any[];
69
68
  eventButtonLocation?: string | undefined;
70
69
  websiteUpsellModalViewModel?: any;
@@ -143,7 +142,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
143
142
  triggerSaveSuccessMessage: boolean;
144
143
  isDesignCom: boolean;
145
144
  isPrePurchase: boolean;
146
- prePurchaseBrandKitLogoDraftToken: string;
147
145
  makerFonts: any[];
148
146
  eventButtonLocation?: string | undefined;
149
147
  websiteUpsellModalViewModel?: any;
@@ -80,7 +80,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
80
80
  triggerSaveSuccessMessage: boolean;
81
81
  isDesignCom: boolean;
82
82
  isPrePurchase: boolean;
83
- prePurchaseBrandKitLogoDraftToken: string;
84
83
  makerFonts: any[];
85
84
  eventButtonLocation?: string | undefined;
86
85
  websiteUpsellModalViewModel?: any;
@@ -159,7 +158,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
159
158
  triggerSaveSuccessMessage: boolean;
160
159
  isDesignCom: boolean;
161
160
  isPrePurchase: boolean;
162
- prePurchaseBrandKitLogoDraftToken: string;
163
161
  makerFonts: any[];
164
162
  eventButtonLocation?: string | undefined;
165
163
  websiteUpsellModalViewModel?: any;
@@ -85,7 +85,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
85
85
  triggerSaveSuccessMessage: boolean;
86
86
  isDesignCom: boolean;
87
87
  isPrePurchase: boolean;
88
- prePurchaseBrandKitLogoDraftToken: string;
89
88
  makerFonts: any[];
90
89
  eventButtonLocation?: string | undefined;
91
90
  websiteUpsellModalViewModel?: any;
@@ -164,7 +163,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
164
163
  triggerSaveSuccessMessage: boolean;
165
164
  isDesignCom: boolean;
166
165
  isPrePurchase: boolean;
167
- prePurchaseBrandKitLogoDraftToken: string;
168
166
  makerFonts: any[];
169
167
  eventButtonLocation?: string | undefined;
170
168
  websiteUpsellModalViewModel?: any;
@@ -66,7 +66,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
66
66
  triggerSaveSuccessMessage: boolean;
67
67
  isDesignCom: boolean;
68
68
  isPrePurchase: boolean;
69
- prePurchaseBrandKitLogoDraftToken: string;
70
69
  makerFonts: any[];
71
70
  eventButtonLocation?: string | undefined;
72
71
  websiteUpsellModalViewModel?: any;
@@ -145,7 +144,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
145
144
  triggerSaveSuccessMessage: boolean;
146
145
  isDesignCom: boolean;
147
146
  isPrePurchase: boolean;
148
- prePurchaseBrandKitLogoDraftToken: string;
149
147
  makerFonts: any[];
150
148
  eventButtonLocation?: string | undefined;
151
149
  websiteUpsellModalViewModel?: any;
@@ -134,7 +134,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
134
134
  triggerSaveSuccessMessage: boolean;
135
135
  isDesignCom: boolean;
136
136
  isPrePurchase: boolean;
137
- prePurchaseBrandKitLogoDraftToken: string;
138
137
  makerFonts: any[];
139
138
  eventButtonLocation?: string | undefined;
140
139
  websiteUpsellModalViewModel?: any;
@@ -213,7 +212,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
213
212
  triggerSaveSuccessMessage: boolean;
214
213
  isDesignCom: boolean;
215
214
  isPrePurchase: boolean;
216
- prePurchaseBrandKitLogoDraftToken: string;
217
215
  makerFonts: any[];
218
216
  eventButtonLocation?: string | undefined;
219
217
  websiteUpsellModalViewModel?: any;
@@ -61,7 +61,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
61
61
  triggerSaveSuccessMessage: boolean;
62
62
  isDesignCom: boolean;
63
63
  isPrePurchase: boolean;
64
- prePurchaseBrandKitLogoDraftToken: string;
65
64
  makerFonts: any[];
66
65
  eventButtonLocation?: string | undefined;
67
66
  websiteUpsellModalViewModel?: any;
@@ -140,7 +139,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
140
139
  triggerSaveSuccessMessage: boolean;
141
140
  isDesignCom: boolean;
142
141
  isPrePurchase: boolean;
143
- prePurchaseBrandKitLogoDraftToken: string;
144
142
  makerFonts: any[];
145
143
  eventButtonLocation?: string | undefined;
146
144
  websiteUpsellModalViewModel?: any;
@@ -46,7 +46,6 @@ export interface BrandPageContainerState {
46
46
  triggerSaveSuccessMessage: boolean;
47
47
  isDesignCom: boolean;
48
48
  isPrePurchase: boolean;
49
- prePurchaseBrandKitLogoDraftToken: string;
50
49
  makerFonts: any[];
51
50
  eventButtonLocation?: string;
52
51
  websiteUpsellModalViewModel?: any;
@@ -68,7 +67,7 @@ export type GettyVideoEditorViewModelResponse = {
68
67
  uri: string;
69
68
  };
70
69
  };
71
- export type InitialisePayload = Omit<BrandPageContainerState, 'customDomain' | 'customDomainConfig' | 'prePurchaseBrandKitLogoDraftToken'> & {
70
+ export type InitialisePayload = Omit<BrandPageContainerState, 'customDomain' | 'customDomainConfig'> & {
72
71
  logoDraftToken?: string;
73
72
  brandPageCustomDomain?: CustomDomainModel;
74
73
  isBrandPageCustomDomainEnabled: boolean;
@@ -139,7 +138,6 @@ export declare const useBrandPageContainerStore: import("pinia").StoreDefinition
139
138
  triggerSaveSuccessMessage: boolean;
140
139
  isDesignCom: boolean;
141
140
  isPrePurchase: boolean;
142
- prePurchaseBrandKitLogoDraftToken: string;
143
141
  makerFonts: any[];
144
142
  eventButtonLocation?: string | undefined;
145
143
  websiteUpsellModalViewModel?: any;
@@ -218,7 +216,6 @@ export declare const useBrandPageContainerStore: import("pinia").StoreDefinition
218
216
  triggerSaveSuccessMessage: boolean;
219
217
  isDesignCom: boolean;
220
218
  isPrePurchase: boolean;
221
- prePurchaseBrandKitLogoDraftToken: string;
222
219
  makerFonts: any[];
223
220
  eventButtonLocation?: string | undefined;
224
221
  websiteUpsellModalViewModel?: any;
@@ -60,7 +60,6 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
60
60
  isSellDomainNameEnabled: false,
61
61
  isDesignCom: false,
62
62
  isPrePurchase: false,
63
- prePurchaseBrandKitLogoDraftToken: '',
64
63
  makerFonts: [],
65
64
  eventButtonLocation: undefined,
66
65
  websiteUpsellModalViewModel: undefined,
@@ -148,13 +147,6 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
148
147
  if (payload.logoDraftToken) {
149
148
  uiStore.setLogoDraftToken({ logoDraftToken: payload.logoDraftToken });
150
149
  }
151
- // Set unconditionally (clears too): the editable-logo store renders its
152
- // logo base from this, so a stale token from a previous editor mount
153
- // must never leak into a template-seeded session.
154
- this.prePurchaseBrandKitLogoDraftToken =
155
- payload.isPrePurchase && payload.logoDraftToken
156
- ? payload.logoDraftToken
157
- : '';
158
150
  payload?.gettyVideos?.forEach((video) => videoStore.setVideoUrlsWithToken(video.token, video.videoPreviewAsset.uri, video.imagePreviewAsset.uri, video.assetId));
159
151
  },
160
152
  setDesignTemplateToken(payload) {
@@ -972,12 +972,6 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
972
972
  logoTemplateMetadata: '',
973
973
  isLogoDraftSaved: false,
974
974
  logoDraftToken: uiStore.logoDraftToken || uuid.v4(),
975
- // Only the container's per-mount Brand Kit seed is a REAL server
976
- // draft (the editor was opened from one - Brand Kit Edit). The
977
- // uuid fallback above is a session-local identity, and
978
- // uiStore.logoDraftToken is never cleared between mounts -
979
- // neither must ever reach fabric-render as a render base.
980
- prePurchaseBrandKitLogoDraftToken: brandPageContainerStore.prePurchaseBrandKitLogoDraftToken,
981
975
  logoEdits: {
982
976
  backgroundObject: {
983
977
  id: '',
package/lib/src/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { A as s, a as I, b as S, c as N, d as e, e as A, f as O, B as t, g as C, h as G, i as D, j as P, k as R, l as o, m as L, n as M, o as r, p as n, q as b, r as i, s as l, t as F, u as c, v as g, w as B, x as Y, y as U, z as d, C as u, D as H, E as p, F as y, G as m, H as K, I as k, J as V, K as X, L as v, M as h, N as x, O as f, P as W, Q as z, R as w, S as J, T as Z, U as j, V as q, W as Q, X as $, Y as aa, Z as Ta, $ as _a, a0 as Ea, a1 as sa, a2 as Ia, a3 as Sa, a4 as Na, a5 as ea, a6 as Aa, a7 as Oa, a8 as ta, a9 as Ca, aa as Ga, ab as Da, ac as Pa, ad as Ra, ae as oa, af as La, ag as Ma, ah as ra, ai as na, aj as ba, ak as ia, al as la, am as Fa, an as ca, ao as ga, ap as Ba, aq as Ya, ar as Ua, as as da, at as ua, au as Ha, av as pa, aw as ya, ax as ma, ay as Ka, az as ka, aA as Va, aB as Xa, aC as va, aD as ha, aE as xa, aF as fa, aG as Wa, aH as za, aI as wa, aJ as Ja, aK as Za, aL as ja, aM as qa, aN as Qa, aO as $a, aP as aT, aQ as TT, aR as _T, aS as ET, aT as sT, aU as IT, aV as ST, aW as NT, aX as eT, aY as AT, aZ as OT, a_ as tT, a$ as CT, b0 as GT, b1 as DT, b2 as PT, b3 as RT, b4 as oT, b5 as LT, b6 as MT, b7 as rT, b8 as nT, b9 as bT, ba as iT, bb as lT, bc as FT, bd as cT, be as gT, bf as BT, bg as YT, bh as UT, bi as dT, bj as uT, bk as HT, bl as pT, bm as yT, bn as mT, bo as KT, bp as kT, bq as VT, br as XT, bs as vT, bt as hT, bu as xT, bv as fT, bw as WT, bx as zT, by as wT, bz as JT, bA as ZT, bB as jT, bC as qT, bD as QT, bE as $T, bF as a_, bG as T_, bH as __, bI as E_, bJ as s_, bK as I_, bL as S_, bM as N_, bN as e_, bO as A_, bP as O_, bQ as t_, bR as C_, bS as G_, bT as D_, bU as P_, bV as R_, bW as o_, bX as L_, bY as M_, bZ as r_, b_ as n_, b$ as b_, c0 as i_, c1 as l_, c2 as F_, c3 as c_, c4 as g_, c5 as B_, c6 as Y_, c7 as U_, c8 as d_, c9 as u_, ca as H_, cb as p_, cc as y_, cd as m_, ce as K_, cf as k_, cg as V_, ch as X_, ci as v_, cj as h_, ck as x_, cl as f_, cm as W_, cn as z_, co as w_, cp as J_, cq as Z_, cr as j_, cs as q_, ct as Q_, cu as $_, cv as aE, cw as TE, cx as _E, cy as EE } from "./lib-Cl-TTy5k.js";
1
+ import { A as s, a as I, b as S, c as N, d as e, e as A, f as O, B as t, g as C, h as G, i as D, j as P, k as R, l as o, m as L, n as M, o as r, p as n, q as b, r as i, s as l, t as F, u as c, v as g, w as B, x as Y, y as U, z as d, C as u, D as H, E as p, F as y, G as m, H as K, I as k, J as V, K as X, L as v, M as h, N as x, O as f, P as W, Q as z, R as w, S as J, T as Z, U as j, V as q, W as Q, X as $, Y as aa, Z as Ta, $ as _a, a0 as Ea, a1 as sa, a2 as Ia, a3 as Sa, a4 as Na, a5 as ea, a6 as Aa, a7 as Oa, a8 as ta, a9 as Ca, aa as Ga, ab as Da, ac as Pa, ad as Ra, ae as oa, af as La, ag as Ma, ah as ra, ai as na, aj as ba, ak as ia, al as la, am as Fa, an as ca, ao as ga, ap as Ba, aq as Ya, ar as Ua, as as da, at as ua, au as Ha, av as pa, aw as ya, ax as ma, ay as Ka, az as ka, aA as Va, aB as Xa, aC as va, aD as ha, aE as xa, aF as fa, aG as Wa, aH as za, aI as wa, aJ as Ja, aK as Za, aL as ja, aM as qa, aN as Qa, aO as $a, aP as aT, aQ as TT, aR as _T, aS as ET, aT as sT, aU as IT, aV as ST, aW as NT, aX as eT, aY as AT, aZ as OT, a_ as tT, a$ as CT, b0 as GT, b1 as DT, b2 as PT, b3 as RT, b4 as oT, b5 as LT, b6 as MT, b7 as rT, b8 as nT, b9 as bT, ba as iT, bb as lT, bc as FT, bd as cT, be as gT, bf as BT, bg as YT, bh as UT, bi as dT, bj as uT, bk as HT, bl as pT, bm as yT, bn as mT, bo as KT, bp as kT, bq as VT, br as XT, bs as vT, bt as hT, bu as xT, bv as fT, bw as WT, bx as zT, by as wT, bz as JT, bA as ZT, bB as jT, bC as qT, bD as QT, bE as $T, bF as a_, bG as T_, bH as __, bI as E_, bJ as s_, bK as I_, bL as S_, bM as N_, bN as e_, bO as A_, bP as O_, bQ as t_, bR as C_, bS as G_, bT as D_, bU as P_, bV as R_, bW as o_, bX as L_, bY as M_, bZ as r_, b_ as n_, b$ as b_, c0 as i_, c1 as l_, c2 as F_, c3 as c_, c4 as g_, c5 as B_, c6 as Y_, c7 as U_, c8 as d_, c9 as u_, ca as H_, cb as p_, cc as y_, cd as m_, ce as K_, cf as k_, cg as V_, ch as X_, ci as v_, cj as h_, ck as x_, cl as f_, cm as W_, cn as z_, co as w_, cp as J_, cq as Z_, cr as j_, cs as q_, ct as Q_, cu as $_, cv as aE, cw as TE, cx as _E, cy as EE } from "./lib-CVwyHyBz.js";
2
2
  import { U as IE, u as SE } from "./useEventTracker-DmQ6AkNn.js";
3
3
  import "vue";
4
4
  import "vue-cropperjs";
@@ -68171,10 +68171,10 @@ const Wi = /* @__PURE__ */ u9(GG1), jG1 = (e, t, n) => {
68171
68171
  Pe(() => n.context.isDesignCom, async () => {
68172
68172
  const _ = t9().toLowerCase(), S = n.context.isDesignCom ? "Dcom" : "BrandCrowd";
68173
68173
  try {
68174
- const { default: k } = await eV(/* @__PURE__ */ Object.assign({ "./watermark/CreatedOnBrandCrowd-de-de.vue": () => import("./CreatedOnBrandCrowd-de-de-CnS9ggTJ.js"), "./watermark/CreatedOnBrandCrowd-en-us.vue": () => import("./CreatedOnBrandCrowd-en-us-5_9wFMKJ.js"), "./watermark/CreatedOnBrandCrowd-es-es.vue": () => import("./CreatedOnBrandCrowd-es-es-BmfWsx-3.js"), "./watermark/CreatedOnBrandCrowd-fr-ca.vue": () => import("./CreatedOnBrandCrowd-fr-ca-Baq85eD8.js"), "./watermark/CreatedOnBrandCrowd-fr-fr.vue": () => import("./CreatedOnBrandCrowd-fr-fr-Baq85eD8.js"), "./watermark/CreatedOnBrandCrowd-pt-br.vue": () => import("./CreatedOnBrandCrowd-pt-br-g_C5KAuW.js"), "./watermark/CreatedOnBrandCrowd-pt-pt.vue": () => import("./CreatedOnBrandCrowd-pt-pt-g_C5KAuW.js"), "./watermark/CreatedOnDcom-de-de.vue": () => import("./CreatedOnDcom-de-de-DvogBiCy.js"), "./watermark/CreatedOnDcom-en-us.vue": () => import("./CreatedOnDcom-en-us-BQkzFgXC.js"), "./watermark/CreatedOnDcom-es-es.vue": () => import("./CreatedOnDcom-es-es-D6lvCNfm.js"), "./watermark/CreatedOnDcom-fr-ca.vue": () => import("./CreatedOnDcom-fr-ca-4R_yOlmh.js"), "./watermark/CreatedOnDcom-fr-fr.vue": () => import("./CreatedOnDcom-fr-fr-DWzXKRl2.js"), "./watermark/CreatedOnDcom-pt-br.vue": () => import("./CreatedOnDcom-pt-br-DrBTyq1_.js"), "./watermark/CreatedOnDcom-pt-pt.vue": () => import("./CreatedOnDcom-pt-pt-DPiH9NzN.js") }), `./watermark/CreatedOn${S}-${_}.vue`, 3);
68174
+ const { default: k } = await eV(/* @__PURE__ */ Object.assign({ "./watermark/CreatedOnBrandCrowd-de-de.vue": () => import("./CreatedOnBrandCrowd-de-de-Lk8J1vHg.js"), "./watermark/CreatedOnBrandCrowd-en-us.vue": () => import("./CreatedOnBrandCrowd-en-us-BbXj5fb1.js"), "./watermark/CreatedOnBrandCrowd-es-es.vue": () => import("./CreatedOnBrandCrowd-es-es-CjnqvYCi.js"), "./watermark/CreatedOnBrandCrowd-fr-ca.vue": () => import("./CreatedOnBrandCrowd-fr-ca-Dbjv4qpN.js"), "./watermark/CreatedOnBrandCrowd-fr-fr.vue": () => import("./CreatedOnBrandCrowd-fr-fr-Dbjv4qpN.js"), "./watermark/CreatedOnBrandCrowd-pt-br.vue": () => import("./CreatedOnBrandCrowd-pt-br-BZIOPEvL.js"), "./watermark/CreatedOnBrandCrowd-pt-pt.vue": () => import("./CreatedOnBrandCrowd-pt-pt-BZIOPEvL.js"), "./watermark/CreatedOnDcom-de-de.vue": () => import("./CreatedOnDcom-de-de-aN4JMRDI.js"), "./watermark/CreatedOnDcom-en-us.vue": () => import("./CreatedOnDcom-en-us-f3VD6Pz4.js"), "./watermark/CreatedOnDcom-es-es.vue": () => import("./CreatedOnDcom-es-es-CQhNdtRP.js"), "./watermark/CreatedOnDcom-fr-ca.vue": () => import("./CreatedOnDcom-fr-ca-CFsC_XoO.js"), "./watermark/CreatedOnDcom-fr-fr.vue": () => import("./CreatedOnDcom-fr-fr-J4ZtCBO9.js"), "./watermark/CreatedOnDcom-pt-br.vue": () => import("./CreatedOnDcom-pt-br-C1yFugh_.js"), "./watermark/CreatedOnDcom-pt-pt.vue": () => import("./CreatedOnDcom-pt-pt-ycOo5lDn.js") }), `./watermark/CreatedOn${S}-${_}.vue`, 3);
68175
68175
  i.value = k;
68176
68176
  } catch {
68177
- const { default: V } = await eV(/* @__PURE__ */ Object.assign({ "./watermark/CreatedOnBrandCrowd-en-us.vue": () => import("./CreatedOnBrandCrowd-en-us-5_9wFMKJ.js"), "./watermark/CreatedOnDcom-en-us.vue": () => import("./CreatedOnDcom-en-us-BQkzFgXC.js") }), `./watermark/CreatedOn${S}-en-us.vue`, 3);
68177
+ const { default: V } = await eV(/* @__PURE__ */ Object.assign({ "./watermark/CreatedOnBrandCrowd-en-us.vue": () => import("./CreatedOnBrandCrowd-en-us-BbXj5fb1.js"), "./watermark/CreatedOnDcom-en-us.vue": () => import("./CreatedOnDcom-en-us-f3VD6Pz4.js") }), `./watermark/CreatedOn${S}-en-us.vue`, 3);
68178
68178
  i.value = V;
68179
68179
  }
68180
68180
  }, {
@@ -79392,7 +79392,6 @@ const l0 = (e) => {
79392
79392
  isSellDomainNameEnabled: !1,
79393
79393
  isDesignCom: !1,
79394
79394
  isPrePurchase: !1,
79395
- prePurchaseBrandKitLogoDraftToken: "",
79396
79395
  makerFonts: [],
79397
79396
  eventButtonLocation: void 0,
79398
79397
  websiteUpsellModalViewModel: void 0,
@@ -79421,7 +79420,7 @@ const l0 = (e) => {
79421
79420
  templateId: this.designTemplateToken
79422
79421
  });
79423
79422
  const r = Re();
79424
- e.logoDraftToken && r.setLogoDraftToken({ logoDraftToken: e.logoDraftToken }), this.prePurchaseBrandKitLogoDraftToken = e.isPrePurchase && e.logoDraftToken ? e.logoDraftToken : "", e?.gettyVideos?.forEach(
79423
+ e.logoDraftToken && r.setLogoDraftToken({ logoDraftToken: e.logoDraftToken }), e?.gettyVideos?.forEach(
79425
79424
  (a) => n.setVideoUrlsWithToken(
79426
79425
  a.token,
79427
79426
  a.videoPreviewAsset.uri,
@@ -80096,7 +80095,6 @@ const l0 = (e) => {
80096
80095
  isTextOnlyLogo: !1,
80097
80096
  enableEditMode: !1,
80098
80097
  logoDraftToken: "",
80099
- prePurchaseBrandKitLogoDraftToken: "",
80100
80098
  editableLogoVariations: [
80101
80099
  {
80102
80100
  variationId: Y6.LOGO_WITH_TRANSPARENT_BACKGROUND,
@@ -80164,7 +80162,7 @@ const l0 = (e) => {
80164
80162
  }),
80165
80163
  actions: {
80166
80164
  async setStateAsync(e) {
80167
- this.resetLogoEdits(), this.setLogoDraftToken(e.newState.logoDraftToken), this.prePurchaseBrandKitLogoDraftToken = e.newState.prePurchaseBrandKitLogoDraftToken || "", this.makerFonts = e.newState.makerFonts;
80165
+ this.resetLogoEdits(), this.setLogoDraftToken(e.newState.logoDraftToken), this.makerFonts = e.newState.makerFonts;
80168
80166
  const t = await this.postEditableLogoRequestAsync({
80169
80167
  returnJson: !0,
80170
80168
  defaultPrimaryText: e?.defaultPrimaryText,
@@ -80365,15 +80363,7 @@ const l0 = (e) => {
80365
80363
  token: t.logoTemplateAsset.token,
80366
80364
  version: t.logoTemplateAsset.version
80367
80365
  },
80368
- // BP-5962: render from the Brand Kit seeded draft (a frozen copy of
80369
- // the user's logo) so canvas-level edits - curved text and anything
80370
- // else updateLogoEdit's whitelist can't express - survive into the
80371
- // editor; the changeRequest still layers the editor's own edits on
80372
- // top. Only while the current logo IS that draft: a logo swap or a
80373
- // BYO upload replaces logoDraftToken with a client-minted uuid that
80374
- // does not exist on the server, and template-seeded flows never
80375
- // seed one - both keep the template-only request exactly as before.
80376
- draft: this.prePurchaseBrandKitLogoDraftToken && this.logoDraftToken === this.prePurchaseBrandKitLogoDraftToken ? { token: this.prePurchaseBrandKitLogoDraftToken } : null
80366
+ draft: null
80377
80367
  },
80378
80368
  changeRequest: {
80379
80369
  objects: {
@@ -82818,12 +82808,6 @@ const T2 = o3("uiContentSettings", {
82818
82808
  logoTemplateMetadata: "",
82819
82809
  isLogoDraftSaved: !1,
82820
82810
  logoDraftToken: b.logoDraftToken || a2.v4(),
82821
- // Only the container's per-mount Brand Kit seed is a REAL server
82822
- // draft (the editor was opened from one - Brand Kit Edit). The
82823
- // uuid fallback above is a session-local identity, and
82824
- // uiStore.logoDraftToken is never cleared between mounts -
82825
- // neither must ever reach fabric-render as a render base.
82826
- prePurchaseBrandKitLogoDraftToken: y.prePurchaseBrandKitLogoDraftToken,
82827
82811
  logoEdits: {
82828
82812
  backgroundObject: {
82829
82813
  id: "",
@@ -77,7 +77,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
77
77
  triggerSaveSuccessMessage: boolean;
78
78
  isDesignCom: boolean;
79
79
  isPrePurchase: boolean;
80
- prePurchaseBrandKitLogoDraftToken: string;
81
80
  makerFonts: any[];
82
81
  eventButtonLocation?: string | undefined;
83
82
  websiteUpsellModalViewModel?: any;
@@ -156,7 +155,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
156
155
  triggerSaveSuccessMessage: boolean;
157
156
  isDesignCom: boolean;
158
157
  isPrePurchase: boolean;
159
- prePurchaseBrandKitLogoDraftToken: string;
160
158
  makerFonts: any[];
161
159
  eventButtonLocation?: string | undefined;
162
160
  websiteUpsellModalViewModel?: any;
@@ -5,7 +5,6 @@ declare const _default: import("vue").DefineComponent<{}, {
5
5
  getLogoPrimaryText: (state: {
6
6
  enableEditMode: boolean;
7
7
  logoDraftToken: string;
8
- prePurchaseBrandKitLogoDraftToken: string;
9
8
  logoEdits: {
10
9
  backgroundObject: {
11
10
  id: string;
@@ -194,7 +194,6 @@ declare const _default: import("vue").DefineComponent<{}, {
194
194
  getLogoPrimaryText: (state: {
195
195
  enableEditMode: boolean;
196
196
  logoDraftToken: string;
197
- prePurchaseBrandKitLogoDraftToken: string;
198
197
  logoEdits: {
199
198
  backgroundObject: {
200
199
  id: string;
@@ -372,7 +371,6 @@ declare const _default: import("vue").DefineComponent<{}, {
372
371
  triggerSaveSuccessMessage: boolean;
373
372
  isDesignCom: boolean;
374
373
  isPrePurchase: boolean;
375
- prePurchaseBrandKitLogoDraftToken: string;
376
374
  makerFonts: any[];
377
375
  eventButtonLocation?: string | undefined;
378
376
  websiteUpsellModalViewModel?: any;
@@ -451,7 +449,6 @@ declare const _default: import("vue").DefineComponent<{}, {
451
449
  triggerSaveSuccessMessage: boolean;
452
450
  isDesignCom: boolean;
453
451
  isPrePurchase: boolean;
454
- prePurchaseBrandKitLogoDraftToken: string;
455
452
  makerFonts: any[];
456
453
  eventButtonLocation?: string | undefined;
457
454
  websiteUpsellModalViewModel?: any;
@@ -68,7 +68,6 @@ export interface EditableLogoVariation {
68
68
  export interface EditableLogoState {
69
69
  enableEditMode: boolean;
70
70
  logoDraftToken: string;
71
- prePurchaseBrandKitLogoDraftToken: string;
72
71
  logoEdits: LogoEdits;
73
72
  makerFonts: MakerFontObject[];
74
73
  editableLogoVariations: EditableLogoVariation[];
@@ -82,7 +81,6 @@ export declare const useUiEditableLogoStore: import("pinia").StoreDefinition<"ui
82
81
  getLogoPrimaryText: (state: {
83
82
  enableEditMode: boolean;
84
83
  logoDraftToken: string;
85
- prePurchaseBrandKitLogoDraftToken: string;
86
84
  logoEdits: {
87
85
  backgroundObject: {
88
86
  id: string;
@@ -11,7 +11,6 @@ export const useUiEditableLogoStore = defineStore('uiEditableLogo', {
11
11
  isTextOnlyLogo: false,
12
12
  enableEditMode: false,
13
13
  logoDraftToken: '',
14
- prePurchaseBrandKitLogoDraftToken: '',
15
14
  editableLogoVariations: [
16
15
  {
17
16
  variationId: LOGO_VARIATION.LOGO_WITH_TRANSPARENT_BACKGROUND,
@@ -81,8 +80,6 @@ export const useUiEditableLogoStore = defineStore('uiEditableLogo', {
81
80
  async setStateAsync(payload) {
82
81
  this.resetLogoEdits();
83
82
  this.setLogoDraftToken(payload.newState.logoDraftToken);
84
- this.prePurchaseBrandKitLogoDraftToken =
85
- payload.newState.prePurchaseBrandKitLogoDraftToken || '';
86
83
  this.makerFonts = payload.newState.makerFonts;
87
84
  const templateMetaResult = await this.postEditableLogoRequestAsync({
88
85
  returnJson: true,
@@ -381,18 +378,7 @@ export const useUiEditableLogoStore = defineStore('uiEditableLogo', {
381
378
  token: logoStore.logoTemplateAsset.token,
382
379
  version: logoStore.logoTemplateAsset.version,
383
380
  },
384
- // BP-5962: render from the Brand Kit seeded draft (a frozen copy of
385
- // the user's logo) so canvas-level edits - curved text and anything
386
- // else updateLogoEdit's whitelist can't express - survive into the
387
- // editor; the changeRequest still layers the editor's own edits on
388
- // top. Only while the current logo IS that draft: a logo swap or a
389
- // BYO upload replaces logoDraftToken with a client-minted uuid that
390
- // does not exist on the server, and template-seeded flows never
391
- // seed one - both keep the template-only request exactly as before.
392
- draft: this.prePurchaseBrandKitLogoDraftToken &&
393
- this.logoDraftToken === this.prePurchaseBrandKitLogoDraftToken
394
- ? { token: this.prePurchaseBrandKitLogoDraftToken }
395
- : null,
381
+ draft: null,
396
382
  },
397
383
  changeRequest: {
398
384
  objects: {
@@ -4613,7 +4613,6 @@ declare const _default: import("vue").DefineComponent<{}, {
4613
4613
  triggerSaveSuccessMessage: boolean;
4614
4614
  isDesignCom: boolean;
4615
4615
  isPrePurchase: boolean;
4616
- prePurchaseBrandKitLogoDraftToken: string;
4617
4616
  makerFonts: any[];
4618
4617
  eventButtonLocation?: string | undefined;
4619
4618
  websiteUpsellModalViewModel?: any;
@@ -4692,7 +4691,6 @@ declare const _default: import("vue").DefineComponent<{}, {
4692
4691
  triggerSaveSuccessMessage: boolean;
4693
4692
  isDesignCom: boolean;
4694
4693
  isPrePurchase: boolean;
4695
- prePurchaseBrandKitLogoDraftToken: string;
4696
4694
  makerFonts: any[];
4697
4695
  eventButtonLocation?: string | undefined;
4698
4696
  websiteUpsellModalViewModel?: any;
@@ -3978,7 +3978,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3978
3978
  triggerSaveSuccessMessage: boolean;
3979
3979
  isDesignCom: boolean;
3980
3980
  isPrePurchase: boolean;
3981
- prePurchaseBrandKitLogoDraftToken: string;
3982
3981
  makerFonts: any[];
3983
3982
  eventButtonLocation?: string | undefined;
3984
3983
  websiteUpsellModalViewModel?: any;
@@ -4057,7 +4056,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4057
4056
  triggerSaveSuccessMessage: boolean;
4058
4057
  isDesignCom: boolean;
4059
4058
  isPrePurchase: boolean;
4060
- prePurchaseBrandKitLogoDraftToken: string;
4061
4059
  makerFonts: any[];
4062
4060
  eventButtonLocation?: string | undefined;
4063
4061
  websiteUpsellModalViewModel?: any;
@@ -4204,7 +4202,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4204
4202
  getLogoPrimaryText: (state: {
4205
4203
  enableEditMode: boolean;
4206
4204
  logoDraftToken: string;
4207
- prePurchaseBrandKitLogoDraftToken: string;
4208
4205
  logoEdits: {
4209
4206
  backgroundObject: {
4210
4207
  id: string;
@@ -279,7 +279,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
279
279
  triggerSaveSuccessMessage: boolean;
280
280
  isDesignCom: boolean;
281
281
  isPrePurchase: boolean;
282
- prePurchaseBrandKitLogoDraftToken: string;
283
282
  makerFonts: any[];
284
283
  eventButtonLocation?: string | undefined;
285
284
  websiteUpsellModalViewModel?: any;
@@ -358,7 +357,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
358
357
  triggerSaveSuccessMessage: boolean;
359
358
  isDesignCom: boolean;
360
359
  isPrePurchase: boolean;
361
- prePurchaseBrandKitLogoDraftToken: string;
362
360
  makerFonts: any[];
363
361
  eventButtonLocation?: string | undefined;
364
362
  websiteUpsellModalViewModel?: any;
@@ -70,7 +70,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
70
70
  triggerSaveSuccessMessage: boolean;
71
71
  isDesignCom: boolean;
72
72
  isPrePurchase: boolean;
73
- prePurchaseBrandKitLogoDraftToken: string;
74
73
  makerFonts: any[];
75
74
  eventButtonLocation?: string | undefined;
76
75
  websiteUpsellModalViewModel?: any;
@@ -149,7 +148,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
149
148
  triggerSaveSuccessMessage: boolean;
150
149
  isDesignCom: boolean;
151
150
  isPrePurchase: boolean;
152
- prePurchaseBrandKitLogoDraftToken: string;
153
151
  makerFonts: any[];
154
152
  eventButtonLocation?: string | undefined;
155
153
  websiteUpsellModalViewModel?: any;
@@ -677,7 +677,6 @@ declare const _default: import("vue").DefineComponent<{}, {
677
677
  triggerSaveSuccessMessage: boolean;
678
678
  isDesignCom: boolean;
679
679
  isPrePurchase: boolean;
680
- prePurchaseBrandKitLogoDraftToken: string;
681
680
  makerFonts: any[];
682
681
  eventButtonLocation?: string | undefined;
683
682
  websiteUpsellModalViewModel?: any;
@@ -756,7 +755,6 @@ declare const _default: import("vue").DefineComponent<{}, {
756
755
  triggerSaveSuccessMessage: boolean;
757
756
  isDesignCom: boolean;
758
757
  isPrePurchase: boolean;
759
- prePurchaseBrandKitLogoDraftToken: string;
760
758
  makerFonts: any[];
761
759
  eventButtonLocation?: string | undefined;
762
760
  websiteUpsellModalViewModel?: any;
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": "6.1.3-jy-4",
4
+ "version": "6.1.3",
5
5
  "author": "Design.com Eng",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -87,12 +87,6 @@ export interface BrandPageContainerState {
87
87
  triggerSaveSuccessMessage: boolean;
88
88
  isDesignCom: boolean;
89
89
  isPrePurchase: boolean;
90
- // BP-5962: the REAL server logo draft this PREPURCHASE editor mount was
91
- // seeded with (the Brand Kit Edit flow - a frozen copy of the user's logo),
92
- // or '' when the entry carries none. Rewritten on EVERY initialise -
93
- // unlike uiStore.logoDraftToken, which is never cleared and can go stale
94
- // across client-side editor-to-editor navigation.
95
- prePurchaseBrandKitLogoDraftToken: string;
96
90
  makerFonts: any[];
97
91
  eventButtonLocation?: string;
98
92
  websiteUpsellModalViewModel?: any;
@@ -118,9 +112,7 @@ export type GettyVideoEditorViewModelResponse = {
118
112
 
119
113
  export type InitialisePayload = Omit<
120
114
  BrandPageContainerState,
121
- // prePurchaseBrandKitLogoDraftToken is DERIVED by initialise (from
122
- // isPrePurchase + logoDraftToken), never supplied by callers.
123
- 'customDomain' | 'customDomainConfig' | 'prePurchaseBrandKitLogoDraftToken'
115
+ 'customDomain' | 'customDomainConfig'
124
116
  > & {
125
117
  logoDraftToken?: string;
126
118
  brandPageCustomDomain?: CustomDomainModel;
@@ -180,7 +172,6 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
180
172
  isSellDomainNameEnabled: false,
181
173
  isDesignCom: false,
182
174
  isPrePurchase: false,
183
- prePurchaseBrandKitLogoDraftToken: '',
184
175
  makerFonts: [],
185
176
  eventButtonLocation: undefined,
186
177
  websiteUpsellModalViewModel: undefined,
@@ -288,14 +279,6 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
288
279
  uiStore.setLogoDraftToken({ logoDraftToken: payload.logoDraftToken });
289
280
  }
290
281
 
291
- // Set unconditionally (clears too): the editable-logo store renders its
292
- // logo base from this, so a stale token from a previous editor mount
293
- // must never leak into a template-seeded session.
294
- this.prePurchaseBrandKitLogoDraftToken =
295
- payload.isPrePurchase && payload.logoDraftToken
296
- ? payload.logoDraftToken
297
- : '';
298
-
299
282
  payload?.gettyVideos?.forEach((video) =>
300
283
  videoStore.setVideoUrlsWithToken(
301
284
  video.token,
@@ -1434,13 +1434,6 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
1434
1434
  logoTemplateMetadata: '',
1435
1435
  isLogoDraftSaved: false,
1436
1436
  logoDraftToken: uiStore.logoDraftToken || uuid.v4(),
1437
- // Only the container's per-mount Brand Kit seed is a REAL server
1438
- // draft (the editor was opened from one - Brand Kit Edit). The
1439
- // uuid fallback above is a session-local identity, and
1440
- // uiStore.logoDraftToken is never cleared between mounts -
1441
- // neither must ever reach fabric-render as a render base.
1442
- prePurchaseBrandKitLogoDraftToken:
1443
- brandPageContainerStore.prePurchaseBrandKitLogoDraftToken,
1444
1437
  logoEdits: {
1445
1438
  backgroundObject: {
1446
1439
  id: '',
@@ -110,12 +110,6 @@ export interface EditableLogoVariation {
110
110
  export interface EditableLogoState {
111
111
  enableEditMode: boolean;
112
112
  logoDraftToken: string;
113
- // BP-5962: the REAL server draft this editor was seeded with (the Brand Kit
114
- // Edit flow - a frozen copy of the user's logo), or '' for template-seeded
115
- // flows. Distinct from logoDraftToken, which is often a client-minted uuid
116
- // that does not exist on the server (the initialise fallback, in-editor
117
- // logo swaps, BYO uploads) and must never be sent to fabric-render.
118
- prePurchaseBrandKitLogoDraftToken: string;
119
113
  logoEdits: LogoEdits;
120
114
  makerFonts: MakerFontObject[];
121
115
  editableLogoVariations: EditableLogoVariation[];
@@ -139,7 +133,6 @@ export const useUiEditableLogoStore = defineStore('uiEditableLogo', {
139
133
  isTextOnlyLogo: false,
140
134
  enableEditMode: false,
141
135
  logoDraftToken: '',
142
- prePurchaseBrandKitLogoDraftToken: '',
143
136
  editableLogoVariations: [
144
137
  {
145
138
  variationId: LOGO_VARIATION.LOGO_WITH_TRANSPARENT_BACKGROUND,
@@ -213,8 +206,6 @@ export const useUiEditableLogoStore = defineStore('uiEditableLogo', {
213
206
  }) {
214
207
  this.resetLogoEdits();
215
208
  this.setLogoDraftToken(payload.newState.logoDraftToken);
216
- this.prePurchaseBrandKitLogoDraftToken =
217
- payload.newState.prePurchaseBrandKitLogoDraftToken || '';
218
209
  this.makerFonts = payload.newState.makerFonts;
219
210
 
220
211
  const templateMetaResult = await this.postEditableLogoRequestAsync({
@@ -644,19 +635,7 @@ export const useUiEditableLogoStore = defineStore('uiEditableLogo', {
644
635
  token: logoStore.logoTemplateAsset!.token,
645
636
  version: logoStore.logoTemplateAsset!.version,
646
637
  },
647
- // BP-5962: render from the Brand Kit seeded draft (a frozen copy of
648
- // the user's logo) so canvas-level edits - curved text and anything
649
- // else updateLogoEdit's whitelist can't express - survive into the
650
- // editor; the changeRequest still layers the editor's own edits on
651
- // top. Only while the current logo IS that draft: a logo swap or a
652
- // BYO upload replaces logoDraftToken with a client-minted uuid that
653
- // does not exist on the server, and template-seeded flows never
654
- // seed one - both keep the template-only request exactly as before.
655
- draft:
656
- this.prePurchaseBrandKitLogoDraftToken &&
657
- this.logoDraftToken === this.prePurchaseBrandKitLogoDraftToken
658
- ? { token: this.prePurchaseBrandKitLogoDraftToken }
659
- : null,
638
+ draft: null,
660
639
  },
661
640
  changeRequest: {
662
641
  objects: {
@@ -1,13 +0,0 @@
1
- import type { BrandPageModel } from '../../brand-page/models';
2
- import { BaseMetadataBuilder, type BuilderResult, type MetadataBuilderRequest } from '../models';
3
- import type { Logger } from '../logger';
4
- export interface ReorderPagesPayload {
5
- pageOrder: string[];
6
- }
7
- export declare class ReorderPagesBuilder extends BaseMetadataBuilder<ReorderPagesPayload> {
8
- constructor(request: MetadataBuilderRequest<ReorderPagesPayload>, logger?: Logger);
9
- validateAsync(): Promise<{
10
- errors: string[];
11
- }>;
12
- buildAsync(model: BrandPageModel): Promise<BuilderResult>;
13
- }
@@ -1,49 +0,0 @@
1
- import { BaseMetadataBuilder, } from '../models';
2
- export class ReorderPagesBuilder extends BaseMetadataBuilder {
3
- constructor(request, logger) {
4
- super(request, logger);
5
- }
6
- async validateAsync() {
7
- const errors = [];
8
- const payload = this.request.payload;
9
- if (!payload?.pageOrder?.length) {
10
- errors.push('page_order is required for reorder_pages');
11
- }
12
- return { errors };
13
- }
14
- async buildAsync(model) {
15
- this.log('Build called');
16
- const validation = await this.validateAsync();
17
- if (validation.errors.length) {
18
- return { request: this.request, model, errors: validation.errors };
19
- }
20
- const { pageOrder } = this.request.payload;
21
- // Build pageId → routeId lookup from nav.routes
22
- const pageIdToRouteId = new Map();
23
- for (const route of model.nav.routes) {
24
- pageIdToRouteId.set(route.pageId, route.id);
25
- }
26
- // Build new nav.orders from the flat page_order (array of pageIds)
27
- const newOrders = [];
28
- const seenRouteIds = new Set();
29
- for (const pageId of pageOrder) {
30
- const routeId = pageIdToRouteId.get(pageId);
31
- if (!routeId)
32
- continue;
33
- newOrders.push({ routeId, subRoutes: [] });
34
- seenRouteIds.add(routeId);
35
- }
36
- // Safety: append any routes not mentioned (don't lose pages)
37
- for (const route of model.nav.routes) {
38
- const routeId = pageIdToRouteId.get(route.pageId);
39
- if (routeId && !seenRouteIds.has(routeId)) {
40
- newOrders.push({ routeId, subRoutes: [] });
41
- }
42
- }
43
- model.nav.orders = newOrders;
44
- this.log({
45
- message: `Reordered pages: ${pageOrder.join(', ')}`,
46
- });
47
- return { request: this.request, model };
48
- }
49
- }
@@ -1,80 +0,0 @@
1
- import type { BrandPageModel, NavOrder } from '../../brand-page/models';
2
- import {
3
- BaseMetadataBuilder,
4
- type BuilderResult,
5
- type MetadataBuilderRequest,
6
- } from '../models';
7
- import type { Logger } from '../logger';
8
-
9
- export interface ReorderPagesPayload {
10
- pageOrder: string[];
11
- }
12
-
13
- export class ReorderPagesBuilder extends BaseMetadataBuilder<ReorderPagesPayload> {
14
- constructor(
15
- request: MetadataBuilderRequest<ReorderPagesPayload>,
16
- logger?: Logger,
17
- ) {
18
- super(request, logger);
19
- }
20
-
21
- async validateAsync(): Promise<{ errors: string[] }> {
22
- const errors: string[] = [];
23
- const payload = this.request.payload;
24
-
25
- if (!payload?.pageOrder?.length) {
26
- errors.push('page_order is required for reorder_pages');
27
- }
28
-
29
- return { errors };
30
- }
31
-
32
- async buildAsync(model: BrandPageModel): Promise<BuilderResult> {
33
- this.log('Build called');
34
-
35
- const validation = await this.validateAsync();
36
-
37
- if (validation.errors.length) {
38
- return { request: this.request, model, errors: validation.errors };
39
- }
40
-
41
- const { pageOrder } = this.request.payload!;
42
-
43
- // Build pageId → routeId lookup from nav.routes
44
- const pageIdToRouteId = new Map<string, string>();
45
-
46
- for (const route of model.nav.routes) {
47
- pageIdToRouteId.set(route.pageId, route.id);
48
- }
49
-
50
- // Build new nav.orders from the flat page_order (array of pageIds)
51
- const newOrders: NavOrder[] = [];
52
- const seenRouteIds = new Set<string>();
53
-
54
- for (const pageId of pageOrder) {
55
- const routeId = pageIdToRouteId.get(pageId);
56
-
57
- if (!routeId) continue;
58
-
59
- newOrders.push({ routeId, subRoutes: [] });
60
- seenRouteIds.add(routeId);
61
- }
62
-
63
- // Safety: append any routes not mentioned (don't lose pages)
64
- for (const route of model.nav.routes) {
65
- const routeId = pageIdToRouteId.get(route.pageId);
66
-
67
- if (routeId && !seenRouteIds.has(routeId)) {
68
- newOrders.push({ routeId, subRoutes: [] });
69
- }
70
- }
71
-
72
- model.nav.orders = newOrders;
73
-
74
- this.log({
75
- message: `Reordered pages: ${pageOrder.join(', ')}`,
76
- });
77
-
78
- return { request: this.request, model };
79
- }
80
- }