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

colonel-kurtz

Package Overview
Dependencies
Maintainers
3
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.22.0 to 2.23.0-alpha

src/components/BlockMenu.js

9

docs/blockTypes.md

@@ -18,7 +18,8 @@ # Block Types

--------- | -----------
id | A unique identifier. Assigned to a block when it is created
label | A display name given to the block type in the interface
component | A React component used to edit a block of a given type
types | An array of other BlockType ids that may be created as children
id | A unique identifier. Assigned to a block when it is created.
label | A display name given to the block type in the interface.
component | A React component used to edit a block of a given type.
types | An array of other BlockType ids that may be created as children.
root | Configures the BlockType to display in the menu unless specifically asked for using `types`. Defaults to true.
group | When set, groups BlockTypes of the provided string name within the block menu selector.

@@ -25,0 +26,0 @@ ## Creating Block Types

{
"name": "colonel-kurtz",
"version": "2.22.0",
"version": "2.23.0-alpha",
"description": "A block editor",

@@ -44,2 +44,3 @@ "main": "src/Colonel.js",

"classnames": "~2",
"group-by": "0.0.1",
"microcosm": "~8.1",

@@ -46,0 +47,0 @@ "react-focus-trap": "~0.8",

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

var Animator = require('./Animator');
var Menu = require('./Menu');
var BlockMenu = require('./BlockMenu');
var React = require('react');

@@ -89,3 +89,3 @@ var Switch = require('./Switch');

),
React.createElement(Menu, { ref: 'menu', app: app, block: block, items: extraMenuItems, active: menuOpen, onOpen: this.openMenu, onExit: this.closeMenu })
React.createElement(BlockMenu, { ref: 'menu', app: app, block: block, items: extraMenuItems, active: menuOpen, onOpen: this.openMenu, onExit: this.closeMenu })
),

@@ -104,2 +104,2 @@ React.createElement(Switch, { app: app, position: block, parent: block.parent })

});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0Jsb2NrLmpzeCJdLCJ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lKGNvbnRlbnQpIHtcbiAgICBsZXQgeyBhcHAsIGJsb2NrIH0gPSB0aGlzLnByb3BzXG4gICAgYXBwLnB1c2goQWN0aW9ucy51cGRhdGUsIGJsb2NrLCBjb250ZW50KVxuICB9XG59KVxuIl19
'use strict';
var BlockTypeGroup = require('./BlockTypeGroup');
var Btn = require('./Button');
var React = require('react');
var groupBy = require('group-by');

@@ -23,19 +25,50 @@ module.exports = React.createClass({

return React.createElement(
Btn,
{ key: id, className: 'col-switch-btn', onClick: function () {
return onAdd(type);
} },
label
);
return {
name: label,
component: React.createElement(
Btn,
{ key: id, className: 'col-switch-btn', onClick: function () {
return onAdd(type);
} },
label
)
};
},
getGroups: function getGroups(blocks) {
var groups = groupBy(blocks.filter(function (b) {
return b.group;
}), function (type) {
return type.group;
});
var items = [];
for (var name in groups) {
items.push({
name: name,
component: React.createElement(BlockTypeGroup, { key: name, items: groups[name], label: name, onAdd: this.props.onAdd })
});
}
return items;
},
render: function render() {
var ungrouped = this.props.blockTypes.filter(function (b) {
return !b.group;
}).map(this.getButton);
var grouped = this.getGroups(this.props.blockTypes);
var sorted = grouped.concat(ungrouped).sort(function (a, b) {
return a.name > b.name ? 1 : -1;
});
return React.createElement(
'nav',
{ className: 'col-switch-nav', role: 'navigation' },
this.props.blockTypes.map(this.getButton)
sorted.map(function (s) {
return s.component;
})
);
}
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1N3aXRjaE5hdi5qc3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxJQUFJLEdBQUcsR0FBSyxPQUFPLENBQUMsVUFBVSxDQUFDLENBQUE7QUFDL0IsSUFBSSxLQUFLLEdBQUcsT0FBTyxDQUFDLE9BQU8sQ0FBQyxDQUFBOztBQUU1QixNQUFNLENBQUMsT0FBTyxHQUFHLEtBQUssQ0FBQyxXQUFXLENBQUM7OztBQUV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YXY+XG4gICAgKVxuICB9XG59KVxuIl19

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

component: DefaultBlockType,
group: null,
maxChildren: Infinity,

@@ -44,2 +45,2 @@ root: true,

module.exports = BlockType;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9tb2RlbHMvQmxvY2tUeXBlLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBQUEsSUFBSSxLQUFLLEdBQUcsT0FBTyxDQUFDLE9BQU8sQ0FBQyxDQUFBO0FBQzVCLElBQUksZ0JBQWdCLEdBQUcsT0FBTyxDQUFDLGdDQUFnQyxDQUFDLENBQUE7O0FBRWhFLElBQUksUUFBUSxHQUFHO0FBQ2IsV0FBUyxFQUFLLGdCQUFnQjtBQUM5QixhQUFXLEVBQUcsUUFBUTtBQUN0QixNQUFJLEVBQVUsSUFBSTtBQUNsQixPQUFLLEVBQVMsRUFBRTtDQUNqQixDQUFBOztJQUVLLFNBQVM7QUFFRixXQUZQLFNBQVMsQ0FFRCxNQUFNLEVBQUU7MEJBRmhCLFNBQVM7O29CQUdTLFNBQWMsSUFBSSxFQUFFLFFBQVEsRUFBRSxNQUFNLENBQUM7O1FBQW5ELFNBQVMsYUFBVCxTQUFTOztBQUVmLFFBQUksT0FBTyxTQUFTLEtBQUssUUFBUSxFQUFFO0FBQ2pDLFVBQUksQ0FBQyxTQUFTLEdBQUcsS0FBSyxDQUFDLFdBQVcsQ0FBQyxTQUFTLENBQUMsQ0FBQTtLQUM5QztHQUNGOztlQVJHLFNBQVM7O1dBVU4sbUJBQUc7QUFDUixhQUFPLElBQUksQ0FBQyxFQUFFLENBQUE7S0FDZjs7O1NBWkcsU0FBUzs7O0FBZ0JmLE1BQU0sQ0FBQyxPQUFPLEdBQUcsU0FBUyxDQUFBIiwiZmlsZSI6IkJsb2NrVHlwZS5qcyIsInNvdXJjZXNDb250ZW50IjpbIm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9mIGNvbXBvbmVudCA9PT0gJ29iamVjdCcpIHtcbiAgICAgIHRoaXMuY29tcG9uZW50ID0gUmVhY3QuY3JlYXRlQ2xhc3MoY29tcG9uZW50KVxuICAgIH1cbiAgfVxuXG4gIHZhbHVlT2YoKSB7XG4gICAgcmV0dXJuIHRoaXMuaWRcbiAgfVxuXG59XG5cbm1vZHVsZS5leHBvcnRzID0gQmxvY2tUeXBlXG4iXX0=

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