@designcrowd/library.brand-page 5.17.18-ast-layout → 5.17.18-ast-btn-styles
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-B3Kzl17t.js → CreatedOnBrandCrowd-de-de-D2OCuUBR.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-DELbE7_X.js → CreatedOnBrandCrowd-en-us-CeQE2mrH.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-rZtjzBFS.js → CreatedOnBrandCrowd-es-es-GCt5DXs8.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-Db56MNkl.js → CreatedOnBrandCrowd-fr-ca-CX2-IOfY.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-Db56MNkl.js → CreatedOnBrandCrowd-fr-fr-CX2-IOfY.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-BgyU_-LR.js → CreatedOnBrandCrowd-pt-br-BjTeqtuz.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-BgyU_-LR.js → CreatedOnBrandCrowd-pt-pt-BjTeqtuz.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-DC1SfcCh.js → CreatedOnDcom-de-de-LJRZhI9w.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-4nXZjUop.js → CreatedOnDcom-en-us-CSy4jVVQ.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-zbJx7K9T.js → CreatedOnDcom-es-es-BhFkRbVC.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-Bql0VfNS.js → CreatedOnDcom-fr-ca-bhu0hPDU.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-B-b5k54k.js → CreatedOnDcom-fr-fr-B1whVvQJ.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-B9KQtWm7.js → CreatedOnDcom-pt-br-DtLVtfZK.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-D4T1u4a1.js → CreatedOnDcom-pt-pt-5CMzJm82.js} +1 -1
- package/lib/src/brand-page/components/button/Button.mixin.d.ts +0 -7
- package/lib/src/brand-page/components/button/Button.mixin.js +0 -41
- package/lib/src/brand-page/models/logo.model.d.ts +0 -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 +1 -2
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.js +0 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMakerTemplateSettings.mixin.d.ts +1 -1
- 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/components/template-preview/TemplatePreview.mixin.js +0 -5
- package/lib/src/brand-page-maker/models/button-styles-config.js +11 -12
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.d.ts +1 -2
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +1 -2
- package/lib/src/clients/fabric-render-client.d.ts +0 -7
- package/lib/src/clients/fabric-render-client.js +1 -4
- package/lib/src/css/library.brand-page-brandCrowd.min.css +48 -70
- package/lib/src/css/library.brand-page-brandPage.min.css +48 -70
- package/lib/src/css/library.brand-page-designCom.min.css +48 -70
- package/lib/src/css/library.brand-page-preview.min.css +48 -70
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-CXA7tc7k.js → lib-DdgsfoxJ.js} +8964 -8978
- 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/EditLogoSettings.mixin.d.ts +3 -5
- package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +4 -6
- package/lib/src/shared/logo-settings/store/editable-logo-store.d.ts +3 -5
- package/lib/src/shared/logo-settings/store/editable-logo-store.js +21 -52
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +1 -5
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +4 -10
- 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/components/button/Button.mixin.ts +0 -37
- package/src/brand-page/components/button/Button.vue +104 -178
- package/src/brand-page/components/button/ButtonStyleWrapper.vue +122 -0
- package/src/brand-page/models/logo.model.ts +0 -1
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.ts +0 -2
- package/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.ts +0 -5
- package/src/brand-page-maker/models/button-styles-config.ts +11 -12
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +0 -3
- package/src/clients/fabric-render-client.ts +1 -12
- package/src/shared/logo-settings/store/editable-logo-store.ts +18 -67
- package/src/shared/style-settings/components/StyleSettings.vue +2 -7
|
@@ -25,14 +25,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
25
25
|
iconStyle(): BrandPageCssStyle;
|
|
26
26
|
isModalUrl(): boolean;
|
|
27
27
|
isModalImageUrlValid(): boolean;
|
|
28
|
-
isPaperIcon(): boolean;
|
|
29
|
-
isArrowIcon(): boolean;
|
|
30
28
|
isBrushStrokeIcon(): boolean;
|
|
31
|
-
isShowIcon(): boolean;
|
|
32
|
-
isTopLeftIconName(): string;
|
|
33
|
-
isBottomRightIconName(): string;
|
|
34
|
-
isTopLeftIconViewBox(): string;
|
|
35
|
-
isBottomRightIconViewBox(): string;
|
|
36
29
|
href(): string | undefined;
|
|
37
30
|
isValidUrl(): boolean;
|
|
38
31
|
url(): string;
|
|
@@ -54,50 +54,9 @@ export default defineComponent({
|
|
|
54
54
|
isModalImageUrlValid() {
|
|
55
55
|
return isURL(this.viewModel.modalImageUrl);
|
|
56
56
|
},
|
|
57
|
-
isPaperIcon() {
|
|
58
|
-
return this.viewModel.styles.selectedButtonStyleId === 'BUTTON_STYLE_21';
|
|
59
|
-
},
|
|
60
|
-
isArrowIcon() {
|
|
61
|
-
return this.viewModel.styles.selectedButtonStyleId === 'BUTTON_STYLE_20';
|
|
62
|
-
},
|
|
63
57
|
isBrushStrokeIcon() {
|
|
64
58
|
return this.viewModel.styles.selectedButtonStyleId === 'BUTTON_STYLE_19';
|
|
65
59
|
},
|
|
66
|
-
isShowIcon() {
|
|
67
|
-
return this.isBrushStrokeIcon || this.isPaperIcon;
|
|
68
|
-
},
|
|
69
|
-
isTopLeftIconName() {
|
|
70
|
-
if (this.viewModel.styles.selectedButtonStyleId === 'BUTTON_STYLE_19') {
|
|
71
|
-
return 'button-brushstroke-left';
|
|
72
|
-
}
|
|
73
|
-
else {
|
|
74
|
-
return 'button-paper-top';
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
isBottomRightIconName() {
|
|
78
|
-
if (this.viewModel.styles.selectedButtonStyleId === 'BUTTON_STYLE_19') {
|
|
79
|
-
return 'button-brushstroke-right';
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
return 'button-paper-bottom';
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
isTopLeftIconViewBox() {
|
|
86
|
-
if (this.viewModel.styles.selectedButtonStyleId === 'BUTTON_STYLE_19') {
|
|
87
|
-
return '0 0 12 20';
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
return '41 0 120 16';
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
isBottomRightIconViewBox() {
|
|
94
|
-
if (this.viewModel.styles.selectedButtonStyleId === 'BUTTON_STYLE_19') {
|
|
95
|
-
return '2 0 12 20';
|
|
96
|
-
}
|
|
97
|
-
else {
|
|
98
|
-
return '41 0 120 16';
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
60
|
href() {
|
|
102
61
|
if (this.isModalUrl) {
|
|
103
62
|
return undefined;
|
|
@@ -18,7 +18,6 @@ export interface LogoTemplateImageModel {
|
|
|
18
18
|
logoTemplateToken: string;
|
|
19
19
|
logoTemplateText: string;
|
|
20
20
|
logoTemplateVersion: number;
|
|
21
|
-
layout?: string;
|
|
22
21
|
}
|
|
23
22
|
export declare const EMPTY_LOGO_IMAGE_MODEL: Readonly<LogoImageModel>;
|
|
24
23
|
export interface LogoContent extends Content, EditableLogo {
|
|
@@ -122,7 +122,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
122
122
|
brandPageType: "default" | "brandSite" | "brandContact";
|
|
123
123
|
}): void;
|
|
124
124
|
initialiseStoresByBrandPageModelAsync(brandPageModel: import("@brand-page/models").BrandPageModel): Promise<void>;
|
|
125
|
-
initialise({ brandPage, brandPageType, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry,
|
|
125
|
+
initialise({ brandPage, brandPageType, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("@brand-page-maker/stores").InitialisePayload): Promise<void>;
|
|
126
126
|
initialisePages({ pages, sections, }: {
|
|
127
127
|
pages: import("@brand-page/models").PageModel[];
|
|
128
128
|
sections: import("../../../shared/page-settings/store").PageSettingsStateSections;
|
|
@@ -23,7 +23,6 @@ export interface BrandPageMakerViewModel {
|
|
|
23
23
|
brandPageType?: BrandPageType;
|
|
24
24
|
businessName?: string;
|
|
25
25
|
industry?: string;
|
|
26
|
-
layout?: string;
|
|
27
26
|
}
|
|
28
27
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
29
28
|
viewModel: {
|
|
@@ -167,7 +166,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
167
166
|
brandPageType: "default" | "brandSite" | "brandContact";
|
|
168
167
|
}): void;
|
|
169
168
|
initialiseStoresByBrandPageModelAsync(brandPageModel: import("@brand-page").BrandPageModel): Promise<void>;
|
|
170
|
-
initialise({ brandPage, brandPageType, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry,
|
|
169
|
+
initialise({ brandPage, brandPageType, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("@brand-page-maker/stores").InitialisePayload): Promise<void>;
|
|
171
170
|
initialisePages({ pages, sections, }: {
|
|
172
171
|
pages: import("@brand-page").PageModel[];
|
|
173
172
|
sections: import("@shared/page-settings/store").PageSettingsStateSections;
|
|
@@ -151,7 +151,6 @@ export default defineComponent({
|
|
|
151
151
|
brandPageType: this.viewModel.brandPageType,
|
|
152
152
|
businessName: this.viewModel.businessName,
|
|
153
153
|
industry: this.viewModel.industry,
|
|
154
|
-
layout: this.viewModel.layout,
|
|
155
154
|
logoVariationImageUrls: this.viewModel.logoVariationImageUrls,
|
|
156
155
|
shopConfigData,
|
|
157
156
|
});
|
|
@@ -111,7 +111,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
111
111
|
brandPageType: "default" | "brandSite" | "brandContact";
|
|
112
112
|
}): void;
|
|
113
113
|
initialiseStoresByBrandPageModelAsync(brandPageModel: import("../../../lib").BrandPageModel): Promise<void>;
|
|
114
|
-
initialise({ brandPage, brandPageType, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry,
|
|
114
|
+
initialise({ brandPage, brandPageType, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../stores").InitialisePayload): Promise<void>;
|
|
115
115
|
initialisePages({ pages, sections, }: {
|
|
116
116
|
pages: import("../../../lib").PageModel[];
|
|
117
117
|
sections: import("../../../shared/page-settings/store").PageSettingsStateSections;
|
package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts
CHANGED
|
@@ -617,7 +617,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
617
617
|
brandPageType: "default" | "brandSite" | "brandContact";
|
|
618
618
|
}): void;
|
|
619
619
|
initialiseStoresByBrandPageModelAsync(brandPageModel: import("@brand-page").BrandPageModel): Promise<void>;
|
|
620
|
-
initialise({ brandPage, brandPageType, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry,
|
|
620
|
+
initialise({ brandPage, brandPageType, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("@brand-page-maker/stores").InitialisePayload): Promise<void>;
|
|
621
621
|
initialisePages({ pages, sections, }: {
|
|
622
622
|
pages: import("@brand-page").PageModel[];
|
|
623
623
|
sections: import("@shared/page-settings/store").PageSettingsStateSections;
|
|
@@ -117,7 +117,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
117
117
|
brandPageType: "default" | "brandSite" | "brandContact";
|
|
118
118
|
}): void;
|
|
119
119
|
initialiseStoresByBrandPageModelAsync(brandPageModel: import("../../../brand-page").BrandPageModel): Promise<void>;
|
|
120
|
-
initialise({ brandPage, brandPageType, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry,
|
|
120
|
+
initialise({ brandPage, brandPageType, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("@brand-page-maker/stores").InitialisePayload): Promise<void>;
|
|
121
121
|
initialisePages({ pages, sections, }: {
|
|
122
122
|
pages: import("../../../brand-page").PageModel[];
|
|
123
123
|
sections: import("../../../shared/page-settings/store").PageSettingsStateSections;
|
|
@@ -423,7 +423,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
423
423
|
brandPageType: "default" | "brandSite" | "brandContact";
|
|
424
424
|
}): void;
|
|
425
425
|
initialiseStoresByBrandPageModelAsync(brandPageModel: import("../../../brand-page").BrandPageModel): Promise<void>;
|
|
426
|
-
initialise({ brandPage, brandPageType, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry,
|
|
426
|
+
initialise({ brandPage, brandPageType, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("@brand-page-maker/stores").InitialisePayload): Promise<void>;
|
|
427
427
|
initialisePages({ pages, sections, }: {
|
|
428
428
|
pages: import("../../../brand-page").PageModel[];
|
|
429
429
|
sections: import("../../../shared/page-settings/store").PageSettingsStateSections;
|
|
@@ -424,7 +424,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
424
424
|
brandPageType: "default" | "brandSite" | "brandContact";
|
|
425
425
|
}): void;
|
|
426
426
|
initialiseStoresByBrandPageModelAsync(brandPageModel: import("../../../brand-page").BrandPageModel): Promise<void>;
|
|
427
|
-
initialise({ brandPage, brandPageType, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry,
|
|
427
|
+
initialise({ brandPage, brandPageType, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("@brand-page-maker/stores").InitialisePayload): Promise<void>;
|
|
428
428
|
initialisePages({ pages, sections, }: {
|
|
429
429
|
pages: import("../../../brand-page").PageModel[];
|
|
430
430
|
sections: import("../../../shared/page-settings/store").PageSettingsStateSections;
|
|
@@ -127,7 +127,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
127
127
|
brandPageType: "default" | "brandSite" | "brandContact";
|
|
128
128
|
}): void;
|
|
129
129
|
initialiseStoresByBrandPageModelAsync(brandPageModel: import("../../../brand-page").BrandPageModel): Promise<void>;
|
|
130
|
-
initialise({ brandPage, brandPageType, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry,
|
|
130
|
+
initialise({ brandPage, brandPageType, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("@brand-page-maker/stores").InitialisePayload): Promise<void>;
|
|
131
131
|
initialisePages({ pages, sections, }: {
|
|
132
132
|
pages: import("../../../brand-page").PageModel[];
|
|
133
133
|
sections: import("../../../shared/page-settings/store").PageSettingsStateSections;
|
|
@@ -475,7 +475,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
475
475
|
brandPageType: "default" | "brandSite" | "brandContact";
|
|
476
476
|
}): void;
|
|
477
477
|
initialiseStoresByBrandPageModelAsync(brandPageModel: import("@brand-page").BrandPageModel): Promise<void>;
|
|
478
|
-
initialise({ brandPage, brandPageType, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry,
|
|
478
|
+
initialise({ brandPage, brandPageType, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("@brand-page-maker/stores").InitialisePayload): Promise<void>;
|
|
479
479
|
initialisePages({ pages, sections, }: {
|
|
480
480
|
pages: import("@brand-page").PageModel[];
|
|
481
481
|
sections: import("../../../shared/page-settings/store").PageSettingsStateSections;
|
|
@@ -204,11 +204,6 @@ export default defineComponent({
|
|
|
204
204
|
},
|
|
205
205
|
deep: true,
|
|
206
206
|
},
|
|
207
|
-
logoImageBase64Url() {
|
|
208
|
-
if (this.isAdmin) {
|
|
209
|
-
this.updateViewModel();
|
|
210
|
-
}
|
|
211
|
-
},
|
|
212
207
|
previewImageUrl() {
|
|
213
208
|
// Reset loading state whenever the preview URL changes
|
|
214
209
|
if (!this.isAdmin) {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { BRAND_PAGE_TYPES } from '@brand-page';
|
|
2
1
|
import { ButtonBoxShadowSize, ButtonSoftBoxShadowSize } from '@brand-page';
|
|
3
2
|
export const ButtonStyleConfigOptions = [
|
|
4
3
|
'buttonBorderColor',
|
|
@@ -57,7 +56,7 @@ export const availableButtonStyleConfigs = [
|
|
|
57
56
|
iconName: undefined,
|
|
58
57
|
iconViewBox: undefined,
|
|
59
58
|
options: ['buttonFillColor', 'buttonIconColor'],
|
|
60
|
-
brandPageType:
|
|
59
|
+
brandPageType: undefined,
|
|
61
60
|
},
|
|
62
61
|
{
|
|
63
62
|
id: 'BUTTON_STYLE_4',
|
|
@@ -108,7 +107,7 @@ export const availableButtonStyleConfigs = [
|
|
|
108
107
|
iconName: undefined,
|
|
109
108
|
iconViewBox: undefined,
|
|
110
109
|
options: ['buttonFillColor', 'buttonBorderColor', 'buttonIconColor'],
|
|
111
|
-
brandPageType:
|
|
110
|
+
brandPageType: undefined,
|
|
112
111
|
},
|
|
113
112
|
{
|
|
114
113
|
id: 'BUTTON_STYLE_7',
|
|
@@ -131,7 +130,7 @@ export const availableButtonStyleConfigs = [
|
|
|
131
130
|
'buttonShadowColor',
|
|
132
131
|
'buttonIconColor',
|
|
133
132
|
],
|
|
134
|
-
brandPageType:
|
|
133
|
+
brandPageType: undefined,
|
|
135
134
|
},
|
|
136
135
|
{
|
|
137
136
|
id: 'BUTTON_STYLE_8',
|
|
@@ -154,7 +153,7 @@ export const availableButtonStyleConfigs = [
|
|
|
154
153
|
'buttonShadowColor',
|
|
155
154
|
'buttonIconColor',
|
|
156
155
|
],
|
|
157
|
-
brandPageType:
|
|
156
|
+
brandPageType: undefined,
|
|
158
157
|
},
|
|
159
158
|
{
|
|
160
159
|
id: 'BUTTON_STYLE_9',
|
|
@@ -177,7 +176,7 @@ export const availableButtonStyleConfigs = [
|
|
|
177
176
|
'buttonShadowColor',
|
|
178
177
|
'buttonIconColor',
|
|
179
178
|
],
|
|
180
|
-
brandPageType:
|
|
179
|
+
brandPageType: undefined,
|
|
181
180
|
},
|
|
182
181
|
{
|
|
183
182
|
id: 'BUTTON_STYLE_10',
|
|
@@ -228,7 +227,7 @@ export const availableButtonStyleConfigs = [
|
|
|
228
227
|
iconName: 'button-dashed-oval',
|
|
229
228
|
iconViewBox: '0 0 60 20',
|
|
230
229
|
options: ['buttonFillColor', 'buttonBorderColor', 'buttonIconColor'],
|
|
231
|
-
brandPageType:
|
|
230
|
+
brandPageType: undefined,
|
|
232
231
|
},
|
|
233
232
|
{
|
|
234
233
|
id: 'BUTTON_STYLE_13',
|
|
@@ -279,7 +278,7 @@ export const availableButtonStyleConfigs = [
|
|
|
279
278
|
iconName: 'button-doubleline-oval',
|
|
280
279
|
iconViewBox: '0 0 60 20',
|
|
281
280
|
options: ['buttonFillColor', 'buttonBorderColor', 'buttonIconColor'],
|
|
282
|
-
brandPageType:
|
|
281
|
+
brandPageType: undefined,
|
|
283
282
|
},
|
|
284
283
|
{
|
|
285
284
|
id: 'BUTTON_STYLE_16',
|
|
@@ -336,7 +335,7 @@ export const availableButtonStyleConfigs = [
|
|
|
336
335
|
iconName: 'button-softshadow-oval',
|
|
337
336
|
iconViewBox: '0 0 60 20',
|
|
338
337
|
options: ['buttonFillColor', 'buttonSoftShadowColor', 'buttonIconColor'],
|
|
339
|
-
brandPageType:
|
|
338
|
+
brandPageType: undefined,
|
|
340
339
|
},
|
|
341
340
|
{
|
|
342
341
|
id: 'BUTTON_STYLE_19',
|
|
@@ -353,7 +352,7 @@ export const availableButtonStyleConfigs = [
|
|
|
353
352
|
iconName: 'button-brushstroke',
|
|
354
353
|
iconViewBox: '0 0 60 20',
|
|
355
354
|
options: ['buttonFillColor', 'buttonIconColor'],
|
|
356
|
-
brandPageType:
|
|
355
|
+
brandPageType: undefined,
|
|
357
356
|
},
|
|
358
357
|
{
|
|
359
358
|
id: 'BUTTON_STYLE_20',
|
|
@@ -370,7 +369,7 @@ export const availableButtonStyleConfigs = [
|
|
|
370
369
|
iconName: 'button-arrow',
|
|
371
370
|
iconViewBox: '0 0 60 20',
|
|
372
371
|
options: ['buttonFillColor', 'buttonIconColor'],
|
|
373
|
-
brandPageType:
|
|
372
|
+
brandPageType: undefined,
|
|
374
373
|
},
|
|
375
374
|
{
|
|
376
375
|
id: 'BUTTON_STYLE_21',
|
|
@@ -387,6 +386,6 @@ export const availableButtonStyleConfigs = [
|
|
|
387
386
|
iconName: 'button-paper',
|
|
388
387
|
iconViewBox: '0 0 60 20',
|
|
389
388
|
options: ['buttonFillColor', 'buttonIconColor'],
|
|
390
|
-
brandPageType:
|
|
389
|
+
brandPageType: undefined,
|
|
391
390
|
},
|
|
392
391
|
];
|
|
@@ -22,7 +22,6 @@ export interface InitialisePayload {
|
|
|
22
22
|
isPersonalisationEnabled: boolean;
|
|
23
23
|
businessName: string | undefined;
|
|
24
24
|
industry: string | undefined;
|
|
25
|
-
layout?: string;
|
|
26
25
|
logoVariationImageUrls: string[];
|
|
27
26
|
shopConfigData: string | ShopConfigData;
|
|
28
27
|
isServerRenderOverride?: boolean;
|
|
@@ -192,7 +191,7 @@ export declare const useBrandPageMakerStore: import("pinia").StoreDefinition<"br
|
|
|
192
191
|
brandPageType: BrandPageType;
|
|
193
192
|
}): void;
|
|
194
193
|
initialiseStoresByBrandPageModelAsync(brandPageModel: BrandPageModel): Promise<void>;
|
|
195
|
-
initialise({ brandPage, brandPageType, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry,
|
|
194
|
+
initialise({ brandPage, brandPageType, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: InitialisePayload): Promise<void>;
|
|
196
195
|
initialisePages({ pages, sections, }: {
|
|
197
196
|
pages: PageModel[];
|
|
198
197
|
sections: PageSettingsStateSections;
|
|
@@ -482,7 +482,7 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
|
|
|
482
482
|
},
|
|
483
483
|
});
|
|
484
484
|
},
|
|
485
|
-
async initialise({ brandPage, brandPageType, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry,
|
|
485
|
+
async initialise({ brandPage, brandPageType, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride = false, }) {
|
|
486
486
|
const brandPageContainerStore = useBrandPageContainerStore();
|
|
487
487
|
const userStore = useBrandPageMakerUserStore();
|
|
488
488
|
const uiStore = useUiStore();
|
|
@@ -586,7 +586,6 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
|
|
|
586
586
|
if (brandPageContainerStore.isPrePurchase) {
|
|
587
587
|
await editableLogoStore.setStateAsync({
|
|
588
588
|
defaultPrimaryText: businessName,
|
|
589
|
-
defaultLayout: layout,
|
|
590
589
|
newState: {
|
|
591
590
|
isTextOnlyLogo: false,
|
|
592
591
|
logoTemplateMetadata: '',
|
|
@@ -31,10 +31,6 @@ export interface ModifyLogoDataRequest {
|
|
|
31
31
|
template: {
|
|
32
32
|
token: string;
|
|
33
33
|
version: number;
|
|
34
|
-
placeholder?: {
|
|
35
|
-
primaryText?: string;
|
|
36
|
-
};
|
|
37
|
-
layout?: string;
|
|
38
34
|
};
|
|
39
35
|
draft: {
|
|
40
36
|
token: string;
|
|
@@ -47,7 +43,6 @@ export interface ModifyLogoDataRequest {
|
|
|
47
43
|
removed: boolean;
|
|
48
44
|
updates: Updates;
|
|
49
45
|
}>;
|
|
50
|
-
layout?: string;
|
|
51
46
|
};
|
|
52
47
|
}
|
|
53
48
|
export interface ModifyLogoDataResponse {
|
|
@@ -87,7 +82,6 @@ export declare class FabricRenderClient {
|
|
|
87
82
|
logoTemplateToken: string;
|
|
88
83
|
logoTemplateVersion: number;
|
|
89
84
|
logoTemplateText: string;
|
|
90
|
-
layout?: string;
|
|
91
85
|
}, outputFormat?: LogoOutputFormat, logoColorPalette?: string | undefined): string;
|
|
92
86
|
getLogoVariationUrlByLogoVariationIndex(logoDraftToken: string, tick: string | number | undefined, variationIndex: number, outputFormat?: LogoOutputFormat): string;
|
|
93
87
|
private getModifyLogoPostEndpoint;
|
|
@@ -105,7 +99,6 @@ export declare class FabricRenderClient {
|
|
|
105
99
|
logoTemplateToken: string;
|
|
106
100
|
logoTemplateText: string;
|
|
107
101
|
logoTemplateVersion: number;
|
|
108
|
-
layout?: string;
|
|
109
102
|
}): Promise<{
|
|
110
103
|
data: string;
|
|
111
104
|
width: number;
|
|
@@ -41,10 +41,7 @@ export class FabricRenderClient {
|
|
|
41
41
|
return FabricRenderClient._staticClient;
|
|
42
42
|
}
|
|
43
43
|
getLogoTemplateUrlByLogoTemplateImage(logoTemplateImage, outputFormat = 'base64svgjson', logoColorPalette = undefined) {
|
|
44
|
-
let url = `${this.baseUrl}/asset/logotemplate/brand-page/${logoTemplateImage.logoTemplateToken}?dimensionsType=preview_image_transparent_no_buffer&outputFormat=${outputFormat}&logoTemplateVersion=${logoTemplateImage.logoTemplateVersion}&text=${encodeURIComponent(logoTemplateImage.logoTemplateText)}`;
|
|
45
|
-
if (logoTemplateImage.layout) {
|
|
46
|
-
url = `${url}&layout=${logoTemplateImage.layout}`;
|
|
47
|
-
}
|
|
44
|
+
let url = `${this.baseUrl}/asset/logotemplate/brand-page/${logoTemplateImage.logoTemplateToken}?dimensionsType=preview_image_transparent_no_buffer&outputFormat=${outputFormat}&logoTemplateVersion=${logoTemplateImage.logoTemplateVersion}&text=${encodeURIComponent(logoTemplateImage.logoTemplateText)}&applyAutoLayout=true`;
|
|
48
45
|
if (logoColorPalette) {
|
|
49
46
|
url = `${url}&colorpalette=${logoColorPalette}`;
|
|
50
47
|
}
|