=== Sidebar Diff Revisions Viewer ===
Contributors: pixypuala
Tags: block editor, revisions, workflow, diff, compare
Requires at least: 6.4
Tested up to: 6.8
Stable tag: 1.0.2
Requires PHP: 8.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Adds a persistent diff viewer to the Block Editor sidebar, showing live changes against the last saved revision with per-block highlights.

== Description ==
**Sidebar Diff** brings revision comparisons directly into the editor so you don't have to leave your flow.

* Always-visible panel in the editor sidebar
* Live comparison of your current edits vs. last saved copy
* Optionally compare against any revision from the dropdown
* Per-block grouping with per-paragraph highlights (insertions and deletions)
* Zero front‑end impact; editor-only assets
* Improved diff highlighting with color-coded line indicators
* Dark mode support for WordPress 6.8+ compatibility
* Responsive design optimized for different screen sizes
* Keyboard shortcuts (Ctrl+D/Cmd+D) to toggle diff panel quickly
* Performance optimizations with lazy loading and debounced calculations

**Why this isn't a duplicate:** Existing revision/workflow plugins (e.g., PublishPress Revisions) provide queues and separate compare screens. Sidebar Diff embeds an always-visible diff inspector **inside the editor sidebar** for continuous awareness.

== Installation ==
1. Upload the `gutenberg-sidebar-diff-revisions-viewer` folder to `/wp-content/plugins/`.
2. Activate the plugin through **Plugins → Installed Plugins**.
3. Open any post in the Block Editor.
4. Look for "Sidebar Diff" in the editor's More menu (three dots) if it isn't already visible.

== Frequently Asked Questions ==
= Does it change my content or save anything? =
No. It only reads the current edited content and server-saved content/revisions and renders a visual diff in the editor UI.

= Which baseline options are supported? =
* **Last saved on server** (default)
* **Last published** (same as saved when post status is publish)
* **Choose a revision…** (select any available revision)

= What about custom blocks? =
Custom blocks are supported. The diff is computed on serialized block HTML and split into paragraph-like segments for readability.

= Performance considerations =
Diffing is debounced and scoped to the editor. Extremely large posts may render a simplified/compact view. Lazy loading is implemented for large documents to improve performance.

= How do I quickly toggle the diff panel? =
Use Ctrl+D (Cmd+D on Mac) to quickly toggle the diff panel.

== Privacy ==
The plugin does not transmit data to third parties, set cookies, or track users. Editor-only scripts run for logged-in users with edit capabilities.

== Screenshots ==
1. Sidebar panel showing block/paragraph diffs

== Changelog ==
= 1.0.2 =
* Updated assets for WordPress.org plugin directory.
* Improved compatibility with latest WordPress versions.
* Minor bug fixes and enhancements.

= 1.0.1 =
* Initial public release.

= 1.0.0 =
* Initial public release.

== Upgrade Notice ==
= 1.0.1 =
Initial public release.

= 1.0.0 =
First release.