Skip to content

Release 1.0.8 - #27

Merged
firestar300 merged 17 commits into
mainfrom
release/1.0.8
Jun 25, 2026
Merged

firestar300 merged 17 commits into
mainfrom
release/1.0.8

Conversation

@firestar300

@firestar300 firestar300 commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor

Release 1.0.8


Note

Medium Risk
SVG parsing and front-end color output changed in core icon rendering paths; risk is moderated by stripping script and gating inline styles unless explicitly allowed.

Overview
Release 1.0.8 bumps plugin/package versions, updates author metadata to Be API Technical Team, refreshes French translations, adds readme.txt, and renames npm env scripts to env:start / env:stop.

SVG rendering and styling replace the regex-based SvgComponent with DOM parsing and recursive traversal so nesting, viewBox, inline style, and id (for url(#…)) behave reliably. New allowStyling, allowClassName, and preview props plus data-blockparty-preserve let media-library (mediatheque) previews keep their own colors and CSS; editor/front SCSS skips recolor on preview-marked SVGs.

Editor fixes: padding uses new addDefaultUnit (handles empty/null values). Front-end fix: BlockRenderer sets inline color alongside fill so icons with fill="currentColor" pick up the block color.

Reviewed by Cursor Bugbot for commit c47c3cd. Bugbot is set up for automated code reviews on this repo. Configure here.

firestar300 and others added 17 commits May 26, 2026 15:32
Added new props to IconContent, IconModal, and IconSelector components to allow for preserving SVG styling, class names, and preview behavior specifically for media library icons.
Replace the flat regex-based SVG parser with a recursive DOM traversal
@firestar300
firestar300 merged commit 0cb1e5a into main Jun 25, 2026
4 of 6 checks passed
@firestar300
firestar300 deleted the release/1.0.8 branch June 25, 2026 06:50

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want fixes drafted automatically? Bugbot Autofix can create code changes for findings. A team admin can enable Autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit c47c3cd. Configure here.

Comment thread src/utils.js
return `${ value }${ unit }`;
}

return value;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

addDefaultUnit duplicates existing CSS units

Medium Severity

In addDefaultUnit, the early isNumber(value) check uses parseFloat, so strings that already include a unit (e.g. 10px, 1.5rem) are treated as bare numbers and get px appended again, producing invalid CSS like 10pxpx for padding sides in IconContent.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit c47c3cd. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants