deku-soundplayer
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -47,6 +47,10 @@ /** @jsx dom */ | ||
// Player Button Icons | ||
var ButtonIconSVG = { | ||
// |> Play | ||
var PlayIconSVG = { | ||
propTypes: iconPropTypes, | ||
shouldUpdate: function shouldUpdate() { | ||
return false; | ||
}, | ||
render: function render(component) { | ||
@@ -58,27 +62,7 @@ var props = component.props; | ||
{ | ||
'class': 'sb-soundplayer-button-icon', | ||
'class': 'sb-soundplayer-cover-logo', | ||
xmlns: 'http://www.w3.org/2000/svg', | ||
viewBox: '0 0 32 32', | ||
fill: 'currentColor', | ||
onClick: props.onClick | ||
}, | ||
props.children | ||
); | ||
} | ||
}; | ||
// |> Play | ||
var PlayIconSVG = { | ||
propTypes: iconPropTypes, | ||
shouldUpdate: function shouldUpdate() { | ||
return false; | ||
}, | ||
render: function render(component) { | ||
var props = component.props; | ||
return (0, _magicVirtualElement2['default'])( | ||
ButtonIconSVG, | ||
props, | ||
(0, _magicVirtualElement2['default'])('path', { d: 'M0 0 L32 16 L0 32 z' }) | ||
@@ -101,4 +85,10 @@ ); | ||
return (0, _magicVirtualElement2['default'])( | ||
ButtonIconSVG, | ||
props, | ||
'svg', | ||
{ | ||
'class': 'sb-soundplayer-button-icon', | ||
xmlns: 'http://www.w3.org/2000/svg', | ||
viewBox: '0 0 32 32', | ||
fill: 'currentColor', | ||
onClick: props.onClick | ||
}, | ||
(0, _magicVirtualElement2['default'])('path', { d: 'M0 0 H12 V32 H0 z M20 0 H32 V32 H20 z' }) | ||
@@ -126,4 +116,9 @@ ); | ||
return (0, _magicVirtualElement2['default'])( | ||
ButtonIconSVG, | ||
props, | ||
'svg', | ||
{ | ||
'class': 'sb-soundplayer-cover-logo', | ||
xmlns: 'http://www.w3.org/2000/svg', | ||
fill: 'currentColor', | ||
onClick: props.onClick | ||
}, | ||
(0, _magicVirtualElement2['default'])('path', { d: 'M4 4 L24 14 V4 H28 V28 H24 V18 L4 28 z ' }) | ||
@@ -151,4 +146,9 @@ ); | ||
return (0, _magicVirtualElement2['default'])( | ||
ButtonIconSVG, | ||
props, | ||
'svg', | ||
{ | ||
'class': 'sb-soundplayer-cover-logo', | ||
xmlns: 'http://www.w3.org/2000/svg', | ||
fill: 'currentColor', | ||
onClick: props.onClick | ||
}, | ||
(0, _magicVirtualElement2['default'])('path', { d: 'M4 4 H8 V14 L28 4 V28 L8 18 V28 H4 z ' }) | ||
@@ -155,0 +155,0 @@ ); |
{ | ||
"name": "deku-soundplayer", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Create custom SoundCloud players with Deku", | ||
@@ -30,10 +30,8 @@ "main": "index.js", | ||
"dependencies": { | ||
"deku": "1.0.0", | ||
"classnames": "^2.1.2", | ||
"magic-virtual-element": "1.0.x", | ||
"object-assign": "^4.0.1", | ||
"soundcloud-audio": "^0.1.6" | ||
}, | ||
"peerDependencies": { | ||
"deku": "1.0.0", | ||
"magic-virtual-element": "1.0.0" | ||
}, | ||
"devDependencies": { | ||
@@ -40,0 +38,0 @@ "babel": "^5.5.8", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24049
532
+ Addeddeku@1.0.0
+ Addedmagic-virtual-element@1.0.x
+ Addedcomponent-type@1.1.0(transitive)
+ Addedmagic-virtual-element@1.0.6(transitive)
+ Addedsliced@1.0.1(transitive)
- Removedmagic-virtual-element@1.0.0(transitive)