@visitscotland/component-library 3.1.8 → 3.1.9
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 +5 -7
- package/dist/client/scripts/0fbda1b6956238680d5e.js +1 -0
- package/dist/client/scripts/{791b377fec08a7655d7e.js → 99f9d0e0e17c73089157.js} +1 -1
- package/dist/components/components/video-caption/VideoCaption.vue.d.ts +1 -17
- package/dist/components/vs-component-library.js +127 -127
- package/dist/components/vs-component-library.mjs +34 -78
- package/dist/ssr/index.js +1 -1
- package/dist/ssr/manifest.json +1 -1
- package/package.json +1 -1
- package/dist/client/scripts/9cfa0f253a3aebd930a2.js +0 -1
- /package/dist/client/styles/{9cfa0f253a3aebd930a2.css → 0fbda1b6956238680d5e.css} +0 -0
- /package/dist/ssr/styles/{93e071858a0f2d109b89.css → 8a174544a63ad162fecd.css} +0 -0
|
@@ -2567,7 +2567,7 @@
|
|
|
2567
2567
|
"scripts/8831aa9b92c7ec8958fd.js",
|
|
2568
2568
|
"scripts/2109495bcb3ad9b2c1bc.js",
|
|
2569
2569
|
"scripts/3f7b9965307d21e64c2d.js",
|
|
2570
|
-
"scripts/
|
|
2570
|
+
"scripts/0fbda1b6956238680d5e.js",
|
|
2571
2571
|
"scripts/5dc13376c30741c1ab2e.js"
|
|
2572
2572
|
],
|
|
2573
2573
|
"styles": [
|
|
@@ -2576,7 +2576,7 @@
|
|
|
2576
2576
|
"styles/a5720cb035b84b05a681.css",
|
|
2577
2577
|
"styles/919880c5b0e7d76dd633.css",
|
|
2578
2578
|
"styles/3f7b9965307d21e64c2d.css",
|
|
2579
|
-
"styles/
|
|
2579
|
+
"styles/0fbda1b6956238680d5e.css",
|
|
2580
2580
|
"styles/5dc13376c30741c1ab2e.css"
|
|
2581
2581
|
]
|
|
2582
2582
|
},
|
|
@@ -6137,18 +6137,16 @@
|
|
|
6137
6137
|
"scripts/cd49442f3979c5aa946f.js",
|
|
6138
6138
|
"scripts/a5720cb035b84b05a681.js",
|
|
6139
6139
|
"scripts/a852c8dcfb617afa93f1.js",
|
|
6140
|
-
"scripts/8831aa9b92c7ec8958fd.js",
|
|
6141
|
-
"scripts/2109495bcb3ad9b2c1bc.js",
|
|
6142
6140
|
"scripts/3f7b9965307d21e64c2d.js",
|
|
6143
|
-
"scripts/
|
|
6144
|
-
"scripts/
|
|
6141
|
+
"scripts/0fbda1b6956238680d5e.js",
|
|
6142
|
+
"scripts/99f9d0e0e17c73089157.js"
|
|
6145
6143
|
],
|
|
6146
6144
|
"styles": [
|
|
6147
6145
|
"styles/cd7968f5815183867103.css",
|
|
6148
6146
|
"styles/cd49442f3979c5aa946f.css",
|
|
6149
6147
|
"styles/a5720cb035b84b05a681.css",
|
|
6150
6148
|
"styles/3f7b9965307d21e64c2d.css",
|
|
6151
|
-
"styles/
|
|
6149
|
+
"styles/0fbda1b6956238680d5e.css"
|
|
6152
6150
|
]
|
|
6153
6151
|
},
|
|
6154
6152
|
"VsVideo": {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[459],{87688:function(){},32373:function(t,e,i){"use strict";var o=i(48836),n=i(17933),s=i(79122),a=i(45921),r=i.n(a);e.A={name:"VsVideoCaption",status:"prototype",release:"0.0.1",components:{VsButton:o.default,VsToggleButton:n.default,VsWarning:s.default},inject:{noJsMessage:{default:""},errorMessage:{default:""}},props:{videoBtnText:{type:String,default:""},withToggleBtn:{type:Boolean,default:!1},videoId:{type:String,required:!0},variant:{type:String,default:"wide",validator:function(t){return t.match(/(wide|narrow)/)}}},setup:function(){return{videoStore:r()()}},data:function(){return{showErrorMessage:!1}},computed:{videoDetails:function(){return this.videoStore.videos[this.videoId]},videoLoaded:function(){return void 0!==this.videoDetails&&this.videoDetails.videoDuration>0}},methods:{emitToggle:function(){this.$emit("toggleAction")},emitShowModal:function(){this.emitter&&this.emitter.emit("showModal",this.videoId,"#videoShow")}}}},97884:function(t,e,i){"use strict";i.d(e,{X:function(){return l}});var o=i(20641),n=i(90033),s={key:0,class:"vs-video-caption__buttons-container"},a={class:"container"},r={class:"vs-video-caption__details"},d={class:"vs-video-caption__title"},c={class:"vs-video-caption__duration"},u={key:1,class:"vs-video-caption vs-video-caption--no-js vs-video-caption--warning","data-test":"video-caption-nojs"};function l(t,e,i,l,v,p){var f=(0,o.g2)("VsButton"),g=(0,o.g2)("VsToggleButton"),_=(0,o.g2)("VsWarning");return(0,o.uX)(),(0,o.CE)("div",{"data-test":"video-caption",class:(0,n.normalizeClass)(["vs-video-caption__wrapper","vs-video-caption__wrapper--".concat(i.variant)])},[p.videoLoaded?((0,o.uX)(),(0,o.CE)("div",{"data-test":"video-caption-variants",class:(0,n.normalizeClass)(["vs-video-caption","vs-video-caption--".concat(i.variant)]),key:"video-caption"},[i.videoBtnText?((0,o.uX)(),(0,o.CE)("div",s,[(0,o.Lk)("div",a,[(0,o.bF)(f,{class:"vs-video-caption__button",icon:"play","icon-position":"left",size:"md",ref:"videoShow",onClick:p.emitShowModal},{default:(0,o.k6)((function(){return[(0,o.eW)((0,n.toDisplayString)(i.videoBtnText),1)]})),_:1},8,["onClick"])]),i.withToggleBtn?((0,o.uX)(),(0,o.Wv)(g,{key:0,onToggleAction:p.emitToggle},{default:(0,o.k6)((function(){return[(0,o.eW)(" Toggle caption ")]})),_:1},8,["onToggleAction"])):(0,o.Q3)("",!0)])):(0,o.Q3)("",!0),(0,o.Lk)("div",r,[(0,o.Lk)("p",d,[(0,o.RG)(t.$slots,"video-title")]),(0,o.Lk)("p",c,(0,n.toDisplayString)(p.videoDetails.videoDurationMsg),1)])],2)):(0,o.Q3)("",!0),p.noJsMessage?((0,o.uX)(),(0,o.CE)("div",u,[(0,o.bF)(_,{size:"small"},{default:(0,o.k6)((function(){return[(0,o.eW)((0,n.toDisplayString)(p.noJsMessage),1)]})),_:1})])):(0,o.Q3)("",!0)],2)}},32490:function(t,e,i){"use strict";var o=i(85072),n=i.n(o),s=i(97825),a=i.n(s),r=i(77659),d=i.n(r),c=i(55056),u=i.n(c),l=i(10540),v=i.n(l),p=i(41113),f=i.n(p),g=i(87688),_=i.n(g),h={};h.styleTagTransform=f(),h.setAttributes=u(),h.insert=d().bind(null,"head"),h.domAPI=a(),h.insertStyleElement=v(),n()(_(),h),_()&&_().locals&&_().locals},70459:function(t,e,i){"use strict";i.r(e);var o=i(75084),n=i(81049);i(32878);const s=(0,i(66262).A)(n.A,[["render",o.X]]);e.default=s},81049:function(t,e,i){"use strict";i.d(e,{A:function(){return o.A}});var o=i(32373)},75084:function(t,e,i){"use strict";i.d(e,{X:function(){return o.X}});var o=i(97884)},32878:function(t,e,i){"use strict";i(32490)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsVideoCaption=t():e.VsVideoCaption=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[6647],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,6422,8745,8836,9122,5921,
|
|
1
|
+
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsVideoCaption=t():e.VsVideoCaption=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[6647],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,6422,8745,8836,9122,5921,7933,459],(function(){return 70459,e(e.s=70459)})),e.O()}])}));
|
|
@@ -44,7 +44,6 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
44
44
|
}): void;
|
|
45
45
|
}>;
|
|
46
46
|
}, {
|
|
47
|
-
requiredCookies: string[];
|
|
48
47
|
showErrorMessage: boolean;
|
|
49
48
|
}, {
|
|
50
49
|
videoDetails(): {
|
|
@@ -58,25 +57,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
58
57
|
};
|
|
59
58
|
};
|
|
60
59
|
videoLoaded(): boolean;
|
|
61
|
-
showCookieMessage(): boolean;
|
|
62
60
|
}, {
|
|
63
61
|
emitToggle(): void;
|
|
64
62
|
emitShowModal(): void;
|
|
65
|
-
}, {
|
|
66
|
-
data(): {
|
|
67
|
-
bypassCookiesExist: boolean;
|
|
68
|
-
};
|
|
69
|
-
computed: {
|
|
70
|
-
onetrustActiveGroups(): any;
|
|
71
|
-
requiredCookiesExist(): any;
|
|
72
|
-
cookiesInitStatus(): any;
|
|
73
|
-
cookiesSet: () => string[];
|
|
74
|
-
};
|
|
75
|
-
mounted(): void; /**
|
|
76
|
-
* Style variant based on caption container width
|
|
77
|
-
* `wide|narrow`.
|
|
78
|
-
*/
|
|
79
|
-
}, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
63
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
80
64
|
/**
|
|
81
65
|
* Text for the play video button
|
|
82
66
|
*/
|