Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

web-social-share

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web-social-share - npm Package Compare versions

Comparing version 2.1.2 to 2.1.3

dist/esm/es2017/build/hsz1owss.entry.js

7

CHANGELOG.md

@@ -0,1 +1,8 @@

<a name="2.1.3"></a>
# [2.1.3](https://github.com/fluster/web-social-share/compare/v2.1.2...v2.1.3) (2018-08-23)
### Fix
* fix action sheet not closed on middle click ([#5]()https://github.com/fluster/web-social-share/issues/5)
<a name="2.1.2"></a>

@@ -2,0 +9,0 @@ # [2.1.2](https://github.com/fluster/web-social-share/compare/v2.1.1...v2.1.2) (2018-08-23)

30

dist/collection/components/web-social-share-target/web-social-share-target.js

@@ -11,23 +11,29 @@ import { WebSocialShareFacebook } from '../../utils/web-social-share/web-social-share-facebook';

}
handleFacebookShare() {
handleFacebookShare($event) {
$event.stopPropagation();
WebSocialShareFacebook.share(this.share.facebook);
this.selected.emit();
}
handleTwitterShare() {
handleTwitterShare($event) {
$event.stopPropagation();
WebSocialShareTwitter.share(this.share.twitter);
this.selected.emit();
}
handleEmailShare() {
handleEmailShare($event) {
$event.stopPropagation();
WebSocialShareEmail.share(this.share.email);
this.selected.emit();
}
handleLinkedinShare() {
handleLinkedinShare($event) {
$event.stopPropagation();
WebSocialShareLinkedin.share(this.share.linkedin);
this.selected.emit();
}
handlePinterestShare() {
handlePinterestShare($event) {
$event.stopPropagation();
WebSocialSharePinterest.share(this.share.pinterest);
this.selected.emit();
}
handleRedditShare() {
handleRedditShare($event) {
$event.stopPropagation();
WebSocialShareReddit.share(this.share.reddit);

@@ -38,3 +44,3 @@ this.selected.emit();

if (this.share.facebook) {
return (h("button", { onClick: () => this.handleFacebookShare(), class: 'web-social-share-button web-social-share-button-facebook' },
return (h("button", { onClick: ($event) => this.handleFacebookShare($event), class: 'web-social-share-button web-social-share-button-facebook' },
this.renderIcon(this.share.facebook),

@@ -44,3 +50,3 @@ this.renderName('Facebook')));

else if (this.share.twitter) {
return (h("button", { onClick: () => this.handleTwitterShare(), class: 'web-social-share-button web-social-share-button-twitter' },
return (h("button", { onClick: ($event) => this.handleTwitterShare($event), class: 'web-social-share-button web-social-share-button-twitter' },
this.renderIcon(this.share.twitter),

@@ -50,3 +56,3 @@ this.renderName('Twitter')));

else if (this.share.email) {
return (h("button", { onClick: () => this.handleEmailShare(), class: 'web-social-share-button web-social-share-button-email' },
return (h("button", { onClick: ($event) => this.handleEmailShare($event), class: 'web-social-share-button web-social-share-button-email' },
this.renderIcon(this.share.email),

@@ -56,3 +62,3 @@ this.renderName('Email')));

else if (this.share.linkedin) {
return (h("button", { onClick: () => this.handleLinkedinShare(), class: 'web-social-share-button web-social-share-button-linkedin' },
return (h("button", { onClick: ($event) => this.handleLinkedinShare($event), class: 'web-social-share-button web-social-share-button-linkedin' },
this.renderIcon(this.share.linkedin),

@@ -62,3 +68,3 @@ this.renderName('Linkedin')));

else if (this.share.pinterest) {
return (h("button", { onClick: () => this.handlePinterestShare(), class: 'web-social-share-button web-social-share-button-pinterest' },
return (h("button", { onClick: ($event) => this.handlePinterestShare($event), class: 'web-social-share-button web-social-share-button-pinterest' },
this.renderIcon(this.share.pinterest),

@@ -68,3 +74,3 @@ this.renderName('Pinterest')));

else if (this.share.reddit) {
return (h("button", { onClick: () => this.handleRedditShare(), class: 'web-social-share-button web-social-share-button-reddit' },
return (h("button", { onClick: ($event) => this.handleRedditShare($event), class: 'web-social-share-button web-social-share-button-reddit' },
this.renderIcon(this.share.reddit),

@@ -71,0 +77,0 @@ this.renderName('Reddit')));

2

dist/collection/components/web-social-share/web-social-share.js

@@ -20,3 +20,3 @@ export class WebSocialShare {

h("div", { class: 'web-social-share-backdrop', onClick: () => this.hide() }),
h("div", { class: 'web-social-share-action-sheet' },
h("div", { class: 'web-social-share-action-sheet', onClick: () => this.hide() },
h("div", { class: 'web-social-share-action-sheet-container' },

@@ -23,0 +23,0 @@ h("div", { class: 'web-social-share-action-sheet-group' }, this.renderTargets())))));

// websocialshare: Host Data, ES Module/es2017 Target
export const WebSocialShare = ["web-social-share","fs19vdlj",1,[["el",64],["share",1],["show",2,0,1,4]],0,[["selected","hide"]]];
export const WebSocialShareTarget = ["web-social-share-target","fs19vdlj",1,[["displayNames",1,0,"display-names",4],["share",1]]];
export const WebSocialShare = ["web-social-share","hsz1owss",1,[["el",64],["share",1],["show",2,0,1,4]],0,[["selected","hide"]]];
export const WebSocialShareTarget = ["web-social-share-target","hsz1owss",1,[["displayNames",1,0,"display-names",4],["share",1]]];
// websocialshare: Host Data, ES Module/es5 Target
export var WebSocialShare = ["web-social-share","fs19vdlj",1,[["el",64],["share",1],["show",2,0,1,4]],0,[["selected","hide"]]];
export var WebSocialShareTarget = ["web-social-share-target","fs19vdlj",1,[["displayNames",1,0,"display-names",4],["share",1]]];
export var WebSocialShare = ["web-social-share","hsz1owss",1,[["el",64],["share",1],["show",2,0,1,4]],0,[["selected","hide"]]];
export var WebSocialShareTarget = ["web-social-share-target","hsz1owss",1,[["displayNames",1,0,"display-names",4],["share",1]]];
/*!
* Built with http://stenciljs.com
* 2018-09-23T14:39:21
* 2018-09-23T18:17:58
*/
!function(e,t,r,s,n,i,o,a,c,l,u,h,d,p){for(u=e.websocialshare=e.websocialshare||{},(h=t.createElement("style")).innerHTML=c+"{visibility:hidden}.hydrated{visibility:inherit}",h.setAttribute("data-styles",""),d=t.head.querySelector("meta[charset]"),t.head.insertBefore(h,d?d.nextSibling:t.head.firstChild),function(e,t,r){(e["s-apps"]=e["s-apps"]||[]).push("websocialshare"),r.componentOnReady||(r.componentOnReady=function(){var t=this;function r(r){if(t.nodeName.indexOf("-")>0){for(var s=e["s-apps"],n=0,i=0;i<s.length;i++)if(e[s[i]].componentOnReady){if(e[s[i]].componentOnReady(t,r))return;n++}if(n<s.length)return void(e["s-cr"]=e["s-cr"]||[]).push([t,r])}r(null)}return e.Promise?new e.Promise(r):{then:r}})}(e,0,l),n=n||u.resourcesUrl,h=(d=t.querySelectorAll("script")).length-1;h>=0&&!(p=d[h]).src&&!p.hasAttribute("data-resources-url");h--);d=p.getAttribute("data-resources-url"),!n&&d&&(n=d),!n&&p.src&&(n=(d=p.src.split("/").slice(0,-1)).join("/")+(d.length?"/":"")+"websocialshare/"),h=t.createElement("script"),function(e,t,r,s){return!(t.search.indexOf("core=esm")>0)&&(!(!(t.search.indexOf("core=es5")>0||"file:"===t.protocol)&&e.customElements&&e.customElements.define&&e.fetch&&e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")&&"noModule"in r)||function(e){try{return new Function('import("")'),!1}catch(e){}return!0}())}(e,e.location,h)?h.src=n+"websocialshare.w41wvqrx.js":(h.src=n+"websocialshare.b4durohe.js",h.setAttribute("type","module"),h.setAttribute("crossorigin",!0)),h.setAttribute("data-resources-url",n),h.setAttribute("data-namespace","websocialshare"),t.head.appendChild(h)}(window,document,0,0,0,0,0,0,"web-social-share,web-social-share-target",HTMLElement.prototype);
!function(e,t,r,s,i,n,o,a,c,l,u,h,d,p){for(u=e.websocialshare=e.websocialshare||{},(h=t.createElement("style")).innerHTML=c+"{visibility:hidden}.hydrated{visibility:inherit}",h.setAttribute("data-styles",""),d=t.head.querySelector("meta[charset]"),t.head.insertBefore(h,d?d.nextSibling:t.head.firstChild),function(e,t,r){(e["s-apps"]=e["s-apps"]||[]).push("websocialshare"),r.componentOnReady||(r.componentOnReady=function(){var t=this;function r(r){if(t.nodeName.indexOf("-")>0){for(var s=e["s-apps"],i=0,n=0;n<s.length;n++)if(e[s[n]].componentOnReady){if(e[s[n]].componentOnReady(t,r))return;i++}if(i<s.length)return void(e["s-cr"]=e["s-cr"]||[]).push([t,r])}r(null)}return e.Promise?new e.Promise(r):{then:r}})}(e,0,l),i=i||u.resourcesUrl,h=(d=t.querySelectorAll("script")).length-1;h>=0&&!(p=d[h]).src&&!p.hasAttribute("data-resources-url");h--);d=p.getAttribute("data-resources-url"),!i&&d&&(i=d),!i&&p.src&&(i=(d=p.src.split("/").slice(0,-1)).join("/")+(d.length?"/":"")+"websocialshare/"),h=t.createElement("script"),function(e,t,r,s){return!(t.search.indexOf("core=esm")>0)&&(!(!(t.search.indexOf("core=es5")>0||"file:"===t.protocol)&&e.customElements&&e.customElements.define&&e.fetch&&e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")&&"noModule"in r)||function(e){try{return new Function('import("")'),!1}catch(e){}return!0}())}(e,e.location,h)?h.src=i+"websocialshare.dtjvr5i7.js":(h.src=i+"websocialshare.xr1xy6jf.js",h.setAttribute("type","module"),h.setAttribute("crossorigin",!0)),h.setAttribute("data-resources-url",i),h.setAttribute("data-namespace","websocialshare"),t.head.appendChild(h)}(window,document,0,0,0,0,0,0,"web-social-share,web-social-share-target",HTMLElement.prototype);
{
"name": "web-social-share",
"version": "2.1.2",
"version": "2.1.3",
"description": "A Web Component to share urls and content on social networks",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc