New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

colonel-kurtz

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colonel-kurtz - npm Package Compare versions

Comparing version 2.10.0 to 2.11.0

1

addons/image/index.jsx

@@ -26,2 +26,3 @@ /**

<Field label="Image Source" type="url" value={ src } name="image_src" onChange={ this._onSrcChange }/>
{ this.props.children }
<Frame open={ src }>

@@ -28,0 +29,0 @@ <Graphic src={ src } alt="" />

@@ -34,2 +34,3 @@ /**

<Field label="YouTube Video ID" value={ video_id } name="youtube_video_id" onChange={ this._onChange } autofocus/>
{ this.props.children }
<Frame open={ video_id }>

@@ -36,0 +37,0 @@ <Graphic element="iframe" src={ this.getSrc(video_id) } />

2

build/addons/image.js

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

module.exports=function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={exports:{},id:r,loaded:!1};return e[r].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}};t.__esModule=!0;var a=n(5),o=r(a),u=n(7),l=r(u),i=n(6),s=r(i),c=n(1),f=r(c),d=f["default"].createClass({displayName:"Image",getDefaultProps:function(){return{content:{src:""}}},render:function(){var e=this.props.content.src;return f["default"].createElement("div",{className:"col-img"},f["default"].createElement(o["default"],{label:"Image Source",type:"url",value:e,name:"image_src",onChange:this._onSrcChange}),f["default"].createElement(s["default"],{open:e},f["default"].createElement(l["default"],{src:e,alt:""})))},_onSrcChange:function(e){this.props.onChange({src:e.currentTarget.value})}});t["default"]=d,e.exports=t["default"]},function(e,t,n){e.exports=require("react")},function(e,t,n){e.exports=require("classnames")},,,function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}},a=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.__esModule=!0;var u=n(1),l=r(u);t["default"]=l["default"].createClass({displayName:"field",getDefaultProps:function(){return{type:"text"}},render:function(){var e=this.props,t=e.label,n=e.name,r=e.type,u=a(e,["label","name","type"]);return l["default"].createElement("div",{className:"col-field"},l["default"].createElement("label",{className:"col-field-label",htmlFor:n||this.props.id},t),l["default"].createElement("input",o({className:"col-field-input",type:r},u,{name:n||this.props.id})))}}),e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}},a=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.__esModule=!0;var u=n(1),l=r(u),i=n(2),s=r(i);t["default"]=l["default"].createClass({displayName:"frame",getDefaultProps:function(){return{element:"figure"}},render:function(){var e=this.props,t=e.element,n=e.children,r=e.open,u=a(e,["element","children","open"]),i=s["default"]("col-frame",{"col-frame-open":r});return l["default"].createElement(t,o({className:i},u),n)}}),e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}},a=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n};t.__esModule=!0;var o=n(1),u=r(o);t["default"]=u["default"].createClass({displayName:"graphic",getDefaultProps:function(){return{className:"col-graphic",element:"img",src:null}},render:function(){var e=this.props,t=e.element,n=a(e,["element"]);return u["default"].createElement(t,n)}}),e.exports=t["default"]}]);
module.exports=function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={exports:{},id:r,loaded:!1};return e[r].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}};t.__esModule=!0;var a=n(5),o=r(a),u=n(7),l=r(u),i=n(6),s=r(i),c=n(1),f=r(c),d=f["default"].createClass({displayName:"Image",getDefaultProps:function(){return{content:{src:""}}},render:function(){var e=this.props.content.src;return f["default"].createElement("div",{className:"col-img"},f["default"].createElement(o["default"],{label:"Image Source",type:"url",value:e,name:"image_src",onChange:this._onSrcChange}),this.props.children,f["default"].createElement(s["default"],{open:e},f["default"].createElement(l["default"],{src:e,alt:""})))},_onSrcChange:function(e){this.props.onChange({src:e.currentTarget.value})}});t["default"]=d,e.exports=t["default"]},function(e,t,n){e.exports=require("react")},function(e,t,n){e.exports=require("classnames")},,,function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}},a=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.__esModule=!0;var u=n(1),l=r(u);t["default"]=l["default"].createClass({displayName:"field",getDefaultProps:function(){return{type:"text"}},render:function(){var e=this.props,t=e.label,n=e.name,r=e.type,u=a(e,["label","name","type"]);return l["default"].createElement("div",{className:"col-field"},l["default"].createElement("label",{className:"col-field-label",htmlFor:n||this.props.id},t),l["default"].createElement("input",o({className:"col-field-input",type:r},u,{name:n||this.props.id})))}}),e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}},a=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.__esModule=!0;var u=n(1),l=r(u),i=n(2),s=r(i);t["default"]=l["default"].createClass({displayName:"frame",getDefaultProps:function(){return{element:"figure"}},render:function(){var e=this.props,t=e.element,n=e.children,r=e.open,u=a(e,["element","children","open"]),i=s["default"]("col-frame",{"col-frame-open":r});return l["default"].createElement(t,o({className:i},u),n)}}),e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}},a=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n};t.__esModule=!0;var o=n(1),u=r(o);t["default"]=u["default"].createClass({displayName:"graphic",getDefaultProps:function(){return{className:"col-graphic",element:"img",src:null}},render:function(){var e=this.props,t=e.element,n=a(e,["element"]);return u["default"].createElement(t,n)}}),e.exports=t["default"]}]);
//# sourceMappingURL=image.js.map

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

module.exports=function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={exports:{},id:r,loaded:!1};return e[r].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}};t.__esModule=!0;var a=n(5),o=r(a),u=n(6),i=r(u),l=n(7),s=r(l),c=n(1),f=r(c);t["default"]=f["default"].createClass({displayName:"index",getDefaultProps:function(){return{baseUrl:"https://www.youtube.com/embed/",content:{video_id:""}}},getSrc:function(e){var t=this.props.baseUrl;return e?t+e:null},render:function(){var e=this.props.content.video_id;return f["default"].createElement("div",{className:"col-youtube"},f["default"].createElement(o["default"],{label:"YouTube Video ID",value:e,name:"youtube_video_id",onChange:this._onChange,autofocus:!0}),f["default"].createElement(i["default"],{open:e},f["default"].createElement(s["default"],{element:"iframe",src:this.getSrc(e)})))},_onChange:function(e){this.props.onChange({video_id:e.currentTarget.value})}}),e.exports=t["default"]},function(e,t,n){e.exports=require("react")},function(e,t,n){e.exports=require("classnames")},,,function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}},a=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.__esModule=!0;var u=n(1),i=r(u);t["default"]=i["default"].createClass({displayName:"field",getDefaultProps:function(){return{type:"text"}},render:function(){var e=this.props,t=e.label,n=e.name,r=e.type,u=a(e,["label","name","type"]);return i["default"].createElement("div",{className:"col-field"},i["default"].createElement("label",{className:"col-field-label",htmlFor:n||this.props.id},t),i["default"].createElement("input",o({className:"col-field-input",type:r},u,{name:n||this.props.id})))}}),e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}},a=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.__esModule=!0;var u=n(1),i=r(u),l=n(2),s=r(l);t["default"]=i["default"].createClass({displayName:"frame",getDefaultProps:function(){return{element:"figure"}},render:function(){var e=this.props,t=e.element,n=e.children,r=e.open,u=a(e,["element","children","open"]),l=s["default"]("col-frame",{"col-frame-open":r});return i["default"].createElement(t,o({className:l},u),n)}}),e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}},a=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n};t.__esModule=!0;var o=n(1),u=r(o);t["default"]=u["default"].createClass({displayName:"graphic",getDefaultProps:function(){return{className:"col-graphic",element:"img",src:null}},render:function(){var e=this.props,t=e.element,n=a(e,["element"]);return u["default"].createElement(t,n)}}),e.exports=t["default"]}]);
module.exports=function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={exports:{},id:r,loaded:!1};return e[r].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}};t.__esModule=!0;var a=n(5),o=r(a),u=n(6),i=r(u),l=n(7),s=r(l),c=n(1),f=r(c);t["default"]=f["default"].createClass({displayName:"index",getDefaultProps:function(){return{baseUrl:"https://www.youtube.com/embed/",content:{video_id:""}}},getSrc:function(e){var t=this.props.baseUrl;return e?t+e:null},render:function(){var e=this.props.content.video_id;return f["default"].createElement("div",{className:"col-youtube"},f["default"].createElement(o["default"],{label:"YouTube Video ID",value:e,name:"youtube_video_id",onChange:this._onChange,autofocus:!0}),this.props.children,f["default"].createElement(i["default"],{open:e},f["default"].createElement(s["default"],{element:"iframe",src:this.getSrc(e)})))},_onChange:function(e){this.props.onChange({video_id:e.currentTarget.value})}}),e.exports=t["default"]},function(e,t,n){e.exports=require("react")},function(e,t,n){e.exports=require("classnames")},,,function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}},a=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.__esModule=!0;var u=n(1),i=r(u);t["default"]=i["default"].createClass({displayName:"field",getDefaultProps:function(){return{type:"text"}},render:function(){var e=this.props,t=e.label,n=e.name,r=e.type,u=a(e,["label","name","type"]);return i["default"].createElement("div",{className:"col-field"},i["default"].createElement("label",{className:"col-field-label",htmlFor:n||this.props.id},t),i["default"].createElement("input",o({className:"col-field-input",type:r},u,{name:n||this.props.id})))}}),e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}},a=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.__esModule=!0;var u=n(1),i=r(u),l=n(2),s=r(l);t["default"]=i["default"].createClass({displayName:"frame",getDefaultProps:function(){return{element:"figure"}},render:function(){var e=this.props,t=e.element,n=e.children,r=e.open,u=a(e,["element","children","open"]),l=s["default"]("col-frame",{"col-frame-open":r});return i["default"].createElement(t,o({className:l},u),n)}}),e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}},a=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n};t.__esModule=!0;var o=n(1),u=r(o);t["default"]=u["default"].createClass({displayName:"graphic",getDefaultProps:function(){return{className:"col-graphic",element:"img",src:null}},render:function(){var e=this.props,t=e.element,n=a(e,["element"]);return u["default"].createElement(t,n)}}),e.exports=t["default"]}]);
//# sourceMappingURL=youtube.js.map
# Changelog
## 2.11.0
### Noticeable Changes
- Youtube and Image components can accept children. This is intended
to better support additional fields.
## 2.10.0

@@ -4,0 +11,0 @@

{
"name": "colonel-kurtz",
"version": "2.10.0",
"version": "2.11.0",
"description": "A block editor",

@@ -5,0 +5,0 @@ "main": "build/colonel-kurtz.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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