@designcrowd/library.brand-page 6.2.2 → 6.2.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 (43) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-7P2gNr-R.js → CreatedOnBrandCrowd-de-de-Cn0M-eZ1.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-Dl7BymW6.js → CreatedOnBrandCrowd-en-us-DRLMSDZr.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-CO4FvWVw.js → CreatedOnBrandCrowd-es-es-BglTu73U.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-DHNqakQu.js → CreatedOnBrandCrowd-fr-ca-Bj6YZ_el.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-DHNqakQu.js → CreatedOnBrandCrowd-fr-fr-Bj6YZ_el.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-CGUC-ZbP.js → CreatedOnBrandCrowd-pt-br-DEoOmQ1F.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-CGUC-ZbP.js → CreatedOnBrandCrowd-pt-pt-DEoOmQ1F.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-Dvds-Vmy.js → CreatedOnDcom-de-de-BZ7gTt4Z.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-fd3C-8Tp.js → CreatedOnDcom-en-us-CD6Km5sH.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-DTXZW35-.js → CreatedOnDcom-es-es-CNpZHvEl.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-DRCYOKPs.js → CreatedOnDcom-fr-ca-URS-ydJ1.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-DpIB8x2x.js → CreatedOnDcom-fr-fr-D2AVeA3H.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-Esnxy8wX.js → CreatedOnDcom-pt-br-C32frnFs.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-CaiVHFXR.js → CreatedOnDcom-pt-pt-TDYGjRXS.js} +1 -1
  15. package/lib/src/brand-page/models/brand-page-context.model.d.ts +0 -2
  16. package/lib/src/brand-page/models/brand-page-context.model.js +0 -12
  17. package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.d.ts +0 -1
  18. package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.js +0 -9
  19. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +0 -42
  20. package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +0 -42
  21. package/lib/src/brand-page-maker/components/preview/Preview.mixin.d.ts +0 -14
  22. package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.d.ts +0 -42
  23. package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +0 -42
  24. package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +0 -42
  25. package/lib/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.mixin.d.ts +0 -42
  26. package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +0 -42
  27. package/lib/src/brand-page-maker/components/upgrade-to-premium-button/UpgradeToPremiumButton.mixin.d.ts +0 -42
  28. package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.d.ts +0 -42
  29. package/lib/src/index.mjs +1 -1
  30. package/lib/src/{lib-V7aqfuiB.js → lib-Dm9AuOJL.js} +10891 -10906
  31. package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.d.ts +0 -42
  32. package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +0 -42
  33. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +0 -42
  34. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +0 -42
  35. package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +0 -56
  36. package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +0 -42
  37. package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +0 -42
  38. package/package.json +1 -1
  39. package/src/brand-page/models/brand-page-context.model.ts +0 -23
  40. package/src/brand-page-maker/components/action-bar/ActionBar.mixin.ts +0 -10
  41. package/src/brand-page-maker/components/action-bar/ActionBarNavigation.test.ts +8 -49
  42. package/src/brand-page-maker/components/action-bar/ActionBarNavigation.vue +1 -1
  43. package/src/shared/page-settings/store/page-settings-store.test.ts +0 -71
@@ -91,20 +91,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
91
91
  isVariation: boolean;
92
92
  isExcluded: boolean;
93
93
  } | undefined;
94
- bp_5873_live_preview_prepurchase?: {
95
- key: string;
96
- value: string;
97
- isControl: boolean;
98
- isVariation: boolean;
99
- isExcluded: boolean;
100
- } | undefined;
101
- bp_5873_live_preview_postpurchase?: {
102
- key: string;
103
- value: string;
104
- isControl: boolean;
105
- isVariation: boolean;
106
- isExcluded: boolean;
107
- } | undefined;
108
94
  };
109
95
  isSubsequentPublish: boolean;
110
96
  isContextualUpgradeModalVisible: boolean;
@@ -180,20 +166,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
180
166
  isVariation: boolean;
181
167
  isExcluded: boolean;
182
168
  } | undefined;
183
- bp_5873_live_preview_prepurchase?: {
184
- key: string;
185
- value: string;
186
- isControl: boolean;
187
- isVariation: boolean;
188
- isExcluded: boolean;
189
- } | undefined;
190
- bp_5873_live_preview_postpurchase?: {
191
- key: string;
192
- value: string;
193
- isControl: boolean;
194
- isVariation: boolean;
195
- isExcluded: boolean;
196
- } | undefined;
197
169
  };
198
170
  isSubsequentPublish: boolean;
199
171
  isContextualUpgradeModalVisible: boolean;
@@ -269,20 +241,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
269
241
  isVariation: boolean;
270
242
  isExcluded: boolean;
271
243
  } | undefined;
272
- bp_5873_live_preview_prepurchase?: {
273
- key: string;
274
- value: string;
275
- isControl: boolean;
276
- isVariation: boolean;
277
- isExcluded: boolean;
278
- } | undefined;
279
- bp_5873_live_preview_postpurchase?: {
280
- key: string;
281
- value: string;
282
- isControl: boolean;
283
- isVariation: boolean;
284
- isExcluded: boolean;
285
- } | undefined;
286
244
  };
287
245
  isSubsequentPublish: boolean;
288
246
  isContextualUpgradeModalVisible: boolean;
@@ -387,20 +387,6 @@ declare const _default: import("vue").DefineComponent<{}, {
387
387
  isVariation: boolean;
388
388
  isExcluded: boolean;
389
389
  } | undefined;
390
- bp_5873_live_preview_prepurchase?: {
391
- key: string;
392
- value: string;
393
- isControl: boolean;
394
- isVariation: boolean;
395
- isExcluded: boolean;
396
- } | undefined;
397
- bp_5873_live_preview_postpurchase?: {
398
- key: string;
399
- value: string;
400
- isControl: boolean;
401
- isVariation: boolean;
402
- isExcluded: boolean;
403
- } | undefined;
404
390
  };
405
391
  isSubsequentPublish: boolean;
406
392
  isContextualUpgradeModalVisible: boolean;
@@ -476,20 +462,6 @@ declare const _default: import("vue").DefineComponent<{}, {
476
462
  isVariation: boolean;
477
463
  isExcluded: boolean;
478
464
  } | undefined;
479
- bp_5873_live_preview_prepurchase?: {
480
- key: string;
481
- value: string;
482
- isControl: boolean;
483
- isVariation: boolean;
484
- isExcluded: boolean;
485
- } | undefined;
486
- bp_5873_live_preview_postpurchase?: {
487
- key: string;
488
- value: string;
489
- isControl: boolean;
490
- isVariation: boolean;
491
- isExcluded: boolean;
492
- } | undefined;
493
465
  };
494
466
  isSubsequentPublish: boolean;
495
467
  isContextualUpgradeModalVisible: boolean;
@@ -565,20 +537,6 @@ declare const _default: import("vue").DefineComponent<{}, {
565
537
  isVariation: boolean;
566
538
  isExcluded: boolean;
567
539
  } | undefined;
568
- bp_5873_live_preview_prepurchase?: {
569
- key: string;
570
- value: string;
571
- isControl: boolean;
572
- isVariation: boolean;
573
- isExcluded: boolean;
574
- } | undefined;
575
- bp_5873_live_preview_postpurchase?: {
576
- key: string;
577
- value: string;
578
- isControl: boolean;
579
- isVariation: boolean;
580
- isExcluded: boolean;
581
- } | undefined;
582
540
  };
583
541
  isSubsequentPublish: boolean;
584
542
  isContextualUpgradeModalVisible: boolean;
@@ -4823,20 +4823,6 @@ declare const _default: import("vue").DefineComponent<{}, {
4823
4823
  isVariation: boolean;
4824
4824
  isExcluded: boolean;
4825
4825
  } | undefined;
4826
- bp_5873_live_preview_prepurchase?: {
4827
- key: string;
4828
- value: string;
4829
- isControl: boolean;
4830
- isVariation: boolean;
4831
- isExcluded: boolean;
4832
- } | undefined;
4833
- bp_5873_live_preview_postpurchase?: {
4834
- key: string;
4835
- value: string;
4836
- isControl: boolean;
4837
- isVariation: boolean;
4838
- isExcluded: boolean;
4839
- } | undefined;
4840
4826
  };
4841
4827
  isSubsequentPublish: boolean;
4842
4828
  isContextualUpgradeModalVisible: boolean;
@@ -4912,20 +4898,6 @@ declare const _default: import("vue").DefineComponent<{}, {
4912
4898
  isVariation: boolean;
4913
4899
  isExcluded: boolean;
4914
4900
  } | undefined;
4915
- bp_5873_live_preview_prepurchase?: {
4916
- key: string;
4917
- value: string;
4918
- isControl: boolean;
4919
- isVariation: boolean;
4920
- isExcluded: boolean;
4921
- } | undefined;
4922
- bp_5873_live_preview_postpurchase?: {
4923
- key: string;
4924
- value: string;
4925
- isControl: boolean;
4926
- isVariation: boolean;
4927
- isExcluded: boolean;
4928
- } | undefined;
4929
4901
  };
4930
4902
  isSubsequentPublish: boolean;
4931
4903
  isContextualUpgradeModalVisible: boolean;
@@ -5001,20 +4973,6 @@ declare const _default: import("vue").DefineComponent<{}, {
5001
4973
  isVariation: boolean;
5002
4974
  isExcluded: boolean;
5003
4975
  } | undefined;
5004
- bp_5873_live_preview_prepurchase?: {
5005
- key: string;
5006
- value: string;
5007
- isControl: boolean;
5008
- isVariation: boolean;
5009
- isExcluded: boolean;
5010
- } | undefined;
5011
- bp_5873_live_preview_postpurchase?: {
5012
- key: string;
5013
- value: string;
5014
- isControl: boolean;
5015
- isVariation: boolean;
5016
- isExcluded: boolean;
5017
- } | undefined;
5018
4976
  };
5019
4977
  isSubsequentPublish: boolean;
5020
4978
  isContextualUpgradeModalVisible: boolean;
@@ -4174,20 +4174,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4174
4174
  isVariation: boolean;
4175
4175
  isExcluded: boolean;
4176
4176
  } | undefined;
4177
- bp_5873_live_preview_prepurchase?: {
4178
- key: string;
4179
- value: string;
4180
- isControl: boolean;
4181
- isVariation: boolean;
4182
- isExcluded: boolean;
4183
- } | undefined;
4184
- bp_5873_live_preview_postpurchase?: {
4185
- key: string;
4186
- value: string;
4187
- isControl: boolean;
4188
- isVariation: boolean;
4189
- isExcluded: boolean;
4190
- } | undefined;
4191
4177
  };
4192
4178
  isSubsequentPublish: boolean;
4193
4179
  isContextualUpgradeModalVisible: boolean;
@@ -4263,20 +4249,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4263
4249
  isVariation: boolean;
4264
4250
  isExcluded: boolean;
4265
4251
  } | undefined;
4266
- bp_5873_live_preview_prepurchase?: {
4267
- key: string;
4268
- value: string;
4269
- isControl: boolean;
4270
- isVariation: boolean;
4271
- isExcluded: boolean;
4272
- } | undefined;
4273
- bp_5873_live_preview_postpurchase?: {
4274
- key: string;
4275
- value: string;
4276
- isControl: boolean;
4277
- isVariation: boolean;
4278
- isExcluded: boolean;
4279
- } | undefined;
4280
4252
  };
4281
4253
  isSubsequentPublish: boolean;
4282
4254
  isContextualUpgradeModalVisible: boolean;
@@ -4352,20 +4324,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4352
4324
  isVariation: boolean;
4353
4325
  isExcluded: boolean;
4354
4326
  } | undefined;
4355
- bp_5873_live_preview_prepurchase?: {
4356
- key: string;
4357
- value: string;
4358
- isControl: boolean;
4359
- isVariation: boolean;
4360
- isExcluded: boolean;
4361
- } | undefined;
4362
- bp_5873_live_preview_postpurchase?: {
4363
- key: string;
4364
- value: string;
4365
- isControl: boolean;
4366
- isVariation: boolean;
4367
- isExcluded: boolean;
4368
- } | undefined;
4369
4327
  };
4370
4328
  isSubsequentPublish: boolean;
4371
4329
  isContextualUpgradeModalVisible: boolean;
@@ -70,20 +70,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
70
70
  isVariation: boolean;
71
71
  isExcluded: boolean;
72
72
  } | undefined;
73
- bp_5873_live_preview_prepurchase?: {
74
- key: string;
75
- value: string;
76
- isControl: boolean;
77
- isVariation: boolean;
78
- isExcluded: boolean;
79
- } | undefined;
80
- bp_5873_live_preview_postpurchase?: {
81
- key: string;
82
- value: string;
83
- isControl: boolean;
84
- isVariation: boolean;
85
- isExcluded: boolean;
86
- } | undefined;
87
73
  }>;
88
74
  brandPageType: import("vue").ComputedRef<"default" | "brandSite" | "brandContact">;
89
75
  isSubsequentPublish: import("vue").ComputedRef<boolean>;
@@ -301,20 +287,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
301
287
  isVariation: boolean;
302
288
  isExcluded: boolean;
303
289
  } | undefined;
304
- bp_5873_live_preview_prepurchase?: {
305
- key: string;
306
- value: string;
307
- isControl: boolean;
308
- isVariation: boolean;
309
- isExcluded: boolean;
310
- } | undefined;
311
- bp_5873_live_preview_postpurchase?: {
312
- key: string;
313
- value: string;
314
- isControl: boolean;
315
- isVariation: boolean;
316
- isExcluded: boolean;
317
- } | undefined;
318
290
  };
319
291
  isSubsequentPublish: boolean;
320
292
  isContextualUpgradeModalVisible: boolean;
@@ -390,20 +362,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
390
362
  isVariation: boolean;
391
363
  isExcluded: boolean;
392
364
  } | undefined;
393
- bp_5873_live_preview_prepurchase?: {
394
- key: string;
395
- value: string;
396
- isControl: boolean;
397
- isVariation: boolean;
398
- isExcluded: boolean;
399
- } | undefined;
400
- bp_5873_live_preview_postpurchase?: {
401
- key: string;
402
- value: string;
403
- isControl: boolean;
404
- isVariation: boolean;
405
- isExcluded: boolean;
406
- } | undefined;
407
365
  };
408
366
  isSubsequentPublish: boolean;
409
367
  isContextualUpgradeModalVisible: boolean;
@@ -479,20 +437,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
479
437
  isVariation: boolean;
480
438
  isExcluded: boolean;
481
439
  } | undefined;
482
- bp_5873_live_preview_prepurchase?: {
483
- key: string;
484
- value: string;
485
- isControl: boolean;
486
- isVariation: boolean;
487
- isExcluded: boolean;
488
- } | undefined;
489
- bp_5873_live_preview_postpurchase?: {
490
- key: string;
491
- value: string;
492
- isControl: boolean;
493
- isVariation: boolean;
494
- isExcluded: boolean;
495
- } | undefined;
496
440
  };
497
441
  isSubsequentPublish: boolean;
498
442
  isContextualUpgradeModalVisible: boolean;
@@ -84,20 +84,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
84
84
  isVariation: boolean;
85
85
  isExcluded: boolean;
86
86
  } | undefined;
87
- bp_5873_live_preview_prepurchase?: {
88
- key: string;
89
- value: string;
90
- isControl: boolean;
91
- isVariation: boolean;
92
- isExcluded: boolean;
93
- } | undefined;
94
- bp_5873_live_preview_postpurchase?: {
95
- key: string;
96
- value: string;
97
- isControl: boolean;
98
- isVariation: boolean;
99
- isExcluded: boolean;
100
- } | undefined;
101
87
  };
102
88
  isSubsequentPublish: boolean;
103
89
  isContextualUpgradeModalVisible: boolean;
@@ -173,20 +159,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
173
159
  isVariation: boolean;
174
160
  isExcluded: boolean;
175
161
  } | undefined;
176
- bp_5873_live_preview_prepurchase?: {
177
- key: string;
178
- value: string;
179
- isControl: boolean;
180
- isVariation: boolean;
181
- isExcluded: boolean;
182
- } | undefined;
183
- bp_5873_live_preview_postpurchase?: {
184
- key: string;
185
- value: string;
186
- isControl: boolean;
187
- isVariation: boolean;
188
- isExcluded: boolean;
189
- } | undefined;
190
162
  };
191
163
  isSubsequentPublish: boolean;
192
164
  isContextualUpgradeModalVisible: boolean;
@@ -262,20 +234,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
262
234
  isVariation: boolean;
263
235
  isExcluded: boolean;
264
236
  } | undefined;
265
- bp_5873_live_preview_prepurchase?: {
266
- key: string;
267
- value: string;
268
- isControl: boolean;
269
- isVariation: boolean;
270
- isExcluded: boolean;
271
- } | undefined;
272
- bp_5873_live_preview_postpurchase?: {
273
- key: string;
274
- value: string;
275
- isControl: boolean;
276
- isVariation: boolean;
277
- isExcluded: boolean;
278
- } | undefined;
279
237
  };
280
238
  isSubsequentPublish: boolean;
281
239
  isContextualUpgradeModalVisible: boolean;
@@ -592,20 +592,6 @@ declare const _default: import("vue").DefineComponent<{}, {
592
592
  isVariation: boolean;
593
593
  isExcluded: boolean;
594
594
  } | undefined;
595
- bp_5873_live_preview_prepurchase?: {
596
- key: string;
597
- value: string;
598
- isControl: boolean;
599
- isVariation: boolean;
600
- isExcluded: boolean;
601
- } | undefined;
602
- bp_5873_live_preview_postpurchase?: {
603
- key: string;
604
- value: string;
605
- isControl: boolean;
606
- isVariation: boolean;
607
- isExcluded: boolean;
608
- } | undefined;
609
595
  };
610
596
  isSubsequentPublish: boolean;
611
597
  isContextualUpgradeModalVisible: boolean;
@@ -681,20 +667,6 @@ declare const _default: import("vue").DefineComponent<{}, {
681
667
  isVariation: boolean;
682
668
  isExcluded: boolean;
683
669
  } | undefined;
684
- bp_5873_live_preview_prepurchase?: {
685
- key: string;
686
- value: string;
687
- isControl: boolean;
688
- isVariation: boolean;
689
- isExcluded: boolean;
690
- } | undefined;
691
- bp_5873_live_preview_postpurchase?: {
692
- key: string;
693
- value: string;
694
- isControl: boolean;
695
- isVariation: boolean;
696
- isExcluded: boolean;
697
- } | undefined;
698
670
  };
699
671
  isSubsequentPublish: boolean;
700
672
  isContextualUpgradeModalVisible: boolean;
@@ -770,20 +742,6 @@ declare const _default: import("vue").DefineComponent<{}, {
770
742
  isVariation: boolean;
771
743
  isExcluded: boolean;
772
744
  } | undefined;
773
- bp_5873_live_preview_prepurchase?: {
774
- key: string;
775
- value: string;
776
- isControl: boolean;
777
- isVariation: boolean;
778
- isExcluded: boolean;
779
- } | undefined;
780
- bp_5873_live_preview_postpurchase?: {
781
- key: string;
782
- value: string;
783
- isControl: boolean;
784
- isVariation: boolean;
785
- isExcluded: boolean;
786
- } | undefined;
787
745
  };
788
746
  isSubsequentPublish: boolean;
789
747
  isContextualUpgradeModalVisible: boolean;
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.2.2",
4
+ "version": "6.2.3",
5
5
  "author": "Design.com Eng",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -48,17 +48,10 @@ export interface AbTestResult {
48
48
 
49
49
  const AB_TEST_KEYS = {
50
50
  BP_3926_FREEMIUM_WATERMARK: 'bc-bp-3926-freemium-cta-in-website-editor',
51
- // Two separate live-preview experiments — bc-net sends only the one for the
52
- // current purchase state, and a user's value on each side is independent
53
- // (BP-5873). Keys must match `CampaignNames.LivePreview*Test` in bc-net.
54
- BP_5873_LIVE_PREVIEW_PREPURCHASE: 'bc-bp-5873-live-preview-prepurchase',
55
- BP_5873_LIVE_PREVIEW_POSTPURCHASE: 'bc-bp-5873-live-preview-postpurchase',
56
51
  };
57
52
 
58
53
  export interface AbTest {
59
54
  bp_3926_freemium_watermark?: AbTestResult;
60
- bp_5873_live_preview_prepurchase?: AbTestResult;
61
- bp_5873_live_preview_postpurchase?: AbTestResult;
62
55
  }
63
56
 
64
57
  export const MEDIA_SIZES = {
@@ -139,21 +132,5 @@ export const getAbTestResults = (abtestKeyValues: AbTest): AbTest => {
139
132
  );
140
133
  }
141
134
 
142
- // AB Test for BP-5873 - Live preview (pre- and post-purchase run separately)
143
-
144
- if (abtestKeyValues[AB_TEST_KEYS.BP_5873_LIVE_PREVIEW_PREPURCHASE]) {
145
- abTests.bp_5873_live_preview_prepurchase = getValueType(
146
- AB_TEST_KEYS.BP_5873_LIVE_PREVIEW_PREPURCHASE,
147
- abtestKeyValues[AB_TEST_KEYS.BP_5873_LIVE_PREVIEW_PREPURCHASE],
148
- );
149
- }
150
-
151
- if (abtestKeyValues[AB_TEST_KEYS.BP_5873_LIVE_PREVIEW_POSTPURCHASE]) {
152
- abTests.bp_5873_live_preview_postpurchase = getValueType(
153
- AB_TEST_KEYS.BP_5873_LIVE_PREVIEW_POSTPURCHASE,
154
- abtestKeyValues[AB_TEST_KEYS.BP_5873_LIVE_PREVIEW_POSTPURCHASE],
155
- );
156
- }
157
-
158
135
  return abTests;
159
136
  };
@@ -17,16 +17,6 @@ export default defineComponent({
17
17
 
18
18
  return {
19
19
  isAdminMaker: computed(() => containerStore.isAdminMaker),
20
- // BP-5873: the Preview button is behind an AB test, and pre/post purchase are
21
- // two separate experiments. Pick the one for the current purchase state — a
22
- // user's value on the other side is independent and must not leak across.
23
- isLivePreviewEnabled: computed(() => {
24
- const experiment = containerStore.isPrePurchase
25
- ? containerStore.abTests.bp_5873_live_preview_prepurchase
26
- : containerStore.abTests.bp_5873_live_preview_postpurchase;
27
-
28
- return !!experiment?.isVariation;
29
- }),
30
20
  isSaving: computed(() => brandPageMakerStore.isSaving),
31
21
  isPublished: computed(() => brandPageMakerStore.isPublished),
32
22
  isPublishButtonEnabled: computed(
@@ -3,31 +3,13 @@ import { createPinia, setActivePinia } from 'pinia';
3
3
  import { shallowMount } from '@vue/test-utils';
4
4
  import ActionBarNavigation from './ActionBarNavigation.vue';
5
5
  import { useBrandPageContainerStore } from '@brand-page-maker/stores';
6
- import { getAbTestResults } from '@brand-page/models/brand-page-context.model';
7
-
8
- // Must match `CampaignNames.LivePreview*` in bc-net. The two experiments share
9
- // one set of variation values — they're told apart by campaign key, not value.
10
- const PREPURCHASE = 'bc-bp-5873-live-preview-prepurchase';
11
- const POSTPURCHASE = 'bc-bp-5873-live-preview-postpurchase';
12
- const VARIATION_1 = 'bp-5873-variation-1';
13
- const CONTROL = 'bp-5873-control';
14
6
 
15
7
  const mountBar = () => shallowMount(ActionBarNavigation);
16
8
 
17
9
  const hasPreviewButton = (wrapper: ReturnType<typeof mountBar>) =>
18
10
  wrapper.find('[data-test-preview-button]').exists();
19
11
 
20
- // The AB value arrives as the raw bc-net campaign string, so go through the real
21
- // parser rather than hand-building an AbTestResult — that's the contract under test.
22
- const setAbTest = (
23
- store: ReturnType<typeof useBrandPageContainerStore>,
24
- key: string,
25
- value: string,
26
- ) => {
27
- store.abTests = getAbTestResults({ [key]: value } as never);
28
- };
29
-
30
- describe('ActionBarNavigation — BP-5873 preview AB test', () => {
12
+ describe('ActionBarNavigation — Preview button', () => {
31
13
  let containerStore: ReturnType<typeof useBrandPageContainerStore>;
32
14
 
33
15
  beforeEach(() => {
@@ -35,39 +17,18 @@ describe('ActionBarNavigation — BP-5873 preview AB test', () => {
35
17
  containerStore = useBrandPageContainerStore();
36
18
  });
37
19
 
38
- test('hides Preview when no AB value has been sent', () => {
39
- expect(hasPreviewButton(mountBar())).toBe(false);
40
- });
41
-
42
- test('post-purchase: shows Preview on variation-1, hides it on control', () => {
43
- containerStore.isPrePurchase = false;
44
-
45
- setAbTest(containerStore, POSTPURCHASE, VARIATION_1);
46
- expect(hasPreviewButton(mountBar())).toBe(true);
47
-
48
- setAbTest(containerStore, POSTPURCHASE, CONTROL);
49
- expect(hasPreviewButton(mountBar())).toBe(false);
50
- });
51
-
52
- test('pre-purchase: shows Preview on variation-1, hides it on control', () => {
53
- containerStore.isPrePurchase = true;
20
+ test.each([
21
+ ['pre-purchase', true],
22
+ ['post-purchase', false],
23
+ ])('shows Preview to the customer %s', (_, isPrePurchase) => {
24
+ containerStore.isPrePurchase = isPrePurchase;
54
25
 
55
- setAbTest(containerStore, PREPURCHASE, VARIATION_1);
56
26
  expect(hasPreviewButton(mountBar())).toBe(true);
57
-
58
- setAbTest(containerStore, PREPURCHASE, CONTROL);
59
- expect(hasPreviewButton(mountBar())).toBe(false);
60
27
  });
61
28
 
62
- // Two separate experiments, so a value on one side must never satisfy the other —
63
- // otherwise a post-purchase variation would leak the button into pre-purchase.
64
- test('the two experiments never read each other', () => {
65
- containerStore.isPrePurchase = true;
66
- setAbTest(containerStore, POSTPURCHASE, VARIATION_1);
67
- expect(hasPreviewButton(mountBar())).toBe(false);
29
+ test('hides Preview in the admin maker', () => {
30
+ containerStore.isAdminMaker = true;
68
31
 
69
- containerStore.isPrePurchase = false;
70
- setAbTest(containerStore, PREPURCHASE, VARIATION_1);
71
32
  expect(hasPreviewButton(mountBar())).toBe(false);
72
33
  });
73
34
 
@@ -75,8 +36,6 @@ describe('ActionBarNavigation — BP-5873 preview AB test', () => {
75
36
  // Save drops out. Preview must be a real column like the rest — while it was content
76
37
  // width, Publish ate the whole remaining row on a published site.
77
38
  test('Preview shares the mobile row equally with the other buttons', () => {
78
- containerStore.isPrePurchase = false;
79
- setAbTest(containerStore, POSTPURCHASE, VARIATION_1);
80
39
  containerStore.brandPageStatus = 'Published';
81
40
 
82
41
  const wrapper = mountBar();
@@ -4,7 +4,7 @@
4
4
  class="tw-flex tw-items-center tw-border-t tw-border-solid tw-border-grayscale-600 tw-h-12 tw-px-2 lg:tw-px-0 lg:tw-h-auto lg:tw-border-none tw-gap-3 lg:tw-gap-5 tw-w-full lg:tw-justify-end tw-box-border"
5
5
  >
6
6
  <Button
7
- v-if="!isAdminMaker && isLivePreviewEnabled"
7
+ v-if="!isAdminMaker"
8
8
  :label="constantsTr('previewDisplayName')"
9
9
  variant="no-border"
10
10
  :white="true"