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