@designcrowd/library.brand-page 6.1.6-use-isadminmaker-2 → 6.1.6

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 (159) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-CPLDYp5f.js → CreatedOnBrandCrowd-de-de-COw1kYDh.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-Br3HqLLr.js → CreatedOnBrandCrowd-en-us-JRm1p0it.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-DwkIQVgN.js → CreatedOnBrandCrowd-es-es-D-G9uI6b.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-DqeI8mF_.js → CreatedOnBrandCrowd-fr-ca-DQCScohj.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-DqeI8mF_.js → CreatedOnBrandCrowd-fr-fr-DQCScohj.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-bvgq_CN8.js → CreatedOnBrandCrowd-pt-br-4RazAfO7.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-bvgq_CN8.js → CreatedOnBrandCrowd-pt-pt-4RazAfO7.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-nT3MnRXy.js → CreatedOnDcom-de-de-DqvLTbhq.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-D2TYrEzJ.js → CreatedOnDcom-en-us-DG1X0ero.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-Q-5tnP12.js → CreatedOnDcom-es-es-BxHAIikP.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-txkwqCzm.js → CreatedOnDcom-fr-ca-BGXoViAC.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-CUnJXLgr.js → CreatedOnDcom-fr-fr-CsvmeK2T.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-7XAwvP9H.js → CreatedOnDcom-pt-br-DvWm7MjO.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-DjhLiioZ.js → CreatedOnDcom-pt-pt-Bhz2YEVP.js} +1 -1
  15. package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.d.ts +1 -1
  16. package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.js +1 -1
  17. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +4 -1
  18. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.js +1 -1
  19. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.js +6 -6
  20. package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/store-fixture.d.ts +1 -1
  21. package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +4 -1
  22. package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.js +2 -2
  23. package/lib/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.d.ts +1 -1
  24. package/lib/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.js +1 -1
  25. package/lib/src/brand-page-maker/components/navigation/Navigation.mixin.d.ts +3 -3
  26. package/lib/src/brand-page-maker/components/navigation/Navigation.mixin.js +1 -1
  27. package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.d.ts +3 -0
  28. package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +3 -0
  29. package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +3 -0
  30. package/lib/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.mixin.d.ts +3 -0
  31. package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +4 -1
  32. package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.js +6 -6
  33. package/lib/src/brand-page-maker/components/upgrade-to-premium-button/UpgradeToPremiumButton.mixin.d.ts +3 -0
  34. package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.d.ts +6 -1
  35. package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.js +6 -0
  36. package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +6 -0
  37. package/lib/src/clients/fabric-render-client.d.ts +1 -0
  38. package/lib/src/css/library.brand-page-brandCrowd.min.css +57 -57
  39. package/lib/src/css/library.brand-page-brandPage.min.css +57 -57
  40. package/lib/src/css/library.brand-page-designCom.min.css +57 -57
  41. package/lib/src/css/library.brand-page-preview.min.css +57 -57
  42. package/lib/src/index.mjs +1 -1
  43. package/lib/src/{lib-dewphkuW.js → lib-Bg2K2ze6.js} +225 -213
  44. package/lib/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.d.ts +1 -1
  45. package/lib/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.js +1 -1
  46. package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +1 -1
  47. package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.js +1 -1
  48. package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +1 -1
  49. package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.js +2 -2
  50. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +1 -1
  51. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.js +2 -2
  52. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +1 -1
  53. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.js +3 -3
  54. package/lib/src/shared/content-settings/components/draggable-item-list/DraggableItemList.mixin.d.ts +2 -2
  55. package/lib/src/shared/content-settings/components/draggable-item-list/DraggableItemList.mixin.js +1 -1
  56. package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.d.ts +1 -1
  57. package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.js +2 -2
  58. package/lib/src/shared/content-settings/components/images-field/ImagesField.mixin.d.ts +2 -2
  59. package/lib/src/shared/content-settings/components/images-field/ImagesField.mixin.js +1 -1
  60. package/lib/src/shared/content-settings/components/links-field/LinksField.mixin.d.ts +2 -2
  61. package/lib/src/shared/content-settings/components/links-field/LinksField.mixin.js +1 -1
  62. package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.d.ts +3 -0
  63. package/lib/src/shared/content-settings/components/shape-field/ShapeField.mixin.d.ts +2 -2
  64. package/lib/src/shared/content-settings/components/shape-field/ShapeField.mixin.js +1 -1
  65. package/lib/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.mixin.d.ts +2 -2
  66. package/lib/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.mixin.js +1 -1
  67. package/lib/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.d.ts +2 -2
  68. package/lib/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.js +1 -1
  69. package/lib/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.d.ts +2 -2
  70. package/lib/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.js +1 -1
  71. package/lib/src/shared/logo-settings/components/EditLogoSettings.mixin.d.ts +1 -0
  72. package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +4 -0
  73. package/lib/src/shared/logo-settings/store/editable-logo-store.d.ts +2 -0
  74. package/lib/src/shared/logo-settings/store/editable-logo-store.js +20 -1
  75. package/lib/src/shared/my-uploads/MyUploads.mixin.d.ts +1 -1
  76. package/lib/src/shared/my-uploads/MyUploads.mixin.js +1 -1
  77. package/lib/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.d.ts +2 -2
  78. package/lib/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.js +1 -1
  79. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +4 -1
  80. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.js +1 -1
  81. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +6 -2
  82. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.js +1 -1
  83. package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +3 -0
  84. package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +4 -1
  85. package/lib/src/shared/side-bar/components/SideBar.mixin.js +3 -3
  86. package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +4 -1
  87. package/lib/src/shared/style-settings/components/StyleSettings.mixin.js +2 -2
  88. package/package.json +1 -1
  89. package/src/brand-page-maker/components/action-bar/ActionBar.mixin.ts +1 -1
  90. package/src/brand-page-maker/components/action-bar/ActionBar.vue +1 -1
  91. package/src/brand-page-maker/components/action-bar/ActionBarNavigation.vue +5 -5
  92. package/src/brand-page-maker/components/admin-background-settings/AdminBackgroundSettings.vue +1 -1
  93. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.ts +1 -1
  94. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.ts +7 -7
  95. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.vue +1 -1
  96. package/src/brand-page-maker/components/brand-page-maker/__fixtures__/store-fixture.ts +1 -1
  97. package/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.ts +2 -2
  98. package/src/brand-page-maker/components/brandpage-settings/BrandPageSettings.vue +3 -3
  99. package/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.ts +1 -1
  100. package/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.vue +1 -1
  101. package/src/brand-page-maker/components/navigation/Navigation.mixin.ts +1 -1
  102. package/src/brand-page-maker/components/navigation/Navigation.vue +3 -3
  103. package/src/brand-page-maker/components/rich-text-editor/RichTextEditor.vue +11 -11
  104. package/src/brand-page-maker/components/save-contact/SaveContact.vue +2 -2
  105. package/src/brand-page-maker/components/shop/ReplaceImageSettingsForShop.vue +1 -1
  106. package/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.ts +6 -6
  107. package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.initialise.test.ts +53 -0
  108. package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.ts +20 -1
  109. package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +7 -0
  110. package/src/clients/fabric-render-client.ts +5 -0
  111. package/src/shared/background-settings/components/BackgroundSettings.vue +7 -7
  112. package/src/shared/background-settings/components/MultiBackgroundShapes.vue +5 -5
  113. package/src/shared/background-settings/components/ReplaceImageSettingsForBackgroundSettings.vue +2 -2
  114. package/src/shared/background-settings/components/SingleBackgroundShape.vue +3 -3
  115. package/src/shared/background-settings/components/background-color/BackgroundColorSettings.vue +4 -4
  116. package/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.ts +1 -1
  117. package/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.vue +1 -1
  118. package/src/shared/content-settings/components/button-configuration-field/ButtonConfigurationField.vue +2 -2
  119. package/src/shared/content-settings/components/color-field/ColorField.vue +6 -6
  120. package/src/shared/content-settings/components/color-replacements-field/ColorReplacementsField.vue +9 -7
  121. package/src/shared/content-settings/components/content-settings/ContentSettings.mixin.ts +1 -1
  122. package/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.ts +2 -2
  123. package/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.vue +1 -1
  124. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.ts +2 -2
  125. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.ts +3 -3
  126. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.vue +1 -1
  127. package/src/shared/content-settings/components/draggable-item-list/DraggableItemList.mixin.ts +1 -1
  128. package/src/shared/content-settings/components/draggable-item-list/DraggableItemList.vue +1 -1
  129. package/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.ts +2 -2
  130. package/src/shared/content-settings/components/images-field/ImagesField.mixin.ts +1 -1
  131. package/src/shared/content-settings/components/images-field/ImagesField.vue +1 -1
  132. package/src/shared/content-settings/components/links-field/LinksField.mixin.ts +1 -1
  133. package/src/shared/content-settings/components/links-field/LinksField.vue +1 -1
  134. package/src/shared/content-settings/components/replace-image-base-settings/ReplaceImageBaseSettings.vue +2 -2
  135. package/src/shared/content-settings/components/shape-field/ShapeField.mixin.ts +1 -1
  136. package/src/shared/content-settings/components/shape-field/ShapeField.vue +1 -1
  137. package/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.mixin.ts +1 -1
  138. package/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.vue +5 -5
  139. package/src/shared/content-settings/components/text-image-field/TextImageField.vue +7 -7
  140. package/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.test.ts +1 -1
  141. package/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.ts +1 -1
  142. package/src/shared/content-settings/components/text-items-field/TextItemsField.vue +2 -2
  143. package/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.ts +1 -1
  144. package/src/shared/content-settings/components/text-style-field/TextStyleField.vue +2 -2
  145. package/src/shared/logo-settings/store/editable-logo-store.test.ts +90 -0
  146. package/src/shared/logo-settings/store/editable-logo-store.ts +28 -1
  147. package/src/shared/my-uploads/MyUploads.mixin.ts +1 -1
  148. package/src/shared/my-uploads/MyUploads.vue +1 -1
  149. package/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.ts +1 -1
  150. package/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.vue +12 -9
  151. package/src/shared/page-settings/components/page-settings/PageSettings.mixin.ts +1 -1
  152. package/src/shared/page-settings/components/page-settings/PageSettings.vue +3 -3
  153. package/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.ts +1 -1
  154. package/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.vue +4 -4
  155. package/src/shared/shape-library/ShapeLibrary.vue +9 -9
  156. package/src/shared/side-bar/components/SideBar.mixin.ts +3 -3
  157. package/src/shared/style-settings/components/StyleSettings.mixin.ts +2 -2
  158. package/src/shared/style-settings/components/StyleSettings.vue +29 -23
  159. package/src/shared/style-settings/components/text-style-options-settings-with-state/TextStyleOptionsSettingsWithState.vue +2 -2
@@ -11,7 +11,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
11
11
  required: false;
12
12
  default: () => never[];
13
13
  };
14
- isAdmin: {
14
+ isAdminMaker: {
15
15
  type: BooleanConstructor;
16
16
  required: true;
17
17
  };
@@ -3979,6 +3979,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3979
3979
  triggerSaveSuccessMessage: boolean;
3980
3980
  isDesignCom: boolean;
3981
3981
  isPrePurchase: boolean;
3982
+ prePurchaseBrandKitLogoDraftToken: string;
3982
3983
  makerFonts: any[];
3983
3984
  eventButtonLocation?: string | undefined;
3984
3985
  websiteUpsellModalViewModel?: any;
@@ -4074,6 +4075,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4074
4075
  triggerSaveSuccessMessage: boolean;
4075
4076
  isDesignCom: boolean;
4076
4077
  isPrePurchase: boolean;
4078
+ prePurchaseBrandKitLogoDraftToken: string;
4077
4079
  makerFonts: any[];
4078
4080
  eventButtonLocation?: string | undefined;
4079
4081
  websiteUpsellModalViewModel?: any;
@@ -4169,6 +4171,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4169
4171
  triggerSaveSuccessMessage: boolean;
4170
4172
  isDesignCom: boolean;
4171
4173
  isPrePurchase: boolean;
4174
+ prePurchaseBrandKitLogoDraftToken: string;
4172
4175
  makerFonts: any[];
4173
4176
  eventButtonLocation?: string | undefined;
4174
4177
  websiteUpsellModalViewModel?: any;
@@ -4335,6 +4338,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4335
4338
  getLogoPrimaryText: (state: {
4336
4339
  enableEditMode: boolean;
4337
4340
  logoDraftToken: string;
4341
+ prePurchaseBrandKitLogoDraftToken: string;
4338
4342
  logoEdits: {
4339
4343
  backgroundObject: {
4340
4344
  id: string;
@@ -4721,7 +4725,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4721
4725
  required: false;
4722
4726
  default: () => never[];
4723
4727
  };
4724
- isAdmin: {
4728
+ isAdminMaker: {
4725
4729
  type: BooleanConstructor;
4726
4730
  required: true;
4727
4731
  };
@@ -29,7 +29,7 @@ export default defineComponent({
29
29
  required: false,
30
30
  default: () => [],
31
31
  },
32
- isAdmin: {
32
+ isAdminMaker: {
33
33
  type: Boolean,
34
34
  required: true,
35
35
  },
@@ -294,6 +294,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
294
294
  triggerSaveSuccessMessage: boolean;
295
295
  isDesignCom: boolean;
296
296
  isPrePurchase: boolean;
297
+ prePurchaseBrandKitLogoDraftToken: string;
297
298
  makerFonts: any[];
298
299
  eventButtonLocation?: string | undefined;
299
300
  websiteUpsellModalViewModel?: any;
@@ -389,6 +390,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
389
390
  triggerSaveSuccessMessage: boolean;
390
391
  isDesignCom: boolean;
391
392
  isPrePurchase: boolean;
393
+ prePurchaseBrandKitLogoDraftToken: string;
392
394
  makerFonts: any[];
393
395
  eventButtonLocation?: string | undefined;
394
396
  websiteUpsellModalViewModel?: any;
@@ -484,6 +486,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
484
486
  triggerSaveSuccessMessage: boolean;
485
487
  isDesignCom: boolean;
486
488
  isPrePurchase: boolean;
489
+ prePurchaseBrandKitLogoDraftToken: string;
487
490
  makerFonts: any[];
488
491
  eventButtonLocation?: string | undefined;
489
492
  websiteUpsellModalViewModel?: any;
@@ -71,6 +71,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
71
71
  triggerSaveSuccessMessage: boolean;
72
72
  isDesignCom: boolean;
73
73
  isPrePurchase: boolean;
74
+ prePurchaseBrandKitLogoDraftToken: string;
74
75
  makerFonts: any[];
75
76
  eventButtonLocation?: string | undefined;
76
77
  websiteUpsellModalViewModel?: any;
@@ -166,6 +167,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
166
167
  triggerSaveSuccessMessage: boolean;
167
168
  isDesignCom: boolean;
168
169
  isPrePurchase: boolean;
170
+ prePurchaseBrandKitLogoDraftToken: string;
169
171
  makerFonts: any[];
170
172
  eventButtonLocation?: string | undefined;
171
173
  websiteUpsellModalViewModel?: any;
@@ -261,6 +263,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
261
263
  triggerSaveSuccessMessage: boolean;
262
264
  isDesignCom: boolean;
263
265
  isPrePurchase: boolean;
266
+ prePurchaseBrandKitLogoDraftToken: string;
264
267
  makerFonts: any[];
265
268
  eventButtonLocation?: string | undefined;
266
269
  websiteUpsellModalViewModel?: any;
@@ -418,7 +421,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
418
421
  isPrepurchaseOnly?: boolean | undefined;
419
422
  }[]>;
420
423
  selectedTabName: import("vue").ComputedRef<string>;
421
- isAdmin: import("vue").ComputedRef<boolean>;
424
+ isAdminMaker: import("vue").ComputedRef<boolean>;
422
425
  contentSettingsMode: import("vue").ComputedRef<"images" | "add" | "pages" | "edit" | "focusedContentItem">;
423
426
  contentSettingsSelectedItemId: import("vue").ComputedRef<string | null>;
424
427
  sideBarStore: import("pinia").Store<"uiSideBar", import("../store").SideBarState, {}, {
@@ -30,7 +30,7 @@ export default defineComponent({
30
30
  brandPageContainerStore,
31
31
  tabs: computed(() => sideBarStore.tabs),
32
32
  selectedTabName: computed(() => sideBarStore.selectedTabName),
33
- isAdmin: computed(() => brandPageContainerStore.isAdminMaker),
33
+ isAdminMaker: computed(() => brandPageContainerStore.isAdminMaker),
34
34
  contentSettingsMode: computed(() => contentSettingsStore.mode),
35
35
  contentSettingsSelectedItemId: computed(() => contentSettingsStore.selectedItemId),
36
36
  sideBarStore,
@@ -76,10 +76,10 @@ export default defineComponent({
76
76
  if (this.isBrandPageLoaded === false && this.isPrePurchase === false) {
77
77
  return false;
78
78
  }
79
- if (this.isAdmin && tab.isDisabledForAdmin) {
79
+ if (this.isAdminMaker && tab.isDisabledForAdmin) {
80
80
  return false;
81
81
  }
82
- if (!this.isAdmin && tab.isEnabledForAdminOnly === true) {
82
+ if (!this.isAdminMaker && tab.isEnabledForAdminOnly === true) {
83
83
  return false;
84
84
  }
85
85
  if (this.isPrepurchase && tab.isPrepurchaseOnly === true) {
@@ -355,7 +355,7 @@ declare const _default: import("vue").DefineComponent<{}, {
355
355
  doesLogoHaveBackground: import("vue").ComputedRef<boolean>;
356
356
  toggleLogoBackground: import("vue").ComputedRef<() => Promise<any>>;
357
357
  isDefaultTextColorRequired: import("vue").ComputedRef<boolean>;
358
- isAdmin: import("vue").ComputedRef<boolean>;
358
+ isAdminMaker: import("vue").ComputedRef<boolean>;
359
359
  brandPageType: import("vue").ComputedRef<"default" | "brandSite" | "brandContact">;
360
360
  showBrandCrowdLogo: import("vue").ComputedRef<boolean>;
361
361
  isDesignCom: import("vue").ComputedRef<boolean>;
@@ -678,6 +678,7 @@ declare const _default: import("vue").DefineComponent<{}, {
678
678
  triggerSaveSuccessMessage: boolean;
679
679
  isDesignCom: boolean;
680
680
  isPrePurchase: boolean;
681
+ prePurchaseBrandKitLogoDraftToken: string;
681
682
  makerFonts: any[];
682
683
  eventButtonLocation?: string | undefined;
683
684
  websiteUpsellModalViewModel?: any;
@@ -773,6 +774,7 @@ declare const _default: import("vue").DefineComponent<{}, {
773
774
  triggerSaveSuccessMessage: boolean;
774
775
  isDesignCom: boolean;
775
776
  isPrePurchase: boolean;
777
+ prePurchaseBrandKitLogoDraftToken: string;
776
778
  makerFonts: any[];
777
779
  eventButtonLocation?: string | undefined;
778
780
  websiteUpsellModalViewModel?: any;
@@ -868,6 +870,7 @@ declare const _default: import("vue").DefineComponent<{}, {
868
870
  triggerSaveSuccessMessage: boolean;
869
871
  isDesignCom: boolean;
870
872
  isPrePurchase: boolean;
873
+ prePurchaseBrandKitLogoDraftToken: string;
871
874
  makerFonts: any[];
872
875
  eventButtonLocation?: string | undefined;
873
876
  websiteUpsellModalViewModel?: any;
@@ -36,7 +36,7 @@ export default defineComponent({
36
36
  doesLogoHaveBackground: computed(() => styleSettingsStore.doesLogoHaveBackground),
37
37
  toggleLogoBackground: computed(() => styleSettingsStore.toggleLogoBackground),
38
38
  isDefaultTextColorRequired: computed(() => uiStore.isDefaultTextColorRequired),
39
- isAdmin: computed(() => brandPageContainerStore.isAdminMaker),
39
+ isAdminMaker: computed(() => brandPageContainerStore.isAdminMaker),
40
40
  brandPageType: computed(() => brandPageMakerStore.brandPageType),
41
41
  showBrandCrowdLogo: computed(() => brandPageMakerStore.showBrandCrowdLogo),
42
42
  isDesignCom: computed(() => brandPageContainerStore.isDesignCom),
@@ -104,7 +104,7 @@ export default defineComponent({
104
104
  },
105
105
  },
106
106
  created() {
107
- if (this.isAdmin) {
107
+ if (this.isAdminMaker) {
108
108
  // check if the buttons styles are color matched
109
109
  Object.keys(this.isColorMatch).forEach((k) => {
110
110
  this.isColorMatch[k] =
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.6-use-isadminmaker-2",
4
+ "version": "6.1.6",
5
5
  "author": "Design.com Eng",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -16,7 +16,7 @@ export default defineComponent({
16
16
  const containerStore = useBrandPageContainerStore();
17
17
 
18
18
  return {
19
- isAdmin: computed(() => containerStore.isAdminMaker),
19
+ isAdminMaker: computed(() => containerStore.isAdminMaker),
20
20
  // BP-5873: the Preview button is behind an AB test, and pre/post purchase are
21
21
  // two separate experiments. Pick the one for the current purchase state — a
22
22
  // user's value on the other side is independent and must not leak across.
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div
3
- v-if="!isAdmin"
3
+ v-if="!isAdminMaker"
4
4
  class="tw-hidden lg:tw-flex tw-p-4 tw-w-full tw-bg-black lg:tw-bg-white tw-border-t tw-border-b tw-border-grayscale-500 tw-border-solid tw-items-center tw-justify-center tw-gap-5 tw-box-border"
5
5
  >
6
6
  <Button
@@ -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="!isAdmin && isLivePreviewEnabled"
7
+ v-if="!isAdminMaker && isLivePreviewEnabled"
8
8
  :label="constantsTr('previewDisplayName')"
9
9
  variant="no-border"
10
10
  :white="true"
@@ -19,9 +19,9 @@
19
19
  <Button
20
20
  v-if="!isPublished"
21
21
  :label="
22
- isAdmin ? actionBarTr('saveTemplate') : actionBarTr('saveProgress')
22
+ isAdminMaker ? actionBarTr('saveTemplate') : actionBarTr('saveProgress')
23
23
  "
24
- :variant="isAdmin ? 'primary' : 'outline'"
24
+ :variant="isAdminMaker ? 'primary' : 'outline'"
25
25
  :disabled="isSaving"
26
26
  :white="true"
27
27
  size="small-medium"
@@ -30,7 +30,7 @@
30
30
  @on-click.stop="saveBrandPage"
31
31
  />
32
32
  <Button
33
- v-if="isBrandContact && isPublished && !isAdmin"
33
+ v-if="isBrandContact && isPublished && !isAdminMaker"
34
34
  :label="actionBarTr('createTeamCards')"
35
35
  variant="gray"
36
36
  size="small-medium"
@@ -40,7 +40,7 @@
40
40
  @on-click.stop="createTeamCards(true)"
41
41
  />
42
42
  <Button
43
- v-if="!isAdmin"
43
+ v-if="!isAdminMaker"
44
44
  :label="actionBarTr('publish')"
45
45
  :variant="isPublishButtonEnabled ? 'success' : 'gray'"
46
46
  :disabled="!isPublishButtonEnabled"
@@ -4,7 +4,7 @@
4
4
  <script>
5
5
  import BackgroundSettings from '@shared/background-settings/components/BackgroundSettings.vue';
6
6
 
7
- // The shared BackgroundSettings panel reads `isAdmin` from the user store and renders
7
+ // The shared BackgroundSettings panel reads `isAdminMaker` from the user store and renders
8
8
  // the admin controls (colour-match, add/placement) inline, so the admin tab is just a
9
9
  // thin wrapper. The old slot-based admin UI was removed when BackgroundSettings stopped
10
10
  // exposing #pre/#pre-shape/#post-shape slots (BP-4024).
@@ -152,7 +152,7 @@ export default defineComponent({
152
152
  backButtonLabel: computed(() => containerStore.backButtonLabel),
153
153
  isDesignCom: computed(() => containerStore.isDesignCom),
154
154
  selectedTabName: computed(() => sideBarStore.selectedTabName),
155
- isAdmin: computed(() => containerStore.isAdminMaker),
155
+ isAdminMaker: computed(() => containerStore.isAdminMaker),
156
156
  contentErrorCount: computed(() => contentSettingsStore.contentErrorCount),
157
157
  mode: computed(() => contentSettingsStore.mode),
158
158
  brandPageMakerStore,
@@ -111,7 +111,7 @@ const InitialiseMakerStores = (options: {
111
111
  prepurchase?: {};
112
112
  postpurchase?: {};
113
113
  isDesignCom?: boolean;
114
- isAdmin?: boolean;
114
+ isAdminMaker?: boolean;
115
115
  }) => {
116
116
  const isPrePurchase = !!options.prepurchase;
117
117
 
@@ -274,12 +274,12 @@ const InitialiseMakerStores = (options: {
274
274
  });
275
275
 
276
276
  userStore.setUserState({
277
- isAdmin: options.isAdmin,
277
+ isAdmin: options.isAdminMaker,
278
278
  hasPremiumSubscription: false,
279
279
  brandPageCommissionPercentage: 0.1,
280
280
  });
281
281
 
282
- brandPageContainerStore.isAdminMaker = options.isAdmin ?? false;
282
+ brandPageContainerStore.isAdminMaker = options.isAdminMaker ?? false;
283
283
  };
284
284
 
285
285
  const FABRIC_RENDER_BASE_URL = 'https://localhost:6006/';
@@ -485,7 +485,7 @@ SampleBanner.story = {
485
485
  };
486
486
 
487
487
  export const SamplePersonalised = (): any => {
488
- InitialiseMakerStores({ isAdmin: true });
488
+ InitialiseMakerStores({ isAdminMaker: true });
489
489
 
490
490
  return defineComponent({
491
491
  components: {
@@ -511,7 +511,7 @@ export const SamplePersonalised = (): any => {
511
511
  template: `
512
512
  <BrandPageMaker :view-model="viewModel"/>
513
513
  `,
514
- pinia: setupStoryPinia({ isAdmin: true }),
514
+ pinia: setupStoryPinia({ isAdminMaker: true }),
515
515
  });
516
516
  };
517
517
 
@@ -1364,7 +1364,7 @@ export const SampleNoUserMedia = (): any => {
1364
1364
  };
1365
1365
 
1366
1366
  export const SampleAdminMode = (): any => {
1367
- InitialiseMakerStores({ isAdmin: true });
1367
+ InitialiseMakerStores({ isAdminMaker: true });
1368
1368
 
1369
1369
  const pinia = setupStoryPinia();
1370
1370
 
@@ -1412,7 +1412,7 @@ export const SampleAdminModeBrandSite: Story = {
1412
1412
  name: 'Sample (admin mode brandsite1)',
1413
1413
  render: () => ({
1414
1414
  setup() {
1415
- InitialiseMakerStores({ isAdmin: true });
1415
+ InitialiseMakerStores({ isAdminMaker: true });
1416
1416
  },
1417
1417
  components: {
1418
1418
  BrandPageMaker,
@@ -5,7 +5,7 @@
5
5
  class="tw-font-sans"
6
6
  >
7
7
  <MakerNavigation
8
- :is-admin="isAdmin"
8
+ :is-admin-maker="isAdminMaker"
9
9
  :is-published="isPublished"
10
10
  :is-saving="isSaving"
11
11
  :brand-crowd-url="brandCrowdUrl"
@@ -9,7 +9,7 @@ export const setupStoryPinia = (
9
9
  customDomain?: CustomDomainModel;
10
10
  designDraftToken?: string;
11
11
  endpoints?: Endpoints;
12
- isAdmin?: boolean;
12
+ isAdminMaker?: boolean;
13
13
  noUserMedia?: boolean;
14
14
  noPaymentConfig?: boolean;
15
15
  disableMock?: boolean;
@@ -75,7 +75,7 @@ export default defineComponent({
75
75
  canUseRichTextEditor: computed(
76
76
  () => brandPageMakerUserStore.features.canUseRichTextEditor,
77
77
  ),
78
- isAdmin: computed(() => brandPageContainerStore.isAdminMaker),
78
+ isAdminMaker: computed(() => brandPageContainerStore.isAdminMaker),
79
79
  logoTheme: computed(() => uiStore.logoTheme),
80
80
  contentSettingsStore,
81
81
  brandPageMakerStore,
@@ -294,7 +294,7 @@ export default defineComponent({
294
294
  ) {
295
295
  let selectedItem = item;
296
296
 
297
- if (this.isAdmin) {
297
+ if (this.isAdminMaker) {
298
298
  const currentItem = this.items.find(
299
299
  (i: { id: string }) => i.id === item.id,
300
300
  );
@@ -140,7 +140,7 @@
140
140
  >
141
141
  <div class="tw-mt-2">
142
142
  <SaveContact
143
- :is-admin="isAdmin"
143
+ :is-admin-maker="isAdminMaker"
144
144
  :is-pre-purchase="isPrePurchase"
145
145
  :is-design-com="isDesignCom"
146
146
  />
@@ -248,7 +248,7 @@ const brandPageViewModel = computed(
248
248
  () => brandPageMakerStore.brandPageViewModel,
249
249
  );
250
250
  const features = computed(() => userStore.features);
251
- const isAdmin = computed(() => containerStore.isAdminMaker);
251
+ const isAdminMaker = computed(() => containerStore.isAdminMaker);
252
252
  const isDesignCom = computed(() => containerStore.isDesignCom);
253
253
  const ogImageUrl = computed(() => brandPageMakerStore.ogImageUrl);
254
254
  const isPublished = computed(() => containerStore.isPublished);
@@ -265,7 +265,7 @@ const data = reactive({
265
265
  });
266
266
 
267
267
  const isPaymentProvidersSectionEnabled = computed((): boolean => {
268
- return !isAdmin.value && features.value.canAddRequestPaymentContents;
268
+ return !isAdminMaker.value && features.value.canAddRequestPaymentContents;
269
269
  });
270
270
 
271
271
  const isAddPaymentProviderButtonEnabled = computed((): boolean => {
@@ -30,7 +30,7 @@ export default defineComponent({
30
30
 
31
31
  return {
32
32
  mode: computed(() => brandPageMakerStore.mode),
33
- isAdmin: computed(() => containerStore.isAdminMaker),
33
+ isAdminMaker: computed(() => containerStore.isAdminMaker),
34
34
  brandPageMakerStore,
35
35
  userStore,
36
36
  };
@@ -4,7 +4,7 @@
4
4
  :section-title="sectionTitle"
5
5
  :media-settings="mediaSettings"
6
6
  :image-extension="mediaExtension"
7
- :is-admin="isAdmin"
7
+ :is-admin-maker="isAdminMaker"
8
8
  :mode="mode"
9
9
  :active-tabs="activeTabs"
10
10
  :media-type="mediaType"
@@ -4,7 +4,7 @@ import { navigationTr } from '@src/composables/useTranslate';
4
4
 
5
5
  export default defineComponent({
6
6
  props: {
7
- isAdmin: {
7
+ isAdminMaker: {
8
8
  type: Boolean,
9
9
  required: false,
10
10
  default: false,
@@ -3,14 +3,14 @@
3
3
  data-component="navigation"
4
4
  class="js-bp-header tw-h-24 lg:tw-h-16 tw-box-border lg:tw-py-4 lg:tw-px-5 tw-z-30 tw-fixed tw-w-full lg:tw-relative"
5
5
  :class="{
6
- 'tw-bg-grayscale-800': !isAdmin,
6
+ 'tw-bg-grayscale-800': !isAdminMaker,
7
7
  }"
8
8
  >
9
9
  <div
10
10
  class="tw-flex tw-flex-col lg:tw-flex-row tw-justify-between lg:tw-items-center lg:tw-gap-4"
11
11
  >
12
12
  <div
13
- v-if="!isAdmin"
13
+ v-if="!isAdminMaker"
14
14
  class="tw-px-2 lg:tw-px-0 tw-h-12 lg:tw-h-auto tw-flex tw-items-center"
15
15
  >
16
16
  <Logo
@@ -21,7 +21,7 @@
21
21
  </div>
22
22
  <WebsiteBreadcrumb v-if="showBreadcrumb" class="tw-hidden lg:tw-flex" />
23
23
  <Button
24
- v-if="isAdmin || !showBreadcrumb"
24
+ v-if="isAdminMaker || !showBreadcrumb"
25
25
  :label="backButtonLabel"
26
26
  variant="no-border"
27
27
  icon-left="chevron-left"
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div v-if="isAdmin" class="tw-p-3">
2
+ <div v-if="isAdminMaker" class="tw-p-3">
3
3
  <p
4
4
  class="tw-font-sans tw-font-bold tw-text-secondary-800 tw-text-sm tw-mb-2 tw-mt-4"
5
5
  >
@@ -11,7 +11,7 @@
11
11
  :name="name + 'TextStyle'"
12
12
  :value="textColorValue"
13
13
  :options="colorConvertor.convert(props.styles)"
14
- :is-admin="isAdmin"
14
+ :is-admin-maker="isAdminMaker"
15
15
  :logo-theme="logoTheme"
16
16
  :show-color-pallet="false"
17
17
  :is-toggled="true"
@@ -38,7 +38,7 @@
38
38
  :name="name"
39
39
  :value="textBackgroundColorValue"
40
40
  :options="backgroundColorConvertor.convert(props.styles)"
41
- :is-admin="isAdmin"
41
+ :is-admin-maker="isAdminMaker"
42
42
  :show-color-pallet="false"
43
43
  :logo-theme="logoTheme"
44
44
  :is-toggled="false"
@@ -161,7 +161,7 @@
161
161
  :icon-type="'text-color'"
162
162
  :disable-transparent="true"
163
163
  :value="fontSettings.selectedTextColor"
164
- :is-admin="isAdmin"
164
+ :is-admin-maker="isAdminMaker"
165
165
  :logo-theme="logoTheme"
166
166
  :is-toggled="true"
167
167
  :popup="true"
@@ -248,7 +248,7 @@
248
248
  :is-rich-text-editor="true"
249
249
  :icon-type="'text-background-color'"
250
250
  :value="fontSettings.selectedBackgroundColor"
251
- :is-admin="isAdmin"
251
+ :is-admin-maker="isAdminMaker"
252
252
  :logo-theme="logoTheme"
253
253
  :is-toggled="true"
254
254
  :popup="true"
@@ -569,7 +569,7 @@ const isSpacingDropdownOpen = ref(false);
569
569
  const containerStore = useBrandPageContainerStore();
570
570
  const uiStore = useUiStore();
571
571
 
572
- const isAdmin = computed(() => containerStore.isAdminMaker);
572
+ const isAdminMaker = computed(() => containerStore.isAdminMaker);
573
573
  const logoTheme = computed(() => uiStore.logoTheme);
574
574
 
575
575
  const fontSettings = reactive({
@@ -686,7 +686,7 @@ const textColorValue = computed(() => toggleTextColor.value);
686
686
  watch(
687
687
  () => props.styles.color,
688
688
  (newColor) => {
689
- if (isAdmin.value) {
689
+ if (isAdminMaker.value) {
690
690
  toggleTextColor.value = newColor ?? '';
691
691
  isTextColorPickerDisabled.value = hasLogoColorVar(newColor ?? '');
692
692
  }
@@ -702,7 +702,7 @@ const textBackgroundColorValue = computed(
702
702
  watch(
703
703
  () => props.styles.backgroundColor,
704
704
  (newColor) => {
705
- if (isAdmin.value) {
705
+ if (isAdminMaker.value) {
706
706
  toggleTextBackgroundColor.value = newColor ?? '';
707
707
  isBackgroundColorPickerDisabled.value = hasLogoColorVar(newColor ?? '');
708
708
  }
@@ -715,7 +715,7 @@ watch(
715
715
  ?.color,
716
716
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
717
717
  (_newColor) => {
718
- if (isAdmin.value) {
718
+ if (isAdminMaker.value) {
719
719
  if (props.textItemIndex !== undefined && selectedGlobalTextStyles) {
720
720
  toggleTextColor.value =
721
721
  selectedGlobalTextStyles.value.style.color ?? '';
@@ -735,7 +735,7 @@ watch(
735
735
  },
736
736
  );
737
737
 
738
- if (isAdmin.value) initializeDisabledStates();
738
+ if (isAdminMaker.value) initializeDisabledStates();
739
739
 
740
740
  watch(
741
741
  () => props.styles.textStyleType,
@@ -748,7 +748,7 @@ watch(
748
748
  copyGlobalStyleSettings(globalStyle);
749
749
 
750
750
  // syncing with admin global color match feature
751
- if (isAdmin.value) {
751
+ if (isAdminMaker.value) {
752
752
  if (
753
753
  globalStyle.color &&
754
754
  (globalStyle.color.includes(STYLE_THEME_KEYS.LogoTextColor) ||
@@ -27,7 +27,7 @@
27
27
  </div>
28
28
  <div class="tw-flex-none tw-mt-4">
29
29
  <div
30
- v-if="!isAdmin && !isPrePurchase && isSavingEnabled"
30
+ v-if="!isAdminMaker && !isPrePurchase && isSavingEnabled"
31
31
  class="tw-flex tw-items-center tw-justify-between tw-cursor-pointer tw-gap-1"
32
32
  @click="onHideBranding"
33
33
  >
@@ -86,7 +86,7 @@ import {
86
86
  } from '../../composables/useEventTracker';
87
87
 
88
88
  interface Props {
89
- isAdmin: boolean;
89
+ isAdminMaker: boolean;
90
90
  isPrePurchase: boolean;
91
91
  isDesignCom: boolean;
92
92
  }
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div data-component="replace-image-settings-for-shop">
3
3
  <ReplaceImageBaseSettings
4
- :is-admin="false"
4
+ :is-admin-maker="false"
5
5
  :transparent-bg="true"
6
6
  mode="images"
7
7
  :media-settings="imageSettings"
@@ -81,7 +81,7 @@ export default defineComponent({
81
81
  runtimeEnvironment: computed(
82
82
  () => brandPageContainerStore.runtimeEnvironment,
83
83
  ),
84
- isAdmin: computed(() => brandPageContainerStore.isAdminMaker),
84
+ isAdminMaker: computed(() => brandPageContainerStore.isAdminMaker),
85
85
  userToken: computed(() => brandPageMakerUserStore.userToken),
86
86
  isBrandSite: computed(
87
87
  () => brandPageMakerStore.brandPageType === BRAND_PAGE_TYPES.brandSite,
@@ -313,7 +313,7 @@ export default defineComponent({
313
313
  },
314
314
  watch: {
315
315
  template() {
316
- if (this.isAdmin) {
316
+ if (this.isAdminMaker) {
317
317
  this.updateViewModel();
318
318
  } else {
319
319
  // Reset loading state when template changes for image-based previews
@@ -323,20 +323,20 @@ export default defineComponent({
323
323
  },
324
324
  logoTheme: {
325
325
  handler() {
326
- if (this.isAdmin) {
326
+ if (this.isAdminMaker) {
327
327
  this.updateViewModel();
328
328
  }
329
329
  },
330
330
  deep: true,
331
331
  },
332
332
  logoImageBase64Url() {
333
- if (this.isAdmin) {
333
+ if (this.isAdminMaker) {
334
334
  this.updateViewModel();
335
335
  }
336
336
  },
337
337
  previewImageUrl() {
338
338
  // Reset loading state whenever the preview URL changes
339
- if (!this.isAdmin) {
339
+ if (!this.isAdminMaker) {
340
340
  this.imageLoading = true;
341
341
  this.imageLoadError = false;
342
342
  }
@@ -406,7 +406,7 @@ export default defineComponent({
406
406
 
407
407
  async updateViewModel(forceUpdate = true) {
408
408
  // Only update view model for admin or pre-purchase mode
409
- if (!this.isAdmin) {
409
+ if (!this.isAdminMaker) {
410
410
  return;
411
411
  }
412
412