@designcrowd/library.brand-page 5.17.25-undo-19 → 5.17.25-undo-21
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-jjqBiULc.js → CreatedOnBrandCrowd-de-de-Bze5WUip.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-B6h7bcbj.js → CreatedOnBrandCrowd-en-us-Dw5uSnX8.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-Cmys6ypT.js → CreatedOnBrandCrowd-es-es-Cz-oPdjt.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-Ceybzq8J.js → CreatedOnBrandCrowd-fr-ca-zldLXw3G.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-Ceybzq8J.js → CreatedOnBrandCrowd-fr-fr-zldLXw3G.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-CHV5Fh4C.js → CreatedOnBrandCrowd-pt-br-64QJpEaD.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-CHV5Fh4C.js → CreatedOnBrandCrowd-pt-pt-64QJpEaD.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-t2W_ziW-.js → CreatedOnDcom-de-de-8SXOvjEH.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-CsPm5hFT.js → CreatedOnDcom-en-us-ClZBYY_t.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-DjQbRJVQ.js → CreatedOnDcom-es-es-xg4ZwvEb.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-DK6rTyy-.js → CreatedOnDcom-fr-ca-4zo2gxc1.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-D_lMd4Dy.js → CreatedOnDcom-fr-fr-Dw9Fuy7U.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-CZBLwwrp.js → CreatedOnDcom-pt-br-Dbl0EWcU.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-Hl48EO74.js → CreatedOnDcom-pt-pt-Bps73oQE.js} +1 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.js +7 -5
- package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.js +4 -4
- package/lib/src/brand-page-maker/composables/useUndoRedoFlag.d.ts +12 -5
- package/lib/src/brand-page-maker/composables/useUndoRedoFlag.js +15 -6
- package/lib/src/css/library.brand-page-brandCrowd.min.css +2 -2
- package/lib/src/css/library.brand-page-brandPage.min.css +2 -2
- package/lib/src/css/library.brand-page-designCom.min.css +2 -2
- package/lib/src/css/library.brand-page-preview.min.css +2 -2
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-CWzbO4Vy.js → lib-BgvZxeSl.js} +10886 -10927
- package/lib/src/shared/logo-settings/components/EditLogoSettings.mixin.d.ts +1 -2
- package/lib/src/shared/logo-settings/components/EditLogoSettings.mixin.js +1 -10
- package/lib/src/shared/logo-settings/store/editable-logo-store.js +0 -18
- package/package.json +1 -1
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.ts +7 -6
- package/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.ts +3 -5
- package/src/brand-page-maker/components/quick-link-bar/RedoButton.test.ts +30 -0
- package/src/brand-page-maker/components/quick-link-bar/RedoButton.vue +6 -1
- package/src/brand-page-maker/components/quick-link-bar/UndoButton.test.ts +30 -0
- package/src/brand-page-maker/components/quick-link-bar/UndoButton.vue +6 -1
- package/src/brand-page-maker/composables/useUndoRedoFlag.ts +17 -6
- package/src/shared/logo-settings/components/EditLogoSettings.mixin.ts +1 -14
- package/src/shared/logo-settings/store/editable-logo-store.ts +0 -36
|
@@ -12,6 +12,7 @@ import { useBrandPageContainerStore } from '@brand-page-maker/stores';
|
|
|
12
12
|
import { UI_DEVICE_MODES, UI_SCREENSIZE_MODES, } from '@shared/models';
|
|
13
13
|
import { useBrandPageMakerStore, useBrandPageMakerUserStore, useLocalisedRouteStore, useUiStore, useSnapshotStore, useVideoStore, } from '@brand-page-maker/stores';
|
|
14
14
|
import { useHistoryStore } from '@brand-page-maker/stores/history/history-store';
|
|
15
|
+
import { useUndoRedoFlag } from '@brand-page-maker/composables/useUndoRedoFlag';
|
|
15
16
|
import { useUiContentSettingsStore } from '@shared/content-settings/store';
|
|
16
17
|
import { useUiTemplateSettingsStore } from '@shared/template-settings/store';
|
|
17
18
|
import { useUiPageSettingsStore } from '@shared/page-settings/store';
|
|
@@ -190,11 +191,12 @@ export default defineComponent({
|
|
|
190
191
|
}
|
|
191
192
|
// Mark brand page as fully loaded
|
|
192
193
|
this.brandPageMakerStore.setIsBrandPageLoaded(true);
|
|
193
|
-
// Capture baseline for undo/redo when feature
|
|
194
|
-
//
|
|
195
|
-
//
|
|
196
|
-
|
|
197
|
-
|
|
194
|
+
// Capture baseline for undo/redo when the feature is active for this
|
|
195
|
+
// session. `useUndoRedoFlag` requires both the LaunchDarkly feature
|
|
196
|
+
// (`userStore.features.canUseUndoRedo`) AND the maker being a brand-site
|
|
197
|
+
// — V1 scope is brand-site only; brand-page and brand-contact don't get
|
|
198
|
+
// undo/redo. See useUndoRedoFlag.ts for the rationale.
|
|
199
|
+
if (useUndoRedoFlag().value) {
|
|
198
200
|
useHistoryStore().captureBaseline();
|
|
199
201
|
}
|
|
200
202
|
this.$emit(EVENTS.Initialised);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineComponent } from 'vue';
|
|
2
2
|
import { CUSTOM_DOMAIN_STATUSES } from '@brand-page-maker/constants';
|
|
3
|
-
import { useBrandPageContainerStore,
|
|
3
|
+
import { useBrandPageContainerStore, useEventManagerStore, } from '@brand-page-maker/stores';
|
|
4
|
+
import { useUndoRedoFlag } from '@brand-page-maker/composables/useUndoRedoFlag';
|
|
4
5
|
import { quickLinkBarTr } from '@src/composables/useTranslate';
|
|
5
6
|
export default defineComponent({
|
|
6
7
|
props: {
|
|
@@ -14,11 +15,10 @@ export default defineComponent({
|
|
|
14
15
|
},
|
|
15
16
|
},
|
|
16
17
|
setup() {
|
|
17
|
-
const userStore = useBrandPageMakerUserStore();
|
|
18
18
|
return {
|
|
19
19
|
brandPageContainerStore: useBrandPageContainerStore(),
|
|
20
20
|
eventManagerStore: useEventManagerStore(),
|
|
21
|
-
undoRedoEnabled:
|
|
21
|
+
undoRedoEnabled: useUndoRedoFlag(),
|
|
22
22
|
};
|
|
23
23
|
},
|
|
24
24
|
data() {
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { type ComputedRef } from 'vue';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
3
|
+
* Returns whether undo/redo is active for the current maker session. Two
|
|
4
|
+
* conditions must hold:
|
|
5
|
+
*
|
|
6
|
+
* 1. `userStore.features.canUseUndoRedo` is true. The flag is populated by
|
|
7
|
+
* the consumer (BrandCrowd.Net / web-renderer) via the
|
|
8
|
+
* `WebsiteDesignUserFeatures.CanUseUndoRedo` boolean on the ViewModel —
|
|
9
|
+
* same precedent as RichTextEditor / GettyVideos / AITextGenerator.
|
|
10
|
+
* 2. The maker is a brand-site (Website Maker). V1 scope is brand-site
|
|
11
|
+
* only; brand-page (single-page profile) and brand-contact (vCard) are
|
|
12
|
+
* out of scope. The flag itself is global on LaunchDarkly so it can't
|
|
13
|
+
* gate this on its own — `isBrandSite` is the per-session
|
|
14
|
+
* discriminator.
|
|
8
15
|
*/
|
|
9
16
|
export declare function useUndoRedoFlag(): ComputedRef<boolean>;
|
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
import { computed } from 'vue';
|
|
2
2
|
import { useBrandPageMakerUserStore } from '@brand-page-maker/stores/user';
|
|
3
|
+
import { useBrandPageMakerStore } from '@brand-page-maker/stores/brandpage-maker/brandpage-maker-store';
|
|
3
4
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
5
|
+
* Returns whether undo/redo is active for the current maker session. Two
|
|
6
|
+
* conditions must hold:
|
|
7
|
+
*
|
|
8
|
+
* 1. `userStore.features.canUseUndoRedo` is true. The flag is populated by
|
|
9
|
+
* the consumer (BrandCrowd.Net / web-renderer) via the
|
|
10
|
+
* `WebsiteDesignUserFeatures.CanUseUndoRedo` boolean on the ViewModel —
|
|
11
|
+
* same precedent as RichTextEditor / GettyVideos / AITextGenerator.
|
|
12
|
+
* 2. The maker is a brand-site (Website Maker). V1 scope is brand-site
|
|
13
|
+
* only; brand-page (single-page profile) and brand-contact (vCard) are
|
|
14
|
+
* out of scope. The flag itself is global on LaunchDarkly so it can't
|
|
15
|
+
* gate this on its own — `isBrandSite` is the per-session
|
|
16
|
+
* discriminator.
|
|
9
17
|
*/
|
|
10
18
|
export function useUndoRedoFlag() {
|
|
11
19
|
const userStore = useBrandPageMakerUserStore();
|
|
12
|
-
|
|
20
|
+
const brandPageMakerStore = useBrandPageMakerStore();
|
|
21
|
+
return computed(() => userStore.features.canUseUndoRedo && brandPageMakerStore.isBrandSite);
|
|
13
22
|
}
|
|
@@ -9161,12 +9161,12 @@ input.dynamic-width-input[data-v-97be2e87]:focus {
|
|
|
9161
9161
|
background-attachment: scroll !important;
|
|
9162
9162
|
}
|
|
9163
9163
|
|
|
9164
|
-
.c-undo-button-tooltip[data-v-
|
|
9164
|
+
.c-undo-button-tooltip[data-v-10e293db] .shared-tooltip__body {
|
|
9165
9165
|
width: auto;
|
|
9166
9166
|
padding: 4px 8px;
|
|
9167
9167
|
}
|
|
9168
9168
|
|
|
9169
|
-
.c-redo-button-tooltip[data-v-
|
|
9169
|
+
.c-redo-button-tooltip[data-v-384a6580] .shared-tooltip__body {
|
|
9170
9170
|
width: auto;
|
|
9171
9171
|
padding: 4px 8px;
|
|
9172
9172
|
}
|
|
@@ -9478,12 +9478,12 @@ input.dynamic-width-input[data-v-97be2e87]:focus {
|
|
|
9478
9478
|
background-attachment: scroll !important;
|
|
9479
9479
|
}
|
|
9480
9480
|
|
|
9481
|
-
.c-undo-button-tooltip[data-v-
|
|
9481
|
+
.c-undo-button-tooltip[data-v-10e293db] .shared-tooltip__body {
|
|
9482
9482
|
width: auto;
|
|
9483
9483
|
padding: 4px 8px;
|
|
9484
9484
|
}
|
|
9485
9485
|
|
|
9486
|
-
.c-redo-button-tooltip[data-v-
|
|
9486
|
+
.c-redo-button-tooltip[data-v-384a6580] .shared-tooltip__body {
|
|
9487
9487
|
width: auto;
|
|
9488
9488
|
padding: 4px 8px;
|
|
9489
9489
|
}
|
|
@@ -9191,12 +9191,12 @@ input.dynamic-width-input[data-v-97be2e87]:focus {
|
|
|
9191
9191
|
background-attachment: scroll !important;
|
|
9192
9192
|
}
|
|
9193
9193
|
|
|
9194
|
-
.c-undo-button-tooltip[data-v-
|
|
9194
|
+
.c-undo-button-tooltip[data-v-10e293db] .shared-tooltip__body {
|
|
9195
9195
|
width: auto;
|
|
9196
9196
|
padding: 4px 8px;
|
|
9197
9197
|
}
|
|
9198
9198
|
|
|
9199
|
-
.c-redo-button-tooltip[data-v-
|
|
9199
|
+
.c-redo-button-tooltip[data-v-384a6580] .shared-tooltip__body {
|
|
9200
9200
|
width: auto;
|
|
9201
9201
|
padding: 4px 8px;
|
|
9202
9202
|
}
|
|
@@ -8889,12 +8889,12 @@ input.dynamic-width-input[data-v-97be2e87]:focus {
|
|
|
8889
8889
|
background-attachment: scroll !important;
|
|
8890
8890
|
}
|
|
8891
8891
|
|
|
8892
|
-
.bp .c-undo-button-tooltip[data-v-
|
|
8892
|
+
.bp .c-undo-button-tooltip[data-v-10e293db] .shared-tooltip__body {
|
|
8893
8893
|
width: auto;
|
|
8894
8894
|
padding: 4px 8px;
|
|
8895
8895
|
}
|
|
8896
8896
|
|
|
8897
|
-
.bp .c-redo-button-tooltip[data-v-
|
|
8897
|
+
.bp .c-redo-button-tooltip[data-v-384a6580] .shared-tooltip__body {
|
|
8898
8898
|
width: auto;
|
|
8899
8899
|
padding: 4px 8px;
|
|
8900
8900
|
}
|
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-
|
|
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-BgvZxeSl.js";
|
|
2
2
|
import { createPinia as wE, setActivePinia as ZE } from "pinia";
|
|
3
3
|
export {
|
|
4
4
|
E as ABOUT_SECTION_SETTINGS_CONFIG,
|