@visitscotland/component-library 5.3.13 → 5.4.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 +86 -126
- package/dist/client/scripts/{03dabaf7b74e6b13a280.js → 007e4562cff1a54b02d9.js} +1 -1
- package/dist/client/scripts/03aac36fba2028e24b34.js +1 -0
- package/dist/client/scripts/2de3ebcd8f366e520df4.js +1 -0
- package/dist/client/scripts/38d5589b9158ab8e7423.js +1 -0
- package/dist/client/scripts/{c6ddfee230946125f4ae.js → 398c7026bf99c5123f33.js} +1 -1
- package/dist/client/scripts/429cc9d01d282b82d939.js +1 -0
- package/dist/client/scripts/{f9a07db6b846bfc59b9f.js → 46f297ddc7600ed24071.js} +1 -1
- package/dist/client/scripts/{106feba94fa38e0dd6f3.js → 75103c9a77f2713dfb3c.js} +1 -1
- package/dist/client/scripts/76c017215a653824cb7a.js +1 -0
- package/dist/client/scripts/{1fb7da852a7963b117d3.js → 811b90e5f1380e56e0ce.js} +1 -1
- package/dist/client/scripts/cec8d6c00ce6b039698f.js +1 -0
- package/dist/client/scripts/ec37d8bfaa1148156c17.js +1 -0
- package/dist/client/scripts/{2ce32325356abf89c85a.js → f103260f33c5d2e02238.js} +1 -1
- package/dist/client/scripts/{6698abfc632ba46561e6.js → fb8f301408cc3f1509ea.js} +1 -1
- package/dist/client/scripts/fd24aecec67c3ec3de20.js +1 -0
- package/dist/client/styles/2de3ebcd8f366e520df4.css +1 -0
- package/dist/components/{LoadingSpinner-G6yO-xf9.mjs → LoadingSpinner-BOFE0yHA.mjs} +9 -3
- package/dist/components/{LoadingSpinner-BUWD-yFb.js → LoadingSpinner-CLe19mqk.js} +1 -1
- package/dist/components/components/carbon-calculator/CarbonCalculator.vue.d.ts +3 -1
- package/dist/components/components/carousel/components/CarouselSlide.vue.d.ts +13 -7
- package/dist/components/components/embed-wrapper/EmbedWrapper.vue.d.ts +13 -7
- package/dist/components/components/form/Form.vue.d.ts +3 -1
- package/dist/components/components/image-with-caption/ImageWithCaption.vue.d.ts +24 -14
- package/dist/components/components/index.d.ts +0 -1
- package/dist/components/components/map/Map.vue.d.ts +3 -1
- package/dist/components/components/map-with-sidebar/MapWithSidebar.vue.d.ts +6 -2
- package/dist/components/components/mega-nav/components/MegaNavFeaturedEvent.vue.d.ts +13 -7
- package/dist/components/components/mega-nav/components/MegaNavFeaturedItem.vue.d.ts +13 -7
- package/dist/components/components/megalinks/components/megalink-link-list/MegalinkLinkList.vue.d.ts +13 -7
- package/dist/components/components/megalinks/components/megalink-multi-image/MegalinkMultiImage.vue.d.ts +13 -7
- package/dist/components/components/product-search/ProductSearch.vue.d.ts +3 -1
- package/dist/components/components/ski-scotland/ski-scotland-card/SkiScotlandCard.vue.d.ts +3 -1
- package/dist/components/components/ski-scotland/ski-scotland-status/SkiScotlandStatus.vue.d.ts +3 -1
- package/dist/components/components/stretched-link-card/StretchedLinkCard.vue.d.ts +13 -7
- package/dist/components/components/video/Video.vue.d.ts +13 -7
- package/dist/components/components/video-caption/VideoCaption.vue.d.ts +13 -7
- package/dist/components/components/warning/Warning.vue.d.ts +3 -1
- package/dist/components/mixins/__mocks__/verifyCookiesMixin.d.ts +4 -6
- package/dist/components/mixins/verifyCookiesMixin.d.ts +9 -5
- package/dist/components/style.css +1 -1
- package/dist/components/utils/required-cookies-data.d.ts +2 -5
- package/dist/components/vs-component-library-maps.js +1 -1
- package/dist/components/vs-component-library-maps.mjs +1 -1
- package/dist/components/vs-component-library.js +23 -23
- package/dist/components/vs-component-library.mjs +606 -787
- package/dist/ssr/index.js +1 -1
- package/dist/ssr/manifest.json +1 -1
- package/dist/ssr/styles/{09cb3256fdc0e4d8f042.css → 6a3f38ae5bfcd8d41eb4.css} +1 -1
- package/package.json +1 -1
- package/dist/client/scripts/049d5fb993a7e3aa7153.js +0 -1
- package/dist/client/scripts/204bf0ecf8a7214b2a3e.js +0 -1
- package/dist/client/scripts/28bb6e247135d4ee42d0.js +0 -1
- package/dist/client/scripts/38e5f6b3be1cf4387852.js +0 -1
- package/dist/client/scripts/4030eed7d71592ce1e3e.js +0 -1
- package/dist/client/scripts/490b9e05e79f41cc1280.js +0 -1
- package/dist/client/scripts/65d833da76ffb9e822d5.js +0 -1
- package/dist/client/scripts/75e20b62c8b654176032.js +0 -1
- package/dist/client/scripts/b3069ef55ec689e96eb2.js +0 -1
- package/dist/client/scripts/bf69148436e7bfb3f6ea.js +0 -1
- package/dist/client/scripts/fce15340fcbd449ae9cc.js +0 -1
- package/dist/client/styles/049d5fb993a7e3aa7153.css +0 -1
- package/dist/components/components/cookie-checker/CookieChecker.vue.d.ts +0 -17
- package/dist/components/components/cookie-checker/index.d.ts +0 -2
- package/dist/components/stores/cookies.store.d.ts +0 -19
- package/dist/components/utils/one-trust.d.ts +0 -11
- /package/dist/client/styles/{4030eed7d71592ce1e3e.css → 03aac36fba2028e24b34.css} +0 -0
- /package/dist/client/styles/{b3069ef55ec689e96eb2.css → 38d5589b9158ab8e7423.css} +0 -0
- /package/dist/client/styles/{38e5f6b3be1cf4387852.css → 429cc9d01d282b82d939.css} +0 -0
- /package/dist/client/styles/{f9a07db6b846bfc59b9f.css → 46f297ddc7600ed24071.css} +0 -0
- /package/dist/client/styles/{106feba94fa38e0dd6f3.css → 75103c9a77f2713dfb3c.css} +0 -0
- /package/dist/client/styles/{1fb7da852a7963b117d3.css → 811b90e5f1380e56e0ce.css} +0 -0
- /package/dist/client/styles/{204bf0ecf8a7214b2a3e.css → cec8d6c00ce6b039698f.css} +0 -0
- /package/dist/client/styles/{65d833da76ffb9e822d5.css → ec37d8bfaa1148156c17.css} +0 -0
- /package/dist/client/styles/{2ce32325356abf89c85a.css → f103260f33c5d2e02238.css} +0 -0
- /package/dist/client/styles/{6698abfc632ba46561e6.css → fb8f301408cc3f1509ea.css} +0 -0
- /package/dist/client/styles/{28bb6e247135d4ee42d0.css → fd24aecec67c3ec3de20.css} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1459],{12308:function(e,t){t.A={youtube:["C0001","C0004"],languageSelector:["C0001"],embed:["C0001","C0003","C0004"],recaptcha:["C0001"],map:["C0001"]}},83178:function(e,t,o){var n=o(64467),i=o(10810),r=o(2829);function s(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function c(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?s(Object(o),!0).forEach((function(t){(0,n.A)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):s(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var u={data:function(){return{bypassCookiesExist:!1}},computed:c(c({},(0,i.aH)(r.A,{cookiesSet:function(e){return e.allowedCookies}})),{},{onetrustActiveGroups:function(){return"undefined"!=typeof window?window.OnetrustActiveGroups:null},requiredCookiesExist:function(){var e=this;if("undefined"!=typeof window&&window.bypassCookieChecks)return this.bypassCookiesExist;var t=!0;return this.requiredCookies?this.requiredCookies.forEach((function(o){-1===e.cookiesSet.indexOf(o)&&(t=!1)})):t=!1,t},cookiesInitStatus:function(){return"undefined"!=typeof window&&window.bypassCookieChecks?this.bypassCookiesExist:(void 0===this.onetrustActiveGroups||this.cookiesSet.length,!0)}}),mounted:function(){var e=this;setTimeout((function(){e.bypassCookiesExist=!0}),50)}};t.A=u}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9122],{7473:function(t,n,s){"use strict";var e=s(85072),r=s.n(e),o=s(97825),i=s.n(o),a=s(77659),u=s.n(a),c=s(55056),l=s.n(c),f=s(10540),d=s.n(f),v=s(41113),g=s.n(v),m=s(34891),p=s.n(m),b={};b.styleTagTransform=g(),b.setAttributes=l(),b.insert=u().bind(null,"head"),b.domAPI=i(),b.insertStyleElement=d(),r()(p(),b),p()&&p().locals&&p().locals},34891:function(){},73538:function(t,n,s){"use strict";var e=s(46422),r=s(48836),o=s(44580);n.A={name:"VsWarning",status:"prototype",release:"0.1.0",components:{VsIcon:e.default,VsButton:r.default,VsBody:o.default},props:{icon:{type:String,default:"vs-icon-feedback-warning"},type:{type:String,default:"normal",validator:function(t){return t.match(/(normal|cookie)/)}},size:{type:String,default:"normal",validator:function(t){return t.match(/(small|normal)/)}}},computed:{warningClasses:function(){return["vs-warning--".concat(this.size)]},btnAttrs:function(){var t={};return"cookie"===this.type&&(t.class="ot-sdk-show-settings vs-warning__cookie-trigger"),"small"===this.size&&(t.size="sm"),t}}}},75999:function(t,n,s){"use strict";s.d(n,{X:function(){return u}});var e=s(20641),r=s(90033),o=s(53751),i={class:"vs-warning__content"},a={key:0};function u(t,n,s,u,c,l){var f=(0,e.g2)("VsIcon"),d=(0,e.g2)("VsBody"),v=(0,e.g2)("VsButton");return(0,e.uX)(),(0,e.CE)("div",{class:(0,r.normalizeClass)(["vs-warning",l.warningClasses]),"data-test":"vs-warning"},[(0,e.Lk)("div",i,[(0,e.bF)(f,{class:"vs-warning__icon",icon:s.icon,variant:"highlight"},null,8,["icon"]),(0,e.Lk)("div",null,[(0,e.bF)(d,null,{default:(0,e.k6)((function(){return[(0,e.Lk)("p",null,[(0,e.RG)(t.$slots,"default")]),t.$slots["extra-content"]&&t.$slots["extra-content"]()?((0,e.uX)(),(0,e.CE)("p",a,[(0,e.RG)(t.$slots,"extra-content")])):(0,e.Q3)("",!0)]})),_:3})])]),(0,e.bo)((0,e.bF)(v,(0,e.v6)(l.btnAttrs,{variant:"primary",class:"vs-warning__button"}),{default:(0,e.k6)((function(){return[(0,e.RG)(t.$slots,"button-text")]})),_:3},16),[[o.vShow,t.$slots["button-text"]&&t.$slots["button-text"]()]])],2)}},79122:function(t,n,s){"use strict";s.r(n);var e=s(92111),r=s(96902);s(88229);const o=(0,s(66262).A)(r.A,[["render",e.X]]);n.default=o},88229:function(t,n,s){"use strict";s(7473)},92111:function(t,n,s){"use strict";s.d(n,{X:function(){return e.X}});var e=s(75999)},96902:function(t,n,s){"use strict";s.d(n,{A:function(){return e.A}});var e=s(73538)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[2829],{2829:function(e,n,o){var t=o(17527),i=(0,o(48086).defineStore)("cookies",(function(){var e=(0,t.ref)([]),n=(0,t.ref)(!1);return{allowedCookies:e,cookiesTestRun:n,setCookieArray:function(n){e.value=[],n.forEach((function(n){e.value.push(n)}))},setTestRun:function(e){n.value=e}}}));n.A=i}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[6057],{23029:function(n,e,t){function r(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}t.d(e,{A:function(){return r}})},92901:function(n,e,t){t.d(e,{A:function(){return i}});var r=t(49922);function o(n,e){for(var t=0;t<e.length;t++){var o=e[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,(0,r.A)(o.key),o)}}function i(n,e,t){return e&&o(n.prototype,e),t&&o(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.vs-video-caption{width:100%;position:relative}.vs-video-caption--no-js{display:none}.vs-video-caption__details{background-color:#200f2e;color:#fff;padding:.75rem}.vs-video-caption__buttons-container{position:absolute;transform:translateY(-100%);width:100%}.vs-video-caption__buttons-container .vs-toggle-btn{display:none}@media(min-width: 992px){.vs-video-caption__buttons-container .vs-toggle-btn{display:block;position:absolute;right:.5rem;top:calc(-24px - 0.75rem)}}.vs-video-caption__title{font-size:1rem;font-weight:600;margin-bottom:.5rem}.vs-video-caption__duration{font-size:1rem;font-weight:300;margin:0}.vs-video-caption__alert{display:flex;justify-content:flex-start}.vs-video-caption__alert .vs-icon{margin-right:1.75rem}.vs-video-caption__alert p{font-size:1rem;line-height:2;margin:-10px 0 0}.vs-video-caption__alert #ot-sdk-btn.ot-sdk-show-settings{color:#fff;text-decoration:underline}.vs-video-caption__button{min-height:50px;display:flex;align-items:center;padding-top:.25rem;padding-bottom:.25rem;min-height:53px;text-align:left;line-height:1.1}.vs-video-caption__button .vs-icon{margin-right:1.25rem}.vs-video-caption .vs-caption--large .vs-caption__image-caption{margin-bottom:.5rem}@media(min-width: 576px){.vs-video-caption__buttons-container>.container{padding:0}.vs-video-caption__buttons-container .vs-toggle-btn{top:calc(50% - 20px)}}@media(min-width: 576px){.vs-video-caption--wide .vs-video-caption__details{padding:1rem .75rem 1.25rem}.vs-video-caption--wide .vs-video-caption__title{font-size:1.125rem;margin-right:1rem;margin-bottom:0}.vs-video-caption--wide .vs-video-caption__buttons-container__button{max-width:400px}}@media(min-width: 992px){.vs-video-caption--wide .vs-video-caption__details{display:block;padding:1rem 1.5rem 1.25rem}.vs-video-caption--wide .vs-video-caption__title{margin-bottom:.25rem}.vs-video-caption--wide .vs-video-caption__button{max-width:360px}}.vs-video-caption__wrapper--narrow{width:100%}.vs-video-caption__wrapper--narrow .vs-video-caption__buttons-container .vs-video-caption__button{width:4rem;height:4rem;position:relative;padding:0rem;font-size:0}.vs-video-caption__wrapper--narrow .vs-video-caption__buttons-container .vs-video-caption__button .vs-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.vs-video-caption__wrapper--narrow .vs-video-caption__buttons-container .container{padding:0rem}.vs-video-caption__wrapper--narrow .vs-video-caption__buttons-container .vs-video-caption__button .vs-icon{font-size:1.875rem}.vs-image-with-caption--hero.vs-image-with-caption--video .vs-video-caption__buttons-container .vs-video-caption__button{width:4rem;height:4rem;position:relative;padding:0rem;font-size:0}.vs-image-with-caption--hero.vs-image-with-caption--video .vs-video-caption__buttons-container .vs-video-caption__button .vs-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.vs-image-with-caption--hero.vs-image-with-caption--video .vs-image-with-caption__image-wrapper .vs-toggle-btn{display:block !important}@media(min-width: 576px){.vs-image-with-caption--hero.vs-image-with-caption--video .vs-video-caption__buttons-container .vs-video-caption__button{width:auto;height:auto;padding:.75rem 1rem;font-size:1rem}.vs-image-with-caption--hero.vs-image-with-caption--video .vs-video-caption__buttons-container .vs-video-caption__button .vs-icon{position:relative;top:auto;left:auto;transform:none;height:1.25rem;width:1.25rem}}@media(min-width: 992px){.vs-image-with-caption--hero.vs-image-with-caption--video .vs-image-with-caption__video-caption-wrapper .vs-video-caption{width:400px}.vs-image-with-caption--hero.vs-image-with-caption--video .vs-image-with-caption__image-wrapper .vs-toggle-btn{display:none !important}}.no-js .vs-video-caption{display:none}.no-js .vs-video-caption--no-js{display:block}@media(min-width: 576px){.no-js .vs-video-caption__details{max-width:84%;margin:0 auto;border-bottom:#e9e9e9 1px solid}}@media(min-width: 992px){.no-js .vs-video-caption__details{max-width:100%;margin:0;border-bottom:none}}.no-js .vs-video-caption__title,.no-js .vs-video-caption__duration,.no-js .vs-video-caption__button,.no-js .vs-video-caption .vs-toggle-btn{display:none}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { default as OneTrustVS } from '../../utils/one-trust';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {
|
|
3
|
-
oneTrust: OneTrustVS;
|
|
4
|
-
activeGroups: string;
|
|
5
|
-
}, {}, {
|
|
6
|
-
/**
|
|
7
|
-
* initialises listener to ensure accepted cookie values
|
|
8
|
-
* are updated when OneTrust preferences are changed
|
|
9
|
-
*/
|
|
10
|
-
checkOneTrust(): void;
|
|
11
|
-
/**
|
|
12
|
-
* checks cookies have been accepted via OneTrust and
|
|
13
|
-
* adds them to activeGroups
|
|
14
|
-
*/
|
|
15
|
-
checkActiveGroups(): void;
|
|
16
|
-
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
17
|
-
export default _default;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
|
|
3
|
-
declare const useCookiesStore: import('pinia').StoreDefinition<"cookies", Pick<{
|
|
4
|
-
allowedCookies: Ref<string[], string[]>;
|
|
5
|
-
cookiesTestRun: Ref<boolean, boolean>;
|
|
6
|
-
setCookieArray: (payload: string[]) => void;
|
|
7
|
-
setTestRun: (payload: boolean) => void;
|
|
8
|
-
}, "allowedCookies" | "cookiesTestRun">, Pick<{
|
|
9
|
-
allowedCookies: Ref<string[], string[]>;
|
|
10
|
-
cookiesTestRun: Ref<boolean, boolean>;
|
|
11
|
-
setCookieArray: (payload: string[]) => void;
|
|
12
|
-
setTestRun: (payload: boolean) => void;
|
|
13
|
-
}, never>, Pick<{
|
|
14
|
-
allowedCookies: Ref<string[], string[]>;
|
|
15
|
-
cookiesTestRun: Ref<boolean, boolean>;
|
|
16
|
-
setCookieArray: (payload: string[]) => void;
|
|
17
|
-
setTestRun: (payload: boolean) => void;
|
|
18
|
-
}, "setTestRun" | "setCookieArray">>;
|
|
19
|
-
export default useCookiesStore;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export default class OneTrustVS {
|
|
2
|
-
fallbacks: any[];
|
|
3
|
-
init: () => void;
|
|
4
|
-
instaOT: (otCategory: any, module: any, fallback: any, container: any, position?: any) => void;
|
|
5
|
-
showOneTrustFallback: (otCategory: any, module: any, fallback: any, container: any, position?: any) => boolean;
|
|
6
|
-
onetrustCookieCheck: (category: any, callback: any) => any;
|
|
7
|
-
hideOneTrustFallback: (otCategory: any) => void;
|
|
8
|
-
checkThirdPartyLibrary: (name: any, callback: any) => void;
|
|
9
|
-
setFBButtonListener: (fbElement: any) => void;
|
|
10
|
-
setIframeSrc: () => void;
|
|
11
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|