Skip to content

Releases

v1.0.8

Choose a tag to compare

@github-actions github-actions released this 14 Nov 14:12

Changed

  • Editor: the experimental WordPress components (ToolsPanel, ToolsPanelItem, ToggleGroupControl, AlignmentMatrixControl, BlockVariationPicker) are loaded through src/shared/wp-components.js, which uses the stable name when the site's WordPress provides it and falls back to the __experimental name otherwise.
  • Editor: the icon pickers (ufo-button, ufo-icon, ufo-title), the media picker and the background position matrix are named groups for screen readers (visual label plus role="group" / aria-label); their label previously pointed to no field.
  • Editor placeholders use the ellipsis character (…) instead of three dots.
  • Build tooling: @wordpress/scripts 32 → 37. Unit tests stay on Jest (wp-scripts test-unit-jest). No high or critical npm audit alert remains, none in shipped code.
  • Source code follows the WordPress coding standards (JS and CSS), enforced by npm run check:style in npm test and therefore in the release workflow.

The front-end output is unchanged: CSS, render.php, block.json and ufo-tabs/view.js are identical to 1.0.7, and the saved markup of the static blocks is unchanged (snapshot tests).

v1.0.7

Choose a tag to compare

@github-actions github-actions released this 14 Nov 12:35

Security

  • ufo-icon: the icon size is clamped to 12–120 px on render, the range of the editor control.
  • Release workflow split into two jobs: build runs npm ci, the tests and the build with a read-only token; publish alone gets contents: write and runs no code from the repository.

Added

  • uninstall.php: deletes the cached GitHub release data on uninstall. Site content is left untouched.
  • LICENSE.txt (GPL v2 text); the plugin header's License URI points to it on gnu.org.

Changed

  • package.json: only clsx and lucide-react, bundled into build/, stay in dependencies; the @wordpress/* packages (loaded from WordPress core) and build tools move to devDependencies. The built files are unchanged.

Removed

  • src/ufo-button/icon-svgs.php: unused leftover, neither loaded nor shipped.

v1.0.6

Choose a tag to compare

@github-actions github-actions released this 14 Nov 12:19

Security

  • Updater: forcing a fresh GitHub check (force-check) now requires current_user_can( 'update_plugins' ). The previous is_admin() test is also true on admin-ajax.php for visitors who are not logged in.
  • Updater: the release link returned by the GitHub API (html_url) is only used if it points to this repository; otherwise the repository's releases page is linked.
  • The render.php files of ufo-button, ufo-icon, ufo-tabs and ufo-title, and the generated icon helper, exit when called directly (ABSPATH guard): a direct request no longer triggers a PHP error that could reveal server paths.

v1.0.5

Choose a tag to compare

@github-actions github-actions released this 14 Nov 02:06

Security

  • ufo-faq: the JSON-LD FAQPage is encoded with JSON_HEX_TAG | JSON_HEX_AMP. The schema name, description and subject come from the block comment, which kses does not filter: a contributor could close the <script> tag and inject a script (stored XSS). The three fields also go through sanitize_text_field().

Fixed

  • ufo-faq JSON-LD: answers nested in other blocks (group, list, columns…) were dropped; all inner blocks are now read at any depth. HTML entities are decoded (&amp; → &) and paragraphs are separated by a space.
  • ufo-faq JSON-LD: the partial schema written by save() (no mainEntity, invalid for search engines) is always removed, including when the FAQ has no complete question/answer or the schema is disabled.
  • ufo-title: no fatal error if the icon helper is missing (function_exists check, as in ufo-button).
  • Plugin header: "Gutemberg" typo. composer.json: support URLs point to the actual repository.

Changed

  • ufo-faq-item and ufo-tabs: borders use border-slate-200 instead of border-gray-200. Existing FAQ items stay valid (deprecated entry) and switch to slate on their next save.

Added

  • ufo-tabs block (with ufo-tab children): underlined tabs. Tab titles are edited directly in the tab bar, the + button adds a tab. Front end: ARIA tabs pattern (tablist / tab / tabpanel), arrow keys, Home/End, and the tab containing the URL anchor opens on load. The first tab is open without JavaScript too.
  • Tests: save() snapshots and deprecated migrations (Jest), Tailwind safelist coverage, FAQ schema filter (PHP). npm test runs them, and the release workflow runs it before building.

v1.0.4

Choose a tag to compare

@github-actions github-actions released this 13 Nov 10:11

Fixed

  • ufo-button without a URL: the front end no longer emits href="#" (a fake link, focusable, that jumped to the top of the page on Enter). As in core/button, the <a> is rendered without href, so it is neither focusable nor announced as a link; target, rel and the automatic "(nouvel onglet)" text are only emitted with a URL, and cursor-pointer only when there is a destination. A warning in the block inspector points out the missing link.
  • ufo-button without an accessible name (empty label and empty screen-reader text, e.g. an icon only) is no longer rendered on the front end: a link without a name fails WCAG 2.4.4 / 4.1.2. A warning in the block inspector explains what to fill in.
  • ufo-button editor: the block is edited in a <div> instead of a <button>. Firefox handles a contenteditable (RichText) inside a <button> badly (caret placement, Space key). Editor only, the front end is unchanged.

Removed

  • ufo-button: the Tertiary block style (is-style-tertiary) published in 1.0.3. Sites updated to 1.0.3 get 1.0.4 like the others; a button saved with that style keeps its is-style-tertiary class but the style is no longer offered in the editor.

v1.0.3

Choose a tag to compare

@github-actions github-actions released this 10 Nov 14:08

Added

  • ufo-button: third block style Tertiary (is-style-tertiary), next to Primary and Secondary. As for the other two, the plugin only registers the style; the theme gives it its look (the Ufo Agency theme renders it like Primary with a pill shape, rounded-full). Server-rendered block: existing buttons are unchanged.

v1.0.2

Choose a tag to compare

@github-actions github-actions released this 10 Nov 13:23

Changed

  • ufo-button can now be inserted on its own, anywhere a block is allowed (parent removed from block.json). Until now it was only offered inside a ufo-buttons-group. The group still accepts it and remains the way to align several buttons on one line; a standalone button is an inline-flex link that takes the width of its content, or the full width with the "Pleine largeur" toggle. Server-rendered block (save() returns null): existing buttons and groups are unchanged.

v1.0.1

Choose a tag to compare

@github-actions github-actions released this 09 Nov 15:26
cafa030

Changed

  • ufo-grid / ufo-row editor rebuilt on the model of core Columns / Column (Gutenberg 24.2). Editor only: save() is unchanged, existing content stays valid.
    • An empty grid shows a layout picker (100, 50/50, 33/66, 66/33, 33/33/33, 25/50/25, 4 × 25, and a "Mosaïque" layout with one large cell over two rows).
    • Raising the column count adds cells until the first row is full; lowering it deletes nothing. "Ajouter une cellule" button in the grid toolbar.
    • Settings grouped in ToolsPanels with reset and optional items (« ⋮ » menu): Grille, Dimensions (Tailwind), Image et vidéo de fond, Arrondi (Tailwind). Sliders with pixel values for gap and padding, image preview with Replace / Remove, position matrix, size toggle.
    • Vertical alignment set on the grid is applied to its cells; aligning one cell clears the grid alignment (same as core Columns).
    • Grid easy to reach from a cell: clickable "Grille X col · gap Y" badge and "Modifier la grille" button in the cell settings.
    • Cells: "+" appender when empty, drop before/after a cell, screen-reader position ("ufo Row (1 sur 4)"), width slider limited to the grid column count (block context ufo-blocks/columnsCount).
    • Transforms between core Columns and ufo Grid, both ways (column widths in % ↔ col-span).

Fixed

  • ufo-title block icon: Lucide Heading with the same treatment as the other blocks (#EB9188 on #F6F6F7) instead of the plain black Dashicon.
  • ufo-icon block icon: the Lucide logo (not in lucide-react, drawn from the lucide-icons/lucide logo.svg, ISC) with the same treatment, instead of the black star.
  • ufo-grid editor: the column guides never showed (wrong selector, --ufo-cols never set); they now follow the real column and gap widths.
  • ufo-grid editor stylesheet changed the label style of every block's inspector and the icon color of every block card.
  • Editor-only padding, borders and minimum height no longer distort the grid and cells: the editor shows the front-end layout.
  • ufo-grid editor: the grid could hardly be seen or selected, its cells covering it entirely. In the editor only, the grid now has a light purple background, a purple outline (solid when selected), an always visible « Grille X col · gap Y » label and its own space (32 px top, 12 px bottom, left and right); clicking that space or the label selects the grid. Cells show as white cards with a grey outline. Column guides sit under the cells. The front end is unchanged.

v1.0.0

Choose a tag to compare

@github-actions github-actions released this 23 Oct 09:04

First release of Ufo Tools Blocks, successor of Ufo Blocks 1.8.0 (new repository, versioning restarts at 1.0.0). The entries below 1.0.0 are the history of Ufo Blocks.

Changed

  • Plugin renamed ufo-tools-blocks (folder, main file ufo-tools-blocks.php, text domain, GitHub repository Vince-ALIEN/ufo-tools-blocks, release asset ufo-tools-blocks.zip, PHP prefixes ufo_tools_blocks_ / Ufo_Tools_Blocks_Updater, updater filter ufo_tools_blocks_updater_enabled). Block names (ufo-blocks/*), the ufo-blocks editor category and the CSS classes are unchanged, so existing content stays valid.
    • Migration: install and activate Ufo Tools Blocks, which deactivates Ufo Blocks; then delete Ufo Blocks. Sites on Ufo Blocks 1.8.0 are not offered this version as an update (different slug and asset). While Ufo Blocks is still active, Ufo Tools Blocks loads nothing and shows an admin notice.
    • Themes: update the Tailwind @source paths to plugins/ufo-tools-blocks/src.

Removed

  • Blocks ufo-bento, ufo-time and ufo-logo-slider, moved to their own plugins ufo-tools-bento, ufo-tools-time and ufo-tools-logo-slider. Block names (ufo-blocks/ufo-bento, ufo-blocks/ufo-time, ufo-blocks/logo-slider), attributes and markup are unchanged: activate the matching plugin before switching to Ufo Tools Blocks and existing content keeps working. These plugins register the « UFO Blocks » editor category when Ufo Tools Blocks is not active.