Huge News!Announcing our $40M Series B led by Abstract Ventures.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.13.0 to 2.14.0

addons/dialog/close.js

9

addons/dialog/index.js
'use strict';
var Close = require('./close');
var FocusTrap = require('react-focus-trap');

@@ -22,2 +23,8 @@ var React = require('react');

return React.createElement(
FocusTrap,
{ active: active, className: className, onExit: onExit },
children,
React.createElement(Close, { onClick: onExit })
);
return React.createElement(FocusTrap, { active: active, className: className, onExit: onExit }, children);

@@ -27,2 +34,2 @@ }

});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2FkZG9ucy9kaWFsb2cvaW5kZXguanN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsSUFBSSxTQUFTLEdBQUcsT0FBTyxDQUFDLGtCQUFrQixDQUFDLENBQUE7QUFDM0MsSUFBSSxLQUFLLEdBQU8sT0FBTyxDQUFDLE9BQU8sQ0FBQyxDQUFBOztBQUVoQyxNQUFNLENBQUMsT0FBTyxHQUFHLEtBQUssQ0FBQyxXQUFXLENBQUM7OztBQUVqQyxpQkFBZSxFQUFBLDJCQUFHO0FBQ2hCLFdBQU87QUFDTCxlQUFTLEVBQUUsWUFBWTtLQUN4QixDQUFBO0dBQ0Y7O0FBRUQsUUFBTSxFQUFBLGtCQUFHO2lCQUN1QyxJQUFJLENBQUMsS0FBSztRQUFsRCxNQUFNLFVBQU4sTUFBTTtRQUFFLFFBQVEsVUFBUixRQUFRO1FBQUUsU0FBUyxVQUFULFNBQVM7UUFBRSxNQUFNLFVBQU4sTUFBTTs7QUFDekMsV0FBTyxLQUFLLENBQUMsYUFBYSxDQUFDLFNBQVMsRUFBRSxFQUFFLE1BQU0sRUFBTixNQUFN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J2NvbC1kaWFsb2cnXG4gICAgfVxuICB9LFxuXG4gIHJlbmRlcigpIHtcbiAgICBsZXQgeyBhY3RpdmUsIGNoaWxkcmVuLCBjbGFzc05hbWUsIG9uRXhpdCB9ID0gdGhpcy5wcm9wc1xuXG4gICAgcmV0dXJuIChcbiAgICAgIDxGb2N1c1RyYXAgYWN0aXZlPXsgYWN0aXZlIH0gY2xhc3NOYW1lPXsgY2xhc3NOYW1lIH0gb25FeGl0PXsgb25FeGl0IH0+XG4gICAgICAgIHsgY2hpbGRyZW4gfVxuICAgICAgICA8Q2xvc2Ugb25DbGljaz17IG9uRXhpdCB9IC8+XG4gICAgICA8L0ZvY3VzVHJhcD5cbiAgICApXG4gICAgcmV0dXJuIFJlYWN0LmNyZWF0ZUVsZW1lbnQoRm9jdXNUcmFwLCB7IGFjdGl2ZSwgY2xhc3NOYW1lLCBvbkV4aXQgfSwgY2hpbGRyZW4pXG4gIH1cblxufSlcbiJdfQ==

2

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

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

@@ -35,3 +35,3 @@ 'use strict';

setMenuItems: function setMenuItems(component) {
if ('getMenuItems' in component) {
if (component && 'getMenuItems' in component) {
this.setState({ extraMenuItems: component.getMenuItems() });

@@ -86,2 +86,2 @@ }

});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0Jsb2NrLmpzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsSUFBSSxPQUFPLEdBQUcsT0FBTyxDQUFDLG1CQUFtQixDQUFDLENBQUE7QUFDMUMsSUFBSSxJQUFJLEdBQU0sT0FBTyxDQUFDLFFBQVEsQ0FBQyxDQUFBO0FBQy9CLElBQUksS0FBSyxHQUFLLE9BQU8sQ0FBQyxPQUFPLENBQUMsQ0FBQTs7Q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XRlXG4gICAgbGV0IHsgY29tcG9uZW50OkNvbXBvbmVudCB9ID0gdGhpcy5nZXRCbG9ja1R5cGUoKVxuXG4gICAgcmV0dXJuIChcbiAgICAgIDxkaXYgY2xhc3NOYW1lPXsgYGNvbC1ibG9jayBjb2wtYmxvY2stJHsgYmxvY2sudHlwZSB9YH0+XG4gICAgICAgIDxDb21wb25lbnQgcmVmPXsgdGhpcy5zZXRNZW51SXRlbXMgfSB7IC4uLmJsb2NrIH0gb25DaGFuZ2U9eyB0aGlzLl9vbkNoYW5nZSB9ID5cbiAgICAgICAgICB7IGNoaWxkcmVuIH1cbiAgICAgICAgPC9Db21wb25lbnQ+XG5cbiAgICAgICAgPE1lbnUgcmVmPVwibWVudVwiXG4gICAgICAgICAgICAgIHsgLi4udGhpcy5wcm9wcyB9XG4gICAgICAgICAgICAgIGl0ZW1zPXsgZXh0cmFNZW51SXRlbXMgfVxuICAgICAgICAgICAgICBhY3RpdmU9eyB0aGlzLnN0YXRlLm1lbnVPcGVuIH1cbiAgICAgICAgICAgICAgb25PcGVuPXsgdGhpcy5fb25NZW51T3BlbiB9XG4gICAgICAgICAgICAgIG9uRXhpdD17IHRoaXMuX29uTWVudUV4aXQgfSAvPlxuICAgICAgPC9kaXY+XG4gICAgKVxuICB9LFxuXG4gIF9vbk1lbnVPcGVuKCkge1xuICAgIHRoaXMuc2V0U3RhdGUoeyBtZW51T3BlbjogdHJ1ZSB9KVxuICB9LFxuXG4gIF9vbk1lbnVFeGl0KCkge1xuICAgIHRoaXMuc2V0U3RhdGUoeyBtZW51T3BlbjogZmFsc2UgfSlcbiAgfSxcblxuICBfb25DaGFuZ2UoY29udGVudCkge1xuICAgIGxldCB7IGFwcCwgYmxvY2sgfSA9IHRoaXMucHJvcHNcbiAgICBhcHAucHVzaChBY3Rpb25zLnVwZGF0ZSwgYmxvY2ssIGNvbnRlbnQpXG4gIH1cblxufSlcbiJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjoz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B0cnVlIH0pXG4gIH0sXG5cbiAgX29uTWVudUV4aXQoKSB7XG4gICAgdGhpcy5zZXRTdGF0ZSh7IG1lbnVPcGVuOiBmYWxzZSB9KVxuICB9LFxuXG4gIF9vbkNoYW5nZShjb250ZW50KSB7XG4gICAgbGV0IHsgYXBwLCBibG9jayB9ID0gdGhpcy5wcm9wc1xuICAgIGFwcC5wdXNoKEFjdGlvbnMudXBkYXRlLCBibG9jaywgY29udGVudClcbiAgfVxuXG59KVxuIl19

@@ -31,9 +31,24 @@ 'use strict';

render: function render() {
getToggle: function getToggle(open) {
var parent = this.props.parent;
return !open ? React.createElement(SwitchToggle, { onClick: this._onToggle, secondary: parent }) : null;
},
getNav: function getNav(open, blockTypes) {
var _props = this.props;
var app = _props.app;
var forceOpen = _props.forceOpen;
var parent = _props.parent;
var position = _props.position;
return open ? React.createElement(SwitchNav, { app: app, blockTypes: blockTypes, parent: parent, position: position }) : null;
},
render: function render() {
var _props2 = this.props;
var app = _props2.app;
var forceOpen = _props2.forceOpen;
var parent = _props2.parent;
var position = _props2.position;
var open = forceOpen || this.state.open;

@@ -45,4 +60,4 @@ var types = typesForBlock(app.get('blockTypes'), parent);

{ className: this.getClassName() },
React.createElement(SwitchToggle, { onClick: this._onToggle, secondary: parent, hide: open }),
React.createElement(SwitchNav, { app: app, blockTypes: types, parent: parent, hide: !open, position: position })
this.getToggle(open, types),
this.getNav(open, types)
) : null;

@@ -52,6 +67,6 @@ },

_onToggle: function _onToggle() {
var _props2 = this.props;
var app = _props2.app;
var position = _props2.position;
var parent = _props2.parent;
var _props3 = this.props;
var app = _props3.app;
var position = _props3.position;
var parent = _props3.parent;

@@ -70,2 +85,2 @@ var types = typesForBlock(app.get('blockTypes'), parent);

});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1N3aXRjaC5qc3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6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c3RlYWQgb2Ygb3BlbmluZyB0aGUgbmF2LCBqdXN0XG4gICAgLy8gY3JlYXRlIHRoYXQgZWxlbWVudFxuICAgIGlmICh0eXBlcy5sZW5ndGggPT09IDEpIHtcbiAgICAgIGFwcC5wdXNoKEFjdGlvbnMuY3JlYXRlLCB0eXBlc1swXS5pZCwgcG9zaXRpb24sIHBhcmVudClcbiAgICB9XG5cbiAgICB0aGlzLnNldFN0YXRlKHsgb3BlbjogdHJ1ZSB9KVxuICB9XG5cbn0pXG4iXX0=

@@ -15,3 +15,7 @@ 'use strict';

getButton: function getButton(_ref) {
componentDidMount: function componentDidMount() {
this.getDOMNode().querySelector('button').focus();
},
getButton: function getButton(_ref, i) {
var _this = this;

@@ -32,10 +36,6 @@

render: function render() {
var _props = this.props;
var blockTypes = _props.blockTypes;
var hide = _props.hide;
return hide ? null : React.createElement(
return React.createElement(
'nav',
{ className: 'col-switch-nav', role: 'navigation' },
blockTypes.map(this.getButton)
this.props.blockTypes.map(this.getButton)
);

@@ -45,6 +45,6 @@ },

_onAdd: function _onAdd(id) {
var _props2 = this.props;
var app = _props2.app;
var position = _props2.position;
var parent = _props2.parent;
var _props = this.props;
var app = _props.app;
var position = _props.position;
var parent = _props.parent;

@@ -55,2 +55,2 @@ app.push(Actions.create, id, position, parent);

});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1N3aXRjaE5hdi5qc3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxJQUFJLE9BQU8sR0FBRyxPQUFPLENBQUMsbUJBQW1CLENBQUMsQ0FBQTtBQUMxQyxJQUFJLEdBQUcsR0FBTyxPQUFPLENBQUMsVUFBVSxDQUFDLENBQUE7QUFDakMsSUFBSSxLQUFLLEdBQUssT0FBTyxDQUFDLE9BQU8sQ0FBQyxDQUFBOztBQUU5QixNQUFNLENBQUMsT0FBTyxHQUFHLEt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gPSAodmFsdWUsIG1pbiwgbWF4KSA9PiBNYXRoLm1heChtaW4sIE1hdGgubWluKG1heCwgdmFsdWUpKVxuXG5tb2R1bGUuZXhwb3J0cyA9IGZ1bmN0aW9uIChsaXN0LCBpdGVtLCBwb3NpdGlvbj1saXN0Lmxlbmd0aCkge1xuICBsZXQgY29ycmVjdGVkID0gaW5SYW5nZShwb3NpdGlvbiwgMCwgbGlzdC5sZW5ndGgpXG5cbiAgbGV0IGhlYWQgPSBsaXN0LnNsaWNlKDAsIGNvcnJlY3RlZClcbiAgbGV0IHRhaWwgPSBsaXN0LnNsaWNlKGNvcnJlY3RlZClcblxuICByZXR1cm4gaGVhZC5jb25jYXQoaXRlbSwgdGFpbClcbn1cbiJdfQ==

Sorry, the diff of this file is too big to display

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