@visitscotland/component-library 4.19.3 → 4.20.0

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.
@@ -40826,6 +40826,13 @@ const SocialShareItem = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sf
40826
40826
  type: String,
40827
40827
  default: "icon",
40828
40828
  validator: (e) => ["icon", "image", "image-horizontal", "numbered"].includes(e)
40829
+ },
40830
+ /**
40831
+ * ID of the anchor link if needed
40832
+ */
40833
+ anchorLink: {
40834
+ type: String,
40835
+ default: ""
40829
40836
  }
40830
40837
  },
40831
40838
  setup(e) {
@@ -40855,13 +40862,14 @@ const SocialShareItem = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sf
40855
40862
  }, null, 8, ["src"])) : createCommentVNode("", !0),
40856
40863
  createVNode(VsHeading, {
40857
40864
  level: n.headingLevel,
40858
- "heading-style": "heading-xxs"
40865
+ "heading-style": "heading-xxs",
40866
+ id: e.anchorLink ? e.anchorLink : ""
40859
40867
  }, {
40860
40868
  default: withCtx(() => [
40861
40869
  createTextVNode(toDisplayString(e.heading), 1)
40862
40870
  ]),
40863
40871
  _: 1
40864
- }, 8, ["level"]),
40872
+ }, 8, ["level", "id"]),
40865
40873
  createVNode(VsRichTextWrapper, null, {
40866
40874
  default: withCtx(() => [
40867
40875
  renderSlot(t.$slots, "default")