@designcrowd/library.brand-page 6.1.17-ast-optional-button-2 → 6.1.17-ast-optional-button-4
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-DZSdwMx1.js → CreatedOnBrandCrowd-de-de-Cu_ukOxI.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-LK3d278c.js → CreatedOnBrandCrowd-en-us-BK04pmL9.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-CxkrES9f.js → CreatedOnBrandCrowd-es-es-DfREN5ib.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-5E7XsN__.js → CreatedOnBrandCrowd-fr-ca-C0_zl1cL.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-5E7XsN__.js → CreatedOnBrandCrowd-fr-fr-C0_zl1cL.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-tci-AkYB.js → CreatedOnBrandCrowd-pt-br-CKQK6zH9.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-tci-AkYB.js → CreatedOnBrandCrowd-pt-pt-CKQK6zH9.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-C9C75cDL.js → CreatedOnDcom-de-de-yrdfxkUi.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-DRgIbDtW.js → CreatedOnDcom-en-us-DanUrMxL.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-DsmIVL33.js → CreatedOnDcom-es-es-D8d_PqxB.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-Dr4V8xwm.js → CreatedOnDcom-fr-ca-C1-28hQH.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-BAaLwFdX.js → CreatedOnDcom-fr-fr-DKm8kfeQ.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-CyGfCb6e.js → CreatedOnDcom-pt-br-DQN8j45I.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-DC1XBRP2.js → CreatedOnDcom-pt-pt-Bq9n3MeJ.js} +1 -1
- package/lib/src/brand-page/components/navigation/navigation-side-menu/NavigationSideMenu.mixin.js +4 -6
- package/lib/src/brand-page/components/page-header/PageHeader.mixin.js +2 -4
- package/lib/src/brand-page/constants/sections/header-display.constants.js +4 -0
- package/lib/src/brand-page/utils/context.util.d.ts +1 -0
- package/lib/src/brand-page/utils/context.util.js +9 -0
- package/lib/src/brand-page/utils/view-model.util.js +6 -0
- package/lib/src/brand-page-maker/stores/ai-checkpoint/ai-checkpoint-store.d.ts +618 -0
- package/lib/src/{bundled-translations.de-DE-FhH2H_rd.js → bundled-translations.de-DE-BIFi4bYj.js} +9 -9
- package/lib/src/{bundled-translations.es-ES-_ZExxMi7.js → bundled-translations.es-ES-CHlKuPLO.js} +5 -5
- package/lib/src/{bundled-translations.fr-CA-Tg-ODIiC.js → bundled-translations.fr-CA-DR1fvm8e.js} +1 -1
- package/lib/src/{bundled-translations.fr-FR-C0sU51Mz.js → bundled-translations.fr-FR-DnpWVIQg.js} +9 -9
- package/lib/src/{bundled-translations.pt-BR-MYFIhA4u.js → bundled-translations.pt-BR-p8szTOiT.js} +17 -17
- package/lib/src/{bundled-translations.pt-PT-DeUBSzCB.js → bundled-translations.pt-PT-DEk39NhW.js} +22 -22
- package/lib/src/bundles/bundled-translations.de-DE.json +6 -1
- package/lib/src/bundles/bundled-translations.es-ES.json +6 -1
- package/lib/src/bundles/bundled-translations.fr-CA.json +6 -1
- package/lib/src/bundles/bundled-translations.fr-FR.json +6 -1
- package/lib/src/bundles/bundled-translations.pt-BR.json +6 -1
- package/lib/src/bundles/bundled-translations.pt-PT.json +6 -1
- package/lib/src/css/library.brand-page-brandCrowd.min.css +223 -170
- package/lib/src/css/library.brand-page-brandPage.min.css +224 -170
- package/lib/src/css/library.brand-page-designCom.min.css +223 -170
- package/lib/src/css/library.brand-page-preview.min.css +223 -170
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-DXnPcqfk.js → lib-6Z0OQVEM.js} +15053 -14860
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +76 -0
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +67 -0
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +3 -0
- package/package.json +2 -2
- package/src/brand-page/components/navigation/navigation-side-menu/NavigationSideMenu.mixin.ts +4 -8
- package/src/brand-page/components/page-header/HeaderLayout.vue +73 -93
- package/src/brand-page/components/page-header/PageHeader.mixin.ts +2 -4
- package/src/brand-page/constants/sections/header-display.constants.ts +8 -0
- package/src/brand-page/utils/context.util.ts +15 -0
- package/src/brand-page/utils/view-model.util.test.ts +5 -0
- package/src/brand-page/utils/view-model.util.ts +6 -0
- package/src/bundles/bundled-translations.de-DE.json +6 -1
- package/src/bundles/bundled-translations.es-ES.json +6 -1
- package/src/bundles/bundled-translations.fr-CA.json +6 -1
- package/src/bundles/bundled-translations.fr-FR.json +6 -1
- package/src/bundles/bundled-translations.pt-BR.json +6 -1
- package/src/bundles/bundled-translations.pt-PT.json +6 -1
- package/src/shared/page-settings/components/header-settings-panel/HeaderSettingsPanel.vue +5 -0
- package/src/shared/page-settings/components/page-settings-section-styles/HeaderButtonSettings.test.ts +10 -7
- package/src/shared/page-settings/components/page-settings-section-styles/HeaderButtonSettings.vue +4 -2
- package/src/shared/page-settings/components/page-settings-section-styles/HeaderDisplayStyle.test.ts +22 -6
- package/src/shared/page-settings/components/page-settings-section-styles/i18n/page-settings-section.de-DE.json +6 -1
- package/src/shared/page-settings/components/page-settings-section-styles/i18n/page-settings-section.es-ES.json +6 -1
- package/src/shared/page-settings/components/page-settings-section-styles/i18n/page-settings-section.fr-CA.json +6 -1
- package/src/shared/page-settings/components/page-settings-section-styles/i18n/page-settings-section.fr-FR.json +6 -1
- package/src/shared/page-settings/components/page-settings-section-styles/i18n/page-settings-section.pt-BR.json +6 -1
- package/src/shared/page-settings/components/page-settings-section-styles/i18n/page-settings-section.pt-PT.json +6 -1
package/lib/src/brand-page/components/navigation/navigation-side-menu/NavigationSideMenu.mixin.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineComponent } from 'vue';
|
|
2
2
|
import { resolveSubNavItemBackgroundColor } from '../../../models';
|
|
3
|
+
import { guardPreviewClick } from '../../../utils/context.util';
|
|
3
4
|
export default defineComponent({
|
|
4
5
|
props: {
|
|
5
6
|
context: {
|
|
@@ -95,14 +96,11 @@ export default defineComponent({
|
|
|
95
96
|
closeSideMenu() {
|
|
96
97
|
this.$emit('close-side-menu');
|
|
97
98
|
},
|
|
98
|
-
// Preview: inert
|
|
99
|
+
// Preview: inert; published: follow the link and close the side menu behind it.
|
|
99
100
|
onSideMenuCtaClick(event) {
|
|
100
|
-
if (this.context
|
|
101
|
-
|
|
102
|
-
event.stopPropagation();
|
|
103
|
-
return;
|
|
101
|
+
if (!guardPreviewClick(event, this.context)) {
|
|
102
|
+
this.closeSideMenu();
|
|
104
103
|
}
|
|
105
|
-
this.closeSideMenu();
|
|
106
104
|
},
|
|
107
105
|
toggleExpanded(pageId) {
|
|
108
106
|
const isCurrentlyExpanded = this.expandedItems[pageId];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { defineComponent } from 'vue';
|
|
2
2
|
import { LOGO_SLIDER_DESKTOP_MAX } from '../../constants';
|
|
3
3
|
import { hasVisibleNavigation } from '../../utils/route.util';
|
|
4
|
+
import { guardPreviewClick } from '../../utils/context.util';
|
|
4
5
|
export default defineComponent({
|
|
5
6
|
props: {
|
|
6
7
|
navId: {
|
|
@@ -48,10 +49,7 @@ export default defineComponent({
|
|
|
48
49
|
},
|
|
49
50
|
// Preview only: deliberately inert — no link-follow, no Header Settings open.
|
|
50
51
|
onHeaderCtaClick(event) {
|
|
51
|
-
|
|
52
|
-
event.preventDefault();
|
|
53
|
-
event.stopPropagation();
|
|
54
|
-
}
|
|
52
|
+
guardPreviewClick(event, this.context);
|
|
55
53
|
},
|
|
56
54
|
},
|
|
57
55
|
});
|
|
@@ -178,6 +178,7 @@ export const HEADER_DISPLAY_STYLE_CONFIGS = [
|
|
|
178
178
|
dataAttribute: HEADER_DISPLAY.DESKTOP_HAMBURGER_1,
|
|
179
179
|
isSelected: false,
|
|
180
180
|
},
|
|
181
|
+
withButtonIconName: 'header-desktop-nav-style-hamburger-display-style-with-button-1',
|
|
181
182
|
},
|
|
182
183
|
{
|
|
183
184
|
viewMode: 'desktop',
|
|
@@ -196,6 +197,7 @@ export const HEADER_DISPLAY_STYLE_CONFIGS = [
|
|
|
196
197
|
dataAttribute: HEADER_DISPLAY.DESKTOP_HAMBURGER_2,
|
|
197
198
|
isSelected: false,
|
|
198
199
|
},
|
|
200
|
+
withButtonIconName: 'header-desktop-nav-style-hamburger-display-style-with-button-2',
|
|
199
201
|
},
|
|
200
202
|
// desktop - hamburger no logo
|
|
201
203
|
{
|
|
@@ -265,6 +267,7 @@ export const HEADER_DISPLAY_STYLE_CONFIGS = [
|
|
|
265
267
|
dataAttribute: HEADER_DISPLAY.MOBILE_TAB_1,
|
|
266
268
|
isSelected: false,
|
|
267
269
|
},
|
|
270
|
+
withButtonIconName: 'header-mobile-nav-style-tab-display-style-with-button-1',
|
|
268
271
|
},
|
|
269
272
|
{
|
|
270
273
|
viewMode: 'mobile',
|
|
@@ -278,6 +281,7 @@ export const HEADER_DISPLAY_STYLE_CONFIGS = [
|
|
|
278
281
|
dataAttribute: HEADER_DISPLAY.MOBILE_TAB_2,
|
|
279
282
|
isSelected: false,
|
|
280
283
|
},
|
|
284
|
+
withButtonIconName: 'header-mobile-nav-style-tab-display-style-with-button-2',
|
|
281
285
|
},
|
|
282
286
|
// mobile - tab with no logo
|
|
283
287
|
{
|
|
@@ -8,3 +8,4 @@ export declare const getSlugFromContext: (context: BrandPageContext) => string;
|
|
|
8
8
|
* placeholders) must keep reading `context.isPreview` directly.
|
|
9
9
|
*/
|
|
10
10
|
export declare const isPreviewMode: (context: BrandPageContext) => boolean;
|
|
11
|
+
export declare const guardPreviewClick: (event: MouseEvent, context: BrandPageContext) => boolean;
|
|
@@ -12,3 +12,12 @@ export const getSlugFromContext = (context) => {
|
|
|
12
12
|
* placeholders) must keep reading `context.isPreview` directly.
|
|
13
13
|
*/
|
|
14
14
|
export const isPreviewMode = (context) => !!(context.isPreview || context.isLivePreview);
|
|
15
|
+
// Blocks a click in the maker preview (no link-follow, no bubbling); true when it fired.
|
|
16
|
+
export const guardPreviewClick = (event, context) => {
|
|
17
|
+
if (!context.isPreview) {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
event.preventDefault();
|
|
21
|
+
event.stopPropagation();
|
|
22
|
+
return true;
|
|
23
|
+
};
|
|
@@ -722,6 +722,12 @@ const mapToHeaderButtonViewModel = (headerButton, styles) => {
|
|
|
722
722
|
}, styles, { titleStyle });
|
|
723
723
|
return {
|
|
724
724
|
...viewModel,
|
|
725
|
+
// A wrapped label justifies; the last (or only) line stays centered like a short label.
|
|
726
|
+
titleStyle: {
|
|
727
|
+
...viewModel.titleStyle,
|
|
728
|
+
textAlign: 'justify',
|
|
729
|
+
textAlignLast: 'center',
|
|
730
|
+
},
|
|
725
731
|
styles: {
|
|
726
732
|
...viewModel.styles,
|
|
727
733
|
style: {
|