@designcrowd/library.brand-page 6.0.18-single-h1-2 → 6.0.18
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-Dn_Tix_v.js → CreatedOnBrandCrowd-de-de-CIrk6Brm.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-DDvy8wxG.js → CreatedOnBrandCrowd-en-us-CvXk0moH.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-CR8_Avxs.js → CreatedOnBrandCrowd-es-es-BhtZbjjU.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-BI6mA90J.js → CreatedOnBrandCrowd-fr-ca-B6TD57O-.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-BI6mA90J.js → CreatedOnBrandCrowd-fr-fr-B6TD57O-.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-CPed66Fk.js → CreatedOnBrandCrowd-pt-br-Bto0xOtS.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-CPed66Fk.js → CreatedOnBrandCrowd-pt-pt-Bto0xOtS.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-CtsoKlLS.js → CreatedOnDcom-de-de-2h2W3y5z.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-qEpXlGz8.js → CreatedOnDcom-en-us-D6Jgk6yv.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-DV1gGaMf.js → CreatedOnDcom-es-es-sBCqYQIm.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-CBwvC8Cd.js → CreatedOnDcom-fr-ca-C8hg5hTU.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-CAOK7SID.js → CreatedOnDcom-fr-fr-_DP1Umyh.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-Bmn3BUmY.js → CreatedOnDcom-pt-br-BdwYAy5p.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-Ct-USA_A.js → CreatedOnDcom-pt-pt-Bm1NHVaH.js} +1 -1
- package/lib/src/brand-page/components/media/Media.mixin.d.ts +1 -10
- package/lib/src/brand-page/components/media/Media.mixin.js +0 -13
- package/lib/src/brand-page/components/page/Page.mixin.d.ts +0 -5
- package/lib/src/brand-page/components/page/Page.mixin.js +1 -8
- package/lib/src/brand-page/utils/index.d.ts +0 -1
- package/lib/src/brand-page/utils/index.js +0 -1
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +0 -1
- package/lib/src/css/library.brand-page-brandCrowd.min.css +136 -136
- package/lib/src/css/library.brand-page-brandPage.min.css +136 -136
- package/lib/src/css/library.brand-page-designCom.min.css +136 -136
- package/lib/src/css/library.brand-page-preview.min.css +136 -136
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-BVjEXjIJ.js → lib-CPTMajMv.js} +10880 -10918
- package/lib/src/metadata-builder/builders/section-rules/banner-section.rules.js +0 -6
- package/lib/src/metadata-builder/parsers/section-tool-arguments.d.ts +1 -1
- package/package.json +1 -1
- package/src/brand-page/components/about-section/AboutSection.vue +1 -1
- package/src/brand-page/components/about-section/AboutSection.vue.test.ts +0 -11
- package/src/brand-page/components/banner-section/BannerSection.vue +5 -5
- package/src/brand-page/components/booking-section/BookingSection.vue +1 -1
- package/src/brand-page/components/contact-form/ContactForm.vue +3 -3
- package/src/brand-page/components/mailing-list/MailingList.vue +1 -1
- package/src/brand-page/components/media/Media.mixin.ts +0 -13
- package/src/brand-page/components/media/Media.vue +1 -1
- package/src/brand-page/components/page/Page.mixin.ts +1 -8
- package/src/brand-page/components/page/Page.vue +0 -8
- package/src/brand-page/components/payment/Payment.vue +1 -1
- package/src/brand-page/components/profile/Profile.vue +1 -1
- package/src/brand-page/components/social-links/SocialLinks.vue +1 -1
- package/src/brand-page/components/testimonial-section/TestimonialSection.vue +1 -1
- package/src/brand-page/components/text-media-section/TextMediaSection.vue +1 -1
- package/src/brand-page/components/text-wrapper/TextWrapper.vue +1 -6
- package/src/brand-page/utils/index.ts +0 -1
- package/src/metadata-builder/builders/section-rules/banner-section.rules.ts +0 -6
- package/src/metadata-builder/parsers/section-tool-arguments.ts +1 -7
- package/src/metadata-builder/sanitizers/__tests__/section-args-validator.test.ts +0 -13
- package/src/shared/logo-settings/components/EditLogoSettings.vue +0 -1
- package/lib/src/brand-page/utils/page-heading.util.d.ts +0 -13
- package/lib/src/brand-page/utils/page-heading.util.js +0 -24
- package/src/brand-page/components/media/Media.test.ts +0 -65
- package/src/brand-page/components/page/Page.vue.test.ts +0 -142
- package/src/brand-page/utils/image.util.test.ts +0 -25
- package/src/brand-page/utils/page-heading.util.test.ts +0 -116
- package/src/brand-page/utils/page-heading.util.ts +0 -33
|
@@ -68,16 +68,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
68
68
|
}>, {}, {
|
|
69
69
|
type: string | undefined;
|
|
70
70
|
isImageBroken: boolean;
|
|
71
|
-
}, {
|
|
72
|
-
/**
|
|
73
|
-
* BP-5866: content images must never emit an empty `alt`. Reuses the
|
|
74
|
-
* shared alt fallback (author title → "{business}'s image" → "image") so
|
|
75
|
-
* a caller that passes no `alt-text` still renders descriptive text.
|
|
76
|
-
* Only consumed by the content `<FallbackImage>`; decorative/background
|
|
77
|
-
* images (rendered via `media`) and shapes never reach this path.
|
|
78
|
-
*/
|
|
79
|
-
effectiveAltText(): string;
|
|
80
|
-
}, {
|
|
71
|
+
}, {}, {
|
|
81
72
|
onImageError(): void;
|
|
82
73
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
83
74
|
mediaType: {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { defineComponent } from 'vue';
|
|
2
|
-
import { getImageAltText } from '@brand-page/utils';
|
|
3
2
|
export default defineComponent({
|
|
4
3
|
props: {
|
|
5
4
|
mediaType: {
|
|
@@ -72,18 +71,6 @@ export default defineComponent({
|
|
|
72
71
|
isImageBroken: false,
|
|
73
72
|
};
|
|
74
73
|
},
|
|
75
|
-
computed: {
|
|
76
|
-
/**
|
|
77
|
-
* BP-5866: content images must never emit an empty `alt`. Reuses the
|
|
78
|
-
* shared alt fallback (author title → "{business}'s image" → "image") so
|
|
79
|
-
* a caller that passes no `alt-text` still renders descriptive text.
|
|
80
|
-
* Only consumed by the content `<FallbackImage>`; decorative/background
|
|
81
|
-
* images (rendered via `media`) and shapes never reach this path.
|
|
82
|
-
*/
|
|
83
|
-
effectiveAltText() {
|
|
84
|
-
return getImageAltText({ imageTitle: this.altText }, this.context);
|
|
85
|
-
},
|
|
86
|
-
},
|
|
87
74
|
methods: {
|
|
88
75
|
onImageError() {
|
|
89
76
|
this.isImageBroken = true;
|
|
@@ -75,11 +75,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
75
75
|
bpShowTopNavigationMobile(): boolean;
|
|
76
76
|
bpShowTopNavigationDesktop(): boolean;
|
|
77
77
|
slug(): string;
|
|
78
|
-
/**
|
|
79
|
-
* Text for the single page-level `<h1>` (BP-5866). Sourced from the
|
|
80
|
-
* business/site name + page name so it mirrors the SSR document `<title>`.
|
|
81
|
-
*/
|
|
82
|
-
pageHeadingText(): string;
|
|
83
78
|
shouldShowSaveContactWidget(): boolean;
|
|
84
79
|
isPremiumSubscription(): boolean;
|
|
85
80
|
shouldShowPopupBranding(): boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent } from 'vue';
|
|
2
2
|
import { DEFAULT_FONT_FAMILY_KEY, FALLBACK_FONT_FAMILIES, FONT_FAMILY_CONFIGS, } from '../../constants';
|
|
3
|
-
import { getSlugFromContext
|
|
3
|
+
import { getSlugFromContext } from '@brand-page/utils';
|
|
4
4
|
import { findNavItemByRelativePath } from '@brand-page/utils/route.util';
|
|
5
5
|
import { BRAND_PAGE_TYPES } from '@brand-page/models';
|
|
6
6
|
import { hasProfileContent as checkHasProfileContent } from '@brand-page/utils/vcard.util';
|
|
@@ -292,13 +292,6 @@ export default defineComponent({
|
|
|
292
292
|
slug() {
|
|
293
293
|
return getSlugFromContext(this.context);
|
|
294
294
|
},
|
|
295
|
-
/**
|
|
296
|
-
* Text for the single page-level `<h1>` (BP-5866). Sourced from the
|
|
297
|
-
* business/site name + page name so it mirrors the SSR document `<title>`.
|
|
298
|
-
*/
|
|
299
|
-
pageHeadingText() {
|
|
300
|
-
return getPageHeadingText(this.context);
|
|
301
|
-
},
|
|
302
295
|
shouldShowSaveContactWidget() {
|
|
303
296
|
try {
|
|
304
297
|
if ((!this.context.isPreview &&
|
|
@@ -6,7 +6,6 @@ export * from './model.util';
|
|
|
6
6
|
export * from './validation.util';
|
|
7
7
|
export * from './payment.util';
|
|
8
8
|
export * from './image.util';
|
|
9
|
-
export * from './page-heading.util';
|
|
10
9
|
export * from './font-loader.util';
|
|
11
10
|
export * from './aspect-ratio.util';
|
|
12
11
|
export * from './context.util';
|
|
@@ -6,7 +6,6 @@ export * from './model.util';
|
|
|
6
6
|
export * from './validation.util';
|
|
7
7
|
export * from './payment.util';
|
|
8
8
|
export * from './image.util';
|
|
9
|
-
export * from './page-heading.util';
|
|
10
9
|
export * from './font-loader.util';
|
|
11
10
|
export * from './aspect-ratio.util';
|
|
12
11
|
export * from './context.util';
|
package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts
CHANGED
|
@@ -1347,7 +1347,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
1347
1347
|
bpShowTopNavigationMobile(): boolean;
|
|
1348
1348
|
bpShowTopNavigationDesktop(): boolean;
|
|
1349
1349
|
slug(): string;
|
|
1350
|
-
pageHeadingText(): string;
|
|
1351
1350
|
shouldShowSaveContactWidget(): boolean;
|
|
1352
1351
|
isPremiumSubscription(): boolean;
|
|
1353
1352
|
shouldShowPopupBranding(): boolean;
|