@designcrowd/library.brand-page 5.16.14 → 5.16.15

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 (51) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-BvZ-G5CY.js → CreatedOnBrandCrowd-de-de-BleBfKpn.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-CfSD9kFl.js → CreatedOnBrandCrowd-en-us-CQVeaaO_.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-VCfKBs-U.js → CreatedOnBrandCrowd-es-es-BDQv3Rna.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-B0kxiQP3.js → CreatedOnBrandCrowd-fr-ca-Cun9kWNn.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-B0kxiQP3.js → CreatedOnBrandCrowd-fr-fr-Cun9kWNn.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-DVvr647j.js → CreatedOnBrandCrowd-pt-br-BYKPykPZ.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-DVvr647j.js → CreatedOnBrandCrowd-pt-pt-BYKPykPZ.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-9F3bszPK.js → CreatedOnDcom-de-de-OpJW2Nsf.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-CZPB2H59.js → CreatedOnDcom-en-us-Dc-r7UZE.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-DAQE3gaj.js → CreatedOnDcom-es-es-DzI3GAb8.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-CcyzXy6k.js → CreatedOnDcom-fr-ca-CjHDpTvo.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-DLgK7zmh.js → CreatedOnDcom-fr-fr-Mz-PmO5h.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-DvS0C5O2.js → CreatedOnDcom-pt-br-Dv9FCjbb.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-D2ZYvSYl.js → CreatedOnDcom-pt-pt-BJKrhwA7.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/brand-page-maker/BrandPageMaker.mixin.d.ts +2 -1
  17. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.js +1 -0
  18. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMakerTemplateSettings.mixin.d.ts +1 -1
  19. package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.js +1 -0
  20. package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +1 -1
  21. package/lib/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.d.ts +1 -1
  22. package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +1 -1
  23. package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +1 -1
  24. package/lib/src/brand-page-maker/components/social-share/SocialShare.mixin.d.ts +1 -1
  25. package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +1 -1
  26. package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.d.ts +3 -1
  27. package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +3 -1
  28. package/lib/src/clients/design-template-client.d.ts +1 -1
  29. package/lib/src/clients/design-template-client.js +4 -2
  30. package/lib/src/composables/useSnapshot.js +1 -1
  31. package/lib/src/css/library.brand-page-brandCrowd.min.css +20 -20
  32. package/lib/src/css/library.brand-page-brandPage.min.css +20 -20
  33. package/lib/src/css/library.brand-page-designCom.min.css +20 -20
  34. package/lib/src/css/library.brand-page-preview.min.css +20 -20
  35. package/lib/src/index.mjs +1 -1
  36. package/lib/src/{lib-GF3PzrAQ.js → lib-2QkUgrBA.js} +11949 -11953
  37. package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +1 -1
  38. package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +1 -1
  39. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +1 -1
  40. package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +1 -1
  41. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +1 -1
  42. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +1 -1
  43. package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +1 -1
  44. package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +1 -1
  45. package/package.json +1 -1
  46. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.ts +2 -0
  47. package/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.ts +1 -0
  48. package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +5 -0
  49. package/src/clients/design-template-client.ts +5 -1
  50. package/src/composables/useSnapshot.ts +1 -1
  51. package/src/shared/content-settings/components/generate-ai-modal/GenerateAiModal.vue +8 -11
@@ -141,7 +141,7 @@ declare const _default: import("vue").DefineComponent<{}, {
141
141
  setBrandPageType({ brandPageType }: {
142
142
  brandPageType: "default" | "brandSite" | "brandContact";
143
143
  }): void;
144
- initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../../../brand-page-maker/stores").InitialisePayload): Promise<void>;
144
+ initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../../../brand-page-maker/stores").InitialisePayload): Promise<void>;
145
145
  initialisePages({ pages, sections, }: {
146
146
  pages: import("../../../../brand-page").PageModel[];
147
147
  sections: import("../../../page-settings/store").PageSettingsStateSections;
@@ -661,7 +661,7 @@ declare const _default: import("vue").DefineComponent<{}, {
661
661
  setBrandPageType({ brandPageType }: {
662
662
  brandPageType: "default" | "brandSite" | "brandContact";
663
663
  }): void;
664
- initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../../../brand-page-maker/stores").InitialisePayload): Promise<void>;
664
+ initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../../../brand-page-maker/stores").InitialisePayload): Promise<void>;
665
665
  initialisePages({ pages, sections, }: {
666
666
  pages: import("../../../../brand-page").PageModel[];
667
667
  sections: import("../../../page-settings/store").PageSettingsStateSections;
@@ -604,7 +604,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
604
604
  setBrandPageType({ brandPageType }: {
605
605
  brandPageType: "default" | "brandSite" | "brandContact";
606
606
  }): void;
607
- initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../../../brand-page-maker/stores").InitialisePayload): Promise<void>;
607
+ initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../../../brand-page-maker/stores").InitialisePayload): Promise<void>;
608
608
  initialisePages({ pages, sections, }: {
609
609
  pages: import("../../../../brand-page").PageModel[];
610
610
  sections: import("../../../page-settings/store").PageSettingsStateSections;
@@ -131,7 +131,7 @@ declare const _default: import("vue").DefineComponent<{}, {
131
131
  setBrandPageType({ brandPageType }: {
132
132
  brandPageType: "default" | "brandSite" | "brandContact";
133
133
  }): void;
134
- initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../../brand-page-maker/stores").InitialisePayload): Promise<void>;
134
+ initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../../brand-page-maker/stores").InitialisePayload): Promise<void>;
135
135
  initialisePages({ pages, sections, }: {
136
136
  pages: import("../../../brand-page").PageModel[];
137
137
  sections: import("../../page-settings/store/page-settings-store").PageSettingsStateSections;
@@ -3821,7 +3821,7 @@ declare const _default: import("vue").DefineComponent<{}, {
3821
3821
  setBrandPageType({ brandPageType }: {
3822
3822
  brandPageType: "default" | "brandSite" | "brandContact";
3823
3823
  }): void;
3824
- initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../../../brand-page-maker/stores").InitialisePayload): Promise<void>;
3824
+ initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../../../brand-page-maker/stores").InitialisePayload): Promise<void>;
3825
3825
  initialisePages({ pages, sections, }: {
3826
3826
  pages: import("../../../../brand-page").PageModel[];
3827
3827
  sections: import("../../store").PageSettingsStateSections;
@@ -4324,7 +4324,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4324
4324
  setBrandPageType({ brandPageType }: {
4325
4325
  brandPageType: "default" | "brandSite" | "brandContact";
4326
4326
  }): void;
4327
- initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../../../brand-page-maker/stores").InitialisePayload): Promise<void>;
4327
+ initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../../../brand-page-maker/stores").InitialisePayload): Promise<void>;
4328
4328
  initialisePages({ pages, sections, }: {
4329
4329
  pages: import("../../../../brand-page").PageModel[];
4330
4330
  sections: import("../../store").PageSettingsStateSections;
@@ -165,7 +165,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
165
165
  setBrandPageType({ brandPageType }: {
166
166
  brandPageType: "default" | "brandSite" | "brandContact";
167
167
  }): void;
168
- initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../brand-page-maker/stores").InitialisePayload): Promise<void>;
168
+ initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../brand-page-maker/stores").InitialisePayload): Promise<void>;
169
169
  initialisePages({ pages, sections, }: {
170
170
  pages: import("../../brand-page/models").PageModel[];
171
171
  sections: import("../page-settings/store").PageSettingsStateSections;
@@ -574,7 +574,7 @@ declare const _default: import("vue").DefineComponent<{}, {
574
574
  setBrandPageType({ brandPageType }: {
575
575
  brandPageType: "default" | "brandSite" | "brandContact";
576
576
  }): void;
577
- initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../../brand-page-maker/stores").InitialisePayload): Promise<void>;
577
+ initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../../brand-page-maker/stores").InitialisePayload): Promise<void>;
578
578
  initialisePages({ pages, sections, }: {
579
579
  pages: import("../../../brand-page").PageModel[];
580
580
  sections: import("../../page-settings/store").PageSettingsStateSections;
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": "5.16.14",
4
+ "version": "5.16.15",
5
5
  "author": "Design.com Eng",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -65,6 +65,7 @@ export interface BrandPageMakerViewModel {
65
65
  isPersonalisationEnabled?: boolean;
66
66
  brandPageType?: BrandPageType;
67
67
  businessName?: string;
68
+ industry?: string;
68
69
  }
69
70
 
70
71
  const RESIZE_DEBOUNCE_WAIT_IN_MS = 100;
@@ -221,6 +222,7 @@ export default defineComponent({
221
222
  this.viewModel.isPersonalisationEnabled || false,
222
223
  brandPageType: this.viewModel.brandPageType,
223
224
  businessName: this.viewModel.businessName,
225
+ industry: this.viewModel.industry,
224
226
  logoVariationImageUrls: this.viewModel.logoVariationImageUrls,
225
227
  shopConfigData,
226
228
  });
@@ -2137,6 +2137,7 @@ export const INITIALISE_PAYLOAD: InitialisePayload = Object.freeze({
2137
2137
  personalisationData: undefined,
2138
2138
  isPersonalisationEnabled: false,
2139
2139
  businessName: '',
2140
+ industry: '',
2140
2141
  logoImage: { ...EMPTY_LOGO_IMAGE_MODEL },
2141
2142
  shopConfigData: '',
2142
2143
  } as InitialisePayload);
@@ -120,6 +120,7 @@ export interface InitialisePayload {
120
120
  personalisationData?: UserPersonalisationContent[];
121
121
  isPersonalisationEnabled: boolean;
122
122
  businessName: string | undefined;
123
+ industry: string | undefined;
123
124
  logoVariationImageUrls: string[];
124
125
  shopConfigData: string | ShopConfigData;
125
126
  isServerRenderOverride?: boolean;
@@ -150,6 +151,7 @@ export interface BrandPageMakerState {
150
151
  ogTitle: string | undefined;
151
152
  ogDescription: string | undefined;
152
153
  businessName: string | undefined;
154
+ industry: string | undefined;
153
155
  cookieOptions: CookieOptions;
154
156
  sensitiveContent: SensitiveContent;
155
157
  isBrandPage: boolean;
@@ -218,6 +220,7 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
218
220
  ogTitle: undefined,
219
221
  ogDescription: undefined,
220
222
  businessName: undefined,
223
+ industry: undefined,
221
224
  isBrandPage: true,
222
225
  isBrandPageOrIsBrandContact: false,
223
226
  isBrandSite: false,
@@ -682,6 +685,7 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
682
685
  personalisationData,
683
686
  isPersonalisationEnabled,
684
687
  businessName,
688
+ industry,
685
689
  logoVariationImageUrls,
686
690
  shopConfigData,
687
691
  isServerRenderOverride = false,
@@ -1005,6 +1009,7 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
1005
1009
  });
1006
1010
 
1007
1011
  this.businessName = businessName;
1012
+ this.industry = industry;
1008
1013
  } finally {
1009
1014
  this.setIsInitialising({ isInitialising: false });
1010
1015
  }
@@ -113,6 +113,8 @@ export class DesignTemplateClient {
113
113
  prompt: string,
114
114
  existingText?: string,
115
115
  snapshotBase64?: string,
116
+ businessName?: string,
117
+ industry?: string,
116
118
  ): Promise<string | null> {
117
119
  try {
118
120
  // Get CSRF token from meta tag
@@ -131,8 +133,10 @@ export class DesignTemplateClient {
131
133
  getGenerateTextEndpoint(),
132
134
  {
133
135
  prompt,
134
- existingText: existingText || 'N/A',
136
+ existingText: existingText || '',
135
137
  snapshotBase64: snapshotBase64 || '',
138
+ businessName: businessName || '',
139
+ industry: industry || '',
136
140
  },
137
141
  {
138
142
  withCredentials: true,
@@ -70,7 +70,7 @@ export function useSnapshot() {
70
70
  const canvas = await window.html2canvas(element, {
71
71
  allowTaint: true,
72
72
  useCORS: true,
73
- scale: 0.5, // Reduce quality to decrease file size
73
+ scale: 0.8, // Reduce quality to decrease file size
74
74
  logging: false,
75
75
  backgroundColor: '#ffffff',
76
76
  });
@@ -168,6 +168,7 @@ import {
168
168
  useEventTracker,
169
169
  } from '../../../../brand-page-maker/composables/useEventTracker';
170
170
  import { useSnapshotStore } from '../../../../brand-page-maker/stores';
171
+ import { useBrandPageMakerStore } from '../../../../brand-page-maker/stores';
171
172
 
172
173
  interface Props {
173
174
  isVisible: boolean;
@@ -202,6 +203,11 @@ const MAX_PROMPT_LENGTH = 500;
202
203
  const snapshotStore = useSnapshotStore();
203
204
  const snapshotBase64 = computed(() => snapshotStore.snapshotBase64);
204
205
 
206
+ const brandPageMakerStore = useBrandPageMakerStore();
207
+
208
+ const businessName = computed(() => brandPageMakerStore.businessName || '');
209
+ const industry = computed(() => brandPageMakerStore.industry || '');
210
+
205
211
  // Auto-resize textarea
206
212
  const resizeTextarea = () => {
207
213
  if (textareaRef.value) {
@@ -408,6 +414,8 @@ const onSendPrompt = async (customPrompt?: string) => {
408
414
  promptToSend,
409
415
  props.existingText ?? '',
410
416
  snapshotBase64.value || undefined,
417
+ businessName.value,
418
+ industry.value,
411
419
  );
412
420
 
413
421
  // Check if generation was stopped before setting response
@@ -451,17 +459,6 @@ watch(
451
459
  resetModalState();
452
460
  data.isStopped = false;
453
461
  data.lastPromptSent = '';
454
-
455
- if (props.existingText && props.existingText.trim()) {
456
- eventTracker.sendWebsiteEvent({
457
- eventName: EVENTS.WEBSITE_MAKER_AI_SEND_PROMPT,
458
- eventProps: {
459
- cta_location: props.ctaLocation,
460
- },
461
- });
462
- const defaultPrompt = getDefaultPrompt();
463
- onSendPrompt(defaultPrompt);
464
- }
465
462
  } else if (!newValue && oldValue) {
466
463
  // Modal is closing - stop everything immediately
467
464
  data.isStopped = true;