=== Magic Copy for Elementor – Cross Domain Copy Paste ===
Contributors: nisan92
Tags: elementor copy paste, elementor addon, cross domain, live copy, cross site
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.1.7
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Cross domain copy paste for Elementor. Copy sections, containers, and widgets live from the frontend and paste across websites instantly.

== Description ==

**Magic Copy for Elementor** is the ultimate **cross-domain** and **cross-site** **copy paste** productivity tool built for web designers, agencies, and WordPress developers. It enables instant **live copy** from frontend pages directly into any **Elementor container** or layout canvas.

* **Cross-Site & Cross-Domain Copy Paste:** Copy any **Elementor container**, section, grid, or widget directly from a live site and perform a **cross-site** transfer to paste on completely separate domain names without downloading JSON export files.
* **Live Copy & Native Editor Paste:** Enjoy 1-click **live copy** capability on published pages. Simply hover over any **Elementor container** or widget, click to copy, and execute a **copy paste** action inside the Elementor editor using native keyboard shortcuts (`Cmd+V` / `Ctrl+V`).
* **Cross-Domain Layout Transfer:** Move complex **Elementor container** structures, multi-column sections, and nested templates with automatic media sideloading into the destination WordPress Media Library.

Whether you're managing client websites, replicating agency design frameworks, or performing a **cross-domain** site migration, Magic Copy delivers effortless **cross-site** **copy paste** capabilities for every **Elementor container** and layout.

---

### 🟢 FREE FEATURES (Included Out of the Box)

* **Cross-Site & Cross-Domain Transfer:** Move any **Elementor container** or section from Site A to Site B across separate domain names.
* **Live Copy Hover Overlay:** Perform a **live copy** directly from published pages without opening the editor interface.
* **Native Keyboard Copy Paste:** Paste copied layouts directly into any **Elementor container** using standard `Cmd+V` / `Ctrl+V` commands.
* **Smart Asset & Media Sideloading:** Automatically sideloads image assets into the target site's WordPress Media Library during a **cross-site** import.
* **Deep Style & Settings Preservation:** Preserves all padding, typography, custom CSS rules, and responsive parameters during a **cross-domain** **copy paste** operation.
* **Child Element Include/Exclude:** Easily toggle whether child widgets within containers are included in your **copy paste** workflow.
* **Elementor 4.x Compatible:** Fully supports modern Flexbox Containers, CSS Grid, and Atomic Elements architecture.

---

### 🟡 PROFESSIONAL PLAN FEATURES

* **Personal Cloud Library:** Save your favorite Elementor containers and widgets to your personal cloud account and insert them on any site with 1-click inside the Elementor editor.
* **Copy History Snapshots (Last 50 Elements):** Automatically record your last 50 copied elements with 1-click restore, search filter, and element type badges.
* **Global Copy Rules:** Define site-wide copy rules by element type (`container`, `section`, `widget`), CSS class (`.copyable`), or wildcard selectors to auto-enable copy.
* **Granular Role & User Access Controls:** Configure per-role capability permissions across WP roles and Logged-Out Guests, with User ID Whitelist and Blacklist.
* **Shareable Template Links:** Generate public or password-protected token URLs to share Elementor components with clients or community.

---

### 🔴 BUSINESS PLAN FEATURES

* **Team Cloud Clipboard (Shared Team Library):** Shared cloud library workspace allowing entire agency teams and freelancers to build, invite team members, and share a centralized component library.
* **Cross-Site Direct Push:** Send Elementor elements directly from Site A to Site B via secure REST API without manual **copy paste**.
* **White-Label Branding:** Rebrand plugin display name in WP Admin menu, customize hover copy button text & colors, and suppress Manfii branding notices.
* **WooCommerce Builder Support:** Smart detection and mapping for WooCommerce product widgets and category references.

---

== Installation ==

1. Upload the `magic-copy-for-elementor` folder to `/wp-content/plugins/` directory, or install directly via WordPress Plugin Directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Open any live page containing Elementor elements, hover over an element, and click the **Magic Copy** button.
4. Open the Elementor editor on any destination site and paste using `Cmd+V` or `Ctrl+V`.

---

== Frequently Asked Questions ==

= Does Magic Copy work with Elementor Flexbox Containers? =
Yes! Magic Copy fully supports modern Flexbox Containers, CSS Grid, columns, sections, and individual widgets.

= Do images transfer automatically when performing a cross-domain copy paste? =
Yes! External and local image URLs embedded in element settings are automatically sideloaded into the destination site's WordPress Media Library during a **cross-domain** **copy paste** import.

= Does Magic Copy require both sites to have the plugin installed? =
To perform a **live copy** from a live site, Magic Copy (Free or Pro) must be active on that site. To paste into the Elementor editor, Magic Copy must be active on the target site.

---

== Screenshots ==

1. **Live Frontend Copy Button** - Hover overlay on live page elements.
2. **Elementor Editor Paste** - Direct keyboard shortcut paste into Elementor.
3. **Pro Cloud Library Drawer** - Personal and Team cloud component management.
4. **Access Control Settings** - Manage role-based permissions in admin.

== Changelog ==

= 1.1.7 =
* Compatibility: Verified compatibility with Elementor 4.2.4, Elementor Pro 4.2.3, and WordPress 7.1.
* Update: Bumped plugin version to 1.1.7.

= 1.1.6 =
* Accessibility: Added full WCAG 2.1 AA compliant aria-label, role="button", and tabindex="0" on frontend copy button overlay.
* Accessibility: Added complete keyboard interaction support (Enter and Space keys) to trigger element copy without requiring mouse hover.
* Accessibility: Added visible focus ring indicators (:focus-visible) and container focus-within display rules for keyboard navigators.
* Accessibility: Added role="status", aria-live="polite", and accessible close button labels to toast notification feedback.

= 1.1.5 =
* Feature: Added WooCommerce Builder Support with automatic reference detection, manual/auto mapping UI during layout imports, and WooCommerce ajax lookup endpoints (Business Plan).
* Feature: Added Unlimited Copy History supported by custom MySQL table storage with real-time text searching, element type filtering, infinite scroll pagination, and automatic background cleanup rules setting (Business Plan).
* Core: Added custom javascript hooks during layout import errors to cleanly allow premium add-on extensions to override or intercept default error notifications.

= 1.1.4 =
* Feature: Added Copy History Snapshots (last 50 elements) with 1-click restore/paste, search filter, element type badges, and clear history.
* Feature: Added Global Copy Rules for site-wide automatic copy overlays by element type (`container`, `section`, `widget`), CSS class (`.copyable`), or wildcard selector.
* Feature: Added Granular Role & User Access Controls with per-role capability matrix across WP roles and Logged-Out Guests, plus User ID Whitelist and Blacklist.
* Feature: Added Team Cloud Clipboard (Shared Team Library) for agency team member invitations, team roster management, and shared layout pasting (Business Plan).
* Feature: Added White-Label Branding allowing custom plugin display name, custom hover copy button text, custom button background/text colors, and Manfii branding suppression (Business Plan).
* Security: Resolved PHPCS WordPress Coding Standards compliance and sanitization rules.

== Upgrade Notice ==

= 1.1.7 =
Upgrade to 1.1.7 for verified compatibility with Elementor 4.2.4 and Elementor Pro 4.2.3.

= 1.1.6 =
Upgrade to 1.1.6 for comprehensive WCAG 2.1 AA accessibility compliance, keyboard navigation (Enter/Space triggers), focus-visible indicators, and screen reader optimizations.
