=== Spectra Blocks Pro ===
Contributors: brainstormforce
Donate link: https://www.brainstormforce.com
Tags: blocks, gutenberg, editor, spectra, pro
Requires at least: 6.6
Tested up to: 7.1
Stable tag: 1.0.5
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Pro blocks and extensions for Spectra Blocks.

== Description ==

Spectra Blocks Pro adds powerful pro blocks and extensions to Spectra Blocks, including:

* Login & Registration Forms
* Loop Builder with filters, pagination, and sorting
* Countdown Timer
* Dynamic Content
* Global Styles
* Modal / Popup Builder
* Slider Extension
* Animations
* Responsive Controls

== Installation ==

1. Install and activate the free Spectra Blocks plugin.
2. Upload `spectra-blocks-pro` to the `/wp-content/plugins/` directory.
3. Activate the plugin through the 'Plugins' menu in WordPress.

== Frequently Asked Questions ==

= Does this plugin require the free Spectra Blocks plugin? =

Yes, Spectra Blocks Pro requires the free Spectra Blocks plugin to be installed and active.

= Can I use this alongside the old Spectra Pro plugin? =

Yes, Spectra Blocks Pro can be used alongside the legacy Spectra Pro plugin.

== External Services ==

This plugin connects to one external service. Connection details, when the call is made, what data is sent, and links to the service's terms and privacy policy are below.

= Google reCAPTCHA =

Spectra Blocks Pro integrates Google reCAPTCHA (v2 and v3) so that site administrators can protect the Login and Register blocks from automated submissions. The integration is opt-in: it only runs when the site administrator has saved a reCAPTCHA site key and secret key in the Spectra Blocks settings, AND a visitor submits a Login or Register block on the front end with reCAPTCHA enabled on that block.

When those conditions are met:

* The plugin enqueues `https://www.google.com/recaptcha/api.js` on the page that renders the Login or Register block, so Google can issue a reCAPTCHA token in the user's browser.
* On form submission, the plugin sends the issued reCAPTCHA token, the visitor's IP address (`$_SERVER['REMOTE_ADDR']`), and the administrator-configured secret key to `https://www.google.com/recaptcha/api/siteverify` to verify the submission is not automated.

No data is sent to Google when reCAPTCHA is not configured or not enabled on the block.

* Service: Google reCAPTCHA
* Terms of Service: https://policies.google.com/terms
* Privacy Policy: https://policies.google.com/privacy

== Source Code ==

This plugin's JavaScript and CSS are built from source files using standard WordPress build tools.

= Plugin Source =

* Block, extension and admin source files are located in the `src/` directory (excluded from the distribution zip for size).
* The compiled, production-ready assets are in `build/`.
* Source code is available on GitHub: [https://github.com/brainstormforce/spectra-blocks-pro](https://github.com/brainstormforce/spectra-blocks-pro)

To build from source:

1. `npm install` — installs JavaScript dependencies.
2. `npm run build` — compiles block JavaScript, admin React app, and CSS.

== Changelog ==

= 1.0.5 - Tuesday, 29th September 2026 =
* Fix: Dynamic content "Enable Link" with a Custom Field source now outputs a working link instead of plain text.
* Improvement: Style Guide editor now shows clearer save feedback and a refined layout.
* Fix: Loop Builder pagination Previous and Next icons now render at the correct size on the front end.
* Fix: Loop Builder pagination no longer affects other loops that share the same query ID.

= 1.0.4 - Wednesday, 9th September 2026 =
* Improvement: WordPress 7.1 compatibility for responsive (viewport) editing across the editor and front end.
* Improvement: Added White Label support.
* Fix: Strengthened nonce verification on the Login block.
* Fix: Removed a duplicate Popup Builder asset from loading.

= 1.0.3 - Tuesday, 18th August 2026 =
* Improvement: More accurate Style Guide colour sync with Astra themes, now covering all theme colour slots and a new foreground colour role.

= 1.0.2 - Friday, 14th August 2026 =
* Fix: Global Styles Classes & CSS panel now works in the Site Editor (FSE) template context.

= 1.0.1 - Friday, 7th August 2026 =
* Fix: Login block now applies the `login_redirect` filter when no custom redirect URL is set.
* Fix: Popup builder — cookie-hidden popups no longer block page interaction.

= 1.0.0 - Monday, 13th July 2026 =
* Initial release of Spectra Blocks Pro.
