@designcrowd/library.brand-page 5.12.14 → 5.12.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-CLvcrjGD.js → CreatedOnBrandCrowd-de-de-CZd7RKCS.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-IAccZs5I.js → CreatedOnBrandCrowd-en-us-DgUw_Gmk.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-DiT9Jb5Q.js → CreatedOnBrandCrowd-es-es-qmEj0qtS.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-C-ZE-8xH.js → CreatedOnBrandCrowd-fr-fr-WSAFNEbH.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-BmzMx788.js → CreatedOnBrandCrowd-pt-pt-QQsa4zfN.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-CknEXPtF.js → CreatedOnDcom-de-de-Dgmk8ib6.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-CNuaCmwO.js → CreatedOnDcom-en-us-u6DK8Fzd.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-xQmDcCxZ.js → CreatedOnDcom-es-es-CyOJpVzh.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-Ig9ufuyT.js → CreatedOnDcom-fr-fr-CWzC5FlL.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-BcpCcEx4.js → CreatedOnDcom-pt-pt-DVigHaTn.js} +1 -1
- package/lib/src/brand-page/components/icon/Icon.mixin.d.ts +1 -1
- package/lib/src/brand-page/components/icon/Icon.mixin.js +2 -2
- package/lib/src/brand-page/models/content.model.d.ts +1 -1
- package/lib/src/brand-page/models/content.model.js +1 -1
- package/lib/src/brand-page/models/index.d.ts +7 -13
- package/lib/src/brand-page/models/index.js +2 -2
- package/lib/src/brand-page/utils/button.util.d.ts +7 -0
- package/lib/src/brand-page/utils/button.util.js +29 -0
- package/lib/src/brand-page/utils/content-callback-util.js +1 -1
- package/lib/src/brand-page/utils/model.util.js +1 -1
- package/lib/src/brand-page/utils/style.util.js +7 -1
- package/lib/src/brand-page/utils/view-model.util.js +18 -21
- package/lib/src/brand-page-maker/components/admin-logo-settings/AdminLogoSettings.mixin.d.ts +2 -2
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +18 -18
- package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.js +2 -0
- package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/content-settings-items.fixture.d.ts +2 -2
- package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/content-settings-items.fixture.js +4 -4
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +20 -20
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.js +2 -0
- package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/constants/config-settings-constant.d.ts +4 -2
- package/lib/src/brand-page-maker/constants/config-settings-constant.js +24 -5
- package/lib/src/brand-page-maker/constants/personalisation.constant.js +1 -1
- package/lib/src/brand-page-maker/models/content-settings.js +20 -2
- package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.js +0 -1
- package/lib/src/brand-page-maker/utils/rich-text-editor.util.js +80 -0
- package/lib/src/{bundled-translations-5b693qBQ.js → bundled-translations-DEYhoqLM.js} +10 -10
- package/lib/src/{bundled-translations.de-DE-Baq37kiT.js → bundled-translations.de-DE-B3NNo7JX.js} +22 -22
- package/lib/src/{bundled-translations.es-ES-BZB7Rc2f.js → bundled-translations.es-ES-_4IspVbp.js} +7 -7
- package/lib/src/{bundled-translations.fr-FR-QQJaBYEl.js → bundled-translations.fr-FR-9CdErV_a.js} +5 -5
- package/lib/src/{bundled-translations.pt-PT-DXFlBwc9.js → bundled-translations.pt-PT-BSmtPIMr.js} +12 -12
- package/lib/src/bundles/bundled-translations.de-DE.json +9 -8
- package/lib/src/bundles/bundled-translations.es-ES.json +10 -9
- package/lib/src/bundles/bundled-translations.fr-FR.json +3 -2
- package/lib/src/bundles/bundled-translations.json +2 -1
- package/lib/src/bundles/bundled-translations.pt-PT.json +14 -13
- package/lib/src/css/library.brand-page-brandCrowd.min.css +17 -17
- package/lib/src/css/library.brand-page-brandPage.min.css +17 -17
- package/lib/src/css/library.brand-page-designCom.min.css +17 -17
- package/lib/src/css/library.brand-page-preview.min.css +17 -17
- package/lib/src/index.mjs +67 -65
- package/lib/src/{lib-BxhpFccU.js → lib--oa9Rosp.js} +17834 -17682
- package/lib/src/plugins/bundle-translations-plugin/bundle-translations-plugin.js +2 -4
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +20 -20
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.js +2 -0
- package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +21 -21
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +20 -20
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +18 -18
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.js +7 -1
- package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.d.ts +18 -18
- package/lib/src/shared/content-settings/store/content-settings-store.d.ts +18 -18
- package/lib/src/shared/page-settings/components/delete-page-modal/DeletePageModal.mixin.d.ts +1 -1
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +22 -22
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +20 -20
- package/package.json +1 -1
- package/src/brand-page/components/icon/Icon.mixin.ts +2 -2
- package/src/brand-page/components/icon/Icon.vue +1 -1
- package/src/brand-page/components/text-media-section/TextMediaSection.vue +14 -0
- package/src/brand-page/models/content.model.ts +1 -1
- package/src/brand-page/models/index.ts +9 -15
- package/src/brand-page/utils/__snapshots__/migration.util.test.ts.snap +12 -12
- package/src/brand-page/utils/__snapshots__/migration2.util.test.ts.snap +4 -4
- package/src/brand-page/utils/__snapshots__/model.util.test.ts.snap +8 -8
- package/src/brand-page/utils/button.util.ts +39 -0
- package/src/brand-page/utils/content-callback-util.ts +1 -1
- package/src/brand-page/utils/model.util.ts +1 -1
- package/src/brand-page/utils/style.util.ts +7 -1
- package/src/brand-page/utils/view-model.util.ts +21 -30
- package/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.ts +2 -0
- package/src/brand-page-maker/components/brand-page-maker/__fixtures__/content-settings-items.fixture.ts +6 -6
- package/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.ts +2 -0
- package/src/brand-page-maker/constants/config-settings-constant.ts +38 -7
- package/src/brand-page-maker/constants/personalisation.constant.ts +1 -1
- package/src/brand-page-maker/models/content-settings.ts +20 -2
- package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.ts +0 -2
- package/src/brand-page-maker/stores/brandpage-maker/__snapshots__/brandpage-maker-store.test.ts.snap +1 -1
- package/src/brand-page-maker/utils/rich-text-editor.util.ts +156 -0
- package/src/bundles/bundled-translations.de-DE.json +9 -8
- package/src/bundles/bundled-translations.es-ES.json +10 -9
- package/src/bundles/bundled-translations.fr-FR.json +3 -2
- package/src/bundles/bundled-translations.json +2 -1
- package/src/bundles/bundled-translations.pt-PT.json +14 -13
- package/src/plugins/bundle-translations-plugin/bundle-translations-plugin.ts +3 -6
- package/src/shared/content-settings/components/content-settings/ContentSettings.mixin.ts +2 -0
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.de-DE.json +9 -8
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.es-ES.json +10 -9
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.fr-FR.json +3 -2
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.json +2 -1
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.pt-PT.json +14 -13
- package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.ts +7 -1
- /package/src/brand-page/components/icon/icons/{Twitter.vue → X.vue} +0 -0
|
@@ -113,7 +113,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
113
113
|
IconTikTok: import("vue").DefineComponent<{}, {}, any>;
|
|
114
114
|
IconTumblr: import("vue").DefineComponent<{}, {}, any>;
|
|
115
115
|
IconTwitch: import("vue").DefineComponent<{}, {}, any>;
|
|
116
|
-
|
|
116
|
+
IconX: import("vue").DefineComponent<{}, {}, any>;
|
|
117
117
|
IconUser: import("vue").DefineComponent<{}, {}, any>;
|
|
118
118
|
IconUtensils: import("vue").DefineComponent<{}, {}, any>;
|
|
119
119
|
IconVideo: import("vue").DefineComponent<{}, {}, any>;
|
|
@@ -62,7 +62,7 @@ import IconThumbsUp from './icons/ThumbsUp.vue';
|
|
|
62
62
|
import IconTikTok from './icons/TikTok.vue';
|
|
63
63
|
import IconTumblr from './icons/Tumblr.vue';
|
|
64
64
|
import IconTwitch from './icons/Twitch.vue';
|
|
65
|
-
import
|
|
65
|
+
import IconX from './icons/X.vue';
|
|
66
66
|
import IconUser from './icons/User.vue';
|
|
67
67
|
import IconUtensils from './icons/Utensils.vue';
|
|
68
68
|
import IconVideo from './icons/Video.vue';
|
|
@@ -128,7 +128,7 @@ export default defineComponent({
|
|
|
128
128
|
IconTikTok,
|
|
129
129
|
IconTumblr,
|
|
130
130
|
IconTwitch,
|
|
131
|
-
|
|
131
|
+
IconX,
|
|
132
132
|
IconUser,
|
|
133
133
|
IconUtensils,
|
|
134
134
|
IconVideo,
|
|
@@ -9,7 +9,7 @@ export declare const CONTENT_TYPES: {
|
|
|
9
9
|
readonly phone: "phone";
|
|
10
10
|
readonly text: "text";
|
|
11
11
|
readonly facebook: "facebook";
|
|
12
|
-
readonly
|
|
12
|
+
readonly x: "x";
|
|
13
13
|
readonly instagram: "instagram";
|
|
14
14
|
readonly youtube: "youtube";
|
|
15
15
|
readonly linkedin: "linkedin";
|
|
@@ -79,7 +79,7 @@ export type WebsiteContent = ButtonContent;
|
|
|
79
79
|
export type EmailContent = ButtonContent;
|
|
80
80
|
export type PhoneContent = ButtonContent;
|
|
81
81
|
export type FacebookContent = ButtonContent;
|
|
82
|
-
export type
|
|
82
|
+
export type XContent = ButtonContent;
|
|
83
83
|
export type InstagramContent = ButtonContent;
|
|
84
84
|
export type YoutubeContent = ButtonContent;
|
|
85
85
|
export type LinkedInContent = ButtonContent;
|
|
@@ -287,12 +287,11 @@ export interface TextMediaItem extends ImageItem {
|
|
|
287
287
|
}
|
|
288
288
|
export interface TextShapeItem extends TextMediaItem {
|
|
289
289
|
colorReplacements: ColorReplacement[];
|
|
290
|
-
mediaType: 'shape';
|
|
291
290
|
aspectRatio?: number | null;
|
|
292
291
|
}
|
|
293
292
|
export interface ShapeItem extends ImageItem {
|
|
294
293
|
colorReplacements: ColorReplacement[];
|
|
295
|
-
mediaType:
|
|
294
|
+
mediaType: MediaType;
|
|
296
295
|
title?: string;
|
|
297
296
|
paragraph?: string;
|
|
298
297
|
titleOverride?: string;
|
|
@@ -322,24 +321,19 @@ export interface ShapesSectionContent extends Content, MediaSection {
|
|
|
322
321
|
size: string;
|
|
323
322
|
cardStyle: BrandPageCssStyle;
|
|
324
323
|
}
|
|
325
|
-
export interface ImagesSectionContent extends Content {
|
|
324
|
+
export interface ImagesSectionContent extends Content, MediaSection {
|
|
326
325
|
type: 'images-section';
|
|
327
|
-
title: string;
|
|
328
|
-
displayStyle: ImagesSectionContentDisplayStyle;
|
|
329
326
|
aspectRatio: AspectRatio;
|
|
330
327
|
areImagesFullWidth: boolean;
|
|
331
|
-
items: TextMediaItem[];
|
|
332
|
-
backgroundStyle: BrandPageCssStyle;
|
|
333
|
-
titleStyle: TextStyleDeclaration;
|
|
334
|
-
headingStyle: TextStyleDeclaration;
|
|
335
|
-
paragraphStyle: TextStyleDeclaration;
|
|
336
328
|
cardStyle: BrandPageCssStyle;
|
|
337
329
|
}
|
|
338
330
|
export interface MediaSection extends Content {
|
|
339
331
|
title: string;
|
|
340
|
-
|
|
341
|
-
|
|
332
|
+
description: string;
|
|
333
|
+
displayStyle: ImagesSectionContentDisplayStyle;
|
|
334
|
+
items: TextShapeItem[] | TextMediaItem[];
|
|
342
335
|
titleStyle: TextStyleDeclaration;
|
|
336
|
+
descriptionStyle: TextStyleDeclaration;
|
|
343
337
|
headingStyle: TextStyleDeclaration;
|
|
344
338
|
paragraphStyle: TextStyleDeclaration;
|
|
345
339
|
backgroundStyle: BrandPageCssStyle;
|
|
@@ -338,9 +338,9 @@ export class AbstractPageFooterStyles {
|
|
|
338
338
|
{
|
|
339
339
|
width: 0,
|
|
340
340
|
height: 0,
|
|
341
|
-
imageUrl: '
|
|
341
|
+
imageUrl: 'x',
|
|
342
342
|
imageTitle: '',
|
|
343
|
-
url: 'https://www.
|
|
343
|
+
url: 'https://www.x.com',
|
|
344
344
|
mediaType: 'image',
|
|
345
345
|
imageLink: '',
|
|
346
346
|
},
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ButtonStyles } from '../models';
|
|
2
|
+
/**
|
|
3
|
+
* Calculates the box shadow value for button styles based on the button style configuration
|
|
4
|
+
* @param buttonStyles - The button styles configuration
|
|
5
|
+
* @returns The calculated box shadow CSS value
|
|
6
|
+
*/
|
|
7
|
+
export declare const getBoxShadowValue: (buttonStyles: ButtonStyles) => string;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { isHexColor } from '../../utils/helpers';
|
|
2
|
+
import { setRgbAlpha } from './color.util';
|
|
3
|
+
import { ButtonSoftBoxShadowSize, ButtonBoxShadowSize, BoxShadowSpread, } from '../constants';
|
|
4
|
+
/**
|
|
5
|
+
* Calculates the box shadow value for button styles based on the button style configuration
|
|
6
|
+
* @param buttonStyles - The button styles configuration
|
|
7
|
+
* @returns The calculated box shadow CSS value
|
|
8
|
+
*/
|
|
9
|
+
export const getBoxShadowValue = (buttonStyles) => {
|
|
10
|
+
let boxShadowValue = '';
|
|
11
|
+
if (buttonStyles.style.boxShadow) {
|
|
12
|
+
if (isHexColor(buttonStyles.style.boxShadow)) {
|
|
13
|
+
if (buttonStyles.selectedButtonStyleId === 'BUTTON_STYLE_16' ||
|
|
14
|
+
buttonStyles.selectedButtonStyleId === 'BUTTON_STYLE_17' ||
|
|
15
|
+
buttonStyles.selectedButtonStyleId === 'BUTTON_STYLE_18') {
|
|
16
|
+
const rgba = setRgbAlpha(buttonStyles.style.boxShadow, BoxShadowSpread);
|
|
17
|
+
boxShadowValue = `${ButtonSoftBoxShadowSize} ${rgba}`;
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
const rgba = setRgbAlpha(buttonStyles.style.boxShadow, BoxShadowSpread);
|
|
21
|
+
boxShadowValue = `${ButtonBoxShadowSize} ${rgba}`;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
boxShadowValue = buttonStyles.style.boxShadow;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return boxShadowValue;
|
|
29
|
+
};
|
|
@@ -28,7 +28,7 @@ export const isButtonContent = (content) => {
|
|
|
28
28
|
content?.type === 'website' ||
|
|
29
29
|
content?.type === 'email' ||
|
|
30
30
|
content?.type === 'phone' ||
|
|
31
|
-
content?.type === '
|
|
31
|
+
content?.type === 'x' ||
|
|
32
32
|
content?.type === 'instagram' ||
|
|
33
33
|
content?.type === 'youtube' ||
|
|
34
34
|
content?.type === 'linkedin' ||
|
|
@@ -199,7 +199,13 @@ const CONTENT_STYLE_PROP_NAME_SUFFIX = [
|
|
|
199
199
|
'Color',
|
|
200
200
|
'Replacements',
|
|
201
201
|
];
|
|
202
|
-
const RTE_ALLOWED_SECTION_TYPES = [
|
|
202
|
+
const RTE_ALLOWED_SECTION_TYPES = [
|
|
203
|
+
'text',
|
|
204
|
+
'banner-section',
|
|
205
|
+
'booking-section',
|
|
206
|
+
'images-section',
|
|
207
|
+
'shapes-section',
|
|
208
|
+
];
|
|
203
209
|
const RTE_ALLOWED_FIELDS = ['title', 'description', 'text', 'textItems'];
|
|
204
210
|
export const applyLogoThemeToContents = (logoTheme, pages) => {
|
|
205
211
|
let isModified = false;
|
|
@@ -9,6 +9,7 @@ import uniq from 'lodash/uniq';
|
|
|
9
9
|
import { generateGoogleFontUrl } from './font-loader.util';
|
|
10
10
|
import { isValidSvgUrl } from './image.util';
|
|
11
11
|
import { isLogoContent } from './model.util';
|
|
12
|
+
import { getBoxShadowValue } from './button.util';
|
|
12
13
|
const BUTTON_BORDER_RADIUS = '9999px';
|
|
13
14
|
const CONTENT_BORDER_RADIUS = '48px';
|
|
14
15
|
const PROFILE_PADDING_TOP = '1rem';
|
|
@@ -191,24 +192,7 @@ const isBigImageType = (displayStyle) => {
|
|
|
191
192
|
return false;
|
|
192
193
|
};
|
|
193
194
|
const mapToButtonViewModel = (content, styles, options) => {
|
|
194
|
-
|
|
195
|
-
if (styles.buttonStyles.style.boxShadow) {
|
|
196
|
-
if (isHexColor(styles.buttonStyles.style.boxShadow)) {
|
|
197
|
-
if (styles.buttonStyles.selectedButtonStyleId === 'BUTTON_STYLE_16' ||
|
|
198
|
-
styles.buttonStyles.selectedButtonStyleId === 'BUTTON_STYLE_17' ||
|
|
199
|
-
styles.buttonStyles.selectedButtonStyleId === 'BUTTON_STYLE_18') {
|
|
200
|
-
const rgba = setRgbAlpha(styles.buttonStyles.style.boxShadow, BoxShadowSpread);
|
|
201
|
-
boxShadowValue = `${ButtonSoftBoxShadowSize} ${rgba}`;
|
|
202
|
-
}
|
|
203
|
-
else {
|
|
204
|
-
const rgba = setRgbAlpha(styles.buttonStyles.style.boxShadow, BoxShadowSpread);
|
|
205
|
-
boxShadowValue = `${ButtonBoxShadowSize} ${rgba}`;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
else {
|
|
209
|
-
boxShadowValue = styles.buttonStyles.style.boxShadow;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
195
|
+
const boxShadowValue = getBoxShadowValue(styles.buttonStyles);
|
|
212
196
|
const buttonStyles = {
|
|
213
197
|
iconStyle: styles.buttonStyles.iconStyle,
|
|
214
198
|
style: {
|
|
@@ -309,9 +293,13 @@ const mapToMapViewModel = (content) => {
|
|
|
309
293
|
return { ...content, role: content.type, type: 'map' };
|
|
310
294
|
};
|
|
311
295
|
const mapToMailingListViewModel = (content, styles) => {
|
|
296
|
+
const boxShadowValue = getBoxShadowValue(styles.buttonStyles);
|
|
312
297
|
const buttonStyles = {
|
|
313
298
|
iconStyle: styles.buttonStyles.iconStyle,
|
|
314
|
-
style:
|
|
299
|
+
style: {
|
|
300
|
+
...styles.buttonStyles.style,
|
|
301
|
+
boxShadow: boxShadowValue,
|
|
302
|
+
},
|
|
315
303
|
selectedButtonStyleId: styles.buttonStyles.selectedButtonStyleId,
|
|
316
304
|
};
|
|
317
305
|
const titleStyle = {
|
|
@@ -368,11 +356,20 @@ const mapToRequestPaymentViewModel = (content, styles) => {
|
|
|
368
356
|
}, styles);
|
|
369
357
|
};
|
|
370
358
|
const mapToContactFormViewModel = (content, styles, brandPageType) => {
|
|
359
|
+
const boxShadowValue = getBoxShadowValue(styles.buttonStyles);
|
|
360
|
+
const buttonStyles = {
|
|
361
|
+
iconStyle: styles.buttonStyles.iconStyle,
|
|
362
|
+
style: {
|
|
363
|
+
...styles.buttonStyles.style,
|
|
364
|
+
boxShadow: boxShadowValue,
|
|
365
|
+
},
|
|
366
|
+
selectedButtonStyleId: styles.buttonStyles.selectedButtonStyleId,
|
|
367
|
+
};
|
|
371
368
|
return applyViewModelTextStyles({
|
|
372
369
|
...content,
|
|
373
370
|
role: content.type,
|
|
374
371
|
type: 'contact-form',
|
|
375
|
-
buttonStyles:
|
|
372
|
+
buttonStyles: buttonStyles,
|
|
376
373
|
buttonTextStyle: {
|
|
377
374
|
...content.buttonTextStyle,
|
|
378
375
|
},
|
|
@@ -659,7 +656,7 @@ export const mapToViewModel = (styles, brandPageType) => (content) => {
|
|
|
659
656
|
case 'website':
|
|
660
657
|
case 'phone':
|
|
661
658
|
case 'facebook':
|
|
662
|
-
case '
|
|
659
|
+
case 'x':
|
|
663
660
|
case 'instagram':
|
|
664
661
|
case 'youtube':
|
|
665
662
|
case 'linkedin':
|
package/lib/src/brand-page-maker/components/admin-logo-settings/AdminLogoSettings.mixin.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
2
2
|
templates: import("vue").ComputedRef<import("../../stores/admin-logo-settings").AdminPreviewLogoTemplateTemplate[]>;
|
|
3
3
|
items: import("vue").ComputedRef<{
|
|
4
4
|
id: string;
|
|
5
|
-
type: "website" | "image" | "
|
|
5
|
+
type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
|
|
6
6
|
settings: {
|
|
7
7
|
content: {
|
|
8
8
|
id: string;
|
|
9
|
-
type: "website" | "image" | "
|
|
9
|
+
type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
|
|
10
10
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
11
11
|
imageUrlOverride?: string | undefined;
|
|
12
12
|
imageUrlsOverride?: string | undefined;
|
|
@@ -408,7 +408,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
408
408
|
contentErrorCount(): number;
|
|
409
409
|
getContent(state: {
|
|
410
410
|
addContentOptions: {
|
|
411
|
-
type: "website" | "image" | "
|
|
411
|
+
type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
|
|
412
412
|
category: string;
|
|
413
413
|
createInitialContent: (options: import("../../../shared/content-settings/models").CreateInitialContentOptions) => import("../../../brand-page").Content;
|
|
414
414
|
displayName: string;
|
|
@@ -419,11 +419,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
419
419
|
}[];
|
|
420
420
|
items: {
|
|
421
421
|
id: string;
|
|
422
|
-
type: "website" | "image" | "
|
|
422
|
+
type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
|
|
423
423
|
settings: {
|
|
424
424
|
content: {
|
|
425
425
|
id: string;
|
|
426
|
-
type: "website" | "image" | "
|
|
426
|
+
type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
|
|
427
427
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
428
428
|
imageUrlOverride?: string | undefined;
|
|
429
429
|
imageUrlsOverride?: string | undefined;
|
|
@@ -457,7 +457,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
457
457
|
} & import("pinia").PiniaCustomStateProperties<import("../../../shared/content-settings/store").ContentSettingsState>): (id: string) => import("../../../brand-page").Content | undefined;
|
|
458
458
|
getFieldSettings(state: {
|
|
459
459
|
addContentOptions: {
|
|
460
|
-
type: "website" | "image" | "
|
|
460
|
+
type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
|
|
461
461
|
category: string;
|
|
462
462
|
createInitialContent: (options: import("../../../shared/content-settings/models").CreateInitialContentOptions) => import("../../../brand-page").Content;
|
|
463
463
|
displayName: string;
|
|
@@ -468,11 +468,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
468
468
|
}[];
|
|
469
469
|
items: {
|
|
470
470
|
id: string;
|
|
471
|
-
type: "website" | "image" | "
|
|
471
|
+
type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
|
|
472
472
|
settings: {
|
|
473
473
|
content: {
|
|
474
474
|
id: string;
|
|
475
|
-
type: "website" | "image" | "
|
|
475
|
+
type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
|
|
476
476
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
477
477
|
imageUrlOverride?: string | undefined;
|
|
478
478
|
imageUrlsOverride?: string | undefined;
|
|
@@ -506,7 +506,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
506
506
|
} & import("pinia").PiniaCustomStateProperties<import("../../../shared/content-settings/store").ContentSettingsState>): (id: string, fieldName: string) => import("../../../shared/content-settings/models").ContentItemFieldSettings | undefined;
|
|
507
507
|
getItem(state: {
|
|
508
508
|
addContentOptions: {
|
|
509
|
-
type: "website" | "image" | "
|
|
509
|
+
type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
|
|
510
510
|
category: string;
|
|
511
511
|
createInitialContent: (options: import("../../../shared/content-settings/models").CreateInitialContentOptions) => import("../../../brand-page").Content;
|
|
512
512
|
displayName: string;
|
|
@@ -517,11 +517,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
517
517
|
}[];
|
|
518
518
|
items: {
|
|
519
519
|
id: string;
|
|
520
|
-
type: "website" | "image" | "
|
|
520
|
+
type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
|
|
521
521
|
settings: {
|
|
522
522
|
content: {
|
|
523
523
|
id: string;
|
|
524
|
-
type: "website" | "image" | "
|
|
524
|
+
type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
|
|
525
525
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
526
526
|
imageUrlOverride?: string | undefined;
|
|
527
527
|
imageUrlsOverride?: string | undefined;
|
|
@@ -555,7 +555,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
555
555
|
} & import("pinia").PiniaCustomStateProperties<import("../../../shared/content-settings/store").ContentSettingsState>): (id: string) => import("../../../shared/content-settings/models").ContentItem<any> | undefined;
|
|
556
556
|
getValue(state: {
|
|
557
557
|
addContentOptions: {
|
|
558
|
-
type: "website" | "image" | "
|
|
558
|
+
type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
|
|
559
559
|
category: string;
|
|
560
560
|
createInitialContent: (options: import("../../../shared/content-settings/models").CreateInitialContentOptions) => import("../../../brand-page").Content;
|
|
561
561
|
displayName: string;
|
|
@@ -566,11 +566,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
566
566
|
}[];
|
|
567
567
|
items: {
|
|
568
568
|
id: string;
|
|
569
|
-
type: "website" | "image" | "
|
|
569
|
+
type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
|
|
570
570
|
settings: {
|
|
571
571
|
content: {
|
|
572
572
|
id: string;
|
|
573
|
-
type: "website" | "image" | "
|
|
573
|
+
type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
|
|
574
574
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
575
575
|
imageUrlOverride?: string | undefined;
|
|
576
576
|
imageUrlsOverride?: string | undefined;
|
|
@@ -604,7 +604,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
604
604
|
} & import("pinia").PiniaCustomStateProperties<import("../../../shared/content-settings/store").ContentSettingsState>): (id: string, fieldName: string) => string | import("../../../brand-page").Content | undefined;
|
|
605
605
|
getItemState(state: {
|
|
606
606
|
addContentOptions: {
|
|
607
|
-
type: "website" | "image" | "
|
|
607
|
+
type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
|
|
608
608
|
category: string;
|
|
609
609
|
createInitialContent: (options: import("../../../shared/content-settings/models").CreateInitialContentOptions) => import("../../../brand-page").Content;
|
|
610
610
|
displayName: string;
|
|
@@ -615,11 +615,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
615
615
|
}[];
|
|
616
616
|
items: {
|
|
617
617
|
id: string;
|
|
618
|
-
type: "website" | "image" | "
|
|
618
|
+
type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
|
|
619
619
|
settings: {
|
|
620
620
|
content: {
|
|
621
621
|
id: string;
|
|
622
|
-
type: "website" | "image" | "
|
|
622
|
+
type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
|
|
623
623
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
624
624
|
imageUrlOverride?: string | undefined;
|
|
625
625
|
imageUrlsOverride?: string | undefined;
|
|
@@ -653,7 +653,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
653
653
|
} & import("pinia").PiniaCustomStateProperties<import("../../../shared/content-settings/store").ContentSettingsState>): (id: string) => import("../../../shared/content-settings/models").ContentSettingsItemState;
|
|
654
654
|
getItemGroupState(state: {
|
|
655
655
|
addContentOptions: {
|
|
656
|
-
type: "website" | "image" | "
|
|
656
|
+
type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
|
|
657
657
|
category: string;
|
|
658
658
|
createInitialContent: (options: import("../../../shared/content-settings/models").CreateInitialContentOptions) => import("../../../brand-page").Content;
|
|
659
659
|
displayName: string;
|
|
@@ -664,11 +664,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
664
664
|
}[];
|
|
665
665
|
items: {
|
|
666
666
|
id: string;
|
|
667
|
-
type: "website" | "image" | "
|
|
667
|
+
type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
|
|
668
668
|
settings: {
|
|
669
669
|
content: {
|
|
670
670
|
id: string;
|
|
671
|
-
type: "website" | "image" | "
|
|
671
|
+
type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
|
|
672
672
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
673
673
|
imageUrlOverride?: string | undefined;
|
|
674
674
|
imageUrlsOverride?: string | undefined;
|
package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.js
CHANGED
|
@@ -1142,6 +1142,7 @@ export const BRAND_PAGE_PERSONALISED = {
|
|
|
1142
1142
|
{
|
|
1143
1143
|
id: uuid(),
|
|
1144
1144
|
title: 'Shapes',
|
|
1145
|
+
description: '',
|
|
1145
1146
|
type: 'shapes-section',
|
|
1146
1147
|
displayStyle: 'centered',
|
|
1147
1148
|
items: [
|
|
@@ -1163,6 +1164,7 @@ export const BRAND_PAGE_PERSONALISED = {
|
|
|
1163
1164
|
cardStyle: {},
|
|
1164
1165
|
size: '4rem',
|
|
1165
1166
|
titleStyle: {},
|
|
1167
|
+
descriptionStyle: {},
|
|
1166
1168
|
paragraphStyle: {},
|
|
1167
1169
|
headingStyle: {},
|
|
1168
1170
|
personalisationRole: 'media',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LogoContent, ProfileContent, GeneralLinkContent, WebsiteContent, EmailContent, PhoneContent, FacebookContent,
|
|
1
|
+
import type { LogoContent, ProfileContent, GeneralLinkContent, WebsiteContent, EmailContent, PhoneContent, FacebookContent, XContent, InstagramContent, YoutubeContent, LinkedInContent, PinterestContent, TwitchContent, TiktokContent, TextContent } from '../../../../brand-page';
|
|
2
2
|
export declare const logoContent: LogoContent;
|
|
3
3
|
export declare const profileContent: ProfileContent;
|
|
4
4
|
export declare const textContent: TextContent;
|
|
@@ -7,7 +7,7 @@ export declare const websiteLink: WebsiteContent;
|
|
|
7
7
|
export declare const emailLink: EmailContent;
|
|
8
8
|
export declare const phoneLink: PhoneContent;
|
|
9
9
|
export declare const facebookLink: FacebookContent;
|
|
10
|
-
export declare const twitterLink:
|
|
10
|
+
export declare const twitterLink: XContent;
|
|
11
11
|
export declare const instagramLink: InstagramContent;
|
|
12
12
|
export declare const youtubeLink: YoutubeContent;
|
|
13
13
|
export declare const linkedinLink: LinkedInContent;
|
|
@@ -110,10 +110,10 @@ export const facebookLink = {
|
|
|
110
110
|
};
|
|
111
111
|
export const twitterLink = {
|
|
112
112
|
id: faker.string.uuid(),
|
|
113
|
-
iconUrl: '
|
|
114
|
-
title: '
|
|
115
|
-
url: 'https://www.
|
|
116
|
-
type: '
|
|
113
|
+
iconUrl: 'x',
|
|
114
|
+
title: 'X',
|
|
115
|
+
url: 'https://www.x.com',
|
|
116
|
+
type: 'x',
|
|
117
117
|
colorReplacements: [],
|
|
118
118
|
titleStyle: {
|
|
119
119
|
textAlign: DEFAULT_TEXT_ALIGN,
|