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

netlify-cms-widget-boolean

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

netlify-cms-widget-boolean - npm Package Compare versions

Comparing version 2.2.2 to 2.2.3

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [2.2.3](https://github.com/netlify/netlify-cms/tree/master/packages/netlify-cms-widget-boolean/compare/netlify-cms-widget-boolean@2.2.2...netlify-cms-widget-boolean@2.2.3) (2019-07-24)
**Note:** Version bump only for package netlify-cms-widget-boolean
## [2.2.2](https://github.com/netlify/netlify-cms/tree/master/packages/netlify-cms-widget-boolean/compare/netlify-cms-widget-boolean@2.2.2-beta.0...netlify-cms-widget-boolean@2.2.2) (2019-04-10)

@@ -8,0 +16,0 @@

19

dist/esm/BooleanControl.js

@@ -27,3 +27,5 @@ "use strict";

const BooleanBackground = (_ref) => {
let isActive = _ref.isActive,
let {
isActive
} = _ref,
props = _objectWithoutProperties(_ref, ["isActive"]);

@@ -40,9 +42,10 @@

render() {
const _this$props = this.props,
value = _this$props.value,
forID = _this$props.forID,
onChange = _this$props.onChange,
classNameWrapper = _this$props.classNameWrapper,
setActiveStyle = _this$props.setActiveStyle,
setInactiveStyle = _this$props.setInactiveStyle;
const {
value,
forID,
onChange,
classNameWrapper,
setActiveStyle,
setInactiveStyle
} = this.props;
return (0, _core.jsx)("div", {

@@ -49,0 +52,0 @@ className: classNameWrapper

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("prop-types"),require("@emotion/core"),require("netlify-cms-ui-default"),require("react"),require("react-immutable-proptypes")):"function"==typeof define&&define.amd?define("NetlifyCmsWidgetBoolean",["prop-types","@emotion/core","netlify-cms-ui-default","react","react-immutable-proptypes"],t):"object"==typeof exports?exports.NetlifyCmsWidgetBoolean=t(require("prop-types"),require("@emotion/core"),require("netlify-cms-ui-default"),require("react"),require("react-immutable-proptypes")):e.NetlifyCmsWidgetBoolean=t(e.NetlifyCmsDefaultExports.PropTypes,e.NetlifyCmsDefaultExports.EmotionCore,e.NetlifyCmsUiDefault,e.React,e.NetlifyCmsDefaultExports.ImmutablePropTypes)}(window,function(e,t,r,n,o){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=5)}([function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t){e.exports=r},function(e,t){e.exports=n},function(e,t){e.exports=o},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n),i=r(3),u=r.n(i),l=r(4),c=r.n(l),a=r(1),s=r(2);function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function p(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const y=e=>{let t=e.isActive,r=p(e,["isActive"]);return Object(a.jsx)(s.ToggleBackground,f({css:Object(a.css)("background-color:",t?s.colors.active:s.colors.textFieldBorder,";label:BooleanBackground;")},r))};class d extends u.a.Component{render(){const e=this.props,t=e.value,r=e.forID,n=e.onChange,o=e.classNameWrapper,i=e.setActiveStyle,u=e.setInactiveStyle;return Object(a.jsx)("div",{className:o},Object(a.jsx)(s.Toggle,{id:r,active:t,onChange:n,onFocus:i,onBlur:u,Background:y}))}}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}d.propTypes={field:c.a.map.isRequired,onChange:o.a.func.isRequired,classNameWrapper:o.a.string.isRequired,setActiveStyle:o.a.func.isRequired,setInactiveStyle:o.a.func.isRequired,forID:o.a.string,value:o.a.bool},d.defaultProps={value:!1},r.d(t,"NetlifyCmsWidgetBoolean",function(){return m});const m={Widget:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){b(e,t,r[t])})}return e}({name:"boolean",controlComponent:d},e)},controlComponent:d};t.default=m}]).NetlifyCmsWidgetBoolean});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("prop-types"),require("@emotion/core"),require("netlify-cms-ui-default"),require("react"),require("react-immutable-proptypes")):"function"==typeof define&&define.amd?define("NetlifyCmsWidgetBoolean",["prop-types","@emotion/core","netlify-cms-ui-default","react","react-immutable-proptypes"],t):"object"==typeof exports?exports.NetlifyCmsWidgetBoolean=t(require("prop-types"),require("@emotion/core"),require("netlify-cms-ui-default"),require("react"),require("react-immutable-proptypes")):e.NetlifyCmsWidgetBoolean=t(e.NetlifyCmsDefaultExports.PropTypes,e.NetlifyCmsDefaultExports.EmotionCore,e.NetlifyCmsUiDefault,e.React,e.NetlifyCmsDefaultExports.ImmutablePropTypes)}(window,function(e,t,r,n,o){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=5)}([function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t){e.exports=r},function(e,t){e.exports=n},function(e,t){e.exports=o},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n),i=r(3),u=r.n(i),l=r(4),c=r.n(l),a=r(1),s=r(2);function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function p(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const y=e=>{let{isActive:t}=e,r=p(e,["isActive"]);return Object(a.jsx)(s.ToggleBackground,f({css:Object(a.css)("background-color:",t?s.colors.active:s.colors.textFieldBorder,";label:BooleanBackground;")},r))};class d extends u.a.Component{render(){const{value:e,forID:t,onChange:r,classNameWrapper:n,setActiveStyle:o,setInactiveStyle:i}=this.props;return Object(a.jsx)("div",{className:n},Object(a.jsx)(s.Toggle,{id:t,active:e,onChange:r,onFocus:o,onBlur:i,Background:y}))}}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}d.propTypes={field:c.a.map.isRequired,onChange:o.a.func.isRequired,classNameWrapper:o.a.string.isRequired,setActiveStyle:o.a.func.isRequired,setInactiveStyle:o.a.func.isRequired,forID:o.a.string,value:o.a.bool},d.defaultProps={value:!1},r.d(t,"NetlifyCmsWidgetBoolean",function(){return m});const m={Widget:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){b(e,t,r[t])})}return e}({name:"boolean",controlComponent:d},e)},controlComponent:d};t.default=m}]).NetlifyCmsWidgetBoolean});
//# sourceMappingURL=netlify-cms-widget-boolean.js.map
{
"name": "netlify-cms-widget-boolean",
"description": "Widget for editing boolean values in Netlify CMS.",
"version": "2.2.2",
"version": "2.2.3",
"homepage": "https://www.netlifycms.org/docs/widgets/#boolean",

@@ -21,3 +21,3 @@ "repository": "https://github.com/netlify/netlify-cms/tree/master/packages/netlify-cms-widget-boolean",

"build": "cross-env NODE_ENV=production webpack",
"build:esm": "cross-env NODE_ENV=esm babel src --out-dir dist/esm --ignore **/__tests__ --root-mode upward"
"build:esm": "cross-env NODE_ENV=esm babel src --out-dir dist/esm --ignore \"**/__tests__\" --root-mode upward"
},

@@ -32,3 +32,3 @@ "peerDependencies": {

},
"gitHead": "8867c5acb681908c4752d4d3c370640e566cd94a"
"gitHead": "41559256d0f5612bc38dea4ebcd518d97ce25e05"
}

Sorry, the diff of this file is not supported yet

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