@designcrowd/library.brand-page 5.16.28 → 5.16.29-pre-temp-13

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 (82) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-C-CdtuLf.js → CreatedOnBrandCrowd-de-de-C5cvDYY0.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-DrL7aiqj.js → CreatedOnBrandCrowd-en-us-D0KCSK_6.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-DDJFsUyp.js → CreatedOnBrandCrowd-es-es-BtlaguF9.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-Dv8j7UDI.js → CreatedOnBrandCrowd-fr-ca-RGdnURaa.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-Dv8j7UDI.js → CreatedOnBrandCrowd-fr-fr-RGdnURaa.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-Dp52qW0V.js → CreatedOnBrandCrowd-pt-br-BJwt5ATI.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-Dp52qW0V.js → CreatedOnBrandCrowd-pt-pt-BJwt5ATI.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-Df9pkq3U.js → CreatedOnDcom-de-de-LUA5Wvy5.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-DqHPayYQ.js → CreatedOnDcom-en-us-Dd1UPBVq.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-BcyOZFjl.js → CreatedOnDcom-es-es-CD923NVo.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-DdjkYDpz.js → CreatedOnDcom-fr-ca-C6Mc--2a.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-B3v0x4gQ.js → CreatedOnDcom-fr-fr-Ffrd6Erx.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-DJe-M_Ue.js → CreatedOnDcom-pt-br-BfoY5gWJ.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-B1aOyZ5I.js → CreatedOnDcom-pt-pt-f0ywi387.js} +1 -1
  15. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMakerTemplateSettings.mixin.js +2 -5
  16. package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.js +4 -4
  17. package/lib/src/brand-page-maker/composables/useEventTracker.d.ts +6 -0
  18. package/lib/src/brand-page-maker/composables/useEventTracker.js +6 -0
  19. package/lib/src/brand-page-maker/constants/template-constants.d.ts +1 -2
  20. package/lib/src/brand-page-maker/constants/template-constants.js +1 -2
  21. package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +21 -0
  22. package/lib/src/brand-page-maker/utils/rich-text-editor.util.js +10 -2
  23. package/lib/src/{bundled-translations-DAA_muNW.js → bundled-translations-CMyG8Azk.js} +54 -54
  24. package/lib/src/{bundled-translations.de-DE-DmZSAEA4.js → bundled-translations.de-DE-BJPw07Ba.js} +36 -36
  25. package/lib/src/{bundled-translations.es-ES-CGUGm_zy.js → bundled-translations.es-ES-DqQ7zLxJ.js} +58 -58
  26. package/lib/src/{bundled-translations.fr-CA-UkcZ1_qS.js → bundled-translations.fr-CA-2dy4OokC.js} +47 -47
  27. package/lib/src/{bundled-translations.fr-FR-D43nbl6A.js → bundled-translations.fr-FR-Bjh3iNSg.js} +25 -25
  28. package/lib/src/{bundled-translations.pt-BR-B0o-8NGd.js → bundled-translations.pt-BR-BRC_B0LW.js} +13 -13
  29. package/lib/src/{bundled-translations.pt-PT-Cx-eIl9m.js → bundled-translations.pt-PT-Ka3E8T1F.js} +56 -56
  30. package/lib/src/bundles/bundled-translations.de-DE.json +13 -1
  31. package/lib/src/bundles/bundled-translations.es-ES.json +13 -1
  32. package/lib/src/bundles/bundled-translations.fr-CA.json +13 -1
  33. package/lib/src/bundles/bundled-translations.fr-FR.json +13 -1
  34. package/lib/src/bundles/bundled-translations.json +13 -1
  35. package/lib/src/bundles/bundled-translations.pt-BR.json +13 -1
  36. package/lib/src/bundles/bundled-translations.pt-PT.json +13 -1
  37. package/lib/src/clients/design-template-client.d.ts +2 -0
  38. package/lib/src/clients/fabric-render-client.d.ts +3 -0
  39. package/lib/src/css/library.brand-page-brandCrowd.min.css +69 -20
  40. package/lib/src/css/library.brand-page-brandPage.min.css +69 -20
  41. package/lib/src/css/library.brand-page-designCom.min.css +69 -20
  42. package/lib/src/css/library.brand-page-preview.min.css +69 -20
  43. package/lib/src/index.d.ts +1 -1
  44. package/lib/src/index.mjs +92 -92
  45. package/lib/src/{lib-5LK-vR4z.js → lib-BcLmSEKI.js} +17326 -17136
  46. package/lib/src/lib.js +1 -1
  47. package/lib/src/shared/logo-settings/components/EditLogoSettings.mixin.d.ts +10 -0
  48. package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +10 -0
  49. package/lib/src/shared/logo-settings/store/editable-logo-store.d.ts +14 -0
  50. package/lib/src/shared/logo-settings/store/editable-logo-store.js +46 -0
  51. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +10 -0
  52. package/lib/src/shared/template-settings/components/TemplatesSettings.mixin.d.ts +1 -0
  53. package/lib/src/shared/template-settings/components/TemplatesSettings.mixin.js +33 -0
  54. package/lib/src/shared/template-settings/store/template-settings-store.js +57 -9
  55. package/package.json +2 -2
  56. package/src/brand-page-maker/components/brand-page-maker/BrandPageMakerTemplateSettings.mixin.ts +1 -6
  57. package/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.ts +4 -4
  58. package/src/brand-page-maker/composables/useEventTracker.ts +8 -0
  59. package/src/brand-page-maker/constants/template-constants.ts +1 -2
  60. package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +24 -0
  61. package/src/brand-page-maker/utils/rich-text-editor.util.ts +11 -2
  62. package/src/bundles/bundled-translations.de-DE.json +13 -1
  63. package/src/bundles/bundled-translations.es-ES.json +13 -1
  64. package/src/bundles/bundled-translations.fr-CA.json +13 -1
  65. package/src/bundles/bundled-translations.fr-FR.json +13 -1
  66. package/src/bundles/bundled-translations.json +13 -1
  67. package/src/bundles/bundled-translations.pt-BR.json +13 -1
  68. package/src/bundles/bundled-translations.pt-PT.json +13 -1
  69. package/src/clients/design-template-client.ts +2 -0
  70. package/src/clients/fabric-render-client.ts +3 -0
  71. package/src/lib.ts +1 -0
  72. package/src/shared/content-settings/components/generate-ai-modal/GenerateAiModal.vue +209 -12
  73. package/src/shared/content-settings/components/generate-ai-modal/i18n/generate-ai.de-DE.json +13 -1
  74. package/src/shared/content-settings/components/generate-ai-modal/i18n/generate-ai.es-ES.json +13 -1
  75. package/src/shared/content-settings/components/generate-ai-modal/i18n/generate-ai.fr-CA.json +13 -1
  76. package/src/shared/content-settings/components/generate-ai-modal/i18n/generate-ai.fr-FR.json +13 -1
  77. package/src/shared/content-settings/components/generate-ai-modal/i18n/generate-ai.json +13 -1
  78. package/src/shared/content-settings/components/generate-ai-modal/i18n/generate-ai.pt-BR.json +13 -1
  79. package/src/shared/content-settings/components/generate-ai-modal/i18n/generate-ai.pt-PT.json +13 -1
  80. package/src/shared/logo-settings/store/editable-logo-store.ts +67 -0
  81. package/src/shared/template-settings/components/TemplatesSettings.mixin.ts +46 -0
  82. package/src/shared/template-settings/store/template-settings-store.ts +78 -10
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-5LK-vR4z.js";
2
+ import { _ as t } from "./lib-BcLmSEKI.js";
3
3
  const i = {}, h = {
4
4
  width: "275",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-5LK-vR4z.js";
2
+ import { _ as t } from "./lib-BcLmSEKI.js";
3
3
  const i = {}, h = {
4
4
  width: "251",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-5LK-vR4z.js";
2
+ import { _ as t } from "./lib-BcLmSEKI.js";
3
3
  const i = {}, h = {
4
4
  width: "250",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-5LK-vR4z.js";
2
+ import { _ as t } from "./lib-BcLmSEKI.js";
3
3
  const i = {}, h = {
4
4
  width: "237",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-5LK-vR4z.js";
2
+ import { _ as t } from "./lib-BcLmSEKI.js";
3
3
  const i = {}, h = {
4
4
  width: "237",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-5LK-vR4z.js";
2
+ import { _ as t } from "./lib-BcLmSEKI.js";
3
3
  const i = {}, h = {
4
4
  width: "263",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-5LK-vR4z.js";
2
+ import { _ as t } from "./lib-BcLmSEKI.js";
3
3
  const i = {}, h = {
4
4
  width: "263",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-5LK-vR4z.js";
2
+ import { _ as e } from "./lib-BcLmSEKI.js";
3
3
  const M = {}, Z = {
4
4
  width: "242",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-5LK-vR4z.js";
2
+ import { _ as e } from "./lib-BcLmSEKI.js";
3
3
  const i = {}, M = {
4
4
  width: "231",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-5LK-vR4z.js";
2
+ import { _ as e } from "./lib-BcLmSEKI.js";
3
3
  const M = {}, Z = {
4
4
  width: "230",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-5LK-vR4z.js";
2
+ import { _ as e } from "./lib-BcLmSEKI.js";
3
3
  const i = {}, l = {
4
4
  width: "216",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-5LK-vR4z.js";
2
+ import { _ as e } from "./lib-BcLmSEKI.js";
3
3
  const i = {}, l = {
4
4
  width: "216",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as M } from "./lib-5LK-vR4z.js";
2
+ import { _ as M } from "./lib-BcLmSEKI.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as M } from "./lib-5LK-vR4z.js";
2
+ import { _ as M } from "./lib-BcLmSEKI.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { computed, defineComponent } from 'vue';
2
- import { DESKTOP_HEIGHT, DESKTOP_WIDTH, MOBILE_HEIGHT, MOBILE_WIDTH, MOBILE_HEIGHT_POST_PURCHASE, } from '../../constants';
2
+ import { DESKTOP_HEIGHT, DESKTOP_WIDTH, MOBILE_HEIGHT, MOBILE_WIDTH, } from '../../constants';
3
3
  import { useBrandPageMakerStore, useBrandPageContainerStore, } from '../../../lib';
4
4
  export default defineComponent({
5
5
  setup() {
@@ -21,10 +21,7 @@ export default defineComponent({
21
21
  return this.isBrandSite ? DESKTOP_WIDTH : MOBILE_WIDTH;
22
22
  },
23
23
  height() {
24
- if (this.isBrandSite) {
25
- return DESKTOP_HEIGHT;
26
- }
27
- return this.isPrePurchase ? MOBILE_HEIGHT : MOBILE_HEIGHT_POST_PURCHASE;
24
+ return this.isBrandSite ? DESKTOP_HEIGHT : MOBILE_HEIGHT;
28
25
  },
29
26
  },
30
27
  });
@@ -189,7 +189,7 @@ export default defineComponent({
189
189
  },
190
190
  watch: {
191
191
  template() {
192
- if (this.isAdmin || this.isPrePurchase) {
192
+ if (this.isAdmin) {
193
193
  this.updateViewModel();
194
194
  }
195
195
  else {
@@ -200,7 +200,7 @@ export default defineComponent({
200
200
  },
201
201
  logoTheme: {
202
202
  handler() {
203
- if (this.isAdmin || this.isPrePurchase) {
203
+ if (this.isAdmin) {
204
204
  this.updateViewModel();
205
205
  }
206
206
  },
@@ -208,7 +208,7 @@ export default defineComponent({
208
208
  },
209
209
  previewImageUrl() {
210
210
  // Reset loading state whenever the preview URL changes
211
- if (!this.isAdmin && !this.isPrePurchase) {
211
+ if (!this.isAdmin) {
212
212
  this.imageLoading = true;
213
213
  this.imageLoadError = false;
214
214
  }
@@ -267,7 +267,7 @@ export default defineComponent({
267
267
  },
268
268
  async updateViewModel(forceUpdate = true) {
269
269
  // Only update view model for admin or pre-purchase mode
270
- if (!this.isAdmin && !this.isPrePurchase) {
270
+ if (!this.isAdmin) {
271
271
  return;
272
272
  }
273
273
  const videoStore = useVideoStore();
@@ -49,6 +49,7 @@ export declare const EVENTS: {
49
49
  WEBSITE_MAKER_AI_STOP_GENERATION: string;
50
50
  WEBSITE_SAVE_CONTACT: string;
51
51
  WEBSITE_START_FOR_FREE: string;
52
+ WEBSITE_MAKER_AI_CLICK_SUGGESTED_PROMPT: string;
52
53
  };
53
54
  export declare const SELECT_LOCATIONS: {
54
55
  MAKER_PREVIEW: string;
@@ -77,6 +78,11 @@ export declare const GENERATE_AI_TEXT_CTA_LOCATIONS: {
77
78
  TEXT_ITEM: string;
78
79
  TESTIMONIAL_ITEM: string;
79
80
  };
81
+ export declare const GENERATE_AI_SUGGESTED_PROMPT: {
82
+ GENERATE_TEXT: string;
83
+ IMPROVE_TEXT: string;
84
+ SPELL_CHECK: string;
85
+ };
80
86
  export declare const TRIGGER_TYPE: {
81
87
  AUTOMATIC: string;
82
88
  USER_TRIGGERED: string;
@@ -32,6 +32,7 @@ export const EVENTS = {
32
32
  WEBSITE_MAKER_AI_STOP_GENERATION: 'website_maker_ai_stop_generation',
33
33
  WEBSITE_SAVE_CONTACT: 'website_save_contact',
34
34
  WEBSITE_START_FOR_FREE: 'website_start_for_free',
35
+ WEBSITE_MAKER_AI_CLICK_SUGGESTED_PROMPT: 'website_maker_ai_click_suggested_prompt',
35
36
  };
36
37
  export const SELECT_LOCATIONS = {
37
38
  MAKER_PREVIEW: 'maker_preview',
@@ -60,6 +61,11 @@ export const GENERATE_AI_TEXT_CTA_LOCATIONS = {
60
61
  TEXT_ITEM: 'text_item',
61
62
  TESTIMONIAL_ITEM: 'testimonial_item',
62
63
  };
64
+ export const GENERATE_AI_SUGGESTED_PROMPT = {
65
+ GENERATE_TEXT: 'generate_text',
66
+ IMPROVE_TEXT: 'improve_text',
67
+ SPELL_CHECK: 'spell_check',
68
+ };
63
69
  export const TRIGGER_TYPE = {
64
70
  AUTOMATIC: 'automatic',
65
71
  USER_TRIGGERED: 'user_triggered',
@@ -1,5 +1,4 @@
1
- export declare const MOBILE_HEIGHT = 734;
2
- export declare const MOBILE_HEIGHT_POST_PURCHASE = 636;
1
+ export declare const MOBILE_HEIGHT = 636;
3
2
  export declare const MOBILE_WIDTH = 358;
4
3
  export declare const DESKTOP_HEIGHT = 600;
5
4
  export declare const DESKTOP_WIDTH = 1000;
@@ -1,5 +1,4 @@
1
- export const MOBILE_HEIGHT = 734;
2
- export const MOBILE_HEIGHT_POST_PURCHASE = 636;
1
+ export const MOBILE_HEIGHT = 636;
3
2
  export const MOBILE_WIDTH = 358;
4
3
  export const DESKTOP_HEIGHT = 600;
5
4
  export const DESKTOP_WIDTH = 1000;
@@ -33,6 +33,7 @@ import { commonTr, errorTr } from '../../../composables/useTranslate';
33
33
  import { UPGRADE_CTA_LOCATIONS } from '../../composables/useEventTracker';
34
34
  import { useVideoStore } from '../video';
35
35
  import { findValuesByKey } from '../../../helpers/ts.helper';
36
+ import { useLogoStore } from '../logo-store';
36
37
  const brandPageTypeTemplateTypeMap = {
37
38
  [BRAND_PAGE_TYPES.default]: 'Brand Page',
38
39
  [BRAND_PAGE_TYPES.brandSite]: 'Brand Site',
@@ -176,6 +177,8 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
176
177
  const userStore = useBrandPageMakerUserStore();
177
178
  const containerStore = useBrandPageContainerStore();
178
179
  const uiContentSettings = useUiContentSettingsStore();
180
+ const editableLogoStore = useUiEditableLogoStore();
181
+ const logoStore = useLogoStore();
179
182
  if (!this.selectedTemplateId) {
180
183
  return;
181
184
  }
@@ -205,6 +208,24 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
205
208
  }
206
209
  }
207
210
  else {
211
+ if (containerStore.isPrePurchase) {
212
+ if (logoStore.logoTemplateAsset?.isByo) {
213
+ if (uiStore.logoTheme)
214
+ uiStore.setLogoTheme({
215
+ logoTheme: uiStore.logoTheme,
216
+ });
217
+ }
218
+ else {
219
+ const logoVariation = logoSettingsStore.selectedLogoTemplateImage
220
+ ?.logoTemplateVersion ?? 0;
221
+ const logoTheme = editableLogoStore.editableLogoVariations[logoVariation]
222
+ ?.logoTheme;
223
+ if (logoTheme)
224
+ uiStore.setLogoTheme({
225
+ logoTheme: parseLogoThemeToCssStyles(logoTheme),
226
+ });
227
+ }
228
+ }
208
229
  const logoImage = logoUtil.safeGetLogoImageFromLogoImageUrl(logoImageUrl);
209
230
  // FIXME = this appears to re-run migrateLogoImageUrl
210
231
  [
@@ -134,11 +134,19 @@ export const getPlainTextFromRTE = (content) => {
134
134
  if (typeof content !== 'string') {
135
135
  return '';
136
136
  }
137
+ let plainText = content;
137
138
  // Only strip HTML tags if the value contains HTML
138
139
  if (hasRTEContent(content)) {
139
- return content.replace(/<[^>]*>/g, '').trim();
140
+ plainText = content.replace(/<[^>]*>/g, '');
140
141
  }
141
- return content.trim();
142
+ // Decode URL-encoded characters (like %0A for line breaks)
143
+ try {
144
+ plainText = decodeURIComponent(plainText);
145
+ }
146
+ catch (e) {
147
+ // If decoding fails, use the text as-is
148
+ }
149
+ return plainText.trim();
142
150
  };
143
151
  export const replaceTextInRTE = (existingHtml, newText) => {
144
152
  if (!hasRTEContent(existingHtml)) {