@designcrowd/library.brand-page 5.12.4 → 5.12.5-ast-booking
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-BXfAb_Ly.js → CreatedOnBrandCrowd-de-de-B5KouJJt.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-BvCOvRuk.js → CreatedOnBrandCrowd-en-us-CDBIOkYS.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-eAe6KBvm.js → CreatedOnBrandCrowd-es-es-B2uv6JJc.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-DVSPg9Qi.js → CreatedOnBrandCrowd-fr-fr-DwFtmsuM.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-W42s3fa-.js → CreatedOnBrandCrowd-pt-pt-Umqbw3cI.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-B_S0e0e_.js → CreatedOnDcom-de-de-CzZVKMix.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-Bi-x7Vfr.js → CreatedOnDcom-en-us-DewdA5AU.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-BlLjTmrS.js → CreatedOnDcom-es-es-CZve73aI.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-D2UQl6bI.js → CreatedOnDcom-fr-fr-BQlgLAmh.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-D-x98ymB.js → CreatedOnDcom-pt-pt-BkShsjOl.js} +1 -1
- package/lib/src/brand-page/components/icon/Icon.mixin.d.ts +7 -0
- package/lib/src/brand-page/components/icon/Icon.mixin.js +14 -0
- package/lib/src/brand-page/models/content.model.d.ts +1 -0
- package/lib/src/brand-page/models/content.model.js +1 -0
- package/lib/src/brand-page/models/index.d.ts +16 -0
- package/lib/src/brand-page/utils/content-callback-util.d.ts +2 -1
- package/lib/src/brand-page/utils/content-callback-util.js +3 -0
- package/lib/src/brand-page/utils/style.util.js +1 -1
- package/lib/src/brand-page/utils/view-model.util.d.ts +3 -2
- package/lib/src/brand-page/utils/view-model.util.js +14 -0
- package/lib/src/brand-page/view-models.d.ts +6 -2
- package/lib/src/brand-page-maker/assessors/banner-section-description-visibility.assessor.d.ts +4 -4
- package/lib/src/brand-page-maker/assessors/banner-section-field.assessor.d.ts +4 -4
- 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/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +20 -20
- package/lib/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.d.ts +3 -2
- package/lib/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.js +29 -2
- package/lib/src/brand-page-maker/composables/useEventTracker.d.ts +4 -0
- package/lib/src/brand-page-maker/composables/useEventTracker.js +4 -0
- package/lib/src/brand-page-maker/constants/config-settings-constant.d.ts +2 -1
- package/lib/src/brand-page-maker/constants/config-settings-constant.js +101 -1
- package/lib/src/brand-page-maker/models/content-settings.d.ts +2 -1
- package/lib/src/brand-page-maker/models/content-settings.js +28 -0
- package/lib/src/brand-page-maker/validators/section-button.validator.d.ts +3 -3
- package/lib/src/{bundled-translations-C4LWPXSH.js → bundled-translations-BZJKPEb9.js} +42 -40
- package/lib/src/{bundled-translations-yNXD14vd.js → bundled-translations-CD8h4dNr.js} +15 -13
- package/lib/src/{bundled-translations.de-DE-JcuQ3w62.js → bundled-translations.de-DE-djs407Ih.js} +5 -3
- package/lib/src/{bundled-translations.es-ES-CxAmhY4A.js → bundled-translations.es-ES-JjQoQaM7.js} +9 -7
- package/lib/src/{bundled-translations.fr-FR-ClTzpDVd.js → bundled-translations.fr-FR-rUuRWfsM.js} +5 -3
- package/lib/src/{bundled-translations.pt-PT-CaCaJJ12.js → bundled-translations.pt-PT-BiSQEFmA.js} +5 -3
- package/lib/src/bundles/bundled-translations.json +8 -1
- package/lib/src/composables/useTranslate.d.ts +2 -1
- package/lib/src/composables/useTranslate.js +2 -1
- package/lib/src/constants/brand-page-maker.js +7 -0
- package/lib/src/css/library.brand-page-brandCrowd.min.css +44 -39
- package/lib/src/css/library.brand-page-brandPage.min.css +44 -39
- package/lib/src/css/library.brand-page-designCom.min.css +44 -39
- package/lib/src/css/library.brand-page-preview.min.css +44 -39
- package/lib/src/index.mjs +176 -175
- package/lib/src/{lib-CmlX0vVm.js → lib-BTapaSjP.js} +26355 -25856
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +20 -20
- 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 +1 -1
- package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.d.ts +18 -18
- package/lib/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.d.ts +11 -0
- package/lib/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.js +5 -0
- package/lib/src/shared/content-settings/components/url-field/UrlField.mixin.d.ts +39 -2
- package/lib/src/shared/content-settings/components/url-field/UrlField.mixin.js +32 -0
- package/lib/src/shared/content-settings/store/content-settings-store.d.ts +18 -18
- package/lib/src/shared/font-family-selector/FontFamilySelector.mixin.d.ts +3 -2
- package/lib/src/shared/font-family-selector/FontFamilySelector.mixin.js +17 -10
- 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 +2 -2
- package/src/brand-page/components/booking-section/BookingSection.vue +240 -0
- package/src/brand-page/components/icon/Icon.mixin.ts +14 -0
- package/src/brand-page/components/icon/Icon.vue +7 -0
- package/src/brand-page/components/icon/icons/AppleMusic.vue +12 -0
- package/src/brand-page/components/icon/icons/Discord.vue +1 -1
- package/src/brand-page/components/icon/icons/Messenger.vue +14 -0
- package/src/brand-page/components/icon/icons/Patreon.vue +12 -0
- package/src/brand-page/components/icon/icons/Reddit.vue +5 -0
- package/src/brand-page/components/icon/icons/Substack.vue +12 -0
- package/src/brand-page/components/icon/icons/Telegram.vue +5 -0
- package/src/brand-page/components/icon/icons/Threads.vue +5 -0
- package/src/brand-page/components/icon/icons/Twitter.vue +1 -1
- package/src/brand-page/components/page/PageComponent.vue +2 -0
- package/src/brand-page/models/content.model.ts +1 -0
- package/src/brand-page/models/index.ts +17 -0
- package/src/brand-page/utils/content-callback-util.ts +7 -0
- package/src/brand-page/utils/style.util.ts +1 -1
- package/src/brand-page/utils/view-model.util.ts +27 -0
- package/src/brand-page/view-models.ts +10 -1
- package/src/brand-page-maker/assessors/banner-section-description-visibility.assessor.ts +7 -4
- package/src/brand-page-maker/assessors/banner-section-field.assessor.ts +7 -4
- package/src/brand-page-maker/components/rich-text-editor/RichTextEditor.vue +3 -1
- package/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.ts +37 -2
- package/src/brand-page-maker/composables/useEventTracker.ts +4 -0
- package/src/brand-page-maker/constants/config-settings-constant.ts +107 -0
- package/src/brand-page-maker/models/content-settings.ts +32 -0
- package/src/brand-page-maker/validators/section-button.validator.ts +7 -6
- package/src/bundles/bundled-translations.json +8 -1
- package/src/composables/useTranslate.ts +2 -0
- package/src/constants/brand-page-maker.ts +7 -0
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.json +5 -1
- package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.ts +1 -1
- package/src/shared/content-settings/components/text-field/TextField.vue +1 -0
- package/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.ts +5 -0
- package/src/shared/content-settings/components/text-items-field/TextItemsField.vue +1 -0
- package/src/shared/content-settings/components/textarea-field/TextareaField.vue +1 -0
- package/src/shared/content-settings/components/url-field/UrlField.mixin.ts +38 -0
- package/src/shared/content-settings/components/url-field/UrlField.vue +12 -0
- package/src/shared/content-settings/components/url-field/i18n/url-field.json +5 -0
- package/src/shared/font-family-selector/FontFamilySelector.mixin.ts +22 -14
- package/src/brand-page/components/logo/test.json +0 -866
- package/src/brand-page/components/logo/test2.json +0 -765
- package/src/brand-page/components/logo/test3.json +0 -749
package/lib/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.d.ts
CHANGED
|
@@ -32,6 +32,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
32
32
|
required: false;
|
|
33
33
|
default: boolean;
|
|
34
34
|
};
|
|
35
|
+
contentType: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
required: false;
|
|
38
|
+
default: undefined;
|
|
39
|
+
};
|
|
35
40
|
}>, {}, {
|
|
36
41
|
changeDebounce: DebounceHandle | undefined;
|
|
37
42
|
options: TextItem[];
|
|
@@ -95,9 +100,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
95
100
|
required: false;
|
|
96
101
|
default: boolean;
|
|
97
102
|
};
|
|
103
|
+
contentType: {
|
|
104
|
+
type: StringConstructor;
|
|
105
|
+
required: false;
|
|
106
|
+
default: undefined;
|
|
107
|
+
};
|
|
98
108
|
}>> & Readonly<{
|
|
99
109
|
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
100
110
|
}>, {
|
|
111
|
+
contentType: string;
|
|
101
112
|
showRichTextEditor: boolean;
|
|
102
113
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
103
114
|
export default _default;
|
|
@@ -1,11 +1,40 @@
|
|
|
1
1
|
/// <reference types="types/lodash-shims" />
|
|
2
|
-
declare const _default: import("vue").DefineComponent<
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
brandPageType: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
required: false;
|
|
6
|
+
default: undefined;
|
|
7
|
+
};
|
|
8
|
+
}>, {
|
|
9
|
+
eventTracker: {
|
|
10
|
+
setGlobalEventProps: (props: Omit<import("../../../../brand-page-maker/composables/useEventTracker").BpGlobalEventProps, "template_category">) => void;
|
|
11
|
+
setUpsellBridgeState: (props: import("../../../../brand-page-maker/composables/useEventTracker").BpUpsellEventProps) => void;
|
|
12
|
+
subscribe: (callbackFn: (event: import("../../../../brand-page-maker/composables/useEventTracker").BpEventTrackerEvent) => void) => void;
|
|
13
|
+
sendWebsiteEvent: (event: import("../../../../brand-page-maker/composables/useEventTracker").BpEventTrackerEvent) => void;
|
|
14
|
+
sendUpsellOpenEvent: () => void;
|
|
15
|
+
sendUpsellContinuationEvent: (continuation: string) => void;
|
|
16
|
+
sendPublishOpenEvent: () => void;
|
|
17
|
+
sendPublishContinuationEvent: (continuation: string, domain: string | null) => void;
|
|
18
|
+
sendWebsiteManageAddPageEvent: (pageName: string) => void;
|
|
19
|
+
sendWebsiteManageRemovePageEvent: (pageName: string) => void;
|
|
20
|
+
sendWebsiteManageReorderPageEvent: (pageName: string) => void;
|
|
21
|
+
sendPublishOptionsForFreeEvent: () => void;
|
|
22
|
+
sendPublishOptionsForPremiumEvent: () => void;
|
|
23
|
+
sendPublishOptionsForExitEvent: () => void;
|
|
24
|
+
sendTemplateSearchEvent: (searchString: string) => void;
|
|
25
|
+
sendTemplateSelectEvent: (templateId: string) => void;
|
|
26
|
+
sendTemplateCategorySelectEvent: (category: string) => void;
|
|
27
|
+
sendSidebarCategoryClickedEvent: (tabName: string) => void;
|
|
28
|
+
};
|
|
29
|
+
}, Record<string, any>, {
|
|
3
30
|
icon(): string;
|
|
4
31
|
formattedValue(): string;
|
|
32
|
+
isBooking(): boolean;
|
|
5
33
|
}, {
|
|
6
34
|
onFocusOverride(): void;
|
|
7
35
|
onInputOverride(): void;
|
|
8
36
|
onChangeOverride(): void;
|
|
37
|
+
handleBookingLabelClick(event: any): void;
|
|
9
38
|
}, import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
10
39
|
attrs: {
|
|
11
40
|
type: ObjectConstructor;
|
|
@@ -200,5 +229,13 @@ declare const _default: import("vue").DefineComponent<{}, {}, Record<string, any
|
|
|
200
229
|
}, {}, {
|
|
201
230
|
TextInput: any;
|
|
202
231
|
Textarea: any;
|
|
203
|
-
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<
|
|
232
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
233
|
+
brandPageType: {
|
|
234
|
+
type: StringConstructor;
|
|
235
|
+
required: false;
|
|
236
|
+
default: undefined;
|
|
237
|
+
};
|
|
238
|
+
}>> & Readonly<{}>, {
|
|
239
|
+
brandPageType: string;
|
|
240
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
204
241
|
export default _default;
|
|
@@ -2,9 +2,23 @@ import { defineComponent } from 'vue';
|
|
|
2
2
|
import GenericTextInputMixin from '../GenericTextInput.mixin';
|
|
3
3
|
import { URL_RE } from '../../constants';
|
|
4
4
|
import debounce from 'lodash.debounce';
|
|
5
|
+
import { useEventTracker, EVENTS, } from '../../../../brand-page-maker/composables/useEventTracker';
|
|
5
6
|
const RESIZE_DEBOUNCE_WAIT_IN_MS = 500;
|
|
6
7
|
export default defineComponent({
|
|
8
|
+
props: {
|
|
9
|
+
brandPageType: {
|
|
10
|
+
type: String,
|
|
11
|
+
required: false,
|
|
12
|
+
default: undefined,
|
|
13
|
+
},
|
|
14
|
+
},
|
|
7
15
|
mixins: [GenericTextInputMixin],
|
|
16
|
+
setup() {
|
|
17
|
+
const eventTracker = useEventTracker();
|
|
18
|
+
return {
|
|
19
|
+
eventTracker,
|
|
20
|
+
};
|
|
21
|
+
},
|
|
8
22
|
data() {
|
|
9
23
|
return {
|
|
10
24
|
innerValue: '',
|
|
@@ -30,6 +44,9 @@ export default defineComponent({
|
|
|
30
44
|
}
|
|
31
45
|
return this.innerValue;
|
|
32
46
|
},
|
|
47
|
+
isBooking() {
|
|
48
|
+
return this.contentType === 'booking-section';
|
|
49
|
+
},
|
|
33
50
|
},
|
|
34
51
|
watch: {
|
|
35
52
|
value(newVal) {
|
|
@@ -62,5 +79,20 @@ export default defineComponent({
|
|
|
62
79
|
this.text = this.innerValue;
|
|
63
80
|
}
|
|
64
81
|
},
|
|
82
|
+
handleBookingLabelClick(event) {
|
|
83
|
+
if (event.target.tagName === 'A') {
|
|
84
|
+
event.preventDefault();
|
|
85
|
+
const href = event.target.getAttribute('href');
|
|
86
|
+
if (href) {
|
|
87
|
+
this.eventTracker.sendWebsiteEvent({
|
|
88
|
+
eventName: EVENTS.WEBSITE_MAKER_ADD_CONTENT,
|
|
89
|
+
eventProps: {
|
|
90
|
+
continuation: 'calendly-click',
|
|
91
|
+
},
|
|
92
|
+
});
|
|
93
|
+
window.open(href, '_blank', 'noopener,noreferrer');
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
65
97
|
},
|
|
66
98
|
});
|
|
@@ -33,7 +33,7 @@ export declare const useUiContentSettingsStore: import("pinia").StoreDefinition<
|
|
|
33
33
|
contentErrorCount(): number;
|
|
34
34
|
getContent(state: {
|
|
35
35
|
addContentOptions: {
|
|
36
|
-
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
36
|
+
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
37
37
|
category: string;
|
|
38
38
|
createInitialContent: (options: import("../models").CreateInitialContentOptions) => Content;
|
|
39
39
|
displayName: string;
|
|
@@ -44,11 +44,11 @@ export declare const useUiContentSettingsStore: import("pinia").StoreDefinition<
|
|
|
44
44
|
}[];
|
|
45
45
|
items: {
|
|
46
46
|
id: string;
|
|
47
|
-
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
47
|
+
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
48
48
|
settings: {
|
|
49
49
|
content: {
|
|
50
50
|
id: string;
|
|
51
|
-
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
51
|
+
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
52
52
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
53
53
|
imageUrlOverride?: string | undefined;
|
|
54
54
|
imageUrlsOverride?: string | undefined;
|
|
@@ -82,7 +82,7 @@ export declare const useUiContentSettingsStore: import("pinia").StoreDefinition<
|
|
|
82
82
|
} & import("pinia").PiniaCustomStateProperties<ContentSettingsState>): (id: string) => Content | undefined;
|
|
83
83
|
getFieldSettings(state: {
|
|
84
84
|
addContentOptions: {
|
|
85
|
-
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
85
|
+
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
86
86
|
category: string;
|
|
87
87
|
createInitialContent: (options: import("../models").CreateInitialContentOptions) => Content;
|
|
88
88
|
displayName: string;
|
|
@@ -93,11 +93,11 @@ export declare const useUiContentSettingsStore: import("pinia").StoreDefinition<
|
|
|
93
93
|
}[];
|
|
94
94
|
items: {
|
|
95
95
|
id: string;
|
|
96
|
-
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
96
|
+
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
97
97
|
settings: {
|
|
98
98
|
content: {
|
|
99
99
|
id: string;
|
|
100
|
-
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
100
|
+
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
101
101
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
102
102
|
imageUrlOverride?: string | undefined;
|
|
103
103
|
imageUrlsOverride?: string | undefined;
|
|
@@ -131,7 +131,7 @@ export declare const useUiContentSettingsStore: import("pinia").StoreDefinition<
|
|
|
131
131
|
} & import("pinia").PiniaCustomStateProperties<ContentSettingsState>): (id: string, fieldName: string) => ContentItemFieldSettings | undefined;
|
|
132
132
|
getItem(state: {
|
|
133
133
|
addContentOptions: {
|
|
134
|
-
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
134
|
+
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
135
135
|
category: string;
|
|
136
136
|
createInitialContent: (options: import("../models").CreateInitialContentOptions) => Content;
|
|
137
137
|
displayName: string;
|
|
@@ -142,11 +142,11 @@ export declare const useUiContentSettingsStore: import("pinia").StoreDefinition<
|
|
|
142
142
|
}[];
|
|
143
143
|
items: {
|
|
144
144
|
id: string;
|
|
145
|
-
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
145
|
+
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
146
146
|
settings: {
|
|
147
147
|
content: {
|
|
148
148
|
id: string;
|
|
149
|
-
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
149
|
+
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
150
150
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
151
151
|
imageUrlOverride?: string | undefined;
|
|
152
152
|
imageUrlsOverride?: string | undefined;
|
|
@@ -180,7 +180,7 @@ export declare const useUiContentSettingsStore: import("pinia").StoreDefinition<
|
|
|
180
180
|
} & import("pinia").PiniaCustomStateProperties<ContentSettingsState>): (id: string) => ContentItem<any> | undefined;
|
|
181
181
|
getValue(state: {
|
|
182
182
|
addContentOptions: {
|
|
183
|
-
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
183
|
+
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
184
184
|
category: string;
|
|
185
185
|
createInitialContent: (options: import("../models").CreateInitialContentOptions) => Content;
|
|
186
186
|
displayName: string;
|
|
@@ -191,11 +191,11 @@ export declare const useUiContentSettingsStore: import("pinia").StoreDefinition<
|
|
|
191
191
|
}[];
|
|
192
192
|
items: {
|
|
193
193
|
id: string;
|
|
194
|
-
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
194
|
+
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
195
195
|
settings: {
|
|
196
196
|
content: {
|
|
197
197
|
id: string;
|
|
198
|
-
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
198
|
+
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
199
199
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
200
200
|
imageUrlOverride?: string | undefined;
|
|
201
201
|
imageUrlsOverride?: string | undefined;
|
|
@@ -229,7 +229,7 @@ export declare const useUiContentSettingsStore: import("pinia").StoreDefinition<
|
|
|
229
229
|
} & import("pinia").PiniaCustomStateProperties<ContentSettingsState>): (id: string, fieldName: string) => Content | string | undefined;
|
|
230
230
|
getItemState(state: {
|
|
231
231
|
addContentOptions: {
|
|
232
|
-
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
232
|
+
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
233
233
|
category: string;
|
|
234
234
|
createInitialContent: (options: import("../models").CreateInitialContentOptions) => Content;
|
|
235
235
|
displayName: string;
|
|
@@ -240,11 +240,11 @@ export declare const useUiContentSettingsStore: import("pinia").StoreDefinition<
|
|
|
240
240
|
}[];
|
|
241
241
|
items: {
|
|
242
242
|
id: string;
|
|
243
|
-
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
243
|
+
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
244
244
|
settings: {
|
|
245
245
|
content: {
|
|
246
246
|
id: string;
|
|
247
|
-
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
247
|
+
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
248
248
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
249
249
|
imageUrlOverride?: string | undefined;
|
|
250
250
|
imageUrlsOverride?: string | undefined;
|
|
@@ -278,7 +278,7 @@ export declare const useUiContentSettingsStore: import("pinia").StoreDefinition<
|
|
|
278
278
|
} & import("pinia").PiniaCustomStateProperties<ContentSettingsState>): (id: string) => ContentSettingsItemState;
|
|
279
279
|
getItemGroupState(state: {
|
|
280
280
|
addContentOptions: {
|
|
281
|
-
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
281
|
+
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
282
282
|
category: string;
|
|
283
283
|
createInitialContent: (options: import("../models").CreateInitialContentOptions) => Content;
|
|
284
284
|
displayName: string;
|
|
@@ -289,11 +289,11 @@ export declare const useUiContentSettingsStore: import("pinia").StoreDefinition<
|
|
|
289
289
|
}[];
|
|
290
290
|
items: {
|
|
291
291
|
id: string;
|
|
292
|
-
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
292
|
+
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
293
293
|
settings: {
|
|
294
294
|
content: {
|
|
295
295
|
id: string;
|
|
296
|
-
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
296
|
+
type: "website" | "image" | "facebook" | "twitter" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "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";
|
|
297
297
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
298
298
|
imageUrlOverride?: string | undefined;
|
|
299
299
|
imageUrlsOverride?: string | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
import type { FontFamilyCategory } from '../../brand-page';
|
|
2
|
+
import type { FontFamilyCategory, FontFamilyName } from '../../brand-page';
|
|
3
3
|
import type { StyleTextFontFamilyOption } from '../style-settings/models';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
5
|
fontFamilyOptions: {
|
|
@@ -21,11 +21,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
21
21
|
key: FontFamilyCategory;
|
|
22
22
|
displayName: string;
|
|
23
23
|
})[];
|
|
24
|
-
activeFontFamilyCategory:
|
|
24
|
+
activeFontFamilyCategory: any;
|
|
25
25
|
FONT_FAMILY_CONFIGS: Record<"lato" | "roboto" | "notoSans" | "openSans" | "arvo" | "bebasNeue" | "ptSerif" | "oswald" | "inter" | "montserrat" | "raleway" | "anton" | "antonSc" | "quicksand" | "pacifico" | "bioRhyme" | "playfairDisplay" | "mulish" | "telex" | "pridi" | "hindMadurai" | "kanit" | "libreBaskerville" | "amiko" | "neuton" | "tenorSans" | "jacquesFrancois" | "varela" | "quattrocentoSans" | "workSans" | "titilliumWeb" | "amaticSc" | "poiretOne" | "shantellSans" | "dancingScript" | "tangerine" | "cinzel" | "jost" | "exo2" | "ebGaramond" | "ubuntu" | "cabin" | "josefinSans" | "lobsterTwo" | "sacramento" | "nunito" | "aboreto" | "aleo" | "abhayaLibre" | "caladea" | "rokkitt" | "rubik" | "frankRuhlLibre" | "spectral" | "abrilFatface" | "courgette" | "kiteOne" | "amarante" | "satisfy" | "lilitaOne" | "lobster" | "titanOne" | "cookie" | "bungee" | "poppins" | "staatliches" | "patuaOne" | "calistoga" | "suezOne" | "caprasimo" | "rubikMonoOne" | "silkscreen" | "alfaSlabOne" | "orelegaOne" | "audiowide" | "redRose" | "kalnia" | "imbue" | "climateCrisis" | "gluten" | "madimiOne" | "anta" | "trykker" | "moul" | "bevan" | "wendyOne" | "lexendDeca" | "vinaSans" | "chango" | "changaOne" | "protestGuerrilla" | "londrinaShadow" | "candal" | "borel" | "rockNRollOne" | "bungeeInline" | "rampartOne" | "manrope" | "yuseiMagic" | "patrickHandSC" | "farsan" | "handlee" | "lemonada" | "arsenal" | "bakbakOne" | "belleza" | "blackHanSans" | "bowlbyOne" | "brunoAceSC" | "castoroTitling" | "contrailOne" | "delaGothicOne" | "dotGothic16" | "fahkwang" | "francoisOne" | "gloock" | "graduate" | "jersey10" | "kavoon" | "kronaOne" | "notable" | "pavanam" | "phudu" | "poetsenOne" | "pollerOne" | "questrial" | "racingSansOne" | "rammettoOne" | "rubikGlitch" | "shrikhand" | "spicyRice" | "syncopate" | "urbanist" | "yesevaOne" | "zenDots", import("../../brand-page").FontFamilyConfig | import("../../brand-page").GoogleFontFamilyConfig>;
|
|
26
26
|
}, {
|
|
27
27
|
visibleFontFamilyOptions(): StyleTextFontFamilyOption[];
|
|
28
28
|
}, {
|
|
29
|
+
getCategoryForFont(fontName: FontFamilyName): FontFamilyCategory | null;
|
|
29
30
|
onFontFamilyButtonClick(fontFamilyOption: StyleTextFontFamilyOption): void;
|
|
30
31
|
onFontFamilyCategorySelected(category: FontFamilyCategory): void;
|
|
31
32
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -14,25 +14,32 @@ export default defineComponent({
|
|
|
14
14
|
data() {
|
|
15
15
|
return {
|
|
16
16
|
fontFamilyCategories: Object.values(FONT_FAMILY_CATEGORIES()),
|
|
17
|
-
activeFontFamilyCategory:
|
|
18
|
-
.key,
|
|
17
|
+
activeFontFamilyCategory: this.getCategoryForFont(this.value) ||
|
|
18
|
+
FONT_FAMILY_CATEGORIES().classic.key,
|
|
19
19
|
FONT_FAMILY_CONFIGS,
|
|
20
20
|
};
|
|
21
21
|
},
|
|
22
|
+
watch: {
|
|
23
|
+
value: {
|
|
24
|
+
handler(newValue) {
|
|
25
|
+
const category = this.getCategoryForFont(newValue);
|
|
26
|
+
if (category && category !== this.activeFontFamilyCategory) {
|
|
27
|
+
this.activeFontFamilyCategory = category;
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
immediate: true,
|
|
31
|
+
},
|
|
32
|
+
},
|
|
22
33
|
computed: {
|
|
23
34
|
visibleFontFamilyOptions() {
|
|
24
35
|
return this.fontFamilyOptions.filter((fontFamilyOption) => fontFamilyOption.categories.includes(this.activeFontFamilyCategory));
|
|
25
36
|
},
|
|
26
37
|
},
|
|
27
|
-
created() {
|
|
28
|
-
if (this.value) {
|
|
29
|
-
const category = Object.values(FONT_FAMILY_CONFIGS).find((x) => x.name === this.value)?.categories[0];
|
|
30
|
-
if (category) {
|
|
31
|
-
this.activeFontFamilyCategory = category;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
38
|
methods: {
|
|
39
|
+
getCategoryForFont(fontName) {
|
|
40
|
+
const fontConfig = Object.values(FONT_FAMILY_CONFIGS).find((config) => config.name === fontName);
|
|
41
|
+
return fontConfig?.categories[0] || null;
|
|
42
|
+
},
|
|
36
43
|
onFontFamilyButtonClick(fontFamilyOption) {
|
|
37
44
|
this.$emit('on-select', fontFamilyOption);
|
|
38
45
|
},
|