Skip to content

0.10.3

Choose a tag to compare

@github-actions github-actions released this 30 Aug 09:04
· 24 commits to main since this release
fix: eliminate no-static-styles-assignment via pure CSS class approach

Community review rejected both setCssProps and eslint-disable for this
rule ("Disabling is not allowed"), so all dynamic styling is now routed
through CSS classes.

Static/enum values -> CSS attribute selectors (styles.css):
- Theme swatches: .re-swatch[data-color="#xxx"] replaces setCssProps
- Avatar preview: [data-ratio] + [data-radius] replaces computed dims;
  drops now-unused computeAvatarStyle import
- PDF capture holder: .re-pdf-capture + .re-pdf-a4/.re-pdf-letter

Runtime values -> <style> element injection:
- New applyDynamicStyle() writes CSS class rules into a <style> element's
  textContent; target elements only toggle className
- Replaces preview scale transform and paper margin offset

Bump version to 0.10.3 (manifest/package/package-lock/versions in sync)