@visitscotland/component-library 5.4.2 → 5.5.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.
- package/dist/client/manifest.json +12 -12
- package/dist/client/scripts/5a0e795d327cf65da37a.js +1 -0
- package/dist/client/scripts/bb0b677297a8ebb68474.js +1 -0
- package/dist/components/components/embed-wrapper/EmbedWrapper.vue.d.ts +20 -1
- package/dist/components/vs-component-library.js +14 -14
- package/dist/components/vs-component-library.mjs +22 -12
- package/dist/ssr/index.js +1 -1
- package/dist/ssr/manifest.json +1 -1
- package/package.json +1 -1
- package/dist/client/scripts/175737e102f0516e0267.js +0 -1
- package/dist/client/scripts/429cc9d01d282b82d939.js +0 -1
- /package/dist/client/styles/{429cc9d01d282b82d939.css → 5a0e795d327cf65da37a.css} +0 -0
- /package/dist/ssr/styles/{42554851b749a433e30e.css → d7c6038bf921c30d43f0.css} +0 -0
|
@@ -10843,7 +10843,7 @@ const CardGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _sfc_ren
|
|
|
10843
10843
|
let e = !1;
|
|
10844
10844
|
typeof CookieControl < "u" && (e = this.requiredCookies.every(
|
|
10845
10845
|
(n) => CookieControl && CookieControl.getCategoryConsent(n) !== !1
|
|
10846
|
-
)), this.requiredCookiesAllowed = e;
|
|
10846
|
+
)), this.requiredCookiesAllowed = e, typeof this.callbackOnUpdated < "u" && this.callbackOnUpdated();
|
|
10847
10847
|
}
|
|
10848
10848
|
},
|
|
10849
10849
|
computed: {
|
|
@@ -10855,17 +10855,11 @@ const CardGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _sfc_ren
|
|
|
10855
10855
|
}
|
|
10856
10856
|
},
|
|
10857
10857
|
mounted() {
|
|
10858
|
-
|
|
10859
|
-
|
|
10860
|
-
|
|
10861
|
-
|
|
10862
|
-
|
|
10863
|
-
}), n && n.event === "cookie_permission_changed" && setTimeout(() => {
|
|
10864
|
-
window.dispatchEvent(new Event("cookiesUpdated"));
|
|
10865
|
-
});
|
|
10866
|
-
}, window.dataLayerExtended = !0;
|
|
10867
|
-
}
|
|
10868
|
-
window.addEventListener("cookieManagerLoaded", () => {
|
|
10858
|
+
window.civicSetup || (window.cookieManagerLoaded = () => {
|
|
10859
|
+
window.dispatchEvent(new Event("cookieManagerLoaded"));
|
|
10860
|
+
}, window.cookiesUpdated = () => {
|
|
10861
|
+
window.dispatchEvent(new Event("cookiesUpdated"));
|
|
10862
|
+
}, window.civicSetup = !0), window.addEventListener("cookieManagerLoaded", () => {
|
|
10869
10863
|
this.managerLoaded();
|
|
10870
10864
|
}), window.addEventListener("cookiesUpdated", () => {
|
|
10871
10865
|
this.cookiesUpdated();
|
|
@@ -11870,6 +11864,14 @@ const VsDropdownItem = /* @__PURE__ */ _export_sfc(_sfc_main$1x, [["render", _sf
|
|
|
11870
11864
|
extraContent: {
|
|
11871
11865
|
type: String,
|
|
11872
11866
|
default: ""
|
|
11867
|
+
},
|
|
11868
|
+
/**
|
|
11869
|
+
* A script that should only be loaded if the user accepts cookies, often necessary
|
|
11870
|
+
* to make the embed work.
|
|
11871
|
+
*/
|
|
11872
|
+
embeddedScript: {
|
|
11873
|
+
type: String,
|
|
11874
|
+
default: ""
|
|
11873
11875
|
}
|
|
11874
11876
|
},
|
|
11875
11877
|
data() {
|
|
@@ -11885,6 +11887,14 @@ const VsDropdownItem = /* @__PURE__ */ _export_sfc(_sfc_main$1x, [["render", _sf
|
|
|
11885
11887
|
let e = "";
|
|
11886
11888
|
return this.cookiesLoaded || (e = this.errorText), !this.cookiesAllowed && this.cookiesLoaded === !0 && (e = this.noCookieText), e;
|
|
11887
11889
|
}
|
|
11890
|
+
},
|
|
11891
|
+
methods: {
|
|
11892
|
+
callbackOnUpdated() {
|
|
11893
|
+
if (this.embeddedScript && this.cookiesLoaded && this.requiredCookiesAllowed) {
|
|
11894
|
+
const e = document.createElement("script");
|
|
11895
|
+
e.src = this.embeddedScript, document.head.appendChild(e);
|
|
11896
|
+
}
|
|
11897
|
+
}
|
|
11888
11898
|
}
|
|
11889
11899
|
}, _hoisted_1$1a = {
|
|
11890
11900
|
"data-test": "vs-embed-wrapper",
|