@designcrowd/library.brand-page 6.1.17-ast-optional-button-1 → 6.1.17-ast-optional-button-2

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.
Files changed (27) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-BY2Z3NZY.js → CreatedOnBrandCrowd-de-de-DZSdwMx1.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-a9o3Bztc.js → CreatedOnBrandCrowd-en-us-LK3d278c.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-Bg8SCqkB.js → CreatedOnBrandCrowd-es-es-CxkrES9f.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-N9bzJuGP.js → CreatedOnBrandCrowd-fr-ca-5E7XsN__.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-N9bzJuGP.js → CreatedOnBrandCrowd-fr-fr-5E7XsN__.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-ComX3scB.js → CreatedOnBrandCrowd-pt-br-tci-AkYB.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-ComX3scB.js → CreatedOnBrandCrowd-pt-pt-tci-AkYB.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-m-KtGGWQ.js → CreatedOnDcom-de-de-C9C75cDL.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-8O5yFoBn.js → CreatedOnDcom-en-us-DRgIbDtW.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-BtEMligL.js → CreatedOnDcom-es-es-DsmIVL33.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-CN8NWPFk.js → CreatedOnDcom-fr-ca-Dr4V8xwm.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-VuC39Anm.js → CreatedOnDcom-fr-fr-BAaLwFdX.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-CyIeNya-.js → CreatedOnDcom-pt-br-CyGfCb6e.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-DUIrNGr-.js → CreatedOnDcom-pt-pt-DC1XBRP2.js} +1 -1
  15. package/lib/src/brand-page/utils/view-model.util.js +3 -2
  16. package/lib/src/css/library.brand-page-brandCrowd.min.css +125 -119
  17. package/lib/src/css/library.brand-page-brandPage.min.css +125 -119
  18. package/lib/src/css/library.brand-page-designCom.min.css +125 -119
  19. package/lib/src/css/library.brand-page-preview.min.css +125 -119
  20. package/lib/src/index.mjs +1 -1
  21. package/lib/src/{lib-DOu6fL9i.js → lib-DXnPcqfk.js} +1427 -1425
  22. package/package.json +1 -1
  23. package/src/brand-page/components/page-header/HeaderLayout.vue +6 -0
  24. package/src/brand-page/utils/view-model.util.test.ts +7 -4
  25. package/src/brand-page/utils/view-model.util.ts +3 -2
  26. package/src/shared/page-settings/components/page-settings-section-styles/HeaderButtonSettings.test.ts +28 -1
  27. package/src/shared/page-settings/components/page-settings-section-styles/HeaderButtonSettings.vue +14 -2
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-DOu6fL9i.js";
2
+ import { _ as t } from "./lib-DXnPcqfk.js";
3
3
  const i = {}, h = {
4
4
  width: "275",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-DOu6fL9i.js";
2
+ import { _ as t } from "./lib-DXnPcqfk.js";
3
3
  const i = {}, h = {
4
4
  width: "251",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-DOu6fL9i.js";
2
+ import { _ as t } from "./lib-DXnPcqfk.js";
3
3
  const i = {}, h = {
4
4
  width: "250",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-DOu6fL9i.js";
2
+ import { _ as t } from "./lib-DXnPcqfk.js";
3
3
  const i = {}, h = {
4
4
  width: "237",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-DOu6fL9i.js";
2
+ import { _ as t } from "./lib-DXnPcqfk.js";
3
3
  const i = {}, h = {
4
4
  width: "237",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-DOu6fL9i.js";
2
+ import { _ as t } from "./lib-DXnPcqfk.js";
3
3
  const i = {}, h = {
4
4
  width: "263",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-DOu6fL9i.js";
2
+ import { _ as t } from "./lib-DXnPcqfk.js";
3
3
  const i = {}, h = {
4
4
  width: "263",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-DOu6fL9i.js";
2
+ import { _ as e } from "./lib-DXnPcqfk.js";
3
3
  const M = {}, Z = {
4
4
  width: "242",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-DOu6fL9i.js";
2
+ import { _ as e } from "./lib-DXnPcqfk.js";
3
3
  const i = {}, M = {
4
4
  width: "231",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-DOu6fL9i.js";
2
+ import { _ as e } from "./lib-DXnPcqfk.js";
3
3
  const M = {}, Z = {
4
4
  width: "230",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-DOu6fL9i.js";
2
+ import { _ as e } from "./lib-DXnPcqfk.js";
3
3
  const i = {}, l = {
4
4
  width: "216",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-DOu6fL9i.js";
2
+ import { _ as e } from "./lib-DXnPcqfk.js";
3
3
  const i = {}, l = {
4
4
  width: "216",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as M } from "./lib-DOu6fL9i.js";
2
+ import { _ as M } from "./lib-DXnPcqfk.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as M } from "./lib-DOu6fL9i.js";
2
+ import { _ as M } from "./lib-DXnPcqfk.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -699,7 +699,8 @@ const HEADER_BUTTON_LINK_ROLES = {
699
699
  [BUTTON_LINK_TYPE.tel]: 'phone',
700
700
  };
701
701
  const mapToHeaderButtonViewModel = (headerButton, styles) => {
702
- if (!headerButton?.isVisible) {
702
+ // No label means no button — hidden in preview and on the published site.
703
+ if (!headerButton?.isVisible || !headerButton.text?.trim()) {
703
704
  return undefined;
704
705
  }
705
706
  const titleStyle = headerButton.buttonTextStyle ?? {
@@ -713,7 +714,7 @@ const mapToHeaderButtonViewModel = (headerButton, styles) => {
713
714
  iconUrl: '',
714
715
  modalImageUrl: '',
715
716
  colorReplacements: [],
716
- title: headerButton.text?.trim() ?? '',
717
+ title: headerButton.text.trim(),
717
718
  titleStyle,
718
719
  url: headerButton.url ?? '',
719
720
  page: headerButton.buttonPageId ?? '',