Skip to content

Release 2.0.0#13

Merged
firestar300 merged 19 commits intomainfrom
ver/2.0.0
Jan 27, 2026
Merged

Release 2.0.0#13
firestar300 merged 19 commits intomainfrom
ver/2.0.0

Conversation

@firestar300
Copy link
Copy Markdown
Contributor

No description provided.

MarieComet and others added 15 commits June 7, 2024 12:46
Migrates the FAQ block to utilize InnerBlocks for improved content structure and editing experience.

This change replaces the previous attribute-based approach with dedicated `faq-item`, `faq-question`, and `faq-answer` blocks, offering better control and flexibility.

Also includes schema generation and support for PHP versions up to 8.4.
Migrates the FAQ block to use inner blocks for managing questions and answers, allowing for greater flexibility and content structure.

Adds a migration script to convert existing FAQ blocks from the old `questions` array format to the new inner blocks format.

Includes deprecated block configuration to handle the migration process smoothly.
Enables inner blocks for FAQ question, allowing richer content within the question.

Handles conversion between accordion and non-accordion states:
- When switching to non-accordion, moves question text to a heading block.
- When switching to accordion, extracts content from the first inner block and sets it as the question text.
Moves the FAQ block's structure to leverage build artifacts and enhances its functionality.

This includes:
- Registers block types from build directory for better organization.
- Introduces `wp_localize_script` to pass configuration from PHP to the view script.
- Implements Javascript translations for block editor.
- Adds `@beapi/be-a11y` for accessibility improvements, enabling accordion functionality.
Simplifies imports by combining `useBlockProps` and `InnerBlocks` into a single import statement from `@wordpress/block-editor` in multiple files.

This change improves code readability and consistency across the FAQ blocks.
Comment thread src/faq-answer/edit.js
Improves security by limiting the HTML tags and attributes permitted in the acceptedAnswer property of the FAQ schema.

Removes support for potentially unsafe or unnecessary elements such as img, blockquote, cite, q, div, span, and hr, leaving only basic formatting elements.
Updates project dependencies to the latest compatible versions as reflected in the composer.lock file.
This ensures that the project benefits from the newest features, bug fixes, and security patches available in the updated dependencies.
@firestar300 firestar300 merged commit d52d58b into main Jan 27, 2026
4 of 5 checks passed
@firestar300 firestar300 deleted the ver/2.0.0 branch January 27, 2026 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants