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.14.0 to 2.15.0

src/components/ActionButton.js

2

package.json
{
"name": "colonel-kurtz",
"version": "2.14.0",
"version": "2.15.0",
"description": "A block editor",

@@ -5,0 +5,0 @@ "main": "src/Colonel.js",

@@ -25,3 +25,3 @@ [![NPM](https://nodei.co/npm/colonel-kurtz.png?compact=true)](https://npmjs.org/package/colonel-kurtz)

![screen shot 2015-04-29 at 10 14 25](https://cloud.githubusercontent.com/assets/590904/7392875/a6dcd7d6-ee58-11e4-83a1-a0fa8206cb74.png)
![colonel](https://cloud.githubusercontent.com/assets/590904/7432031/4feeadb4-eff2-11e4-8017-150f1910354a.gif)

@@ -28,0 +28,0 @@ Comprehensive documentation can be found under the `./docs` directory

@@ -14,3 +14,2 @@ 'use strict';

className: 'col-btn',
hide: false,
tagName: 'button',

@@ -24,11 +23,10 @@ type: 'button'

var children = _props.children;
var hide = _props.hide;
var tagName = _props.tagName;
var attrs = _objectWithoutProperties(_props, ['children', 'hide', 'tagName']);
var attrs = _objectWithoutProperties(_props, ['children', 'tagName']);
return hide ? null : React.createElement(tagName, attrs, [React.createElement(Ink, { key: '__ink__' }), children]);
return React.createElement(tagName, attrs, [React.createElement(Ink, { key: '__ink__' }), children]);
}
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0J1dHRvbi5qc3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLElBQUksS0FBSyxHQUFHLE9BQU8sQ0FBQyxPQUFPLENBQUMsQ0FBQTtBQUM1QixJQUFJLEdBQUcsR0FBSyxPQUFPLENBQUMsV0FBV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NULENBQUMsQ0FBQTtHQUNIOztDQUVGLENBQUMsQ0FBQSIsImZpbGUiOiJzcmMvY29tcG9uZW50cy9CdXR0b24uanN4Iiwic291cmNlc0NvbnRlbnQiOlsibGV0IFJlYWN0ID0gcmVxdWlyZSgncmVhY3QnKVxubGV0IEluayAgID0gcmVxdWlyZSgncmVhY3QtaW5rJylcblxubW9kdWxlLmV4cG9ydHMgPSBSZWFjdC5jcmVhdGVDbGFzcyh7XG5cbiAgZ2V0RGVmYXVsdFByb3BzKCkge1xuICAgIHJldHVybiB7XG4gICAgICBjbGFzc05hbWUgOiAnY29sLWJ0bicsXG4gICAgICB0YWdOYW1lICAgOiAnYnV0dG9uJyxcbiAgICAgIHR5cGUgICAgICA6ICdidXR0b24nXG4gICAgfVxuICB9LFxuXG4gIHJlbmRlcigpIHtcbiAgICBsZXQgeyBjaGlsZHJlbiwgdGFnTmFtZSwgLi4uYXR0cnMgfSA9IHRoaXMucHJvcHNcblxuICAgIHJldHVybiBSZWFjdC5jcmVhdGVFbGVtZW50KHRhZ05hbWUsIGF0dHJzLCBbXG4gICAgICA8SW5rIGtleT1cIl9faW5rX19cIi8+LFxuICAgICAgY2hpbGRyZW5cbiAgICBdKVxuICB9XG5cbn0pXG4iXX0=
'use strict';
var ActionButton = require('./ActionButton');
var Actions = require('../actions/blocks');
var React = require('react');
var SwitchNav = require('./SwitchNav');
var SwitchToggle = require('./SwitchToggle');
var classNames = require('classnames');

@@ -25,15 +25,28 @@ var typesForBlock = require('../utils/typesForBlock');

getClassName: function getClassName() {
return classNames('col-switch', {
'col-switch-open': this.state.open || this.props.forceOpen
close: function close() {
var _this = this;
this.setState({ open: false }, function () {
_this.refs.toggle.focus();
});
},
getToggle: function getToggle(open) {
var parent = this.props.parent;
getToggle: function getToggle() {
if (this.state.open) {
return null;
}return React.createElement(ActionButton, { ref: 'toggle',
label: 'Open the block menu and create a block',
onClick: this._onToggle });
},
return !open ? React.createElement(SwitchToggle, { onClick: this._onToggle, secondary: parent }) : null;
getNav: function getNav(blockTypes) {
if (!this.state.open) {
return null;
}return React.createElement(SwitchNav, { ref: 'nav',
blockTypes: blockTypes,
onAdd: this._onAdd,
onExit: this.close });
},
getNav: function getNav(open, blockTypes) {
render: function render() {
var _props = this.props;

@@ -44,21 +57,19 @@ var app = _props.app;

return open ? React.createElement(SwitchNav, { app: app, blockTypes: blockTypes, parent: parent, position: position }) : null;
var types = typesForBlock(app.get('blockTypes'), parent);
return types.length ? React.createElement(
'div',
{ className: 'col-switch' },
this.getToggle(),
this.getNav(types)
) : null;
},
render: function render() {
_onAdd: function _onAdd(id) {
var _props2 = this.props;
var app = _props2.app;
var forceOpen = _props2.forceOpen;
var position = _props2.position;
var parent = _props2.parent;
var position = _props2.position;
var open = forceOpen || this.state.open;
var types = typesForBlock(app.get('blockTypes'), parent);
return types.length ? React.createElement(
'div',
{ className: this.getClassName() },
this.getToggle(open, types),
this.getNav(open, types)
) : null;
app.push(Actions.create, id, position, parent);
},

@@ -84,2 +95,2 @@

});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1N3aXRjaC5qc3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxJQUFJLE9BQU8sR0FBUyxPQUFPLENBQUMsbUJBQW1CLENBQUMsQ0FBQTtBQUNoRCxJQUFJLEtBQUssR0FBVyxPQUFPLENBQUMsT0FBTyxDQUFDLENBQUE7QUFDcEMsSUFBSSxTQUFTLEdBQU8sT0FBTyxDQUFDLGFBQWEsQ0FBQyxDQUFBO0FBQzFDLElBQUksWUFBWSxHQUFJLE9BQU8sQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFBO0FBQzdDLElBQUksVUFBVSxHQUFNLE9BQU8sQ0FBQyxZQUFZLENBQUMsQ0FBQTtBQUN6QyxJQUFJLGFBQWEsR0FBRyxPQUFPLENBQUMsd0JBQXdCLENBQUMsQ0FBQT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PyAoXG4gICAgICA8ZGl2IGNsYXNzTmFtZT1cImNvbC1zd2l0Y2hcIj5cbiAgICAgICAgeyB0aGlzLmdldFRvZ2dsZSgpIH1cbiAgICAgICAgeyB0aGlzLmdldE5hdih0eXBlcykgfVxuICAgICAgPC9kaXY+XG4gICAgKSA6IG51bGxcbiAgfSxcblxuICBfb25BZGQoaWQpIHtcbiAgICBsZXQgeyBhcHAsIHBvc2l0aW9uLCBwYXJlbnQgfSA9IHRoaXMucHJvcHNcbiAgICBhcHAucHVzaChBY3Rpb25zLmNyZWF0ZSwgaWQsIHBvc2l0aW9uLCBwYXJlbnQpXG4gIH0sXG5cbiAgX29uVG9nZ2xlKCkge1xuICAgIGxldCB7IGFwcCwgcG9zaXRpb24sIHBhcmVudCB9ID0gdGhpcy5wcm9wc1xuXG4gICAgbGV0IHR5cGVzID0gdHlwZXNGb3JCbG9jayhhcHAuZ2V0KCdibG9ja1R5cGVzJyksIHBhcmVudClcblxuICAgIC8vIElmIG9ubHkgb25lIHR5cGUgZXhpc3RzLCBpbnN0ZWFkIG9mIG9wZW5pbmcgdGhlIG5hdiwganVzdFxuICAgIC8vIGNyZWF0ZSB0aGF0IGVsZW1lbnRcbiAgICBpZiAodHlwZXMubGVuZ3RoID09PSAxKSB7XG4gICAgICBhcHAucHVzaChBY3Rpb25zLmNyZWF0ZSwgdHlwZXNbMF0uaWQsIHBvc2l0aW9uLCBwYXJlbnQpXG4gICAgfVxuXG4gICAgdGhpcy5zZXRTdGF0ZSh7IG9wZW46IHRydWUgfSlcbiAgfVxuXG59KVxuIl19
'use strict';
var Actions = require('../actions/blocks');
var Btn = require('./Button');

@@ -11,4 +10,5 @@ var React = require('react');

propTypes: {
app: React.PropTypes.object.isRequired,
blockTypes: React.PropTypes.array.isRequired
blockTypes: React.PropTypes.array.isRequired,
onExit: React.PropTypes.func.isRequired,
onAdd: React.PropTypes.func.isRequired
},

@@ -20,7 +20,6 @@

getButton: function getButton(_ref, i) {
var _this = this;
getButton: function getButton(_ref) {
var id = _ref.id;
var label = _ref.label;
var onAdd = this.props.onAdd;

@@ -30,3 +29,3 @@ return React.createElement(

{ key: id, className: 'col-switch-btn', onClick: function () {
return _this._onAdd(id);
return onAdd(id);
} },

@@ -40,3 +39,3 @@ label

'nav',
{ className: 'col-switch-nav', role: 'navigation' },
{ className: 'col-switch-nav', role: 'navigation', onKeyUp: this._onKeyUp },
this.props.blockTypes.map(this.getButton)

@@ -46,12 +45,9 @@ );

_onAdd: function _onAdd(id) {
var _props = this.props;
var app = _props.app;
var position = _props.position;
var parent = _props.parent;
app.push(Actions.create, id, position, parent);
_onKeyUp: function _onKeyUp(e) {
if (e.key === 'Escape') {
this.props.onExit();
}
}
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1N3aXRjaE5hdi5qc3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxJQUFJLE9BQU8sR0FBRyxPQUFPLENBQUMsbUJBQW1CLENBQUMsQ0FBQTtBQUMxQyxJQUFJLEdBQUcsR0FBTyxPQUFPLENBQUMsVUFBVSxDQUFDLENBQUE7QUFDakMsSUFBSSxLQUFLLEdBQUssT0FBTyxDQUFDLE9BQU8sQ0FBQyxDQUFBOztBQUU5QixNQUFNLENBQUMsT0FBTyxHQUFHLEtBQUssQ0FBQyxXQUFXLENBQUM7OztBQUVqQyxXQUFTLEVBQUU7QUFDVCxPQUFHLEVBQVUsS0FBSyxDQUFDLFNBQVMsQ0FBQyxNQUFNLENBQUMsVUFBVTtBQUM5QyxjQUFVLEVBQUcsS0FBSyxDQUFDLFNBQVMsQ0FBQyxLQUFLLENBQUMsVUFBVTtHQUM5Qzs7QUFFRCxtQkFBaUIsRUFBQSw2QkFBRztBQUNsQixRQUFJLENBQUMsVUFBVSxFQUFFLENBQUMsYUFBYSxDQUFDLFFBQVEsQ0FBQyxDQUFDLEtBQUssRUFBRS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RjaC1idG5cIiBvbkNsaWNrPXsgKCkgPT4gb25BZGQoaWQpIH0+XG4gICAgICAgIHsgbGFiZWwgfVxuICAgICAgPC9CdG4+XG4gICAgKVxuICB9LFxuXG4gIHJlbmRlcigpIHtcbiAgICByZXR1cm4gKFxuICAgICAgPG5hdiBjbGFzc05hbWU9XCJjb2wtc3dpdGNoLW5hdlwiIHJvbGU9XCJuYXZpZ2F0aW9uXCIgb25LZXlVcD17IHRoaXMuX29uS2V5VXAgfT5cbiAgICAgICAgeyB0aGlzLnByb3BzLmJsb2NrVHlwZXMubWFwKHRoaXMuZ2V0QnV0dG9uKX1cbiAgICAgIDwvbmF2PlxuICAgIClcbiAgfSxcblxuICBfb25LZXlVcChlKSB7XG4gICAgaWYgKGUua2V5ID09PSAnRXNjYXBlJykge1xuICAgICAgdGhpcy5wcm9wcy5vbkV4aXQoKVxuICAgIH1cbiAgfVxuXG59KVxuIl19

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