@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.
- package/lib/src/{CreatedOnBrandCrowd-de-de-BvZ-G5CY.js → CreatedOnBrandCrowd-de-de-BleBfKpn.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-CfSD9kFl.js → CreatedOnBrandCrowd-en-us-CQVeaaO_.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-VCfKBs-U.js → CreatedOnBrandCrowd-es-es-BDQv3Rna.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-B0kxiQP3.js → CreatedOnBrandCrowd-fr-ca-Cun9kWNn.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-B0kxiQP3.js → CreatedOnBrandCrowd-fr-fr-Cun9kWNn.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-DVvr647j.js → CreatedOnBrandCrowd-pt-br-BYKPykPZ.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-DVvr647j.js → CreatedOnBrandCrowd-pt-pt-BYKPykPZ.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-9F3bszPK.js → CreatedOnDcom-de-de-OpJW2Nsf.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-CZPB2H59.js → CreatedOnDcom-en-us-Dc-r7UZE.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-DAQE3gaj.js → CreatedOnDcom-es-es-DzI3GAb8.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-CcyzXy6k.js → CreatedOnDcom-fr-ca-CjHDpTvo.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-DLgK7zmh.js → CreatedOnDcom-fr-fr-Mz-PmO5h.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-DvS0C5O2.js → CreatedOnDcom-pt-br-Dv9FCjbb.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-D2ZYvSYl.js → CreatedOnDcom-pt-pt-BJKrhwA7.js} +1 -1
- package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +2 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.js +1 -0
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMakerTemplateSettings.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.js +1 -0
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/social-share/SocialShare.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.d.ts +3 -1
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +3 -1
- package/lib/src/clients/design-template-client.d.ts +1 -1
- package/lib/src/clients/design-template-client.js +4 -2
- package/lib/src/composables/useSnapshot.js +1 -1
- package/lib/src/css/library.brand-page-brandCrowd.min.css +20 -20
- package/lib/src/css/library.brand-page-brandPage.min.css +20 -20
- package/lib/src/css/library.brand-page-designCom.min.css +20 -20
- package/lib/src/css/library.brand-page-preview.min.css +20 -20
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-GF3PzrAQ.js → lib-2QkUgrBA.js} +11949 -11953
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +1 -1
- package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +1 -1
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +1 -1
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +1 -1
- package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +1 -1
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +1 -1
- package/package.json +1 -1
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.ts +2 -0
- package/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.ts +1 -0
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +5 -0
- package/src/clients/design-template-client.ts +5 -1
- package/src/composables/useSnapshot.ts +1 -1
- package/src/shared/content-settings/components/generate-ai-modal/GenerateAiModal.vue +8 -11
|
@@ -115,7 +115,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
115
115
|
setBrandPageType({ brandPageType }: {
|
|
116
116
|
brandPageType: "default" | "brandSite" | "brandContact";
|
|
117
117
|
}): void;
|
|
118
|
-
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../stores").InitialisePayload): Promise<void>;
|
|
118
|
+
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../stores").InitialisePayload): Promise<void>;
|
|
119
119
|
initialisePages({ pages, sections, }: {
|
|
120
120
|
pages: import("../../../brand-page").PageModel[];
|
|
121
121
|
sections: import("../../../shared/page-settings/store").PageSettingsStateSections;
|
|
@@ -22,6 +22,7 @@ export interface BrandPageMakerViewModel {
|
|
|
22
22
|
isPersonalisationEnabled?: boolean;
|
|
23
23
|
brandPageType?: BrandPageType;
|
|
24
24
|
businessName?: string;
|
|
25
|
+
industry?: string;
|
|
25
26
|
}
|
|
26
27
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
27
28
|
viewModel: {
|
|
@@ -157,7 +158,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
157
158
|
setBrandPageType({ brandPageType }: {
|
|
158
159
|
brandPageType: "default" | "brandSite" | "brandContact";
|
|
159
160
|
}): void;
|
|
160
|
-
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../stores").InitialisePayload): Promise<void>;
|
|
161
|
+
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../stores").InitialisePayload): Promise<void>;
|
|
161
162
|
initialisePages({ pages, sections, }: {
|
|
162
163
|
pages: import("../../../brand-page").PageModel[];
|
|
163
164
|
sections: import("../../../shared/page-settings/store").PageSettingsStateSections;
|
|
@@ -149,6 +149,7 @@ export default defineComponent({
|
|
|
149
149
|
isPersonalisationEnabled: this.viewModel.isPersonalisationEnabled || false,
|
|
150
150
|
brandPageType: this.viewModel.brandPageType,
|
|
151
151
|
businessName: this.viewModel.businessName,
|
|
152
|
+
industry: this.viewModel.industry,
|
|
152
153
|
logoVariationImageUrls: this.viewModel.logoVariationImageUrls,
|
|
153
154
|
shopConfigData,
|
|
154
155
|
});
|
|
@@ -102,7 +102,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
102
102
|
setBrandPageType({ brandPageType }: {
|
|
103
103
|
brandPageType: "default" | "brandSite" | "brandContact";
|
|
104
104
|
}): void;
|
|
105
|
-
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../stores").InitialisePayload): Promise<void>;
|
|
105
|
+
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../stores").InitialisePayload): Promise<void>;
|
|
106
106
|
initialisePages({ pages, sections, }: {
|
|
107
107
|
pages: import("../../../lib").PageModel[];
|
|
108
108
|
sections: import("../../../shared/page-settings/store").PageSettingsStateSections;
|
package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.js
CHANGED
|
@@ -2039,6 +2039,7 @@ export const INITIALISE_PAYLOAD = Object.freeze({
|
|
|
2039
2039
|
personalisationData: undefined,
|
|
2040
2040
|
isPersonalisationEnabled: false,
|
|
2041
2041
|
businessName: '',
|
|
2042
|
+
industry: '',
|
|
2042
2043
|
logoImage: { ...EMPTY_LOGO_IMAGE_MODEL },
|
|
2043
2044
|
shopConfigData: '',
|
|
2044
2045
|
});
|
package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts
CHANGED
|
@@ -609,7 +609,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
609
609
|
setBrandPageType({ brandPageType }: {
|
|
610
610
|
brandPageType: "default" | "brandSite" | "brandContact";
|
|
611
611
|
}): void;
|
|
612
|
-
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../stores").InitialisePayload): Promise<void>;
|
|
612
|
+
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../stores").InitialisePayload): Promise<void>;
|
|
613
613
|
initialisePages({ pages, sections, }: {
|
|
614
614
|
pages: import("../../../brand-page").PageModel[];
|
|
615
615
|
sections: import("../../../shared/page-settings/store").PageSettingsStateSections;
|
|
@@ -109,7 +109,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
109
109
|
setBrandPageType({ brandPageType }: {
|
|
110
110
|
brandPageType: "default" | "brandSite" | "brandContact";
|
|
111
111
|
}): void;
|
|
112
|
-
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../stores").InitialisePayload): Promise<void>;
|
|
112
|
+
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../stores").InitialisePayload): Promise<void>;
|
|
113
113
|
initialisePages({ pages, sections, }: {
|
|
114
114
|
pages: import("../../../brand-page").PageModel[];
|
|
115
115
|
sections: import("../../../shared/page-settings/store").PageSettingsStateSections;
|
|
@@ -346,7 +346,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
346
346
|
setBrandPageType({ brandPageType }: {
|
|
347
347
|
brandPageType: "default" | "brandSite" | "brandContact";
|
|
348
348
|
}): void;
|
|
349
|
-
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../stores").InitialisePayload): Promise<void>;
|
|
349
|
+
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../stores").InitialisePayload): Promise<void>;
|
|
350
350
|
initialisePages({ pages, sections, }: {
|
|
351
351
|
pages: import("../../../brand-page").PageModel[];
|
|
352
352
|
sections: import("../../../shared/page-settings/store").PageSettingsStateSections;
|
|
@@ -345,7 +345,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
345
345
|
setBrandPageType({ brandPageType }: {
|
|
346
346
|
brandPageType: "default" | "brandSite" | "brandContact";
|
|
347
347
|
}): void;
|
|
348
|
-
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../stores").InitialisePayload): Promise<void>;
|
|
348
|
+
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../stores").InitialisePayload): Promise<void>;
|
|
349
349
|
initialisePages({ pages, sections, }: {
|
|
350
350
|
pages: import("../../../brand-page").PageModel[];
|
|
351
351
|
sections: import("../../../shared/page-settings/store").PageSettingsStateSections;
|
|
@@ -119,7 +119,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
119
119
|
setBrandPageType({ brandPageType }: {
|
|
120
120
|
brandPageType: "default" | "brandSite" | "brandContact";
|
|
121
121
|
}): void;
|
|
122
|
-
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../stores").InitialisePayload): Promise<void>;
|
|
122
|
+
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../stores").InitialisePayload): Promise<void>;
|
|
123
123
|
initialisePages({ pages, sections, }: {
|
|
124
124
|
pages: import("../../../brand-page").PageModel[];
|
|
125
125
|
sections: import("../../../shared/page-settings/store").PageSettingsStateSections;
|
|
@@ -400,7 +400,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
400
400
|
setBrandPageType({ brandPageType }: {
|
|
401
401
|
brandPageType: "default" | "brandSite" | "brandContact";
|
|
402
402
|
}): void;
|
|
403
|
-
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../stores").InitialisePayload): Promise<void>;
|
|
403
|
+
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../stores").InitialisePayload): Promise<void>;
|
|
404
404
|
initialisePages({ pages, sections, }: {
|
|
405
405
|
pages: import("../../../brand-page").PageModel[];
|
|
406
406
|
sections: import("../../../shared/page-settings/store").PageSettingsStateSections;
|
|
@@ -24,6 +24,7 @@ export interface InitialisePayload {
|
|
|
24
24
|
personalisationData?: UserPersonalisationContent[];
|
|
25
25
|
isPersonalisationEnabled: boolean;
|
|
26
26
|
businessName: string | undefined;
|
|
27
|
+
industry: string | undefined;
|
|
27
28
|
logoVariationImageUrls: string[];
|
|
28
29
|
shopConfigData: string | ShopConfigData;
|
|
29
30
|
isServerRenderOverride?: boolean;
|
|
@@ -52,6 +53,7 @@ export interface BrandPageMakerState {
|
|
|
52
53
|
ogTitle: string | undefined;
|
|
53
54
|
ogDescription: string | undefined;
|
|
54
55
|
businessName: string | undefined;
|
|
56
|
+
industry: string | undefined;
|
|
55
57
|
cookieOptions: CookieOptions;
|
|
56
58
|
sensitiveContent: SensitiveContent;
|
|
57
59
|
isBrandPage: boolean;
|
|
@@ -183,7 +185,7 @@ export declare const useBrandPageMakerStore: import("pinia").StoreDefinition<"br
|
|
|
183
185
|
setBrandPageType({ brandPageType }: {
|
|
184
186
|
brandPageType: BrandPageType;
|
|
185
187
|
}): void;
|
|
186
|
-
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: InitialisePayload): Promise<void>;
|
|
188
|
+
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: InitialisePayload): Promise<void>;
|
|
187
189
|
initialisePages({ pages, sections, }: {
|
|
188
190
|
pages: PageModel[];
|
|
189
191
|
sections: PageSettingsStateSections;
|
|
@@ -64,6 +64,7 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
|
|
|
64
64
|
ogTitle: undefined,
|
|
65
65
|
ogDescription: undefined,
|
|
66
66
|
businessName: undefined,
|
|
67
|
+
industry: undefined,
|
|
67
68
|
isBrandPage: true,
|
|
68
69
|
isBrandPageOrIsBrandContact: false,
|
|
69
70
|
isBrandSite: false,
|
|
@@ -407,7 +408,7 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
|
|
|
407
408
|
brandPageType === BRAND_PAGE_TYPES.brandContact;
|
|
408
409
|
this.isBrandContact = brandPageType === BRAND_PAGE_TYPES.brandContact;
|
|
409
410
|
},
|
|
410
|
-
async initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData, isServerRenderOverride = false, }) {
|
|
411
|
+
async initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride = false, }) {
|
|
411
412
|
const brandPageContainerStore = useBrandPageContainerStore();
|
|
412
413
|
const userStore = useBrandPageMakerUserStore();
|
|
413
414
|
const uiStore = useUiStore();
|
|
@@ -623,6 +624,7 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
|
|
|
623
624
|
isCookiePreviewEnabled: brandPageModel.cookieOptions?.isCookiePreviewEnabled,
|
|
624
625
|
});
|
|
625
626
|
this.businessName = businessName;
|
|
627
|
+
this.industry = industry;
|
|
626
628
|
}
|
|
627
629
|
finally {
|
|
628
630
|
this.setIsInitialising({ isInitialising: false });
|
|
@@ -30,7 +30,7 @@ export declare class DesignTemplateClient {
|
|
|
30
30
|
constructor(options?: DesignTemplateClientOptions);
|
|
31
31
|
getTemplateItemsByTemplateType(templateTypeName: string, options?: GetTemplatesAsyncOptions): Promise<Paginated<PaginatedDesignTemplateItem> | null>;
|
|
32
32
|
getTemplateByTemplateToken(templateToken: string): Promise<DesignTemplate | null>;
|
|
33
|
-
generateText(prompt: string, existingText?: string, snapshotBase64?: string): Promise<string | null>;
|
|
33
|
+
generateText(prompt: string, existingText?: string, snapshotBase64?: string, businessName?: string, industry?: string): Promise<string | null>;
|
|
34
34
|
}
|
|
35
35
|
export declare const getInstance: () => DesignTemplateClient;
|
|
36
36
|
export {};
|
|
@@ -48,7 +48,7 @@ export class DesignTemplateClient {
|
|
|
48
48
|
}
|
|
49
49
|
return null;
|
|
50
50
|
}
|
|
51
|
-
async generateText(prompt, existingText, snapshotBase64) {
|
|
51
|
+
async generateText(prompt, existingText, snapshotBase64, businessName, industry) {
|
|
52
52
|
try {
|
|
53
53
|
// Get CSRF token from meta tag
|
|
54
54
|
const csrfToken = document.head
|
|
@@ -56,8 +56,10 @@ export class DesignTemplateClient {
|
|
|
56
56
|
?.getAttribute('content');
|
|
57
57
|
const response = await axios.post(getGenerateTextEndpoint(), {
|
|
58
58
|
prompt,
|
|
59
|
-
existingText: existingText || '
|
|
59
|
+
existingText: existingText || '',
|
|
60
60
|
snapshotBase64: snapshotBase64 || '',
|
|
61
|
+
businessName: businessName || '',
|
|
62
|
+
industry: industry || '',
|
|
61
63
|
}, {
|
|
62
64
|
withCredentials: true,
|
|
63
65
|
headers: {
|
|
@@ -50,7 +50,7 @@ export function useSnapshot() {
|
|
|
50
50
|
const canvas = await window.html2canvas(element, {
|
|
51
51
|
allowTaint: true,
|
|
52
52
|
useCORS: true,
|
|
53
|
-
scale: 0.
|
|
53
|
+
scale: 0.8, // Reduce quality to decrease file size
|
|
54
54
|
logging: false,
|
|
55
55
|
backgroundColor: '#ffffff',
|
|
56
56
|
});
|
|
@@ -8493,23 +8493,23 @@ input[type='number'][data-v-28a532b4] {
|
|
|
8493
8493
|
}
|
|
8494
8494
|
}
|
|
8495
8495
|
|
|
8496
|
-
.c-modal-dcom[data-v-
|
|
8496
|
+
.c-modal-dcom[data-v-1300f9de] {
|
|
8497
8497
|
background-color: #eceefe;
|
|
8498
8498
|
border: 1px solid #3247c5;
|
|
8499
8499
|
}
|
|
8500
|
-
.c-modal-bc[data-v-
|
|
8500
|
+
.c-modal-bc[data-v-1300f9de] {
|
|
8501
8501
|
background-color: #cceaf7;
|
|
8502
8502
|
border: 1px solid #0097d7;
|
|
8503
8503
|
}
|
|
8504
|
-
.typing-cursor[data-v-
|
|
8504
|
+
.typing-cursor[data-v-1300f9de] {
|
|
8505
8505
|
display: inline-block;
|
|
8506
|
-
-webkit-animation: blink-
|
|
8507
|
-
animation: blink-
|
|
8506
|
+
-webkit-animation: blink-1300f9de 1s step-end infinite;
|
|
8507
|
+
animation: blink-1300f9de 1s step-end infinite;
|
|
8508
8508
|
color: #3247c5;
|
|
8509
8509
|
font-weight: bold;
|
|
8510
8510
|
margin-left: 2px;
|
|
8511
8511
|
}
|
|
8512
|
-
.prompt-textarea[data-v-
|
|
8512
|
+
.prompt-textarea[data-v-1300f9de] {
|
|
8513
8513
|
line-height: 1.5;
|
|
8514
8514
|
min-height: 4.5rem; /* Minimum 3 rows on mobile (1.5em * 3) */
|
|
8515
8515
|
max-height: calc(7.5em + 1rem); /* Maximum 5 rows */
|
|
@@ -8520,49 +8520,49 @@ input[type='number'][data-v-28a532b4] {
|
|
|
8520
8520
|
|
|
8521
8521
|
/* Desktop: smaller minimum height */
|
|
8522
8522
|
@media (min-width: 640px) {
|
|
8523
|
-
.prompt-textarea[data-v-
|
|
8523
|
+
.prompt-textarea[data-v-1300f9de] {
|
|
8524
8524
|
min-height: 2.5rem; /* Single line on desktop */
|
|
8525
8525
|
}
|
|
8526
8526
|
}
|
|
8527
|
-
.prompt-textarea[data-v-
|
|
8527
|
+
.prompt-textarea[data-v-1300f9de]::-webkit-input-placeholder {
|
|
8528
8528
|
color: rgb(96 96 96 / 50%);
|
|
8529
8529
|
}
|
|
8530
|
-
.prompt-textarea[data-v-
|
|
8530
|
+
.prompt-textarea[data-v-1300f9de]::-moz-placeholder {
|
|
8531
8531
|
color: rgb(96 96 96 / 50%);
|
|
8532
8532
|
}
|
|
8533
|
-
.prompt-textarea[data-v-
|
|
8533
|
+
.prompt-textarea[data-v-1300f9de]:-ms-input-placeholder {
|
|
8534
8534
|
color: rgb(96 96 96 / 50%);
|
|
8535
8535
|
}
|
|
8536
|
-
.prompt-textarea[data-v-
|
|
8536
|
+
.prompt-textarea[data-v-1300f9de]::-ms-input-placeholder {
|
|
8537
8537
|
color: rgb(96 96 96 / 50%);
|
|
8538
8538
|
}
|
|
8539
|
-
.prompt-textarea[data-v-
|
|
8539
|
+
.prompt-textarea[data-v-1300f9de]::placeholder {
|
|
8540
8540
|
color: rgb(96 96 96 / 50%);
|
|
8541
8541
|
}
|
|
8542
8542
|
|
|
8543
8543
|
/* Ensure border is visible when scrollbar appears */
|
|
8544
|
-
.prompt-textarea[data-v-
|
|
8544
|
+
.prompt-textarea[data-v-1300f9de]::-webkit-scrollbar {
|
|
8545
8545
|
width: 8px;
|
|
8546
8546
|
}
|
|
8547
|
-
.prompt-textarea[data-v-
|
|
8547
|
+
.prompt-textarea[data-v-1300f9de]::-webkit-scrollbar-track {
|
|
8548
8548
|
background: transparent;
|
|
8549
8549
|
margin: 2px;
|
|
8550
8550
|
}
|
|
8551
|
-
.prompt-textarea[data-v-
|
|
8551
|
+
.prompt-textarea[data-v-1300f9de]::-webkit-scrollbar-thumb {
|
|
8552
8552
|
background: rgb(96 96 96 / 30%);
|
|
8553
8553
|
border-radius: 4px;
|
|
8554
8554
|
}
|
|
8555
|
-
.prompt-textarea[data-v-
|
|
8555
|
+
.prompt-textarea[data-v-1300f9de]::-webkit-scrollbar-thumb:hover {
|
|
8556
8556
|
background: rgb(96 96 96 / 50%);
|
|
8557
8557
|
}
|
|
8558
|
-
.text-grayscale[data-v-
|
|
8558
|
+
.text-grayscale[data-v-1300f9de] {
|
|
8559
8559
|
color: rgb(96 96 96 / 50%);
|
|
8560
8560
|
}
|
|
8561
|
-
.text-success[data-v-
|
|
8561
|
+
.text-success[data-v-1300f9de] {
|
|
8562
8562
|
--tw-text-opacity: 1;
|
|
8563
8563
|
color: rgb(29 134 13 / var(--tw-text-opacity));
|
|
8564
8564
|
}
|
|
8565
|
-
@-webkit-keyframes blink-
|
|
8565
|
+
@-webkit-keyframes blink-1300f9de {
|
|
8566
8566
|
0%,
|
|
8567
8567
|
50% {
|
|
8568
8568
|
opacity: 1;
|
|
@@ -8572,7 +8572,7 @@ input[type='number'][data-v-28a532b4] {
|
|
|
8572
8572
|
opacity: 0;
|
|
8573
8573
|
}
|
|
8574
8574
|
}
|
|
8575
|
-
@keyframes blink-
|
|
8575
|
+
@keyframes blink-1300f9de {
|
|
8576
8576
|
0%,
|
|
8577
8577
|
50% {
|
|
8578
8578
|
opacity: 1;
|
|
@@ -8808,23 +8808,23 @@ input[type='number'][data-v-28a532b4] {
|
|
|
8808
8808
|
}
|
|
8809
8809
|
}
|
|
8810
8810
|
|
|
8811
|
-
.c-modal-dcom[data-v-
|
|
8811
|
+
.c-modal-dcom[data-v-1300f9de] {
|
|
8812
8812
|
background-color: #eceefe;
|
|
8813
8813
|
border: 1px solid #3247c5;
|
|
8814
8814
|
}
|
|
8815
|
-
.c-modal-bc[data-v-
|
|
8815
|
+
.c-modal-bc[data-v-1300f9de] {
|
|
8816
8816
|
background-color: #cceaf7;
|
|
8817
8817
|
border: 1px solid #0097d7;
|
|
8818
8818
|
}
|
|
8819
|
-
.typing-cursor[data-v-
|
|
8819
|
+
.typing-cursor[data-v-1300f9de] {
|
|
8820
8820
|
display: inline-block;
|
|
8821
|
-
-webkit-animation: blink-
|
|
8822
|
-
animation: blink-
|
|
8821
|
+
-webkit-animation: blink-1300f9de 1s step-end infinite;
|
|
8822
|
+
animation: blink-1300f9de 1s step-end infinite;
|
|
8823
8823
|
color: #3247c5;
|
|
8824
8824
|
font-weight: bold;
|
|
8825
8825
|
margin-left: 2px;
|
|
8826
8826
|
}
|
|
8827
|
-
.prompt-textarea[data-v-
|
|
8827
|
+
.prompt-textarea[data-v-1300f9de] {
|
|
8828
8828
|
line-height: 1.5;
|
|
8829
8829
|
min-height: 4.5rem; /* Minimum 3 rows on mobile (1.5em * 3) */
|
|
8830
8830
|
max-height: calc(7.5em + 1rem); /* Maximum 5 rows */
|
|
@@ -8835,49 +8835,49 @@ input[type='number'][data-v-28a532b4] {
|
|
|
8835
8835
|
|
|
8836
8836
|
/* Desktop: smaller minimum height */
|
|
8837
8837
|
@media (min-width: 640px) {
|
|
8838
|
-
.prompt-textarea[data-v-
|
|
8838
|
+
.prompt-textarea[data-v-1300f9de] {
|
|
8839
8839
|
min-height: 2.5rem; /* Single line on desktop */
|
|
8840
8840
|
}
|
|
8841
8841
|
}
|
|
8842
|
-
.prompt-textarea[data-v-
|
|
8842
|
+
.prompt-textarea[data-v-1300f9de]::-webkit-input-placeholder {
|
|
8843
8843
|
color: rgb(96 96 96 / 50%);
|
|
8844
8844
|
}
|
|
8845
|
-
.prompt-textarea[data-v-
|
|
8845
|
+
.prompt-textarea[data-v-1300f9de]::-moz-placeholder {
|
|
8846
8846
|
color: rgb(96 96 96 / 50%);
|
|
8847
8847
|
}
|
|
8848
|
-
.prompt-textarea[data-v-
|
|
8848
|
+
.prompt-textarea[data-v-1300f9de]:-ms-input-placeholder {
|
|
8849
8849
|
color: rgb(96 96 96 / 50%);
|
|
8850
8850
|
}
|
|
8851
|
-
.prompt-textarea[data-v-
|
|
8851
|
+
.prompt-textarea[data-v-1300f9de]::-ms-input-placeholder {
|
|
8852
8852
|
color: rgb(96 96 96 / 50%);
|
|
8853
8853
|
}
|
|
8854
|
-
.prompt-textarea[data-v-
|
|
8854
|
+
.prompt-textarea[data-v-1300f9de]::placeholder {
|
|
8855
8855
|
color: rgb(96 96 96 / 50%);
|
|
8856
8856
|
}
|
|
8857
8857
|
|
|
8858
8858
|
/* Ensure border is visible when scrollbar appears */
|
|
8859
|
-
.prompt-textarea[data-v-
|
|
8859
|
+
.prompt-textarea[data-v-1300f9de]::-webkit-scrollbar {
|
|
8860
8860
|
width: 8px;
|
|
8861
8861
|
}
|
|
8862
|
-
.prompt-textarea[data-v-
|
|
8862
|
+
.prompt-textarea[data-v-1300f9de]::-webkit-scrollbar-track {
|
|
8863
8863
|
background: transparent;
|
|
8864
8864
|
margin: 2px;
|
|
8865
8865
|
}
|
|
8866
|
-
.prompt-textarea[data-v-
|
|
8866
|
+
.prompt-textarea[data-v-1300f9de]::-webkit-scrollbar-thumb {
|
|
8867
8867
|
background: rgb(96 96 96 / 30%);
|
|
8868
8868
|
border-radius: 4px;
|
|
8869
8869
|
}
|
|
8870
|
-
.prompt-textarea[data-v-
|
|
8870
|
+
.prompt-textarea[data-v-1300f9de]::-webkit-scrollbar-thumb:hover {
|
|
8871
8871
|
background: rgb(96 96 96 / 50%);
|
|
8872
8872
|
}
|
|
8873
|
-
.text-grayscale[data-v-
|
|
8873
|
+
.text-grayscale[data-v-1300f9de] {
|
|
8874
8874
|
color: rgb(96 96 96 / 50%);
|
|
8875
8875
|
}
|
|
8876
|
-
.text-success[data-v-
|
|
8876
|
+
.text-success[data-v-1300f9de] {
|
|
8877
8877
|
--tw-text-opacity: 1;
|
|
8878
8878
|
color: rgb(29 134 13 / var(--tw-text-opacity));
|
|
8879
8879
|
}
|
|
8880
|
-
@-webkit-keyframes blink-
|
|
8880
|
+
@-webkit-keyframes blink-1300f9de {
|
|
8881
8881
|
0%,
|
|
8882
8882
|
50% {
|
|
8883
8883
|
opacity: 1;
|
|
@@ -8887,7 +8887,7 @@ input[type='number'][data-v-28a532b4] {
|
|
|
8887
8887
|
opacity: 0;
|
|
8888
8888
|
}
|
|
8889
8889
|
}
|
|
8890
|
-
@keyframes blink-
|
|
8890
|
+
@keyframes blink-1300f9de {
|
|
8891
8891
|
0%,
|
|
8892
8892
|
50% {
|
|
8893
8893
|
opacity: 1;
|