@visitscotland/component-library 1.0.23 → 1.0.24

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/CHANGELOG.md CHANGED
@@ -2,20 +2,28 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
- ### [1.0.23](https://github.com/visitscotland/vs-component-library/compare/v1.0.22...v1.0.23) (2023-09-05)
5
+ ### [1.0.24](https://github.com/visitscotland/vs-component-library/compare/v1.0.23...v1.0.24) (2023-09-07)
6
6
 
7
7
 
8
8
  ### 🐛 Bug Fixes
9
9
 
10
- * **input:** correct regex syntax ([61c3a11](https://github.com/visitscotland/vs-component-library/commit/61c3a1190516e3df9cf29988c528d777901c52c8))
11
- * **marketoforms:** allow lower case postcodes ([ae66b4d](https://github.com/visitscotland/vs-component-library/commit/ae66b4d0f251df913715402c52ebffa40887f91e))
12
- * **select:** fix select validation syntax ([499c2cc](https://github.com/visitscotland/vs-component-library/commit/499c2cca73692951cb48dde5fba6108cd66eccb7))
13
-
14
-
15
- ### ✨ Features
16
-
17
- * **forms:** remove consent checkbox from example form ([245cc66](https://github.com/visitscotland/vs-component-library/commit/245cc66164686cdf9162bd6761fcda52487a070a))
10
+ * **social share:** don't render popover in SSR environment ([2765b6e](https://github.com/visitscotland/vs-component-library/commit/2765b6e192f41739a09aefc4fbd2db6f8ed3566b))
11
+ * **ssr:** ensure global nav hydrates properly on load ([7087cb7](https://github.com/visitscotland/vs-component-library/commit/7087cb7b41cf615cd7e9ca88cd2e252beccc80a6))
18
12
 
13
+ ### [1.0.23](https://github.com/visitscotland/vs-component-library/compare/v1.0.22...v1.0.23) (2023-09-05)
14
+
15
+
16
+ ### 🐛 Bug Fixes
17
+
18
+ * **input:** correct regex syntax ([61c3a11](https://github.com/visitscotland/vs-component-library/commit/61c3a1190516e3df9cf29988c528d777901c52c8))
19
+ * **marketoforms:** allow lower case postcodes ([ae66b4d](https://github.com/visitscotland/vs-component-library/commit/ae66b4d0f251df913715402c52ebffa40887f91e))
20
+ * **select:** fix select validation syntax ([499c2cc](https://github.com/visitscotland/vs-component-library/commit/499c2cca73692951cb48dde5fba6108cd66eccb7))
21
+
22
+
23
+ ### ✨ Features
24
+
25
+ * **forms:** remove consent checkbox from example form ([245cc66](https://github.com/visitscotland/vs-component-library/commit/245cc66164686cdf9162bd6761fcda52487a070a))
26
+
19
27
  ### [1.0.22](https://github.com/visitscotland/vs-component-library/compare/v1.0.21...v1.0.22) (2023-09-01)
20
28
 
21
29
 
@@ -2739,7 +2739,7 @@
2739
2739
  "scripts/416c646be741a768cba5.js",
2740
2740
  "scripts/3ec90a0e1d1b4e4a9f3e.js",
2741
2741
  "scripts/20c6b82baa70c76c1a3d.js",
2742
- "scripts/79ae6d2c7699a7e68314.js"
2742
+ "scripts/b400e25cdaaac53cac74.js"
2743
2743
  ],
2744
2744
  "styles": [
2745
2745
  "styles/66b8a5d09a8317bd9092.css",
@@ -2747,7 +2747,7 @@
2747
2747
  "styles/65c1f3191bc24c8f3ac8.css",
2748
2748
  "styles/3ec90a0e1d1b4e4a9f3e.css",
2749
2749
  "styles/20c6b82baa70c76c1a3d.css",
2750
- "styles/79ae6d2c7699a7e68314.css"
2750
+ "styles/b400e25cdaaac53cac74.css"
2751
2751
  ]
2752
2752
  },
2753
2753
  "VsIcentre": {
@@ -5610,7 +5610,7 @@
5610
5610
  "scripts/ae5c80d270825f9d87fa.js",
5611
5611
  "scripts/d0fd50a5b063d113a609.js",
5612
5612
  "scripts/9f24f39f39375ad29408.js",
5613
- "scripts/f5582fdecaa2ba33c243.js"
5613
+ "scripts/befa3e741ff81496eec4.js"
5614
5614
  ],
5615
5615
  "styles": [
5616
5616
  "styles/c1e52b98d340cd47fee7.css",
@@ -5619,7 +5619,7 @@
5619
5619
  "styles/ae5c80d270825f9d87fa.css",
5620
5620
  "styles/d0fd50a5b063d113a609.css",
5621
5621
  "styles/9f24f39f39375ad29408.css",
5622
- "styles/f5582fdecaa2ba33c243.css"
5622
+ "styles/befa3e741ff81496eec4.css"
5623
5623
  ]
5624
5624
  },
5625
5625
  "VsStretchedLinkPanels": {
@@ -0,0 +1 @@
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VsGlobalMenu=e():t.VsGlobalMenu=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4322],{8750:function(){},88640:function(t,e,s){"use strict";var n=s(81779),i=s(49028),o=s(23472),r=s(64945);e.Z={name:"VsGlobalMenu",status:"prototype",release:"0.1.0",components:{VsContainer:n.xB,VsRow:n.ou,VsCol:n.hY,VsGlobalMenuDropdown:o.default,VsGlobalMenuList:r.default,LazyHydrationWrapper:i.Z},props:{activeSite:{type:String,required:!0},dropdownLabel:{type:String,default:"Our Websites"}},data:function(){return{websites:[{siteName:"VisitScotland",siteUrl:"https://www.visitscotland.com/"},{siteName:"Business Events",siteUrl:"https://businessevents.visitscotland.com/"},{siteName:"Travel Trade",siteUrl:"https://traveltrade.visitscotland.org/"},{siteName:"Toolkit",siteUrl:"https://toolkit.visitscotland.org/"},{siteName:"Corporate",siteUrl:"https://www.visitscotland.org/"}]}}}},42719:function(t,e,s){"use strict";s.d(e,{s:function(){return o}});var n=s(66252),i={class:"vs-global-menu"};function o(t,e,s,o,r,l){var a=(0,n.up)("VsGlobalMenuDropdown"),u=(0,n.up)("VsGlobalMenuList"),c=(0,n.up)("VsCol"),d=(0,n.up)("VsRow"),p=(0,n.up)("VsContainer"),f=(0,n.up)("LazyHydrationWrapper");return(0,n.wg)(),(0,n.iD)("nav",i,[(0,n.Wm)(f,{"on-interaction":["focus","click"]},{default:(0,n.w5)((function(){return[(0,n.Wm)(p,{fluid:"lg",class:"px-1 px-sm-3"},{default:(0,n.w5)((function(){return[(0,n.Wm)(d,null,{default:(0,n.w5)((function(){return[(0,n.Wm)(c,{cols:"12",class:"vs-global-menu__wrapper"},{default:(0,n.w5)((function(){return[(0,n.Wm)(a,{class:"d-lg-none","active-site":s.activeSite,"dropdown-label":s.dropdownLabel,websites:r.websites},null,8,["active-site","dropdown-label","websites"]),(0,n.Wm)(u,{class:"d-none d-lg-flex","active-site":s.activeSite,websites:r.websites},null,8,["active-site","websites"]),(0,n.WI)(t.$slots,"second-menu-item"),(0,n.WI)(t.$slots,"third-menu-item")]})),_:3})]})),_:3})]})),_:3})]})),_:3})])}},65069:function(t,e,s){"use strict";var n=s(93379),i=s.n(n),o=s(7795),r=s.n(o),l=s(90569),a=s.n(l),u=s(3565),c=s.n(u),d=s(19216),p=s.n(d),f=s(44589),b=s.n(f),m=s(8750),w=s.n(m),v={};v.styleTagTransform=b(),v.setAttributes=c(),v.insert=a().bind(null,"head"),v.domAPI=r(),v.insertStyleElement=p(),i()(w(),v),w()&&w().locals&&w().locals},36829:function(t,e,s){"use strict";s.r(e);var n=s(97808),i=s(94266);s(4136);const o=(0,s(83744).Z)(i.Z,[["render",n.s]]);e.default=o},94266:function(t,e,s){"use strict";s.d(e,{Z:function(){return n.Z}});var n=s(88640)},97808:function(t,e,s){"use strict";s.d(e,{s:function(){return n.s}});var n=s(42719)},4136:function(t,e,s){"use strict";s(65069)}},function(t){return t.O(0,[6252,3744,7991,9963,6486,2854,9028,7581,4186,1321,1779,1313,2304,6399,3472,6090],(function(){return 36829,t(t.s=36829)})),t.O()}])}));
@@ -0,0 +1 @@
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsSocialShare=t():e.VsSocialShare=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7444],{38574:function(){},89588:function(e,t,n){"use strict";var o=n(83918),r=n(73366),s=n(61861),i=n(81779),a=n(92854);t.Z={name:"VsSocialShare",status:"prototype",release:"0.0.1",components:{VsButton:o.default,VsHeading:r.default,VsModuleWrapper:s.default,BPopover:a.xK,VsRow:i.ou,VsContainer:i.xB,VsCol:i.hY},provide:function(){return{referringPageUrl:this.pageUrl,pageTitle:this.pageTitle,noJs:this.noJs}},props:{shareBtnText:{type:String,required:!0},sharePopoverTitle:{type:String,required:!0},pageUrl:{type:String,required:!0},pageTitle:{type:String,default:""},closeAltText:{type:String,required:!0},id:{type:String,required:!0},noJs:{type:Boolean,default:!1}},data:function(){return{copyLink:!1,renderPopover:!1}},mounted:function(){this.renderPopover=!0},methods:{onClose:function(e){this.$refs.popover.hideFn(e)},onShown:function(){this.focusFirst()},onHidden:function(){this.focusRef(this.$refs.shareButton)},onHide:function(e){this.copyLink&&(e.preventDefault(),this.focusFirst(),this.copyLink=!1)},onCopyLink:function(){this.copyLink=!0},focusRef:function(e){var t=this;this.$nextTick((function(){t.$nextTick((function(){(e.$el||e).focus()}))}))},focusFirst:function(){var e=this;this.$nextTick((function(){e.$nextTick((function(){e.$refs.popoverShareRow.$el.querySelector(".vs-social-share-item a ").focus()}))}))},tabFromClose:function(e){e.shiftKey||(e.preventDefault(),this.focusFirst())},tabBackFromHidden:function(e){e.shiftKey&&(e.preventDefault(),this.focusRef(this.$refs.closeButton))}}}},70729:function(e,t,n){"use strict";n.d(t,{s:function(){return a}});var o=n(66252),r=n(3577),s=n(49963),i={class:"sr-only"};function a(e,t,n,a,u,c){var l=(0,o.up)("VsButton"),f=(0,o.up)("VsHeading"),d=(0,o.up)("VsRow"),p=(0,o.up)("BPopover"),h=(0,o.up)("VsCol"),v=(0,o.up)("VsContainer"),y=(0,o.up)("VsModuleWrapper");return(0,o.wg)(),(0,o.iD)("div",{class:(0,r.normalizeClass)(["vs-social-share",n.noJs?"vs-module-wrapper__outer--hidden":"vs-module-wrapper__outer--light"]),"data-test":"vs-social-share",ref:"socialShareContainer"},[n.noJs?(0,o.kq)("",!0):((0,o.wg)(),(0,o.j4)(l,{key:0,"icon-with-text":"",class:"vs-social-share__share-btn",variant:"transparent",icon:"share",id:"vs-social-share-popover--".concat(n.id),ref:"shareButton"},{default:(0,o.w5)((function(){return[(0,o.Uk)((0,r.toDisplayString)(n.shareBtnText),1)]})),_:1},8,["id"])),!n.noJs&&u.renderPopover?((0,o.wg)(),(0,o.j4)(p,{key:1,"custom-class":"vs-social-share__popover",target:"vs-social-share-popover--".concat(n.id),click:!0,container:"body",placement:"left-end",onShown:c.onShown,onHidden:c.onHidden,onHide:c.onHide,ref:"popover"},{default:(0,o.w5)((function(){return[(0,o.Wm)(f,{thin:"",level:"3",tabindex:"0",ref:"shareHeader",class:"vs-social-share__header",onKeydown:t[0]||(t[0]=(0,s.withKeys)((function(e){return c.tabBackFromHidden(e)}),["tab"]))},{default:(0,o.w5)((function(){return[(0,o.Uk)((0,r.toDisplayString)(n.sharePopoverTitle),1)]})),_:1},512),(0,o.Wm)(d,{ref:"popoverShareRow"},{default:(0,o.w5)((function(){return[(0,o.WI)(e.$slots,"default",{onCopyLink:c.onCopyLink})]})),_:3},512),(0,o.Wm)(l,{"icon-only":"",class:"vs-social-share__close-btn",icon:"close",size:"lg",variant:"transparent",ref:"closeButton",onClick:c.onClose,onKeydown:t[1]||(t[1]=(0,s.withKeys)((function(e){return c.tabFromClose(e)}),["tab"]))},{default:(0,o.w5)((function(){return[(0,o._)("span",i,(0,r.toDisplayString)(n.closeAltText),1)]})),_:1},8,["onClick"])]})),_:3},8,["target","onShown","onHidden","onHide"])):(0,o.kq)("",!0),n.noJs?((0,o.wg)(),(0,o.j4)(y,{key:2,class:"vs-social-share--module-list"},{default:(0,o.w5)((function(){return[(0,o.Wm)(v,null,{default:(0,o.w5)((function(){return[(0,o.Wm)(d,null,{default:(0,o.w5)((function(){return[(0,o.Wm)(h,{cols:"12"},{default:(0,o.w5)((function(){return[(0,o.Wm)(f,{thin:"",level:"2","override-style-level":"3",class:"mb-9 mt-0"},{default:(0,o.w5)((function(){return[(0,o.Uk)((0,r.toDisplayString)(n.sharePopoverTitle),1)]})),_:1})]})),_:1})]})),_:1}),(0,o.Wm)(d,{class:"justify-content-center"},{default:(0,o.w5)((function(){return[(0,o.WI)(e.$slots,"default")]})),_:3})]})),_:3})]})),_:3})):(0,o.kq)("",!0)],2)}},33340:function(e,t,n){"use strict";var o=n(93379),r=n.n(o),s=n(7795),i=n.n(s),a=n(90569),u=n.n(a),c=n(3565),l=n.n(c),f=n(19216),d=n.n(f),p=n(44589),h=n.n(p),v=n(38574),y=n.n(v),m={};m.styleTagTransform=h(),m.setAttributes=l(),m.insert=u().bind(null,"head"),m.domAPI=i(),m.insertStyleElement=d(),r()(y(),m),y()&&y().locals&&y().locals},64381:function(e,t,n){"use strict";n.r(t);var o=n(93067),r=n(48033);n(44537);const s=(0,n(83744).Z)(r.Z,[["render",o.s]]);t.default=s},48033:function(e,t,n){"use strict";n.d(t,{Z:function(){return o.Z}});var o=n(89588)},93067:function(e,t,n){"use strict";n.d(t,{s:function(){return o.s}});var o=n(70729)},44537:function(e,t,n){"use strict";n(33340)}},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7370,5730,976,3918,7581,4186,1321,1779,3366,4142,1861],(function(){return 64381,e(e.s=64381)})),e.O()}])}));