The issues listed here will be included as part of Patternkit's 9.1.3 release.
Status: Planning/Development
Targeted release: TBD
Testing instructions
Issues that have already been fixed and merged may be tested using the current development release:
composer require 'drupal/patternkit:9.1.x-dev'
Feature enhancements
#3556232: Auto-populate image alt text and attributes from pasted URLs
#3561082: Bulk Update Missing Image Data
#3574404: Enforce non-empty values for required string fields in JSON Editor forms
#3576066: Refresh JSON Editor schema when "Update pattern" is clicked in Layout Builder block config
Maintenance updates
#3516918: Remove Reusable Block Support
#3453875: Test Validation of Required Fields within Schema in Patternkit
#3563760: Add Pattern Content Validation During Rendering
#3572072: Request-scoped schema caching in SchemaFactory to reduce validation overhead
Bug fixes
#3547300: Patternkit Blocks Always Report 'user' Context
Known issues
None.
Change records
Reusable block support removed
Reusable block support, which was deprecated and disabled by default in Patternkit 9.1.2 (see Reusable Block Support is Deprecated and Disabled by Default), is fully removed in this release. The enable_reusable_blocks service parameter and the reusable property on the PatternkitBlock entity are no longer available. See #3516918: Remove Reusable Block Support.
Release notes
Patternkit 9.1.3 delivers improvements to content authoring, form validation, and system performance. This release strengthens accessibility workflows with two new image attribute features: automatic population of alt text, width, height, and title when a file URL is pasted into an image source field (#3556232: Auto-populate image alt text and attributes from pasted URLs), and a drush pk-alt command with a post-update hook that bulk-populates missing alt text across all existing pattern blocks (#3561082: Bulk Update Missing Image Data). JSON Editor form reliability is improved with enforcement of non-empty values for required string fields (#3574404: Enforce non-empty values for required string fields in JSON Editor forms) and a fix for the "Update pattern" action that now correctly refreshes the editor in place, bypasses field validation on rebuild, and correctly invokes PatternUpdateEvent subscribers without requiring a page reload (#3576066: Refresh JSON Editor schema when "Update pattern" is clicked in Layout Builder block config). Stability is enhanced by render-time content validation that prevents fatal errors when invalid pattern data reaches the rendering pipeline (#3563760: Add Pattern Content Validation During Rendering), complemented by request-scoped schema caching in SchemaFactory that reduces schema compilation overhead by up to 75% on pages with multiple Patternkit blocks (#3572072: Request-scoped schema caching in SchemaFactory to reduce validation overhead). This release also completes the removal of the reusable block feature, deprecated and disabled by default in 9.1.2 (#3516918: Remove Reusable Block Support), and resolves a cache context bug that caused all Patternkit blocks to unnecessarily report a user cache context regardless of configuration (#3547300: Patternkit Blocks Always Report 'user' Context).
Comments
Comment #2
slucero