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.23.0-alpha2 to 2.23.0-alpha3

2

package.json
{
"name": "colonel-kurtz",
"version": "2.23.0-alpha2",
"version": "2.23.0-alpha3",
"description": "A block editor",

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

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

name: label,
type: type,
component: React.createElement(

@@ -49,2 +50,3 @@ Btn,

name: name,
type: groups[name][0],
component: React.createElement(BlockTypeGroup, { key: name, items: groups[name], label: name, onAdd: this.props.onAdd })

@@ -58,8 +60,10 @@ });

render: function render() {
var ungrouped = this.props.blockTypes.filter(function (b) {
var blockTypes = this.props.blockTypes;
var ungrouped = blockTypes.filter(function (b) {
return !b.group;
}).map(this.getButton);
var grouped = this.getGroups(this.props.blockTypes);
var grouped = this.getGroups(blockTypes);
var sorted = grouped.concat(ungrouped).sort(function (a, b) {
return a.name > b.name ? 1 : -1;
return blockTypes.indexOf(a.type) - blockTypes.indexOf(b.type);
});

@@ -76,2 +80,2 @@

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