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

decap-cms-widget-boolean

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 3.1.1 to 3.1.2

4

CHANGELOG.md

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

## [3.1.2](https://github.com/decaporg/decap-cms/compare/decap-cms-widget-boolean@3.1.1...decap-cms-widget-boolean@3.1.2) (2024-08-13)
**Note:** Version bump only for package decap-cms-widget-boolean
## [3.1.1](https://github.com/decaporg/decap-cms/compare/decap-cms-widget-boolean@3.1.0-beta.1...decap-cms-widget-boolean@3.1.1) (2024-03-21)

@@ -8,0 +12,0 @@

2

dist/decap-cms-widget-boolean.js

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

!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("prop-types"),require("react"),require("react-immutable-proptypes"),require("@emotion/react"),require("decap-cms-ui-default")):"function"==typeof define&&define.amd?define("DecapCmsWidgetBoolean",["prop-types","react","react-immutable-proptypes","@emotion/react","decap-cms-ui-default"],r):"object"==typeof exports?exports.DecapCmsWidgetBoolean=r(require("prop-types"),require("react"),require("react-immutable-proptypes"),require("@emotion/react"),require("decap-cms-ui-default")):e.DecapCmsWidgetBoolean=r(e.DecapCmsDefaultExports.PropTypes,e.React,e.DecapCmsDefaultExports.ImmutablePropTypes,e.DecapCmsDefaultExports.EmotionCore,e.DecapCmsUiDefault)}(window,((e,r,t,o,n)=>(()=>{"use strict";var i={244:e=>{e.exports=r},756:e=>{e.exports=o},841:e=>{e.exports=t},673:r=>{r.exports=e},327:e=>{e.exports=n}},a={};function c(e){var r=a[e];if(void 0!==r)return r.exports;var t=a[e]={exports:{}};return i[e](t,t.exports,c),t.exports}c.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return c.d(r,{a:r}),r},c.d=(e,r)=>{for(var t in r)c.o(r,t)&&!c.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},c.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r);var p={};return(()=>{c.d(p,{DecapCmsWidgetBoolean:()=>y});var e=c(673),r=c.n(e),t=c(244),o=c.n(t),n=c(841),i=c.n(n),a=c(756),s=c(327);const u=["isActive"];function l(){return l=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},l.apply(this,arguments)}function f(e){let{isActive:r}=e,t=function(e,r){if(null==e)return{};var t,o,n=function(e,r){if(null==e)return{};var t,o,n={},i=Object.keys(e);for(o=0;o<i.length;o++)t=i[o],r.indexOf(t)>=0||(n[t]=e[t]);return n}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)t=i[o],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}(e,u);return(0,a.jsx)(s.ToggleBackground,l({css:(0,a.css)("background-color:",r?s.colors.active:s.colors.textFieldBorder,";;label:BooleanBackground;")},t))}class d extends o().Component{render(){const{value:e,forID:r,onChange:t,classNameWrapper:o,setActiveStyle:n,setInactiveStyle:i}=this.props;return(0,a.jsx)("div",{className:o},(0,a.jsx)(s.Toggle,{id:r,active:e,onChange:t,onFocus:n,onBlur:i,Background:f}))}}function m(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}d.propTypes={field:i().map.isRequired,onChange:r().func.isRequired,classNameWrapper:r().string.isRequired,setActiveStyle:r().func.isRequired,setInactiveStyle:r().func.isRequired,forID:r().string,value:r().bool},d.defaultProps={value:!1};const y={Widget:function(e={}){return function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?m(Object(t),!0).forEach((function(r){var o,n,i;o=e,n=r,i=t[r],(n=function(e){var r=function(e,r){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof r?r:String(r)}(n))in o?Object.defineProperty(o,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[n]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}({name:"boolean",controlComponent:d},e)},controlComponent:d}})(),p.DecapCmsWidgetBoolean})()));
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("prop-types"),require("react"),require("react-immutable-proptypes"),require("@emotion/react"),require("decap-cms-ui-default")):"function"==typeof define&&define.amd?define("DecapCmsWidgetBoolean",["prop-types","react","react-immutable-proptypes","@emotion/react","decap-cms-ui-default"],r):"object"==typeof exports?exports.DecapCmsWidgetBoolean=r(require("prop-types"),require("react"),require("react-immutable-proptypes"),require("@emotion/react"),require("decap-cms-ui-default")):e.DecapCmsWidgetBoolean=r(e.DecapCmsDefaultExports.PropTypes,e.React,e.DecapCmsDefaultExports.ImmutablePropTypes,e.DecapCmsDefaultExports.EmotionCore,e.DecapCmsUiDefault)}(window,((e,r,t,o,n)=>(()=>{"use strict";var i={244:e=>{e.exports=r},756:e=>{e.exports=o},841:e=>{e.exports=t},673:r=>{r.exports=e},327:e=>{e.exports=n}},a={};function c(e){var r=a[e];if(void 0!==r)return r.exports;var t=a[e]={exports:{}};return i[e](t,t.exports,c),t.exports}c.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return c.d(r,{a:r}),r},c.d=(e,r)=>{for(var t in r)c.o(r,t)&&!c.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},c.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r);var p={};return(()=>{c.d(p,{DecapCmsWidgetBoolean:()=>y});var e=c(673),r=c.n(e),t=c(244),o=c.n(t),n=c(841),i=c.n(n),a=c(756),s=c(327);const u=["isActive"];function l(){return l=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},l.apply(this,arguments)}function f(e){let{isActive:r}=e,t=function(e,r){if(null==e)return{};var t,o,n=function(e,r){if(null==e)return{};var t,o,n={},i=Object.keys(e);for(o=0;o<i.length;o++)t=i[o],r.indexOf(t)>=0||(n[t]=e[t]);return n}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)t=i[o],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}(e,u);return(0,a.jsx)(s.ToggleBackground,l({css:(0,a.css)("background-color:",r?s.colors.active:s.colors.textFieldBorder,";;label:BooleanBackground;")},t))}class d extends o().Component{render(){const{value:e,forID:r,onChange:t,classNameWrapper:o,setActiveStyle:n,setInactiveStyle:i}=this.props;return(0,a.jsx)("div",{className:o},(0,a.jsx)(s.Toggle,{id:r,active:e,onChange:t,onFocus:n,onBlur:i,Background:f}))}}function m(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}d.propTypes={field:i().map.isRequired,onChange:r().func.isRequired,classNameWrapper:r().string.isRequired,setActiveStyle:r().func.isRequired,setInactiveStyle:r().func.isRequired,forID:r().string,value:r().bool},d.defaultProps={value:!1};const y={Widget:function(e={}){return function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?m(Object(t),!0).forEach((function(r){var o,n,i,a;o=e,n=r,i=t[r],(n="symbol"==typeof(a=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n))?a:String(a))in o?Object.defineProperty(o,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[n]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}({name:"boolean",controlComponent:d},e)},controlComponent:d}})(),p.DecapCmsWidgetBoolean})()));
//# sourceMappingURL=decap-cms-widget-boolean.js.map

@@ -12,4 +12,4 @@ "use strict";

function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
function Widget(opts = {}) {

@@ -16,0 +16,0 @@ return _objectSpread({

{
"name": "decap-cms-widget-boolean",
"description": "Widget for editing boolean values in Decap CMS.",
"version": "3.1.1",
"version": "3.1.2",
"homepage": "https://www.decapcms.org/docs/widgets/#boolean",

@@ -27,6 +27,6 @@ "repository": "https://github.com/decaporg/decap-cms/tree/main/packages/decap-cms-widget-boolean",

"prop-types": "^15.7.2",
"react": "^18.2.0",
"react": "17.x || 18.x",
"react-immutable-proptypes": "^2.1.0"
},
"gitHead": "875f4cafa9a82283d28fc5d7871a34550b2a3870"
"gitHead": "a19a946f6fe7915320a9723f2cb59287561be537"
}

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