@designcrowd/library.brand-page 5.17.25-undo-7 → 5.17.25-undo-9
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.
- package/lib/src/{CreatedOnBrandCrowd-de-de-Bj3SnIcG.js → CreatedOnBrandCrowd-de-de-DmDSspcZ.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-Cctc4swb.js → CreatedOnBrandCrowd-en-us-B5Lh1tFl.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-BEH9gTNh.js → CreatedOnBrandCrowd-es-es-BOiOyh5Y.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-BgWoNZ-T.js → CreatedOnBrandCrowd-fr-ca-BbC8s_pY.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-BgWoNZ-T.js → CreatedOnBrandCrowd-fr-fr-BbC8s_pY.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-VI26X7xu.js → CreatedOnBrandCrowd-pt-br-B9PQ72m4.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-VI26X7xu.js → CreatedOnBrandCrowd-pt-pt-B9PQ72m4.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-CQKXLChO.js → CreatedOnDcom-de-de-C7NzbKIg.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-DTjoj2Iv.js → CreatedOnDcom-en-us-DbVi6Q9C.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-C7ZOaeD4.js → CreatedOnDcom-es-es-C4TPAk-c.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-CaODnIN8.js → CreatedOnDcom-fr-ca-xqzYFaKy.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-CrF0dPzz.js → CreatedOnDcom-fr-fr-Bh-7lY7W.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-51WgNOhj.js → CreatedOnDcom-pt-br-D3J8peaF.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-Bkn3fggv.js → CreatedOnDcom-pt-pt-101mCRJX.js} +1 -1
- package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.d.ts +1 -0
- package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.js +6 -0
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +14 -0
- package/lib/src/brand-page-maker/stores/history/history-store.js +193 -19
- package/lib/src/css/library.brand-page-brandCrowd.min.css +1 -1
- package/lib/src/css/library.brand-page-brandPage.min.css +1 -1
- package/lib/src/css/library.brand-page-designCom.min.css +1 -1
- package/lib/src/css/library.brand-page-preview.min.css +1 -1
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-rp5REB2a.js → lib-MGJszuw2.js} +5870 -5807
- package/package.json +1 -1
- package/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.ts +7 -0
- package/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.vue +1 -1
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.test.ts +121 -0
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +14 -0
- package/src/brand-page-maker/stores/history/history-store.test.ts +172 -3
- package/src/brand-page-maker/stores/history/history-store.ts +217 -22
- package/src/shared/content-settings/components/logo-selection-field/LogoSelection.vue +16 -23
|
@@ -256,39 +256,32 @@ const options = computed<ButtonGroupOption[]>(() => {
|
|
|
256
256
|
return optionList;
|
|
257
257
|
});
|
|
258
258
|
|
|
259
|
-
|
|
259
|
+
const updateState = () => {
|
|
260
|
+
const logoDraftAsset = logoStore.getLogoDraftAssetByToken(
|
|
261
|
+
props.selectedLogoDraftToken,
|
|
262
|
+
);
|
|
260
263
|
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
() => {
|
|
264
|
-
data.manualVisibleChoice = null;
|
|
265
|
-
updateState();
|
|
266
|
-
},
|
|
267
|
-
);
|
|
264
|
+
data.logoEditUrl = logoDraftAsset?.logoEditUrl || '';
|
|
265
|
+
};
|
|
268
266
|
|
|
269
|
-
|
|
270
|
-
() => props.selectedLogoDraftToken,
|
|
271
|
-
() => {
|
|
272
|
-
data.manualVisibleChoice = null;
|
|
273
|
-
updateState();
|
|
274
|
-
},
|
|
275
|
-
);
|
|
267
|
+
onMounted(() => updateState());
|
|
276
268
|
|
|
269
|
+
// Only `selectedLogoDraftToken` clears the manual override — that's the
|
|
270
|
+
// signal for an *external* data change (upload landed, or undo/redo
|
|
271
|
+
// restored a different draft). `isLogoVisible` flips on the user's own
|
|
272
|
+
// click and propagates back through props, so resetting on it would
|
|
273
|
+
// clobber the choice the user just made (e.g. None → Upload would land
|
|
274
|
+
// on Logo because the watcher fires before the computed re-reads).
|
|
277
275
|
watch(
|
|
278
|
-
() => props.
|
|
276
|
+
() => props.selectedLogoDraftToken,
|
|
279
277
|
() => {
|
|
280
278
|
data.manualVisibleChoice = null;
|
|
281
279
|
updateState();
|
|
282
280
|
},
|
|
283
281
|
);
|
|
284
282
|
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
props.selectedLogoDraftToken,
|
|
288
|
-
);
|
|
289
|
-
|
|
290
|
-
data.logoEditUrl = logoDraftAsset?.logoEditUrl || '';
|
|
291
|
-
};
|
|
283
|
+
watch(() => props.isLogoVisible, updateState);
|
|
284
|
+
watch(() => props.selectedLogo, updateState);
|
|
292
285
|
|
|
293
286
|
const logoSettingStore = useUiLogoSettingsStore();
|
|
294
287
|
|