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

@kitconcept/volto-button-block

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kitconcept/volto-button-block - npm Package Compare versions

Comparing version 3.0.2 to 3.0.3

6

CHANGELOG.md

@@ -11,2 +11,8 @@ # kitconcept's volto-button-block Release Notes

## 3.0.3 (2024-10-18)
### Bugfix
- Fix style wrapper in view and props passed to the legacy wrapper @sneridagh [#23](https://github.com/kitconcept/volto-button-block/pull/23)
## 3.0.2 (2024-10-08)

@@ -13,0 +19,0 @@

2

package.json
{
"name": "@kitconcept/volto-button-block",
"version": "3.0.2",
"version": "3.0.3",
"description": "volto-button-block: Volto add-on that provides a configurable button as a block.",

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

@@ -15,5 +15,5 @@ import React from 'react';

const LegacyWrapper = (props) => (
<div className={cx('block __button', props.className)}>
<div className={cx('block __button', props.className)} style={props.style}>
<div className="button container">
<div className={cx(`align ${props.data?.inneralign}`)}>
<div className={cx('align', props.data?.inneralign)}>
{props.children}

@@ -25,3 +25,4 @@ </div>

const View = ({ data, isEditMode, className, blocksConfig }) => {
const View = (props) => {
const { data, isEditMode, blocksConfig } = props;
const [hasLink, setHasLink] = React.useState(false);

@@ -63,3 +64,3 @@ const intl = useIntl();

return (
<MaybeWrap condition={!isBlockModelv3} as={LegacyWrapper}>
<MaybeWrap {...props} condition={!isBlockModelv3} as={LegacyWrapper}>
{link}

@@ -66,0 +67,0 @@ </MaybeWrap>

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