=== SmartWoo – AI Page Builder ===
Contributors: codervex
Tags: ai page builder, gutenberg, landing page, woocommerce, artificial intelligence
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Create complete landing pages and individual responsive sections as native Gutenberg blocks using your SmartWoo account.

== Description ==

SmartWoo AI Page Builder turns a plain-language brief into a structured WordPress page. Generated content is inserted as core Gutenberg blocks, so headings, paragraphs, buttons, columns, images, pricing cards, testimonials and FAQs remain editable with standard WordPress tools.

Version 1 includes:

* AI full-page generation.
* Hero, About, Services, Features, Pricing, CTA, Testimonials, FAQ and Contact section generation.
* AI writing and rewrite modes: improve, shorten, expand, professional, friendly and sales-focused.
* AI image requests for hero, background and section visuals.
* Responsive native block layouts.
* Brand colors, font stacks, logo reference and button style.
* Business, SaaS and digital agency starter templates.
* Premium-ready Portfolio, Restaurant, Education and WooCommerce template catalog.
* SEO title, meta description and image alt-text generation.
* Reusable saved sections and section-level regeneration.
* Native Gutenberg undo and WordPress revisions.

The plugin uses the same encrypted account credential and the same SmartWoo API, credit and subscription infrastructure as other SmartWoo plugins. It does not create a second billing account.

== Installation ==

1. Install and activate SmartWoo AI Page Builder.
2. Open **SmartWoo Builder** and connect your existing SmartWoo account.
3. Open a page in the block editor and choose **SmartWoo AI Builder** from the editor menu.
4. Enter a prompt, generate a complete page or insert a starter template, then edit the native blocks normally.

== Frequently Asked Questions ==

= Will my page still work if I deactivate the plugin? =

Yes. Generated pages are composed of WordPress core blocks. The content stays editable and renderable after deactivation; only generation controls and SmartWoo styling are removed.

= Does this plugin store another API key? =

No. It uses the same encrypted WordPress option and SmartWoo account as other SmartWoo plugins installed on the site.

= Where are credits and plan limits enforced? =

The centralized SmartWoo API is authoritative for credits, feature entitlements, model access and plan limits. The editor also labels premium templates for clarity.

= Can I undo a generated page? =

Yes. Block changes participate in Gutenberg's undo history. Once a page is saved, normal WordPress revisions also capture its block content.

== Privacy ==

When you request generation, the prompt, selected page content, requested operation, language/tone settings and Brand Kit values are sent to the configured SmartWoo API. Credentials remain encrypted in WordPress and are never exposed to editor JavaScript. No content is sent until an authorized editor starts an AI request.

== Changelog ==

= 1.1.0 =

* Added strict AI JSON schema validation and a server-side section builder and block factory.
* Added explicit nonce, authentication and capability enforcement to every local REST route.
* Namespaced plugin PHP under SmartWoo\PageBuilder and removed generated HTML from AI workflows.

= 1.0.1 =

* Automatically open the AI Builder on pages containing SmartWoo sections.
* Add a persistent SmartWoo AI launcher to the page settings sidebar.

= 1.0.0 =

* Initial release with full-page and section generation, rewriting, images, SEO, templates, Brand Kit and reusable sections.
