Skip to content

v0.0.9 - Shared control library and widget-count versioning

Choose a tag to compare

@im-JvD im-JvD released this 08 Oct 08:11
· 3 commits to main since this release

Moves every repeated Elementor control pattern into the shared WGCR_Size_Controls trait, refactors all three widgets onto it with identical controls and defaults, and derives the plugin version from the number of registered widgets (10 → 0.1.0, 17 → 0.1.7) with 0.0.9 as the bridge release.

  • Shared control library: the WGCR_Size_Controls trait now carries every repeated Elementor control pattern — sections, switcher, text, number, select, heading, color, typography (font weight/size/line-height shorthand), border (type/width/color shorthand), box shadow, dimensions, slider and ready-made style box/text/state groups.
  • All three widgets (FAQ, Live Search, Comments) are refactored onto the shared trait with identical control ids, defaults and selectors; a new widget is now a short, uniform class instead of hundreds of copied control lines.
  • New versioning rule: the plugin version derives from the number of registered widgets — 0.(N div 10).(N mod 10), so 10 widgets → 0.1.0, 17 → 0.1.7, 34 → 0.3.4. Released counter versions (up to 0.0.8) are never downgraded, so 0.0.9 is the bridge release and the formula takes over at 10 widgets.
  • The static test derives the expected version from wgcr_widget_map(), keeps the map in sync with the src/widgets/ folder and requires every widget class to use the shared trait.