Improve automatic previews and toolbar terminal sizing (1.2.1)

This commit is contained in:
2026-10-13 17:19:54 +08:00
parent 26742f3699
commit 27fe6e0d19
13 changed files with 352 additions and 66 deletions
+8 -3
View File
@@ -4,7 +4,7 @@ Tags: asciicast, asciiplayer, asciinema, terminal, block
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.2.0
Stable tag: 1.2.1
License: GPL-3.0-only
License URI: https://www.gnu.org/licenses/gpl-3.0.html
@@ -17,14 +17,14 @@ Insert an Asciicast Player block, apply a recording-file URL, and play it direct
* Locally bundled asciinema-player, JavaScript, CSS and WebAssembly.
* Native block-editor controls and iframe-aware interactive preview.
* Compatible shortcode rendering in posts and pages.
* Explicit editor preview loading and clear loading/failure feedback.
* Automatic preview loading for valid URLs, debounced editing, and clear loading/failure feedback.
* No account, analytics, remote proxy, custom post type or extra upload permissions.
The source and reproducible build instructions are included in the ZIP and available at https://github.com/LamGC/wp-asciiplayer . Third-party licenses are in THIRD-PARTY-NOTICES.md and licenses/.
= External recordings and privacy =
The plugin itself uses no external runtime service. When you choose an external recording URL, the visitor's browser requests that URL directly. The host may receive IP address, browser request metadata and a referrer according to browser/site policy. Applying a URL or loading a preview in the editor makes the same request. Choose a trusted host and consult its privacy policy. Use a same-site HTTPS recording URL to avoid third-party requests. Review terminal output for sensitive data before publishing.
The plugin itself uses no external runtime service. When you choose an external recording URL, the visitor's browser requests that URL directly. The host may receive IP address, browser request metadata and a referrer according to browser/site policy. A valid URL automatically loads the editor preview and makes the same request, including when reopening a saved block. Choose a trusted host and consult its privacy policy. Use a same-site HTTPS recording URL to avoid third-party requests. Review terminal output for sensitive data before publishing.
== Installation ==
@@ -54,6 +54,11 @@ Existing shortcodes work in the Classic Editor. The new visual controls and inli
== Changelog ==
= 1.2.1 =
* Automatically load saved recording previews without enabling playback autoplay.
* Debounce recording URL edits; retain immediate apply, retry and request cleanup.
* Add terminal Columns/Rows and reset controls to the floating block toolbar, synchronized with the collapsed sidebar panel.
= 1.2.0 =
* Add responsive display-width presets/custom lengths, left/center/right placement and captions.
* Preserve recorded terminal dimensions and resize events by default; expose optional row/column overrides.