@designcrowd/library.brand-page 5.17.25-undo-17 → 5.17.25-undo-18
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-CuLXf8WO.js → CreatedOnBrandCrowd-de-de-CBDi9mm7.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-CiW7WmjR.js → CreatedOnBrandCrowd-en-us-DmYTrPGS.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-CHDfeUkH.js → CreatedOnBrandCrowd-es-es-CTS46dMT.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-COCbfajV.js → CreatedOnBrandCrowd-fr-ca-CR5a9MI7.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-COCbfajV.js → CreatedOnBrandCrowd-fr-fr-CR5a9MI7.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-B9JibEDj.js → CreatedOnBrandCrowd-pt-br-rYxhXB9n.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-B9JibEDj.js → CreatedOnBrandCrowd-pt-pt-rYxhXB9n.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-CB5yuGbA.js → CreatedOnDcom-de-de-D7ux7LvX.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-Di6bnyYT.js → CreatedOnDcom-en-us-CgxnIdbw.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-D7eelJRI.js → CreatedOnDcom-es-es-CrmM6DV3.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-0AXvFmzo.js → CreatedOnDcom-fr-ca-C7THZHWN.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-C2lAJQvG.js → CreatedOnDcom-fr-fr-BfngdllS.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-C43vEqQQ.js → CreatedOnDcom-pt-br-Chk85LOQ.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-OFKc7eJu.js → CreatedOnDcom-pt-pt-D-OsPtCB.js} +1 -1
- package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.d.ts +1 -0
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +9 -8
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMakerTemplateSettings.mixin.d.ts +1 -0
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +8 -7
- package/lib/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.d.ts +1 -0
- package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +2 -1
- package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +1 -0
- package/lib/src/brand-page-maker/components/social-share/SocialShare.mixin.d.ts +1 -0
- package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +1 -0
- package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.js +6 -9
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.d.ts +1 -0
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +14 -0
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-6wk_GC45.js → lib-BquHX4Ed.js} +94 -88
- package/lib/src/shared/content-settings/components/GenericTextInput.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +9 -8
- package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +9 -8
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +7 -7
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +8 -7
- package/lib/src/shared/content-settings/components/email-field/EmailField.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.d.ts +7 -7
- package/lib/src/shared/content-settings/components/radio-field/RadioField.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/slider-field/SliderField.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/tel-field/TelField.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/text-field/TextField.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/textarea-field/TextareaField.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/url-field/UrlField.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/youtube-video-field/YoutubeVideoField.mixin.d.ts +1 -1
- package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +1 -0
- package/lib/src/shared/page-settings/components/delete-page-modal/DeletePageModal.mixin.d.ts +1 -1
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +8 -7
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +8 -7
- package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +1 -0
- package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +1 -1
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +1 -0
- package/package.json +1 -1
- package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.ts +6 -10
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +16 -0
|
@@ -103,6 +103,7 @@ 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;
|
|
106
107
|
}): Promise<void>;
|
|
107
108
|
hideChangeTemplateConfirmModal(): void;
|
|
108
109
|
onBackgroundChanged(): void;
|
|
@@ -58,7 +58,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
58
58
|
selectedTabName: import("vue").ComputedRef<string>;
|
|
59
59
|
isAdmin: import("vue").ComputedRef<boolean>;
|
|
60
60
|
contentErrorCount: import("vue").ComputedRef<number>;
|
|
61
|
-
mode: import("vue").ComputedRef<"images" | "
|
|
61
|
+
mode: import("vue").ComputedRef<"images" | "pages" | "add" | "edit" | "focusedContentItem">;
|
|
62
62
|
brandPageMakerStore: import("pinia").Store<"brandPageMaker", import("@brand-page-maker/stores").BrandPageMakerState, {
|
|
63
63
|
contentErrorCount(): number;
|
|
64
64
|
brandPageBaseUrl(): string;
|
|
@@ -148,6 +148,7 @@ 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;
|
|
151
152
|
}): Promise<void>;
|
|
152
153
|
hideChangeTemplateConfirmModal(): void;
|
|
153
154
|
onBackgroundChanged(): void;
|
|
@@ -549,7 +550,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
549
550
|
}[];
|
|
550
551
|
itemStates: Record<string, import("@shared/content-settings/models").ContentSettingsItemState>;
|
|
551
552
|
modeStack: {
|
|
552
|
-
mode: "images" | "
|
|
553
|
+
mode: "images" | "pages" | "add" | "edit" | "focusedContentItem";
|
|
553
554
|
selectedItemId?: string | undefined;
|
|
554
555
|
selectedItemFieldName?: string | undefined;
|
|
555
556
|
selectedItemIndex?: number | undefined;
|
|
@@ -598,7 +599,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
598
599
|
}[];
|
|
599
600
|
itemStates: Record<string, import("@shared/content-settings/models").ContentSettingsItemState>;
|
|
600
601
|
modeStack: {
|
|
601
|
-
mode: "images" | "
|
|
602
|
+
mode: "images" | "pages" | "add" | "edit" | "focusedContentItem";
|
|
602
603
|
selectedItemId?: string | undefined;
|
|
603
604
|
selectedItemFieldName?: string | undefined;
|
|
604
605
|
selectedItemIndex?: number | undefined;
|
|
@@ -647,7 +648,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
647
648
|
}[];
|
|
648
649
|
itemStates: Record<string, import("@shared/content-settings/models").ContentSettingsItemState>;
|
|
649
650
|
modeStack: {
|
|
650
|
-
mode: "images" | "
|
|
651
|
+
mode: "images" | "pages" | "add" | "edit" | "focusedContentItem";
|
|
651
652
|
selectedItemId?: string | undefined;
|
|
652
653
|
selectedItemFieldName?: string | undefined;
|
|
653
654
|
selectedItemIndex?: number | undefined;
|
|
@@ -696,7 +697,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
696
697
|
}[];
|
|
697
698
|
itemStates: Record<string, import("@shared/content-settings/models").ContentSettingsItemState>;
|
|
698
699
|
modeStack: {
|
|
699
|
-
mode: "images" | "
|
|
700
|
+
mode: "images" | "pages" | "add" | "edit" | "focusedContentItem";
|
|
700
701
|
selectedItemId?: string | undefined;
|
|
701
702
|
selectedItemFieldName?: string | undefined;
|
|
702
703
|
selectedItemIndex?: number | undefined;
|
|
@@ -745,7 +746,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
745
746
|
}[];
|
|
746
747
|
itemStates: Record<string, import("@shared/content-settings/models").ContentSettingsItemState>;
|
|
747
748
|
modeStack: {
|
|
748
|
-
mode: "images" | "
|
|
749
|
+
mode: "images" | "pages" | "add" | "edit" | "focusedContentItem";
|
|
749
750
|
selectedItemId?: string | undefined;
|
|
750
751
|
selectedItemFieldName?: string | undefined;
|
|
751
752
|
selectedItemIndex?: number | undefined;
|
|
@@ -794,7 +795,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
794
795
|
}[];
|
|
795
796
|
itemStates: Record<string, import("@shared/content-settings/models").ContentSettingsItemState>;
|
|
796
797
|
modeStack: {
|
|
797
|
-
mode: "images" | "
|
|
798
|
+
mode: "images" | "pages" | "add" | "edit" | "focusedContentItem";
|
|
798
799
|
selectedItemId?: string | undefined;
|
|
799
800
|
selectedItemFieldName?: string | undefined;
|
|
800
801
|
selectedItemIndex?: number | undefined;
|
|
@@ -806,7 +807,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
806
807
|
selectedItemIndex: number | null;
|
|
807
808
|
activeCategoryTab: string;
|
|
808
809
|
} & import("pinia").PiniaCustomStateProperties<import("@shared/content-settings/store").ContentSettingsState>): (id: string, groupId: string) => import("@shared/content-settings/models").ContentSettingsItemGroupState;
|
|
809
|
-
mode(): "images" | "
|
|
810
|
+
mode(): "images" | "pages" | "add" | "edit" | "focusedContentItem";
|
|
810
811
|
selectedItem(): import("@shared/content-settings/models").ContentItem<any> | undefined;
|
|
811
812
|
selectedItemTemplate(): import("@brand-page-maker/models").ContentSettingsConfig<any, {}> | undefined;
|
|
812
813
|
}, {
|
|
@@ -92,6 +92,7 @@ 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;
|
|
95
96
|
}): Promise<void>;
|
|
96
97
|
hideChangeTemplateConfirmModal(): void;
|
|
97
98
|
onBackgroundChanged(): void;
|
package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts
CHANGED
|
@@ -108,7 +108,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
108
108
|
}[];
|
|
109
109
|
itemStates: Record<string, import("@shared/content-settings/models").ContentSettingsItemState>;
|
|
110
110
|
modeStack: {
|
|
111
|
-
mode: "images" | "
|
|
111
|
+
mode: "images" | "pages" | "add" | "edit" | "focusedContentItem";
|
|
112
112
|
selectedItemId?: string | undefined;
|
|
113
113
|
selectedItemFieldName?: string | undefined;
|
|
114
114
|
selectedItemIndex?: number | undefined;
|
|
@@ -157,7 +157,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
157
157
|
}[];
|
|
158
158
|
itemStates: Record<string, import("@shared/content-settings/models").ContentSettingsItemState>;
|
|
159
159
|
modeStack: {
|
|
160
|
-
mode: "images" | "
|
|
160
|
+
mode: "images" | "pages" | "add" | "edit" | "focusedContentItem";
|
|
161
161
|
selectedItemId?: string | undefined;
|
|
162
162
|
selectedItemFieldName?: string | undefined;
|
|
163
163
|
selectedItemIndex?: number | undefined;
|
|
@@ -206,7 +206,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
206
206
|
}[];
|
|
207
207
|
itemStates: Record<string, import("@shared/content-settings/models").ContentSettingsItemState>;
|
|
208
208
|
modeStack: {
|
|
209
|
-
mode: "images" | "
|
|
209
|
+
mode: "images" | "pages" | "add" | "edit" | "focusedContentItem";
|
|
210
210
|
selectedItemId?: string | undefined;
|
|
211
211
|
selectedItemFieldName?: string | undefined;
|
|
212
212
|
selectedItemIndex?: number | undefined;
|
|
@@ -255,7 +255,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
255
255
|
}[];
|
|
256
256
|
itemStates: Record<string, import("@shared/content-settings/models").ContentSettingsItemState>;
|
|
257
257
|
modeStack: {
|
|
258
|
-
mode: "images" | "
|
|
258
|
+
mode: "images" | "pages" | "add" | "edit" | "focusedContentItem";
|
|
259
259
|
selectedItemId?: string | undefined;
|
|
260
260
|
selectedItemFieldName?: string | undefined;
|
|
261
261
|
selectedItemIndex?: number | undefined;
|
|
@@ -304,7 +304,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
304
304
|
}[];
|
|
305
305
|
itemStates: Record<string, import("@shared/content-settings/models").ContentSettingsItemState>;
|
|
306
306
|
modeStack: {
|
|
307
|
-
mode: "images" | "
|
|
307
|
+
mode: "images" | "pages" | "add" | "edit" | "focusedContentItem";
|
|
308
308
|
selectedItemId?: string | undefined;
|
|
309
309
|
selectedItemFieldName?: string | undefined;
|
|
310
310
|
selectedItemIndex?: number | undefined;
|
|
@@ -353,7 +353,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
353
353
|
}[];
|
|
354
354
|
itemStates: Record<string, import("@shared/content-settings/models").ContentSettingsItemState>;
|
|
355
355
|
modeStack: {
|
|
356
|
-
mode: "images" | "
|
|
356
|
+
mode: "images" | "pages" | "add" | "edit" | "focusedContentItem";
|
|
357
357
|
selectedItemId?: string | undefined;
|
|
358
358
|
selectedItemFieldName?: string | undefined;
|
|
359
359
|
selectedItemIndex?: number | undefined;
|
|
@@ -365,7 +365,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
365
365
|
selectedItemIndex: number | null;
|
|
366
366
|
activeCategoryTab: string;
|
|
367
367
|
} & import("pinia").PiniaCustomStateProperties<import("@shared/content-settings/store").ContentSettingsState>): (id: string, groupId: string) => import("@shared/content-settings/models").ContentSettingsItemGroupState;
|
|
368
|
-
mode(): "images" | "
|
|
368
|
+
mode(): "images" | "pages" | "add" | "edit" | "focusedContentItem";
|
|
369
369
|
selectedItem(): ContentItem<any> | undefined;
|
|
370
370
|
selectedItemTemplate(): import("../../models").ContentSettingsConfig<any, {}> | undefined;
|
|
371
371
|
}, {
|
|
@@ -598,6 +598,7 @@ 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;
|
|
601
602
|
}): Promise<void>;
|
|
602
603
|
hideChangeTemplateConfirmModal(): void;
|
|
603
604
|
onBackgroundChanged(): void;
|
|
@@ -98,6 +98,7 @@ 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;
|
|
101
102
|
}): Promise<void>;
|
|
102
103
|
hideChangeTemplateConfirmModal(): void;
|
|
103
104
|
onBackgroundChanged(): void;
|
|
@@ -404,6 +404,7 @@ 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;
|
|
407
408
|
}): Promise<void>;
|
|
408
409
|
hideChangeTemplateConfirmModal(): void;
|
|
409
410
|
onBackgroundChanged(): void;
|
|
@@ -507,8 +508,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
507
508
|
};
|
|
508
509
|
}>> & Readonly<{}>, {
|
|
509
510
|
pageTitle: string;
|
|
510
|
-
designDraftToken: string;
|
|
511
511
|
brandPageType: string;
|
|
512
|
+
designDraftToken: string;
|
|
512
513
|
pageDescription: string;
|
|
513
514
|
isMaker: boolean;
|
|
514
515
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -405,6 +405,7 @@ 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;
|
|
408
409
|
}): Promise<void>;
|
|
409
410
|
hideChangeTemplateConfirmModal(): void;
|
|
410
411
|
onBackgroundChanged(): void;
|
|
@@ -108,6 +108,7 @@ 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;
|
|
111
112
|
}): Promise<void>;
|
|
112
113
|
hideChangeTemplateConfirmModal(): void;
|
|
113
114
|
onBackgroundChanged(): void;
|
|
@@ -456,6 +456,7 @@ 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;
|
|
459
460
|
}): Promise<void>;
|
|
460
461
|
hideChangeTemplateConfirmModal(): void;
|
|
461
462
|
onBackgroundChanged(): void;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { defineStore } from 'pinia';
|
|
2
2
|
import brandPageClient, {} from '../../../clients/brand-page-client';
|
|
3
3
|
import { useBrandPageMakerStore, useBrandPageMakerUserStore, useLocalisedRouteStore, useLogoStore, useUiStore, useVideoStore, } from '@brand-page-maker/stores';
|
|
4
|
-
import { useHistoryStore } from '@brand-page-maker/stores/history/history-store';
|
|
5
4
|
import { SIDE_BAR_TAB_NAMES } from '@brand-page-maker/constants';
|
|
6
5
|
import { BRAND_PAGE_TYPES, SENSITIVE_CONTENT_TYPES, getAbTestResults, getValueType, } from '@brand-page';
|
|
7
6
|
import { isLogoContent } from '@brand-page/utils';
|
|
@@ -637,14 +636,6 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
|
|
|
637
636
|
await this.showSaveSuccessMessage();
|
|
638
637
|
await brandPageMakerStore.showNextNotificationMessage();
|
|
639
638
|
}
|
|
640
|
-
// PRD §3 Non-Goals: undo history resets on save/publish so the
|
|
641
|
-
// saved state becomes the new clean baseline. The save was
|
|
642
|
-
// successful by the time we get here, so reset unconditionally
|
|
643
|
-
// — `reset()` itself no-ops in non-undo-redo sessions (where
|
|
644
|
-
// no baseline was ever captured). Both Save Progress and
|
|
645
|
-
// Publish funnel here (publish via `saveAndPublishBrandPage`
|
|
646
|
-
// → `saveBrandPage`).
|
|
647
|
-
useHistoryStore().reset();
|
|
648
639
|
return {
|
|
649
640
|
saved: true,
|
|
650
641
|
canPublish: response.canPublish,
|
|
@@ -804,6 +795,12 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
|
|
|
804
795
|
try {
|
|
805
796
|
await brandPageMakerStore.enqueueSaveSuccessMessage({
|
|
806
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,
|
|
807
804
|
});
|
|
808
805
|
}
|
|
809
806
|
finally {
|
|
@@ -173,6 +173,7 @@ export declare const useBrandPageMakerStore: import("pinia").StoreDefinition<"br
|
|
|
173
173
|
description?: string;
|
|
174
174
|
isPublished?: boolean;
|
|
175
175
|
noDescription?: boolean;
|
|
176
|
+
resetHistory?: boolean;
|
|
176
177
|
}): Promise<void>;
|
|
177
178
|
hideChangeTemplateConfirmModal(): void;
|
|
178
179
|
onBackgroundChanged(): void;
|
|
@@ -387,6 +387,20 @@ 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.
|
|
399
|
+
// reset() no-ops in non-undo-redo sessions (no baseline = nothing
|
|
400
|
+
// to clear).
|
|
401
|
+
if (payload.resetHistory) {
|
|
402
|
+
useHistoryStore().reset();
|
|
403
|
+
}
|
|
390
404
|
},
|
|
391
405
|
hideChangeTemplateConfirmModal() {
|
|
392
406
|
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-
|
|
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";
|
|
2
2
|
import { createPinia as wE, setActivePinia as ZE } from "pinia";
|
|
3
3
|
export {
|
|
4
4
|
E as ABOUT_SECTION_SETTINGS_CONFIG,
|