@designcrowd/library.brand-page 5.10.30 → 5.10.32-ast-upgrade-1

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 (107) hide show
  1. package/lib/src/brand-page/constants/font.constants.d.ts +4 -4
  2. package/lib/src/brand-page/models/styles.model.d.ts +5 -5
  3. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +9 -7
  4. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.js +4 -3
  5. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.js +3 -4
  6. package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +9 -7
  7. package/lib/src/brand-page-maker/components/navigation/Navigation.mixin.d.ts +3 -3
  8. package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.d.ts +9 -7
  9. package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +13 -11
  10. package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.js +5 -8
  11. package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +66 -8
  12. package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.js +4 -6
  13. package/lib/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.mixin.d.ts +9 -7
  14. package/lib/src/brand-page-maker/components/upgrade-to-premium-button/UpgradeToPremiumButton.mixin.d.ts +11 -9
  15. package/lib/src/brand-page-maker/constants/brandpage-meta-constant.d.ts +5 -5
  16. package/lib/src/brand-page-maker/constants/index.d.ts +2 -2
  17. package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.d.ts +11 -10
  18. package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.js +46 -24
  19. package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +3 -2
  20. package/lib/src/brand-page-maker/stores/route/index.d.ts +1 -0
  21. package/lib/src/brand-page-maker/stores/route/index.js +1 -0
  22. package/lib/src/brand-page-maker/stores/route/localised-route-store.d.ts +73 -0
  23. package/lib/src/brand-page-maker/stores/route/localised-route-store.js +85 -0
  24. package/lib/src/brand-page-maker/utils/route.util.d.ts +1 -0
  25. package/lib/src/brand-page-maker/utils/route.util.js +5 -0
  26. package/lib/src/bundled-translations-BXxQYq2i.js +119 -0
  27. package/lib/src/bundled-translations.de-DE-BXcluMZ2.js +119 -0
  28. package/lib/src/bundled-translations.es-ES-DSd-wV16.js +119 -0
  29. package/lib/src/bundled-translations.fr-FR-jKR_dxWR.js +119 -0
  30. package/lib/src/bundled-translations.pt-PT-CwvYqXXo.js +119 -0
  31. package/lib/src/bundles/bundled-translations.de-DE.json +11 -0
  32. package/lib/src/bundles/bundled-translations.es-ES.json +11 -0
  33. package/lib/src/bundles/bundled-translations.fr-FR.json +11 -0
  34. package/lib/src/bundles/bundled-translations.json +11 -0
  35. package/lib/src/bundles/bundled-translations.pt-PT.json +11 -0
  36. package/lib/src/composables/useTranslate.d.ts +64 -62
  37. package/lib/src/composables/useTranslate.js +18 -7
  38. package/lib/src/css/library.brand-page-brandCrowd.min.css +62 -62
  39. package/lib/src/css/library.brand-page-brandPage.min.css +62 -62
  40. package/lib/src/css/library.brand-page-designCom.min.css +62 -62
  41. package/lib/src/css/library.brand-page-preview.min.css +62 -62
  42. package/lib/src/index.d.ts +3 -2
  43. package/lib/src/index.mjs +14775 -14684
  44. package/lib/src/lib.js +2 -2
  45. package/lib/src/shared/content-settings/components/GenericTextInput.mixin.d.ts +2 -2
  46. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +1 -0
  47. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.js +8 -0
  48. package/lib/src/shared/content-settings/components/email-field/EmailField.mixin.d.ts +2 -2
  49. package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.d.ts +9 -7
  50. package/lib/src/shared/content-settings/components/shape-field/ShapeField.mixin.d.ts +1 -1
  51. package/lib/src/shared/content-settings/components/tel-field/TelField.mixin.d.ts +2 -2
  52. package/lib/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.mixin.d.ts +2 -2
  53. package/lib/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.mixin.js +4 -1
  54. package/lib/src/shared/content-settings/components/text-field/TextField.mixin.d.ts +2 -2
  55. package/lib/src/shared/content-settings/components/text-image-field/TextImageField.mixin.d.ts +2 -2
  56. package/lib/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.d.ts +2 -2
  57. package/lib/src/shared/content-settings/components/textarea-field/TextareaField.mixin.d.ts +2 -2
  58. package/lib/src/shared/content-settings/components/url-field/UrlField.mixin.d.ts +2 -2
  59. package/lib/src/shared/content-settings/components/youtube-video-field/YoutubeVideoField.mixin.d.ts +2 -2
  60. package/lib/src/shared/logo-settings/components/EditLogoSettings.mixin.d.ts +3 -3
  61. package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +9 -7
  62. package/lib/src/shared/my-uploads/MyUploads.mixin.d.ts +1 -1
  63. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +10 -8
  64. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +11 -9
  65. package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +13 -11
  66. package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.js +4 -3
  67. package/lib/src/shared/shape-library/ShapeLibrary.mixin.d.ts +1 -1
  68. package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +9 -7
  69. package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +11 -9
  70. package/lib/src/shared/template-settings/models.d.ts +3 -3
  71. package/package.json +1 -1
  72. package/src/brand-page/components/brand-page-footer/BrandPageFooter.vue +14 -25
  73. package/src/brand-page/components/sensitive-content/SensitiveContentModal.vue +28 -11
  74. package/src/brand-page/components/sensitive-content/i18n/sensitive-content-modal.de-DE.json +13 -0
  75. package/src/brand-page/components/sensitive-content/i18n/sensitive-content-modal.es-ES.json +13 -0
  76. package/src/brand-page/components/sensitive-content/i18n/sensitive-content-modal.fr-FR.json +13 -0
  77. package/src/brand-page/components/sensitive-content/i18n/sensitive-content-modal.json +13 -0
  78. package/src/brand-page/components/sensitive-content/i18n/sensitive-content-modal.pt-PT.json +13 -0
  79. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.ts +4 -2
  80. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.ts +3 -4
  81. package/src/brand-page-maker/components/color-palette/BpColorPalette.vue +1 -1
  82. package/src/brand-page-maker/components/rich-text-editor/RichTextEditor.vue +5 -0
  83. package/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.ts +7 -8
  84. package/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.ts +4 -5
  85. package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.ts +67 -31
  86. package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +3 -2
  87. package/src/brand-page-maker/stores/route/index.ts +1 -0
  88. package/src/brand-page-maker/stores/route/localised-route-store.ts +118 -0
  89. package/src/brand-page-maker/utils/route.util.ts +8 -0
  90. package/src/bundles/bundled-translations.de-DE.json +11 -0
  91. package/src/bundles/bundled-translations.es-ES.json +11 -0
  92. package/src/bundles/bundled-translations.fr-FR.json +11 -0
  93. package/src/bundles/bundled-translations.json +11 -0
  94. package/src/bundles/bundled-translations.pt-PT.json +11 -0
  95. package/src/composables/useTranslate.ts +25 -8
  96. package/src/lib.ts +7 -1
  97. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.ts +11 -0
  98. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.vue +1 -1
  99. package/src/shared/content-settings/components/logo-selection-field/LogoSelection.vue +0 -1
  100. package/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.mixin.ts +8 -1
  101. package/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.vue +1 -1
  102. package/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.ts +4 -4
  103. package/lib/src/bundled-translations-DaK60m67.js +0 -117
  104. package/lib/src/bundled-translations.de-DE-848cpWPB.js +0 -117
  105. package/lib/src/bundled-translations.es-ES-CtPI5G7I.js +0 -117
  106. package/lib/src/bundled-translations.fr-FR-BS3Kia5y.js +0 -117
  107. package/lib/src/bundled-translations.pt-PT-Balnne-7.js +0 -117
@@ -23,10 +23,10 @@ export declare const MAX_LINE_HEIGHT = 2.5;
23
23
  export declare const MAX_TITLE_LENGTH = 200;
24
24
  export declare const MAX_DESCRIPTION_LENGTH = 1000;
25
25
  export declare const MAX_TEXT_LENGTH = 2000;
26
- export declare const MAX_LENGTH_ERROR_MESSAGE: () => string;
27
- export declare const INVALID_URL_MESSAGE: () => string;
28
- export declare const EMPTY_TESTIMONIAL: () => string;
29
- export declare const TEXT_EMPTY: () => string;
26
+ export declare const MAX_LENGTH_ERROR_MESSAGE: () => any;
27
+ export declare const INVALID_URL_MESSAGE: () => any;
28
+ export declare const EMPTY_TESTIMONIAL: () => any;
29
+ export declare const TEXT_EMPTY: () => any;
30
30
  export declare const GOOGLE_FONT_BASE_URL = "https://fonts.googleapis.com/css2";
31
31
  export declare const GOOGLE_FONT_URL_SUFFIX = "&display=swap";
32
32
  export declare const FALLBACK_DEFAULT_LINK_COLOR = "#000000";
@@ -7,11 +7,11 @@ export declare const TEXT_STYLE_TYPES: {
7
7
  };
8
8
  export type TextStyleType = keyof typeof TEXT_STYLE_TYPES;
9
9
  export declare const TEXT_STYLE_TYPES_DISPLAY_NAME_MAP: () => {
10
- titles: string;
11
- headings: string;
12
- paragraphs: string;
13
- buttons: string;
14
- none: string;
10
+ titles: any;
11
+ headings: any;
12
+ paragraphs: any;
13
+ buttons: any;
14
+ none: any;
15
15
  };
16
16
  export type TextStyleDeclaration = BrandPageCssStyle & {
17
17
  textStyleType?: TextStyleType;
@@ -200,7 +200,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
200
200
  brandPageStatus: string;
201
201
  brandPageToken: string | undefined;
202
202
  brandPageTitle: string;
203
- createNewDesignUrl: string;
204
203
  customDomain: {
205
204
  id: string;
206
205
  created: Date;
@@ -228,11 +227,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
228
227
  isSellDomainNameEnabled: boolean;
229
228
  isStripeOnboardingModalVisible: boolean;
230
229
  isReactivationModal: boolean;
230
+ isPublishUpgradeModal: boolean;
231
231
  isSaving: boolean;
232
- backUrl: string;
233
232
  backButtonLabel: string;
234
233
  manageWebsiteDesignsUrl: string;
235
234
  publishErrorMessage: string;
235
+ upgradeUrl: string;
236
236
  reactivationUrl: string;
237
237
  runtimeEnvironment: string;
238
238
  selectedTaxId: number | undefined;
@@ -240,7 +240,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
240
240
  standalone: boolean;
241
241
  triggerSaveSuccessMessage: boolean;
242
242
  triggerSaveEventApiOnPublishModalClose: boolean;
243
- upgradeUrl: string;
244
243
  measurementID: string | undefined;
245
244
  isDesignCom: boolean;
246
245
  isPrePurchase: boolean;
@@ -260,7 +259,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
260
259
  brandPageStatus: string;
261
260
  brandPageToken: string | undefined;
262
261
  brandPageTitle: string;
263
- createNewDesignUrl: string;
264
262
  customDomain: {
265
263
  id: string;
266
264
  created: Date;
@@ -288,11 +286,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
288
286
  isSellDomainNameEnabled: boolean;
289
287
  isStripeOnboardingModalVisible: boolean;
290
288
  isReactivationModal: boolean;
289
+ isPublishUpgradeModal: boolean;
291
290
  isSaving: boolean;
292
- backUrl: string;
293
291
  backButtonLabel: string;
294
292
  manageWebsiteDesignsUrl: string;
295
293
  publishErrorMessage: string;
294
+ upgradeUrl: string;
296
295
  reactivationUrl: string;
297
296
  runtimeEnvironment: string;
298
297
  selectedTaxId: number | undefined;
@@ -300,7 +299,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
300
299
  standalone: boolean;
301
300
  triggerSaveSuccessMessage: boolean;
302
301
  triggerSaveEventApiOnPublishModalClose: boolean;
303
- upgradeUrl: string;
304
302
  measurementID: string | undefined;
305
303
  isDesignCom: boolean;
306
304
  isPrePurchase: boolean;
@@ -317,6 +315,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
317
315
  setIsBrandPageSlugEditMode(payload: any): void;
318
316
  setIsPublishing(payload: any): void;
319
317
  setIsPublishModalVisible(payload: any): void;
318
+ setIsPublishUpgradeModal(payload: any): void;
320
319
  setIsSaving(payload: any): void;
321
320
  setIsUpgradeModalVisible(payload: any): void;
322
321
  setPublishErrorMessage(payload: any): void;
@@ -363,7 +362,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
363
362
  saveBrandPage(payload?: {
364
363
  isPublish?: boolean | undefined;
365
364
  eventButtonLocation?: string | undefined;
366
- }): Promise<boolean>;
365
+ }): Promise<false | {
366
+ saved: boolean;
367
+ canPublish: any;
368
+ }>;
367
369
  saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
368
370
  saveTemplate(): Promise<void>;
369
371
  setBrandPageStatus(status: any): Promise<void>;
@@ -10,7 +10,7 @@ import { createInitialBrandPage } from '../../models';
10
10
  import { navigateToPageBySlug } from '../../routing';
11
11
  import { useBrandPageContainerStore } from '../../stores';
12
12
  import { UI_DEVICE_MODES, UI_SCREENSIZE_MODES, } from '../../../shared/models';
13
- import { useBrandPageMakerStore, useBrandPageMakerUserStore, useUiStore, } from '../../stores';
13
+ import { useBrandPageMakerStore, useBrandPageMakerUserStore, useLocalisedRouteStore, useUiStore, } from '../../stores';
14
14
  import { useUiContentSettingsStore } from '../../../shared/content-settings/store';
15
15
  import { useUiTemplateSettingsStore } from '../../../shared/template-settings/store';
16
16
  import { useUiPageSettingsStore } from '../../../shared/page-settings/store';
@@ -39,6 +39,7 @@ export default defineComponent({
39
39
  const shopSettingStore = useShopConfigStore();
40
40
  const productSettingStore = useProductConfigStore();
41
41
  const router = useRouter();
42
+ const localisedRouteStore = useLocalisedRouteStore();
42
43
  return {
43
44
  currentNotificationMessage: computed(() => brandPageMakerStore.currentNotificationMessage),
44
45
  isChangeTemplateConfirmModalVisible: computed(() => brandPageMakerStore.isChangeTemplateConfirmModalVisible),
@@ -49,7 +50,7 @@ export default defineComponent({
49
50
  isMobileDevice: computed(() => uiStore.deviceMode === UI_DEVICE_MODES.mobile),
50
51
  // the state of window screen size
51
52
  isMobileScreenSize: computed(() => uiStore.screenSizeMode === UI_SCREENSIZE_MODES.mobile),
52
- brandPageBaseUrl: computed(() => brandPageMakerStore.brandPageBaseUrl),
53
+ brandPageBaseUrl: computed(() => localisedRouteStore.baseBrandPageDomain),
53
54
  brandPageSlug: computed(() => brandPageMakerStore.brandPageSlug),
54
55
  brandPageType: computed(() => brandPageMakerStore.brandPageType),
55
56
  isSaving: computed(() => brandPageMakerStore.isSaving),
@@ -57,7 +58,7 @@ export default defineComponent({
57
58
  isPublished: computed(() => brandPageMakerStore.isPublished),
58
59
  isBrandPageOrIsBrandContact: computed(() => brandPageMakerStore.isBrandPageOrIsBrandContact),
59
60
  brandPageViewModel: computed(() => brandPageMakerStore.brandPageViewModel),
60
- backUrl: computed(() => containerStore.backUrl),
61
+ backUrl: computed(() => localisedRouteStore.backToWebsiteManageUrlPath),
61
62
  backButtonLabel: computed(() => containerStore.backButtonLabel),
62
63
  isDesignCom: computed(() => containerStore.isDesignCom),
63
64
  selectedTabName: computed(() => sideBarStore.selectedTabName),
@@ -44,7 +44,6 @@ const InitialiseMakerStores = (options) => {
44
44
  isDesignCom: options.isDesignCom || false,
45
45
  isPrePurchase: isPrePurchase,
46
46
  logoDraftToken: 'f7d3163f-bcdf-4537-98b0-64cd6df8d1a9',
47
- createNewDesignUrl: '',
48
47
  runtimeEnvironment: 'staging',
49
48
  upgradeUrl: '',
50
49
  reactivationUrl: '',
@@ -62,7 +61,6 @@ const InitialiseMakerStores = (options) => {
62
61
  brandPageCustomDomain: undefined,
63
62
  isBrandPageCustomDomainEnabled: false,
64
63
  isSellDomainNameEnabled: false,
65
- backUrl: '',
66
64
  backButtonLabel: 'Back',
67
65
  manageWebsiteDesignsUrl: '',
68
66
  logoTemplateAsset: isPrePurchase
@@ -168,6 +166,7 @@ const InitialiseMakerStores = (options) => {
168
166
  isBrandPageSlugEditMode: false,
169
167
  isPublishModalVisible: false,
170
168
  isUpgradeModalVisible: false,
169
+ isPublishUpgradeModal: false,
171
170
  isStripeOnboardingModalVisible: false,
172
171
  publishErrorMessage: '',
173
172
  selectedTaxId: undefined,
@@ -193,7 +192,7 @@ const renderKeyForForcedRerender = ref(0);
193
192
  export const Sample = (args, { globals }) => {
194
193
  InitialiseMakerStores({});
195
194
  watchEffect(async () => {
196
- await setLocaleAsync(globals.locale || 'en-US');
195
+ await setLocaleAsync(globals.locale);
197
196
  renderKeyForForcedRerender.value++;
198
197
  });
199
198
  return {
@@ -224,7 +223,7 @@ export const Sample = (args, { globals }) => {
224
223
  `,
225
224
  pinia: setupStoryPinia(),
226
225
  async beforeMount() {
227
- await setLocaleAsync(globals.locale || 'en-US');
226
+ await setLocaleAsync(globals.locale);
228
227
  this.show = true;
229
228
  },
230
229
  };
@@ -639,7 +639,6 @@ declare const _default: import("vue").DefineComponent<{}, {
639
639
  brandPageStatus: string;
640
640
  brandPageToken: string | undefined;
641
641
  brandPageTitle: string;
642
- createNewDesignUrl: string;
643
642
  customDomain: {
644
643
  id: string;
645
644
  created: Date;
@@ -667,11 +666,12 @@ declare const _default: import("vue").DefineComponent<{}, {
667
666
  isSellDomainNameEnabled: boolean;
668
667
  isStripeOnboardingModalVisible: boolean;
669
668
  isReactivationModal: boolean;
669
+ isPublishUpgradeModal: boolean;
670
670
  isSaving: boolean;
671
- backUrl: string;
672
671
  backButtonLabel: string;
673
672
  manageWebsiteDesignsUrl: string;
674
673
  publishErrorMessage: string;
674
+ upgradeUrl: string;
675
675
  reactivationUrl: string;
676
676
  runtimeEnvironment: string;
677
677
  selectedTaxId: number | undefined;
@@ -679,7 +679,6 @@ declare const _default: import("vue").DefineComponent<{}, {
679
679
  standalone: boolean;
680
680
  triggerSaveSuccessMessage: boolean;
681
681
  triggerSaveEventApiOnPublishModalClose: boolean;
682
- upgradeUrl: string;
683
682
  measurementID: string | undefined;
684
683
  isDesignCom: boolean;
685
684
  isPrePurchase: boolean;
@@ -699,7 +698,6 @@ declare const _default: import("vue").DefineComponent<{}, {
699
698
  brandPageStatus: string;
700
699
  brandPageToken: string | undefined;
701
700
  brandPageTitle: string;
702
- createNewDesignUrl: string;
703
701
  customDomain: {
704
702
  id: string;
705
703
  created: Date;
@@ -727,11 +725,12 @@ declare const _default: import("vue").DefineComponent<{}, {
727
725
  isSellDomainNameEnabled: boolean;
728
726
  isStripeOnboardingModalVisible: boolean;
729
727
  isReactivationModal: boolean;
728
+ isPublishUpgradeModal: boolean;
730
729
  isSaving: boolean;
731
- backUrl: string;
732
730
  backButtonLabel: string;
733
731
  manageWebsiteDesignsUrl: string;
734
732
  publishErrorMessage: string;
733
+ upgradeUrl: string;
735
734
  reactivationUrl: string;
736
735
  runtimeEnvironment: string;
737
736
  selectedTaxId: number | undefined;
@@ -739,7 +738,6 @@ declare const _default: import("vue").DefineComponent<{}, {
739
738
  standalone: boolean;
740
739
  triggerSaveSuccessMessage: boolean;
741
740
  triggerSaveEventApiOnPublishModalClose: boolean;
742
- upgradeUrl: string;
743
741
  measurementID: string | undefined;
744
742
  isDesignCom: boolean;
745
743
  isPrePurchase: boolean;
@@ -756,6 +754,7 @@ declare const _default: import("vue").DefineComponent<{}, {
756
754
  setIsBrandPageSlugEditMode(payload: any): void;
757
755
  setIsPublishing(payload: any): void;
758
756
  setIsPublishModalVisible(payload: any): void;
757
+ setIsPublishUpgradeModal(payload: any): void;
759
758
  setIsSaving(payload: any): void;
760
759
  setIsUpgradeModalVisible(payload: any): void;
761
760
  setPublishErrorMessage(payload: any): void;
@@ -802,7 +801,10 @@ declare const _default: import("vue").DefineComponent<{}, {
802
801
  saveBrandPage(payload?: {
803
802
  isPublish?: boolean | undefined;
804
803
  eventButtonLocation?: string | undefined;
805
- }): Promise<boolean>;
804
+ }): Promise<false | {
805
+ saved: boolean;
806
+ canPublish: any;
807
+ }>;
806
808
  saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
807
809
  saveTemplate(): Promise<void>;
808
810
  setBrandPageStatus(status: any): Promise<void>;
@@ -27,7 +27,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
27
27
  backButtonLabel: {
28
28
  type: StringConstructor;
29
29
  required: false;
30
- default: () => string;
30
+ default: () => any;
31
31
  };
32
32
  isDesignCom: {
33
33
  type: BooleanConstructor;
@@ -66,7 +66,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
66
66
  backButtonLabel: {
67
67
  type: StringConstructor;
68
68
  required: false;
69
- default: () => string;
69
+ default: () => any;
70
70
  };
71
71
  isDesignCom: {
72
72
  type: BooleanConstructor;
@@ -77,9 +77,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
77
77
  isAdmin: boolean;
78
78
  isPublished: boolean;
79
79
  isSaving: boolean;
80
- backUrl: string;
81
80
  backButtonLabel: string;
82
81
  isDesignCom: boolean;
82
+ backUrl: string;
83
83
  brandCrowdUrl: string;
84
84
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
85
85
  export default _default;
@@ -22,7 +22,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
22
22
  brandPageStatus: string;
23
23
  brandPageToken: string | undefined;
24
24
  brandPageTitle: string;
25
- createNewDesignUrl: string;
26
25
  customDomain: {
27
26
  id: string;
28
27
  created: Date;
@@ -50,11 +49,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
50
49
  isSellDomainNameEnabled: boolean;
51
50
  isStripeOnboardingModalVisible: boolean;
52
51
  isReactivationModal: boolean;
52
+ isPublishUpgradeModal: boolean;
53
53
  isSaving: boolean;
54
- backUrl: string;
55
54
  backButtonLabel: string;
56
55
  manageWebsiteDesignsUrl: string;
57
56
  publishErrorMessage: string;
57
+ upgradeUrl: string;
58
58
  reactivationUrl: string;
59
59
  runtimeEnvironment: string;
60
60
  selectedTaxId: number | undefined;
@@ -62,7 +62,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
62
62
  standalone: boolean;
63
63
  triggerSaveSuccessMessage: boolean;
64
64
  triggerSaveEventApiOnPublishModalClose: boolean;
65
- upgradeUrl: string;
66
65
  measurementID: string | undefined;
67
66
  isDesignCom: boolean;
68
67
  isPrePurchase: boolean;
@@ -82,7 +81,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
82
81
  brandPageStatus: string;
83
82
  brandPageToken: string | undefined;
84
83
  brandPageTitle: string;
85
- createNewDesignUrl: string;
86
84
  customDomain: {
87
85
  id: string;
88
86
  created: Date;
@@ -110,11 +108,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
110
108
  isSellDomainNameEnabled: boolean;
111
109
  isStripeOnboardingModalVisible: boolean;
112
110
  isReactivationModal: boolean;
111
+ isPublishUpgradeModal: boolean;
113
112
  isSaving: boolean;
114
- backUrl: string;
115
113
  backButtonLabel: string;
116
114
  manageWebsiteDesignsUrl: string;
117
115
  publishErrorMessage: string;
116
+ upgradeUrl: string;
118
117
  reactivationUrl: string;
119
118
  runtimeEnvironment: string;
120
119
  selectedTaxId: number | undefined;
@@ -122,7 +121,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
122
121
  standalone: boolean;
123
122
  triggerSaveSuccessMessage: boolean;
124
123
  triggerSaveEventApiOnPublishModalClose: boolean;
125
- upgradeUrl: string;
126
124
  measurementID: string | undefined;
127
125
  isDesignCom: boolean;
128
126
  isPrePurchase: boolean;
@@ -139,6 +137,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
139
137
  setIsBrandPageSlugEditMode(payload: any): void;
140
138
  setIsPublishing(payload: any): void;
141
139
  setIsPublishModalVisible(payload: any): void;
140
+ setIsPublishUpgradeModal(payload: any): void;
142
141
  setIsSaving(payload: any): void;
143
142
  setIsUpgradeModalVisible(payload: any): void;
144
143
  setPublishErrorMessage(payload: any): void;
@@ -185,7 +184,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
185
184
  saveBrandPage(payload?: {
186
185
  isPublish?: boolean | undefined;
187
186
  eventButtonLocation?: string | undefined;
188
- }): Promise<boolean>;
187
+ }): Promise<false | {
188
+ saved: boolean;
189
+ canPublish: any;
190
+ }>;
189
191
  saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
190
192
  saveTemplate(): Promise<void>;
191
193
  setBrandPageStatus(status: any): Promise<void>;
@@ -38,7 +38,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
38
38
  brandPageStatus: string;
39
39
  brandPageToken: string | undefined;
40
40
  brandPageTitle: string;
41
- createNewDesignUrl: string;
42
41
  customDomain: {
43
42
  id: string;
44
43
  created: Date;
@@ -66,11 +65,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
66
65
  isSellDomainNameEnabled: boolean;
67
66
  isStripeOnboardingModalVisible: boolean;
68
67
  isReactivationModal: boolean;
68
+ isPublishUpgradeModal: boolean;
69
69
  isSaving: boolean;
70
- backUrl: string;
71
70
  backButtonLabel: string;
72
71
  manageWebsiteDesignsUrl: string;
73
72
  publishErrorMessage: string;
73
+ upgradeUrl: string;
74
74
  reactivationUrl: string;
75
75
  runtimeEnvironment: string;
76
76
  selectedTaxId: number | undefined;
@@ -78,7 +78,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
78
78
  standalone: boolean;
79
79
  triggerSaveSuccessMessage: boolean;
80
80
  triggerSaveEventApiOnPublishModalClose: boolean;
81
- upgradeUrl: string;
82
81
  measurementID: string | undefined;
83
82
  isDesignCom: boolean;
84
83
  isPrePurchase: boolean;
@@ -98,7 +97,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
98
97
  brandPageStatus: string;
99
98
  brandPageToken: string | undefined;
100
99
  brandPageTitle: string;
101
- createNewDesignUrl: string;
102
100
  customDomain: {
103
101
  id: string;
104
102
  created: Date;
@@ -126,11 +124,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
126
124
  isSellDomainNameEnabled: boolean;
127
125
  isStripeOnboardingModalVisible: boolean;
128
126
  isReactivationModal: boolean;
127
+ isPublishUpgradeModal: boolean;
129
128
  isSaving: boolean;
130
- backUrl: string;
131
129
  backButtonLabel: string;
132
130
  manageWebsiteDesignsUrl: string;
133
131
  publishErrorMessage: string;
132
+ upgradeUrl: string;
134
133
  reactivationUrl: string;
135
134
  runtimeEnvironment: string;
136
135
  selectedTaxId: number | undefined;
@@ -138,7 +137,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
138
137
  standalone: boolean;
139
138
  triggerSaveSuccessMessage: boolean;
140
139
  triggerSaveEventApiOnPublishModalClose: boolean;
141
- upgradeUrl: string;
142
140
  measurementID: string | undefined;
143
141
  isDesignCom: boolean;
144
142
  isPrePurchase: boolean;
@@ -155,6 +153,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
155
153
  setIsBrandPageSlugEditMode(payload: any): void;
156
154
  setIsPublishing(payload: any): void;
157
155
  setIsPublishModalVisible(payload: any): void;
156
+ setIsPublishUpgradeModal(payload: any): void;
158
157
  setIsSaving(payload: any): void;
159
158
  setIsUpgradeModalVisible(payload: any): void;
160
159
  setPublishErrorMessage(payload: any): void;
@@ -201,7 +200,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
201
200
  saveBrandPage(payload?: {
202
201
  isPublish?: boolean | undefined;
203
202
  eventButtonLocation?: string | undefined;
204
- }): Promise<boolean>;
203
+ }): Promise<false | {
204
+ saved: boolean;
205
+ canPublish: any;
206
+ }>;
205
207
  saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
206
208
  saveTemplate(): Promise<void>;
207
209
  setBrandPageStatus(status: any): Promise<void>;
@@ -359,6 +361,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
359
361
  showStripeOnboardingModal(): Promise<void>;
360
362
  selectInitialCategories(payload: import("../../../shared/template-settings/models").InitialCategories): void;
361
363
  }>;
364
+ publishedUrl: import("vue").ComputedRef<string | undefined>;
362
365
  }, {
363
366
  metaKeywords: never[];
364
367
  isInternalDescriptionValid: boolean;
@@ -373,10 +376,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
373
376
  editMetaActionPath(): string;
374
377
  duplicateActionPath(): string;
375
378
  hasSlug(): boolean;
376
- publishedUrl(): string | undefined;
377
- titleError(): string | undefined;
378
- descriptionError(): string | undefined;
379
- metaKeywordsError(): string | undefined;
379
+ titleError(): any;
380
+ descriptionError(): any;
381
+ metaKeywordsError(): any;
380
382
  isPublishing(): any;
381
383
  isUpdateButtonEnabled(): any;
382
384
  isDirty(): boolean;
@@ -1,6 +1,6 @@
1
1
  import { computed, defineComponent } from 'vue';
2
2
  import { validateBrandPageDescription, validateBrandPageTitle, } from '../../utils';
3
- import { useBrandPageContainerStore, useBrandPageMakerStore, } from '../../stores';
3
+ import { useBrandPageContainerStore, useBrandPageMakerStore, useLocalisedRouteStore, } from '../../stores';
4
4
  import { BRANDPAGE_DESCRIPTION_CHARACTER_LIMIT, BRANDPAGE_TITLE_CHARACTER_LIMIT, } from '../../constants';
5
5
  import { errorTr } from '../../../composables/useTranslate';
6
6
  export default defineComponent({
@@ -32,13 +32,16 @@ export default defineComponent({
32
32
  },
33
33
  setup() {
34
34
  const brandPageMakerStore = useBrandPageMakerStore();
35
+ const localisedRouteStore = useLocalisedRouteStore();
36
+ const brandPageContainerStore = useBrandPageContainerStore();
35
37
  return {
36
- brandPageContainerStore: useBrandPageContainerStore(),
38
+ brandPageContainerStore,
37
39
  isBrandSite: computed(() => brandPageMakerStore.isBrandSite),
38
40
  isBrandPageOrIsBrandContact: computed(() => brandPageMakerStore.isBrandPageOrIsBrandContact),
39
41
  isBrandPage: computed(() => brandPageMakerStore.isBrandPage),
40
42
  isBrandContact: computed(() => brandPageMakerStore.isBrandContact),
41
43
  brandPageMakerStore,
44
+ publishedUrl: computed(() => localisedRouteStore.currentPublishedSlugUrl()),
42
45
  };
43
46
  },
44
47
  data() {
@@ -85,12 +88,6 @@ export default defineComponent({
85
88
  hasSlug() {
86
89
  return Boolean(this.brandPageContainerStore.brandPageSlug);
87
90
  },
88
- publishedUrl() {
89
- if (!this.hasSlug || !this.brandPageContainerStore.brandPageBaseUrl) {
90
- return undefined;
91
- }
92
- return `${this.brandPageContainerStore.brandPageBaseUrl}/${this.brandPageContainerStore.brandPageSlug}`;
93
- },
94
91
  titleError() {
95
92
  return this.myPageTitle?.length &&
96
93
  this.myPageTitle.length > BRANDPAGE_TITLE_CHARACTER_LIMIT
@@ -26,6 +26,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
26
26
  isCustomDomainEnabled: import("vue").ComputedRef<boolean>;
27
27
  isSellDomainNameEnabled: import("vue").ComputedRef<boolean>;
28
28
  designDraftToken: import("vue").ComputedRef<string | undefined>;
29
+ brandPageUrl: import("vue").ComputedRef<string>;
29
30
  brandPageContainer: import("pinia").Store<"brandPageContainer", import("../../stores").BrandPageContainerState, {
30
31
  brandPageContentTypes(): string[];
31
32
  isAdmin(): boolean;
@@ -40,7 +41,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
40
41
  brandPageStatus: string;
41
42
  brandPageToken: string | undefined;
42
43
  brandPageTitle: string;
43
- createNewDesignUrl: string;
44
44
  customDomain: {
45
45
  id: string;
46
46
  created: Date;
@@ -68,11 +68,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
68
68
  isSellDomainNameEnabled: boolean;
69
69
  isStripeOnboardingModalVisible: boolean;
70
70
  isReactivationModal: boolean;
71
+ isPublishUpgradeModal: boolean;
71
72
  isSaving: boolean;
72
- backUrl: string;
73
73
  backButtonLabel: string;
74
74
  manageWebsiteDesignsUrl: string;
75
75
  publishErrorMessage: string;
76
+ upgradeUrl: string;
76
77
  reactivationUrl: string;
77
78
  runtimeEnvironment: string;
78
79
  selectedTaxId: number | undefined;
@@ -80,7 +81,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
80
81
  standalone: boolean;
81
82
  triggerSaveSuccessMessage: boolean;
82
83
  triggerSaveEventApiOnPublishModalClose: boolean;
83
- upgradeUrl: string;
84
84
  measurementID: string | undefined;
85
85
  isDesignCom: boolean;
86
86
  isPrePurchase: boolean;
@@ -100,7 +100,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
100
100
  brandPageStatus: string;
101
101
  brandPageToken: string | undefined;
102
102
  brandPageTitle: string;
103
- createNewDesignUrl: string;
104
103
  customDomain: {
105
104
  id: string;
106
105
  created: Date;
@@ -128,11 +127,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
128
127
  isSellDomainNameEnabled: boolean;
129
128
  isStripeOnboardingModalVisible: boolean;
130
129
  isReactivationModal: boolean;
130
+ isPublishUpgradeModal: boolean;
131
131
  isSaving: boolean;
132
- backUrl: string;
133
132
  backButtonLabel: string;
134
133
  manageWebsiteDesignsUrl: string;
135
134
  publishErrorMessage: string;
135
+ upgradeUrl: string;
136
136
  reactivationUrl: string;
137
137
  runtimeEnvironment: string;
138
138
  selectedTaxId: number | undefined;
@@ -140,7 +140,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
140
140
  standalone: boolean;
141
141
  triggerSaveSuccessMessage: boolean;
142
142
  triggerSaveEventApiOnPublishModalClose: boolean;
143
- upgradeUrl: string;
144
143
  measurementID: string | undefined;
145
144
  isDesignCom: boolean;
146
145
  isPrePurchase: boolean;
@@ -157,6 +156,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
157
156
  setIsBrandPageSlugEditMode(payload: any): void;
158
157
  setIsPublishing(payload: any): void;
159
158
  setIsPublishModalVisible(payload: any): void;
159
+ setIsPublishUpgradeModal(payload: any): void;
160
160
  setIsSaving(payload: any): void;
161
161
  setIsUpgradeModalVisible(payload: any): void;
162
162
  setPublishErrorMessage(payload: any): void;
@@ -203,7 +203,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
203
203
  saveBrandPage(payload?: {
204
204
  isPublish?: boolean | undefined;
205
205
  eventButtonLocation?: string | undefined;
206
- }): Promise<boolean>;
206
+ }): Promise<false | {
207
+ saved: boolean;
208
+ canPublish: any;
209
+ }>;
207
210
  saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
208
211
  saveTemplate(): Promise<void>;
209
212
  setBrandPageStatus(status: any): Promise<void>;
@@ -357,6 +360,62 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
357
360
  showStripeOnboardingModal(): Promise<void>;
358
361
  selectInitialCategories(payload: import("../../../shared/template-settings/models").InitialCategories): void;
359
362
  }>;
363
+ localisedRouteStore: import("pinia").Store<"localisedRoute", import("../../stores").LocalisedRouteState, {
364
+ currentPublishedSlugUrl: (state: {
365
+ baseFabricRenderDomain: string;
366
+ baseBrandPageDomain: string;
367
+ upgradeSubscriptionUrlPath: string;
368
+ reactivationUrlPath: string;
369
+ backToWebsiteManageUrlPath: string;
370
+ manageWebsiteDesignsUrlPath: string;
371
+ createNewDesignUrlPath: string;
372
+ termsOfUseUrlPath: string;
373
+ websiteBuilderUrlPath: string;
374
+ digitalBusinessCardBuilderUrlPath: string;
375
+ linkInBioBuilderUrlPath: string;
376
+ brandPageEditorUrlPath: string;
377
+ brandSiteEditorUrlPath: string;
378
+ brandContactEditorUrlPath: string;
379
+ logoEditUrlPath: string;
380
+ } & import("pinia").PiniaCustomStateProperties<import("../../stores").LocalisedRouteState>) => () => string | undefined;
381
+ currentBrandPageUrl: (state: {
382
+ baseFabricRenderDomain: string;
383
+ baseBrandPageDomain: string;
384
+ upgradeSubscriptionUrlPath: string;
385
+ reactivationUrlPath: string;
386
+ backToWebsiteManageUrlPath: string;
387
+ manageWebsiteDesignsUrlPath: string;
388
+ createNewDesignUrlPath: string;
389
+ termsOfUseUrlPath: string;
390
+ websiteBuilderUrlPath: string;
391
+ digitalBusinessCardBuilderUrlPath: string;
392
+ linkInBioBuilderUrlPath: string;
393
+ brandPageEditorUrlPath: string;
394
+ brandSiteEditorUrlPath: string;
395
+ brandContactEditorUrlPath: string;
396
+ logoEditUrlPath: string;
397
+ } & import("pinia").PiniaCustomStateProperties<import("../../stores").LocalisedRouteState>) => () => string;
398
+ getPostpurchaseByDesignDraftTokenUrl: () => (editorUrlToRedirectTo: string, designDraftToken: string) => string;
399
+ getBuilderLandingPageByTypeUrl: (state: {
400
+ baseFabricRenderDomain: string;
401
+ baseBrandPageDomain: string;
402
+ upgradeSubscriptionUrlPath: string;
403
+ reactivationUrlPath: string;
404
+ backToWebsiteManageUrlPath: string;
405
+ manageWebsiteDesignsUrlPath: string;
406
+ createNewDesignUrlPath: string;
407
+ termsOfUseUrlPath: string;
408
+ websiteBuilderUrlPath: string;
409
+ digitalBusinessCardBuilderUrlPath: string;
410
+ linkInBioBuilderUrlPath: string;
411
+ brandPageEditorUrlPath: string;
412
+ brandSiteEditorUrlPath: string;
413
+ brandContactEditorUrlPath: string;
414
+ logoEditUrlPath: string;
415
+ } & import("pinia").PiniaCustomStateProperties<import("../../stores").LocalisedRouteState>) => (isPreview: boolean, brandPageType: string, isDesignCom: boolean) => string;
416
+ }, {
417
+ initialise(payload: any): void;
418
+ }>;
360
419
  }, {
361
420
  customDomainName: string | undefined;
362
421
  isCustomDomainNameValid: boolean;
@@ -374,7 +433,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
374
433
  isCustomDomainActionListVisible: boolean;
375
434
  CUSTOM_DOMAIN_INSTRUCTION_DNS_HOST_DISPLAY_TEXT: string;
376
435
  }, {
377
- brandPageUrl(): string;
378
436
  customDomainStatusDisplayText(): string | null;
379
437
  customDomainStatusDisplayClasses(): string | null;
380
438
  customDomainConfigIpAddresses(): string[];