@yext/visual-editor 1.4.4 → 1.4.5

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.
@@ -114702,7 +114702,7 @@ const YS = ({
114702
114702
  },
114703
114703
  constantValueEnabled: !1
114704
114704
  }), d7e = (e) => typeof e == "object" && e !== null && ("field" in e || "constantValue" in e), fx = (e, n, t, a, r) => {
114705
- const i = r?.HeadingSlot?.[0]?.props?.data?.text, l = d7e(i) ? i : {
114705
+ const i = r?.HeadingSlot?.[0]?.props?.data?.text, l = r?.HeadingSlot?.[0]?.props?.styles, o = r?.AddressSlot?.[0]?.props?.styles, c = r?.PhoneSlot?.[0]?.props?.styles, d = r?.HoursSlot?.[0]?.props?.styles, f = d7e(i) ? i : {
114706
114706
  field: "",
114707
114707
  constantValue: i ?? E3.constantValue,
114708
114708
  constantValueEnabled: !0
@@ -114729,11 +114729,12 @@ const YS = ({
114729
114729
  props: {
114730
114730
  ...e && { id: `${e}-heading` },
114731
114731
  data: {
114732
- text: l
114732
+ text: f
114733
114733
  },
114734
114734
  styles: {
114735
- level: r?.HeadingSlot?.[0]?.props?.styles?.level ?? 3,
114736
- align: r?.HeadingSlot?.[0]?.props?.styles?.align ?? "left"
114735
+ ...l,
114736
+ level: l?.level ?? 3,
114737
+ align: l?.align ?? "left"
114737
114738
  }
114738
114739
  }
114739
114740
  }
@@ -114755,10 +114756,11 @@ const YS = ({
114755
114756
  }
114756
114757
  },
114757
114758
  styles: {
114758
- showRegion: r?.AddressSlot?.[0]?.props?.styles?.showRegion ?? !0,
114759
- showCountry: r?.AddressSlot?.[0]?.props?.styles?.showCountry ?? !0,
114760
- showGetDirectionsLink: r?.AddressSlot?.[0]?.props?.styles?.showGetDirectionsLink ?? !1,
114761
- ctaVariant: r?.AddressSlot?.[0]?.props?.styles?.ctaVariant ?? "link"
114759
+ ...o,
114760
+ showRegion: o?.showRegion ?? !0,
114761
+ showCountry: o?.showCountry ?? !0,
114762
+ showGetDirectionsLink: o?.showGetDirectionsLink ?? !1,
114763
+ ctaVariant: o?.ctaVariant ?? "link"
114762
114764
  },
114763
114765
  parentData: {
114764
114766
  field: "profile.address"
@@ -114783,9 +114785,10 @@ const YS = ({
114783
114785
  }
114784
114786
  },
114785
114787
  styles: {
114786
- phoneFormat: r?.PhoneSlot?.[0]?.props?.styles?.phoneFormat ?? "domestic",
114787
- includePhoneHyperlink: r?.PhoneSlot?.[0]?.props?.styles?.includePhoneHyperlink ?? !0,
114788
- includeIcon: r?.PhoneSlot?.[0]?.props?.styles?.includeIcon ?? !1
114788
+ ...c,
114789
+ phoneFormat: c?.phoneFormat ?? "domestic",
114790
+ includePhoneHyperlink: c?.includePhoneHyperlink ?? !0,
114791
+ includeIcon: c?.includeIcon ?? !1
114789
114792
  },
114790
114793
  parentData: {
114791
114794
  field: "profile.mainPhone"
@@ -114805,10 +114808,11 @@ const YS = ({
114805
114808
  }
114806
114809
  },
114807
114810
  styles: {
114808
- dayOfWeekFormat: r?.HoursSlot?.[0]?.props?.styles?.dayOfWeekFormat ?? "long",
114809
- showDayNames: r?.HoursSlot?.[0]?.props?.styles?.showDayNames ?? !0,
114810
- showCurrentStatus: r?.HoursSlot?.[0]?.props?.styles?.showCurrentStatus ?? !0,
114811
- className: r?.HoursSlot?.[0]?.props?.styles?.className ?? "mb-2 font-semibold font-body-fontFamily text-body-fontSize h-full"
114811
+ ...d,
114812
+ dayOfWeekFormat: d?.dayOfWeekFormat ?? "long",
114813
+ showDayNames: d?.showDayNames ?? !0,
114814
+ showCurrentStatus: d?.showCurrentStatus ?? !0,
114815
+ className: d?.className ?? "mb-2 font-semibold font-body-fontFamily text-body-fontSize h-full"
114812
114816
  },
114813
114817
  parentData: {
114814
114818
  field: "profile.hours"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yext/visual-editor",
3
3
  "description": "Component library for Yext Pages Visual Editor",
4
- "version": "1.4.4",
4
+ "version": "1.4.5",
5
5
  "author": "sumo@yext.com",
6
6
  "repository": {
7
7
  "type": "git",