@designcrowd/library.brand-page 5.12.11 → 5.12.13-flacky-nav-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/src/{CreatedOnBrandCrowd-de-de-B1UmWzii.js → CreatedOnBrandCrowd-de-de-DA54pbv_.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-BRK1hM-D.js → CreatedOnBrandCrowd-en-us-CSdnyxOV.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-CN_2N7lq.js → CreatedOnBrandCrowd-es-es-Q2ScIAvD.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-BLLKZAU4.js → CreatedOnBrandCrowd-fr-fr-CCj4mK3I.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-Btsu98RA.js → CreatedOnBrandCrowd-pt-pt-l5XmeGN-.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-t1layjdN.js → CreatedOnDcom-de-de-PY5V1t67.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-Cgr8OWqD.js → CreatedOnDcom-en-us--9TQ29dQ.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-BU30p1A3.js → CreatedOnDcom-es-es-DVjOILUS.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-0WKXggE1.js → CreatedOnDcom-fr-fr-BzvmVXJs.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-DugorNKz.js → CreatedOnDcom-pt-pt-C69FSzS-.js} +1 -1
- package/lib/src/brand-page/components/background-shape/BackgroundShape.mixin.d.ts +3 -0
- package/lib/src/brand-page/components/background-shape/BackgroundShape.mixin.js +39 -2
- package/lib/src/brand-page/utils/migration/migration-01.d.ts +1 -1
- package/lib/src/brand-page/utils/migration/migration-01.js +1 -1
- package/lib/src/brand-page/utils/migration/migration-02.d.ts +1 -1
- package/lib/src/brand-page/utils/migration/migration-02.js +1 -1
- package/lib/src/brand-page/utils/migration/migration-03.d.ts +1 -1
- package/lib/src/brand-page/utils/migration/migration-03.js +1 -1
- package/lib/src/brand-page/utils/migration/migration-04.d.ts +1 -1
- package/lib/src/brand-page/utils/migration/migration-04.js +1 -1
- package/lib/src/brand-page/utils/migration/migration-05.d.ts +5 -2
- package/lib/src/brand-page/utils/migration/migration-05.js +1 -1
- package/lib/src/brand-page/utils/migration/migration-06.d.ts +4 -0
- package/lib/src/brand-page/utils/migration/migration-06.js +96 -0
- package/lib/src/brand-page/utils/migration.util.d.ts +2 -1
- package/lib/src/brand-page/utils/migration.util.js +9 -4
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +1 -1
- package/lib/src/css/library.brand-page-brandCrowd.min.css +6 -11
- package/lib/src/css/library.brand-page-brandPage.min.css +6 -11
- package/lib/src/css/library.brand-page-designCom.min.css +6 -11
- package/lib/src/css/library.brand-page-preview.min.css +6 -11
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-CjyTfIxl.js → lib-BGkUIe2G.js} +14812 -14704
- package/lib/src/shared/page-settings/store/page-settings-store.js +1 -1
- package/lib/src/shared/template-settings/store/template-settings-store.js +1 -1
- package/package.json +1 -1
- package/src/brand-page/components/background-shape/BackgroundShape.mixin.ts +59 -2
- package/src/brand-page/components/logo/Logo.vue +47 -35
- package/src/brand-page/components/logo/LogoRender.vue +0 -11
- package/src/brand-page/utils/__snapshots__/migration.util.test.ts.snap +3 -3
- package/src/brand-page/utils/migration/logo/migration.util.logo.test.ts +2 -2
- package/src/brand-page/utils/migration/migration-01.ts +2 -2
- package/src/brand-page/utils/migration/migration-02.ts +2 -2
- package/src/brand-page/utils/migration/migration-03.ts +2 -2
- package/src/brand-page/utils/migration/migration-04.ts +2 -2
- package/src/brand-page/utils/migration/migration-05.ts +12 -2
- package/src/brand-page/utils/migration/migration-06.test.ts +338 -0
- package/src/brand-page/utils/migration/migration-06.ts +164 -0
- package/src/brand-page/utils/migration.util.test.ts +155 -108
- package/src/brand-page/utils/migration.util.ts +12 -6
- package/src/brand-page/utils/migration2.util.test.ts +4 -2
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +1 -1
- package/src/shared/page-settings/store/page-settings-store.ts +1 -0
- package/src/shared/template-settings/store/template-settings-store.ts +1 -1
|
@@ -9,6 +9,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
9
9
|
svgData: string;
|
|
10
10
|
svgDataObjectUrl: string;
|
|
11
11
|
originalSvgData: string;
|
|
12
|
+
svgWidth: number;
|
|
13
|
+
svgHeight: number;
|
|
12
14
|
}, {
|
|
13
15
|
useObjectElement(): boolean;
|
|
14
16
|
backgroundShapesStyle(): BrandPageCssStyle;
|
|
@@ -17,6 +19,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
17
19
|
}, {
|
|
18
20
|
isValidSvgUrl(url: string): boolean;
|
|
19
21
|
applySvgAttributes(svgData: string): string;
|
|
22
|
+
setInternalSvgWidthAndHeight(svgData: string): void;
|
|
20
23
|
render(): Promise<void>;
|
|
21
24
|
}, import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
22
25
|
isPreview: {
|
|
@@ -18,14 +18,25 @@ export default defineComponent({
|
|
|
18
18
|
},
|
|
19
19
|
},
|
|
20
20
|
data() {
|
|
21
|
-
return {
|
|
21
|
+
return {
|
|
22
|
+
svgData: '',
|
|
23
|
+
svgDataObjectUrl: '',
|
|
24
|
+
originalSvgData: '',
|
|
25
|
+
svgWidth: 0,
|
|
26
|
+
svgHeight: 0,
|
|
27
|
+
};
|
|
22
28
|
},
|
|
23
29
|
computed: {
|
|
24
30
|
useObjectElement() {
|
|
25
31
|
return !!this.viewModel?.name.match(PROXY_SHAPE_URL_REGEX);
|
|
26
32
|
},
|
|
27
33
|
backgroundShapesStyle() {
|
|
28
|
-
|
|
34
|
+
const style = this.viewModel?.style || {};
|
|
35
|
+
if (!style.width && !style.height && this.svgWidth && this.svgHeight) {
|
|
36
|
+
style.width = this.svgWidth;
|
|
37
|
+
style.height = this.svgHeight;
|
|
38
|
+
}
|
|
39
|
+
return style;
|
|
29
40
|
},
|
|
30
41
|
isFullBackground() {
|
|
31
42
|
return (this.viewModel.style.width === '100%' &&
|
|
@@ -91,6 +102,31 @@ export default defineComponent({
|
|
|
91
102
|
}
|
|
92
103
|
return svgData;
|
|
93
104
|
},
|
|
105
|
+
setInternalSvgWidthAndHeight(svgData) {
|
|
106
|
+
const svgTagMatch = svgData.match(/<svg\b[^>]*>/i);
|
|
107
|
+
if (svgTagMatch) {
|
|
108
|
+
const svgTagSection = svgTagMatch[0];
|
|
109
|
+
const widthHeightMatches = svgTagSection.match(/\b(width|height)\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/gi);
|
|
110
|
+
if (widthHeightMatches) {
|
|
111
|
+
const widthMatch = widthHeightMatches.find((match) => match.startsWith('width='));
|
|
112
|
+
const widthValue = widthMatch?.match(/([^"]*)/g)?.[2];
|
|
113
|
+
const heightMatch = widthHeightMatches.find((match) => match.startsWith('height='));
|
|
114
|
+
const heightValue = heightMatch?.match(/([^"]*)/g)?.[2];
|
|
115
|
+
if (widthValue && !widthValue.endsWith('%')) {
|
|
116
|
+
const lastChar = widthValue.slice(-1);
|
|
117
|
+
this.svgWidth = lastChar.match(/\d/)
|
|
118
|
+
? `${widthValue}px`
|
|
119
|
+
: `${widthValue}`;
|
|
120
|
+
}
|
|
121
|
+
if (heightValue && !heightValue.endsWith('%')) {
|
|
122
|
+
const lastChar = heightValue.slice(-1);
|
|
123
|
+
this.svgHeight = lastChar.match(/\d/)
|
|
124
|
+
? `${heightValue}px`
|
|
125
|
+
: `${heightValue}`;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
},
|
|
94
130
|
async render() {
|
|
95
131
|
if (this.useObjectElement) {
|
|
96
132
|
return;
|
|
@@ -111,6 +147,7 @@ export default defineComponent({
|
|
|
111
147
|
this.svgData = this.originalSvgData;
|
|
112
148
|
}
|
|
113
149
|
this.svgData = this.applySvgAttributes(this.svgData);
|
|
150
|
+
this.setInternalSvgWidthAndHeight(this.svgData);
|
|
114
151
|
const blob = new Blob([this.svgData], { type: 'image/svg+xml' });
|
|
115
152
|
const oldSvgDataObjectUrl = this.svgDataObjectUrl;
|
|
116
153
|
// Create an Object URL
|
|
@@ -20,4 +20,4 @@ export declare const migrateConvertLineHeightOnFooterStyles: (brandPageModel: Br
|
|
|
20
20
|
export declare const migration01: (brandPageModel: BrandPageModel, options: {
|
|
21
21
|
logoImage?: LogoImageModel;
|
|
22
22
|
isUserDraft: boolean;
|
|
23
|
-
}) => BrandPageModel
|
|
23
|
+
}) => Promise<BrandPageModel>;
|
|
@@ -857,7 +857,7 @@ export const migrateConvertLineHeightOnFooterStyles = (brandPageModel) => {
|
|
|
857
857
|
};
|
|
858
858
|
}
|
|
859
859
|
};
|
|
860
|
-
export const migration01 = (brandPageModel, options) => {
|
|
860
|
+
export const migration01 = async (brandPageModel, options) => {
|
|
861
861
|
if (!brandPageModel.brandPageType) {
|
|
862
862
|
brandPageModel.brandPageType = BRAND_PAGE_TYPES.default;
|
|
863
863
|
}
|
|
@@ -31,7 +31,7 @@ const handleConversion = (style) => {
|
|
|
31
31
|
}
|
|
32
32
|
style.letterSpacing = convertLetterSpacingRemToEm(style.fontSize, style.letterSpacing);
|
|
33
33
|
};
|
|
34
|
-
export const migration02 = (brandPageModel, options) => {
|
|
34
|
+
export const migration02 = async (brandPageModel, options) => {
|
|
35
35
|
handleConversion(brandPageModel.pageHeaderDesktop?.navigation?.defaultButtonStyle);
|
|
36
36
|
handleConversion(brandPageModel.pageHeaderMobile?.navigation?.defaultButtonStyle);
|
|
37
37
|
handleConversion(brandPageModel.pageFooterDesktop?.copyrightStyle);
|
|
@@ -28,7 +28,7 @@ const migrateApplyAutoScaleProperty = (brandPageType, textStyle) => {
|
|
|
28
28
|
textStyle.applyAutoScale =
|
|
29
29
|
brandPageType && brandPageType === BRAND_PAGE_TYPES.brandSite;
|
|
30
30
|
};
|
|
31
|
-
export const migration03 = (brandPageModel, options) => {
|
|
31
|
+
export const migration03 = async (brandPageModel, options) => {
|
|
32
32
|
handleRecursiveFontSizeMigration(brandPageModel.pageHeaderDesktop);
|
|
33
33
|
handleRecursiveFontSizeMigration(brandPageModel.pageHeaderMobile);
|
|
34
34
|
handleRecursiveFontSizeMigration(brandPageModel.pageFooterDesktop);
|
|
@@ -86,7 +86,7 @@ const updateUserUploadedImageUrls = (content) => {
|
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
88
|
};
|
|
89
|
-
export const migration04 = (brandPageModel, options) => {
|
|
89
|
+
export const migration04 = async (brandPageModel, options) => {
|
|
90
90
|
if (brandPageModel.faviconUrl &&
|
|
91
91
|
isUserUploadedImage(brandPageModel.faviconUrl)) {
|
|
92
92
|
brandPageModel.faviconUrl = removeUserImageExtension(brandPageModel.faviconUrl);
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
import { type BrandPageModel } from '../..';
|
|
2
|
-
export declare const migration05: (brandPageModel: BrandPageModel
|
|
1
|
+
import { type BrandPageModel, type LogoImageModel } from '../..';
|
|
2
|
+
export declare const migration05: (brandPageModel: BrandPageModel, options: {
|
|
3
|
+
logoImage?: LogoImageModel;
|
|
4
|
+
isUserDraft: boolean;
|
|
5
|
+
}) => Promise<BrandPageModel>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {} from '../..';
|
|
2
2
|
import { isTextContent } from '../model.util';
|
|
3
|
-
export const migration05 = (brandPageModel) => {
|
|
3
|
+
export const migration05 = async (brandPageModel, options) => {
|
|
4
4
|
brandPageModel.pages.forEach((page) => {
|
|
5
5
|
page.contents.forEach((content) => {
|
|
6
6
|
if (isTextContent(content)) {
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { DEFAULT_LOGO_HEIGHT, DEFAULT_LOGO_WIDTH, } from '../..';
|
|
2
|
+
import { FabricRenderClient } from '../../../clients/fabric-render-client';
|
|
3
|
+
export const migration06 = async (brandPageModel, options) => {
|
|
4
|
+
console.log('Running migration 06', options.skipMigration06);
|
|
5
|
+
if (options.skipMigration06 !== undefined && options.skipMigration06) {
|
|
6
|
+
return brandPageModel;
|
|
7
|
+
}
|
|
8
|
+
const header = brandPageModel.pageHeaderDesktop;
|
|
9
|
+
try {
|
|
10
|
+
console.log('Migration 06: Attempting to fetch logo dimensions from FabricRenderClient', header);
|
|
11
|
+
const headerLogo = brandPageModel.pageHeaderDesktop;
|
|
12
|
+
const fabricClient = FabricRenderClient.getInstance();
|
|
13
|
+
const logoData = headerLogo?.logoTemplateImage?.logoTemplateToken
|
|
14
|
+
? await fabricClient.getLogoSvgUrlByLogoTemplateImageAsync(headerLogo.logoTemplateImage)
|
|
15
|
+
: await fabricClient.getLogoSvgUrlByLogoImageAsync(headerLogo.logoImage);
|
|
16
|
+
console.log('Migration 06: Fetched logo SVG URL', logoData);
|
|
17
|
+
// Try to fetch the logo image dimensions from the server
|
|
18
|
+
if (logoData && logoData.width && logoData.height) {
|
|
19
|
+
// Convert rem to pixels (assuming 1rem = 16px)
|
|
20
|
+
const remToPixels = (remValue) => {
|
|
21
|
+
const numericValue = parseFloat(remValue.replace('rem', ''));
|
|
22
|
+
return numericValue * 16;
|
|
23
|
+
};
|
|
24
|
+
// Helper function to calculate constrained dimensions for a specific section
|
|
25
|
+
const calculateConstrainedDimensions = (maxWidth, maxHeight) => {
|
|
26
|
+
const maxWidthPx = remToPixels(maxWidth);
|
|
27
|
+
const maxHeightPx = remToPixels(maxHeight);
|
|
28
|
+
// Calculate the actual displayed dimensions considering max-width and max-height constraints
|
|
29
|
+
const logoAspectRatio = logoData.width / logoData.height;
|
|
30
|
+
const maxAspectRatio = maxWidthPx / maxHeightPx;
|
|
31
|
+
let actualWidth;
|
|
32
|
+
let actualHeight;
|
|
33
|
+
if (logoAspectRatio > maxAspectRatio) {
|
|
34
|
+
// Logo is wider relative to max dimensions, constrain by width
|
|
35
|
+
actualWidth = Math.min(logoData.width, maxWidthPx);
|
|
36
|
+
actualHeight = actualWidth / logoAspectRatio;
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
// Logo is taller relative to max dimensions, constrain by height
|
|
40
|
+
actualHeight = Math.min(logoData.height, maxHeightPx);
|
|
41
|
+
actualWidth = actualHeight * logoAspectRatio;
|
|
42
|
+
}
|
|
43
|
+
// Convert back to rem for consistency
|
|
44
|
+
const actualWidthRem = `${Math.round(actualWidth / 16)}rem`;
|
|
45
|
+
const actualHeightRem = `${Math.ceil(actualHeight / 16)}rem`;
|
|
46
|
+
return { width: actualWidthRem, height: actualHeightRem };
|
|
47
|
+
};
|
|
48
|
+
// Calculate dimensions for each section individually based on their own max constraints
|
|
49
|
+
// Header Desktop
|
|
50
|
+
if (brandPageModel.pageHeaderDesktop) {
|
|
51
|
+
const currentMaxWidth = brandPageModel.pageHeaderDesktop.logoImageWidth || DEFAULT_LOGO_WIDTH;
|
|
52
|
+
const currentMaxHeight = brandPageModel.pageHeaderDesktop.logoImageHeight ||
|
|
53
|
+
DEFAULT_LOGO_HEIGHT;
|
|
54
|
+
const dimensions = calculateConstrainedDimensions(currentMaxWidth, currentMaxHeight);
|
|
55
|
+
console.log('##############################################################################', 'Migration 06: Calculated dimensions for header desktop', currentMaxHeight, currentMaxWidth, dimensions);
|
|
56
|
+
brandPageModel.pageHeaderDesktop.logoImageHeight = dimensions.height;
|
|
57
|
+
// brandPageModel.pageHeaderDesktop.logoImageWidth = dimensions.width;
|
|
58
|
+
}
|
|
59
|
+
// Header Mobile
|
|
60
|
+
if (brandPageModel.pageHeaderMobile) {
|
|
61
|
+
const currentMaxWidth = brandPageModel.pageHeaderMobile.logoImageWidth || DEFAULT_LOGO_WIDTH;
|
|
62
|
+
const currentMaxHeight = brandPageModel.pageHeaderMobile.logoImageHeight ||
|
|
63
|
+
DEFAULT_LOGO_HEIGHT;
|
|
64
|
+
const dimensions = calculateConstrainedDimensions(currentMaxWidth, currentMaxHeight);
|
|
65
|
+
brandPageModel.pageHeaderMobile.logoImageHeight = dimensions.height;
|
|
66
|
+
// brandPageModel.pageHeaderMobile.logoImageWidth = dimensions.width;
|
|
67
|
+
}
|
|
68
|
+
// Footer Desktop
|
|
69
|
+
if (brandPageModel.pageFooterDesktop) {
|
|
70
|
+
const currentMaxWidth = brandPageModel.pageFooterDesktop.logoImageWidth || DEFAULT_LOGO_WIDTH;
|
|
71
|
+
const currentMaxHeight = brandPageModel.pageFooterDesktop.logoImageHeight ||
|
|
72
|
+
DEFAULT_LOGO_HEIGHT;
|
|
73
|
+
const dimensions = calculateConstrainedDimensions(currentMaxWidth, currentMaxHeight);
|
|
74
|
+
brandPageModel.pageFooterDesktop.logoImageHeight = dimensions.height;
|
|
75
|
+
// brandPageModel.pageFooterDesktop.logoImageWidth = dimensions.width;
|
|
76
|
+
}
|
|
77
|
+
// Footer Mobile
|
|
78
|
+
if (brandPageModel.pageFooterMobile) {
|
|
79
|
+
const currentMaxWidth = brandPageModel.pageFooterMobile.logoImageWidth || DEFAULT_LOGO_WIDTH;
|
|
80
|
+
const currentMaxHeight = brandPageModel.pageFooterMobile.logoImageHeight ||
|
|
81
|
+
DEFAULT_LOGO_HEIGHT;
|
|
82
|
+
const dimensions = calculateConstrainedDimensions(currentMaxWidth, currentMaxHeight);
|
|
83
|
+
brandPageModel.pageFooterMobile.logoImageHeight = dimensions.height;
|
|
84
|
+
// brandPageModel.pageFooterMobile.logoImageWidth = dimensions.width;
|
|
85
|
+
}
|
|
86
|
+
console.log('Migration 06: Logo dimensions updated successfully');
|
|
87
|
+
console.log(`Original logo: ${logoData.width}x${logoData.height}px`);
|
|
88
|
+
console.log('Dimensions calculated for each section based on their individual constraints');
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
catch (error) {
|
|
92
|
+
// If fetching fails, silently continue without updating dimensions
|
|
93
|
+
console.warn('Migration 06: Failed to fetch logo dimensions:', error);
|
|
94
|
+
}
|
|
95
|
+
return brandPageModel;
|
|
96
|
+
};
|
|
@@ -3,4 +3,5 @@ export declare const GetLatestModelVersion: () => number;
|
|
|
3
3
|
export declare const migrateBrandPageModel: (brandPageModel: BrandPageModel, options: {
|
|
4
4
|
logoImage?: LogoImageModel;
|
|
5
5
|
isUserDraft: boolean;
|
|
6
|
-
|
|
6
|
+
skipMigration06?: boolean;
|
|
7
|
+
}) => Promise<BrandPageModel>;
|
|
@@ -4,6 +4,7 @@ import { migration02 } from './migration/migration-02';
|
|
|
4
4
|
import { migration03 } from './migration/migration-03';
|
|
5
5
|
import { migration04 } from './migration/migration-04';
|
|
6
6
|
import { migration05 } from './migration/migration-05';
|
|
7
|
+
import { migration06 } from './migration/migration-06';
|
|
7
8
|
const MIGRATION_TABLE = [
|
|
8
9
|
{
|
|
9
10
|
version: 1,
|
|
@@ -25,18 +26,22 @@ const MIGRATION_TABLE = [
|
|
|
25
26
|
version: 5,
|
|
26
27
|
migrateFn: migration05,
|
|
27
28
|
},
|
|
29
|
+
{
|
|
30
|
+
version: 6,
|
|
31
|
+
migrateFn: migration06,
|
|
32
|
+
},
|
|
28
33
|
];
|
|
29
34
|
export const GetLatestModelVersion = () => Math.max(...MIGRATION_TABLE.map((x) => x.version));
|
|
30
|
-
export const migrateBrandPageModel = (brandPageModel, options) => {
|
|
35
|
+
export const migrateBrandPageModel = async (brandPageModel, options) => {
|
|
31
36
|
let modelVersion = brandPageModel.v;
|
|
32
37
|
if (!modelVersion) {
|
|
33
38
|
modelVersion = 0;
|
|
34
39
|
}
|
|
35
|
-
|
|
40
|
+
for (const x of MIGRATION_TABLE) {
|
|
36
41
|
if (modelVersion < x.version) {
|
|
37
|
-
brandPageModel = x.migrateFn(brandPageModel, options);
|
|
42
|
+
brandPageModel = await x.migrateFn(brandPageModel, options);
|
|
38
43
|
}
|
|
39
|
-
}
|
|
44
|
+
}
|
|
40
45
|
// Set the model to latest version
|
|
41
46
|
brandPageModel.v = GetLatestModelVersion();
|
|
42
47
|
return brandPageModel;
|
|
@@ -415,7 +415,7 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
|
|
|
415
415
|
if (!logoImage?.logoDraftToken) {
|
|
416
416
|
logoImage = logoUtil.safeGetLogoImageFromLogoImageUrl(logoVariationImageUrls[0]);
|
|
417
417
|
}
|
|
418
|
-
migrateBrandPageModel(brandPageModel, {
|
|
418
|
+
await migrateBrandPageModel(brandPageModel, {
|
|
419
419
|
logoImage,
|
|
420
420
|
isUserDraft: this.isUserDraft,
|
|
421
421
|
});
|
|
@@ -5329,25 +5329,20 @@ input[data-v-4cd691db]::-webkit-inner-spin-button {
|
|
|
5329
5329
|
}
|
|
5330
5330
|
}
|
|
5331
5331
|
|
|
5332
|
-
.logo__container[data-v-
|
|
5332
|
+
.logo__container[data-v-c1563ab1] {
|
|
5333
5333
|
border: 0.125rem solid var(--logo-border-colour);
|
|
5334
5334
|
border-radius: 0.75rem;
|
|
5335
|
-
}
|
|
5336
|
-
.logo__image[data-v-d24cdbe3] {
|
|
5337
|
-
display: block;
|
|
5338
|
-
-o-object-fit: contain;
|
|
5339
|
-
object-fit: contain;
|
|
5340
|
-
height: 6rem;
|
|
5341
|
-
}
|
|
5342
|
-
.brand-page .logo__image[data-v-d24cdbe3] {
|
|
5343
|
-
margin: var(--logo-spacing) auto;
|
|
5344
5335
|
}
|
|
5345
5336
|
|
|
5346
|
-
.logo[data-v-
|
|
5337
|
+
.logo[data-v-c1c57ff8] {
|
|
5347
5338
|
--logo-border-colour: #00000000;
|
|
5348
5339
|
--logo-size: 8rem;
|
|
5349
5340
|
--logo-spacing: 0.75rem;
|
|
5350
5341
|
}
|
|
5342
|
+
.logo_wrapper[data-v-c1c57ff8] {
|
|
5343
|
+
margin-top: var(--logo-spacing);
|
|
5344
|
+
margin-bottom: var(--logo-spacing);
|
|
5345
|
+
}
|
|
5351
5346
|
|
|
5352
5347
|
.form-error[data-v-806e6999] {
|
|
5353
5348
|
font-size: 0.875rem;
|
|
@@ -5657,25 +5657,20 @@ input[data-v-4cd691db]::-webkit-inner-spin-button {
|
|
|
5657
5657
|
}
|
|
5658
5658
|
}
|
|
5659
5659
|
|
|
5660
|
-
.logo__container[data-v-
|
|
5660
|
+
.logo__container[data-v-c1563ab1] {
|
|
5661
5661
|
border: 0.125rem solid var(--logo-border-colour);
|
|
5662
5662
|
border-radius: 0.75rem;
|
|
5663
|
-
}
|
|
5664
|
-
.logo__image[data-v-d24cdbe3] {
|
|
5665
|
-
display: block;
|
|
5666
|
-
-o-object-fit: contain;
|
|
5667
|
-
object-fit: contain;
|
|
5668
|
-
height: 6rem;
|
|
5669
|
-
}
|
|
5670
|
-
.brand-page .logo__image[data-v-d24cdbe3] {
|
|
5671
|
-
margin: var(--logo-spacing) auto;
|
|
5672
5663
|
}
|
|
5673
5664
|
|
|
5674
|
-
.logo[data-v-
|
|
5665
|
+
.logo[data-v-c1c57ff8] {
|
|
5675
5666
|
--logo-border-colour: #00000000;
|
|
5676
5667
|
--logo-size: 8rem;
|
|
5677
5668
|
--logo-spacing: 0.75rem;
|
|
5678
5669
|
}
|
|
5670
|
+
.logo_wrapper[data-v-c1c57ff8] {
|
|
5671
|
+
margin-top: var(--logo-spacing);
|
|
5672
|
+
margin-bottom: var(--logo-spacing);
|
|
5673
|
+
}
|
|
5679
5674
|
|
|
5680
5675
|
.form-error[data-v-806e6999] {
|
|
5681
5676
|
font-size: 0.875rem;
|
|
@@ -5347,25 +5347,20 @@ input[data-v-4cd691db]::-webkit-inner-spin-button {
|
|
|
5347
5347
|
}
|
|
5348
5348
|
}
|
|
5349
5349
|
|
|
5350
|
-
.logo__container[data-v-
|
|
5350
|
+
.logo__container[data-v-c1563ab1] {
|
|
5351
5351
|
border: 0.125rem solid var(--logo-border-colour);
|
|
5352
5352
|
border-radius: 0.75rem;
|
|
5353
|
-
}
|
|
5354
|
-
.logo__image[data-v-d24cdbe3] {
|
|
5355
|
-
display: block;
|
|
5356
|
-
-o-object-fit: contain;
|
|
5357
|
-
object-fit: contain;
|
|
5358
|
-
height: 6rem;
|
|
5359
|
-
}
|
|
5360
|
-
.brand-page .logo__image[data-v-d24cdbe3] {
|
|
5361
|
-
margin: var(--logo-spacing) auto;
|
|
5362
5353
|
}
|
|
5363
5354
|
|
|
5364
|
-
.logo[data-v-
|
|
5355
|
+
.logo[data-v-c1c57ff8] {
|
|
5365
5356
|
--logo-border-colour: #00000000;
|
|
5366
5357
|
--logo-size: 8rem;
|
|
5367
5358
|
--logo-spacing: 0.75rem;
|
|
5368
5359
|
}
|
|
5360
|
+
.logo_wrapper[data-v-c1c57ff8] {
|
|
5361
|
+
margin-top: var(--logo-spacing);
|
|
5362
|
+
margin-bottom: var(--logo-spacing);
|
|
5363
|
+
}
|
|
5369
5364
|
|
|
5370
5365
|
.form-error[data-v-806e6999] {
|
|
5371
5366
|
font-size: 0.875rem;
|
|
@@ -5089,25 +5089,20 @@ input[data-v-4cd691db]::-webkit-inner-spin-button {
|
|
|
5089
5089
|
}
|
|
5090
5090
|
}
|
|
5091
5091
|
|
|
5092
|
-
.bp .logo__container[data-v-
|
|
5092
|
+
.bp .logo__container[data-v-c1563ab1] {
|
|
5093
5093
|
border: 0.125rem solid var(--logo-border-colour);
|
|
5094
5094
|
border-radius: 0.75rem;
|
|
5095
|
-
}
|
|
5096
|
-
.bp .logo__image[data-v-d24cdbe3] {
|
|
5097
|
-
display: block;
|
|
5098
|
-
-o-object-fit: contain;
|
|
5099
|
-
object-fit: contain;
|
|
5100
|
-
height: 6rem;
|
|
5101
|
-
}
|
|
5102
|
-
.bp .brand-page .logo__image[data-v-d24cdbe3] {
|
|
5103
|
-
margin: var(--logo-spacing) auto;
|
|
5104
5095
|
}
|
|
5105
5096
|
|
|
5106
|
-
.bp .logo[data-v-
|
|
5097
|
+
.bp .logo[data-v-c1c57ff8] {
|
|
5107
5098
|
--logo-border-colour: #00000000;
|
|
5108
5099
|
--logo-size: 8rem;
|
|
5109
5100
|
--logo-spacing: 0.75rem;
|
|
5110
5101
|
}
|
|
5102
|
+
.bp .logo_wrapper[data-v-c1c57ff8] {
|
|
5103
|
+
margin-top: var(--logo-spacing);
|
|
5104
|
+
margin-bottom: var(--logo-spacing);
|
|
5105
|
+
}
|
|
5111
5106
|
|
|
5112
5107
|
.bp .form-error[data-v-806e6999] {
|
|
5113
5108
|
font-size: 0.875rem;
|
package/lib/src/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bw as E, an as T, aP as I, a3 as N, ag as S, ad as s, bo as A, c3 as e, c2 as O, c1 as G, bX as C, aZ as D, aY as P, bH as R, bI as t, bP as L, bE as M, bG as o, bF as b, bJ as r, bK as F, bW as n, bU as B, am as g, bV as l, a6 as i, aU as Y, aW as U, aV as d, e as c, f as H, B as u, Y as y, d as p, Z as K, j as k, aj as V, X, bn as m, bD as v, at as h, aR as W, aN as x, bS as f, bR as Z, C as w, b0 as z, D as Q, b as j, a as q, bN as J, a$ as $, aS as aa, aO as _a, b$ as Ea, c0 as Ta, bQ as Ia, bA as Na, ab as Sa, bT as sa, bY as Aa, b5 as ea, aF as Oa, bb as Ga, F as Ca, a5 as Da, a4 as Pa, h as Ra, $ as ta, b2 as La, aQ as Ma, aM as oa, a1 as ba, G as ra, I as Fa, H as na, a7 as Ba, bx as ga, b6 as la, b7 as ia, bv as Ya, bd as Ua, bf as da, b1 as ca, L as Ha, aE as ua, bk as ya, aK as pa, bj as Ka, ao as ka, a9 as Va, bO as Xa, bZ as ma, b_ as va, aT as ha, N as Wa, aw as xa, av as fa, ax as Za, ar as wa, as as za, au as Qa, b9 as ja, bg as qa, b3 as Ja, n as $a, ah as a_, ai as __, ae as E_, af as T_, ac as I_, a2 as N_, l as S_, bl as s_, al as A_, bB as e_, bC as O_, bM as G_, aa as C_, bz as D_, bm as P_, m as R_, S as t_, P as L_, aD as M_, by as o_, ba as b_, br as r_, bp as F_, bt as n_, bu as B_, bq as g_, bs as l_, ay as i_, az as Y_, bi as U_, bh as d_, bc as c_, aB as H_, aC as u_, aH as y_, aX as p_, aG as K_, aI as k_, U as V_, a8 as X_, aL as m_, k as v_, b8 as h_, ak as W_, b4 as x_, be as f_, a_ as Z_, M as w_, a0 as z_, g as Q_, bL as j_, q as q_, J as J_, W as $_, aA as aE, aJ as _E, ap as EE, o as TE, T as IE, r as NE, u as SE, i as sE, aq as AE, c as eE, p as OE, t as GE, R as CE, K as DE, s as PE, V as RE, y as tE, v as LE, w as ME, Q as oE, z as bE, O as rE, A as FE, E as nE, x as BE } from "./lib-
|
|
1
|
+
import { bw as E, an as T, aP as I, a3 as N, ag as S, ad as s, bo as A, c3 as e, c2 as O, c1 as G, bX as C, aZ as D, aY as P, bH as R, bI as t, bP as L, bE as M, bG as o, bF as b, bJ as r, bK as F, bW as n, bU as B, am as g, bV as l, a6 as i, aU as Y, aW as U, aV as d, e as c, f as H, B as u, Y as y, d as p, Z as K, j as k, aj as V, X, bn as m, bD as v, at as h, aR as W, aN as x, bS as f, bR as Z, C as w, b0 as z, D as Q, b as j, a as q, bN as J, a$ as $, aS as aa, aO as _a, b$ as Ea, c0 as Ta, bQ as Ia, bA as Na, ab as Sa, bT as sa, bY as Aa, b5 as ea, aF as Oa, bb as Ga, F as Ca, a5 as Da, a4 as Pa, h as Ra, $ as ta, b2 as La, aQ as Ma, aM as oa, a1 as ba, G as ra, I as Fa, H as na, a7 as Ba, bx as ga, b6 as la, b7 as ia, bv as Ya, bd as Ua, bf as da, b1 as ca, L as Ha, aE as ua, bk as ya, aK as pa, bj as Ka, ao as ka, a9 as Va, bO as Xa, bZ as ma, b_ as va, aT as ha, N as Wa, aw as xa, av as fa, ax as Za, ar as wa, as as za, au as Qa, b9 as ja, bg as qa, b3 as Ja, n as $a, ah as a_, ai as __, ae as E_, af as T_, ac as I_, a2 as N_, l as S_, bl as s_, al as A_, bB as e_, bC as O_, bM as G_, aa as C_, bz as D_, bm as P_, m as R_, S as t_, P as L_, aD as M_, by as o_, ba as b_, br as r_, bp as F_, bt as n_, bu as B_, bq as g_, bs as l_, ay as i_, az as Y_, bi as U_, bh as d_, bc as c_, aB as H_, aC as u_, aH as y_, aX as p_, aG as K_, aI as k_, U as V_, a8 as X_, aL as m_, k as v_, b8 as h_, ak as W_, b4 as x_, be as f_, a_ as Z_, M as w_, a0 as z_, g as Q_, bL as j_, q as q_, J as J_, W as $_, aA as aE, aJ as _E, ap as EE, o as TE, T as IE, r as NE, u as SE, i as sE, aq as AE, c as eE, p as OE, t as GE, R as CE, K as DE, s as PE, V as RE, y as tE, v as LE, w as ME, Q as oE, z as bE, O as rE, A as FE, E as nE, x as BE } from "./lib-BGkUIe2G.js";
|
|
2
2
|
import { createPinia as lE, setActivePinia as iE } from "pinia";
|
|
3
3
|
export {
|
|
4
4
|
E as ABOUT_SECTION_SETTINGS_CONFIG,
|