@visitscotland/component-library 5.0.0 → 5.0.1
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/dist/client/manifest.json +12 -12
- package/dist/client/scripts/35d65546fb00da7d9383.js +1 -0
- package/dist/components/components/carousel/components/CarouselSlide.vue.d.ts +2 -24
- package/dist/components/components/mega-nav/components/MegaNavFeaturedEvent.vue.d.ts +2 -24
- package/dist/components/components/mega-nav/components/MegaNavFeaturedItem.vue.d.ts +2 -24
- package/dist/components/components/megalinks/components/megalink-link-list/MegalinkLinkList.vue.d.ts +2 -24
- package/dist/components/components/megalinks/components/megalink-multi-image/MegalinkMultiImage.vue.d.ts +2 -24
- package/dist/components/components/stretched-link-card/StretchedLinkCard.vue.d.ts +2 -24
- package/dist/components/vs-component-library.js +1 -1
- package/dist/components/vs-component-library.mjs +6 -9
- package/dist/ssr/index.js +1 -1
- package/dist/ssr/manifest.json +1 -1
- package/package.json +1 -1
- package/dist/client/scripts/20df0073ab6b39d8b371.js +0 -1
- /package/dist/client/styles/{20df0073ab6b39d8b371.css → 35d65546fb00da7d9383.css} +0 -0
- /package/dist/ssr/styles/{e88ba596a081d15e9a70.css → f11c7f442da65852fcba.css} +0 -0
|
@@ -10827,7 +10827,9 @@ const Card = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _sfc_render$1
|
|
|
10827
10827
|
}, cookieValues$5 = {
|
|
10828
10828
|
youtube: ["C0001", "C0004"],
|
|
10829
10829
|
embed: ["C0001", "C0003", "C0004"]
|
|
10830
|
-
}, cookieValues$4 = cookieValues$5.youtube
|
|
10830
|
+
}, cookieValues$4 = cookieValues$5.youtube;
|
|
10831
|
+
let videoStore$1 = null;
|
|
10832
|
+
const _sfc_main$1E = {
|
|
10831
10833
|
name: "VsStretchedLinkCard",
|
|
10832
10834
|
status: "prototype",
|
|
10833
10835
|
release: "0.0.1",
|
|
@@ -10970,11 +10972,6 @@ const Card = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _sfc_render$1
|
|
|
10970
10972
|
default: !1
|
|
10971
10973
|
}
|
|
10972
10974
|
},
|
|
10973
|
-
setup() {
|
|
10974
|
-
return {
|
|
10975
|
-
videoStore: useVideoStore()
|
|
10976
|
-
};
|
|
10977
|
-
},
|
|
10978
10975
|
data() {
|
|
10979
10976
|
return {
|
|
10980
10977
|
jsDisabled: !0,
|
|
@@ -10994,10 +10991,10 @@ const Card = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _sfc_render$1
|
|
|
10994
10991
|
return this.disabled && (e += "vs-stretched-link-card--disabled"), this.type === "video" && (e += " vs-stretched-link-card--video"), this.showWarning && this.type === "video" && (e += " vs-stretched-link-card--warning"), e;
|
|
10995
10992
|
},
|
|
10996
10993
|
videoDetails() {
|
|
10997
|
-
return
|
|
10994
|
+
return videoStore$1 ? videoStore$1.videos[this.videoId] : null;
|
|
10998
10995
|
},
|
|
10999
10996
|
videoLoaded() {
|
|
11000
|
-
return typeof this.videoDetails < "u" && this.videoDetails.videoDuration > 0;
|
|
10997
|
+
return typeof this.videoDetails < "u" && this.videoDetails !== null && this.videoDetails.videoDuration > 0;
|
|
11001
10998
|
},
|
|
11002
10999
|
// Calculates if warning is showing and gives class for appropriate styles
|
|
11003
11000
|
warningClass() {
|
|
@@ -11026,7 +11023,7 @@ const Card = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _sfc_render$1
|
|
|
11026
11023
|
}
|
|
11027
11024
|
},
|
|
11028
11025
|
mounted() {
|
|
11029
|
-
this.jsDisabled = jsIsDisabled();
|
|
11026
|
+
videoStore$1 = useVideoStore(), this.jsDisabled = jsIsDisabled();
|
|
11030
11027
|
},
|
|
11031
11028
|
methods: {
|
|
11032
11029
|
emitShowModal() {
|