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

gutenblock-controls

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gutenblock-controls - npm Package Compare versions

Comparing version 0.4.3 to 0.4.4

12

dist/form/select.js

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

joinValues: attributes ? true : false,
clearRenderer: function clearRenderer() {
return wp.element.createElement(
'div',
{
onClick: function onClick(e) {
e.stopPropagation();
onDelete();
}
},
'X'
);
},
onChange: function onChange(value) {

@@ -41,0 +29,0 @@ return value ? _onChange(name, value.value) : null;

49

dist/repeat/index.js

@@ -107,25 +107,36 @@ 'use strict';

return _react2.default.Children.map(children, function (child) {
return wp.element.createElement(
return wp.element.createElement(
'div',
null,
_react2.default.Children.map(children, function (child) {
return wp.element.createElement(
'div',
{
style: {
marginLeft: '10px',
marginTop: '15px',
display: 'flex'
}
},
_react2.default.cloneElement(child, {
key: index,
index: index,
setAttributes: setAttributes,
attributes: attributes && attributes[attribute] && attributes[attribute][index] ? attributes[attribute][index] : {},
onChange: function onChange(name, value) {
return _this2.update(name, value, index, _onChange);
}
})
);
}),
wp.element.createElement(
'div',
{
style: {
marginLeft: '10px',
marginTop: '15px'
onClick: function onClick() {
return _this2.delete(childAttributes, childAttribute, index, _onChange);
}
},
_react2.default.cloneElement(child, {
key: index,
index: index,
setAttributes: setAttributes,
attributes: attributes && attributes[attribute] && attributes[attribute][index] ? attributes[attribute][index] : {},
onChange: function onChange(name, value) {
return _this2.update(name, value, index, _onChange);
},
onDelete: function onDelete(childAttributes, childAttribute) {
return _this2.delete(childAttributes, childAttribute, index, _onChange);
}
})
);
});
'Delete item'
)
);
}

@@ -132,0 +143,0 @@ }, {

{
"name": "gutenblock-controls",
"version": "0.4.3",
"version": "0.4.4",
"description": "Useful inspector controls for gutenberg",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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