-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
[Feature] Block APIAPI that allows to express the block paradigm.API that allows to express the block paradigm.[Feature] Interactivity APIAPI to add frontend interactivity to blocks.API to add frontend interactivity to blocks.[Type] IterationScoped iteration of an effort from a tracking issue or overview issue ideally for a major release.Scoped iteration of an effort from a tracking issue or overview issue ideally for a major release.
Description
- Part of Block API #41236.
We completed everything for the first public release of the Interactivity API in WordPress 6.5. Now, during the next iteration―which is going to be shorter―, we aim to focus on improving the current API without releasing new features. This includes enhancing the developer experience (especially during debugging), better test coverage and code quality, as well as fixing any reported bugs.
Note that the list is expected to be modified. I've also added optional tasks we can work on if we find the time.
28-05 Update: All tasks have been redistributed for 6.6 release summary.
Punted to future releases
- Interactivity Router: Support Handling
navigate()Failure States #59856 - Interactivity API: Allow async directive registration #60670
- Interactivity API: Defer hydration until node is scrolled near the viewport #58284
Won't do
- Interactivity API: Debug - Show directive names included in each Directives component on Preact’s debug tools #60049
- Interactivity API: Added comments for directive parsing #61456
Ready for 6.6
Enhancements
- Interactivity API: Include
preact/debugwhenSCRIPT_DEBUGis enabled #60514 - Introduce
wp-on-asyncdirective as performant alternative over synchronouswp-ondirective #61885 - Update the query block to permit non-core interactive blocks #60006
- Add Interactivity API hooks to wp_admin wordpress-develop#6453
- KSES: Allow leading trailing double hyphen in data attributes wordpress-develop#6598
- Interactivity API: Add debug notices for SSR wordpress-develop#6413
- Interactivity API: Add server derived state getter handling wordpress-develop#6394
Bug fixes
- Interactivity: Return useMemo and useCallback hooks #60474
- Interactivity API: Allow multiple event handlers for the same type with
data-wp-on. #60661 - Interactivity API: Allow multiple event handlers for the same type with
data-wp-on-documentanddata-wp-on-window. #61009 - Interactivity API: Prevent wrong written directives from killing the runtime #61249
- Interactivity API: Prevent empty namespace or different namespaces from killing the runtime #61409
- Interactivity API bug: Fix fatal error when trying to use a stdClass as state-context. wordpress-develop#6672
- Interactivity API: Increase directive
wp-each-childpriority. #62293
Code Quality
- Interactivity API: Turn named capturing groups back into numbered ones inside
toVdom#61728 - Interactivity API: Move all utils inside
utils.ts#61721 - Interactivity API refactor to TypeScript (utils & kebabToCamelCase) #60149
- Interactivity: Strict type checking #59865
- Interactivity API: Add types for warn helper. #61687
- Interactivity API : Refactor interactivity-router to TS #61730
- Editor: Move Interactivity directives processing to WP_Block class wordpress-develop#6331
luisherranz, gziolo, KZeni, westonruter, felixarntz and 7 more
Metadata
Metadata
Assignees
Labels
[Feature] Block APIAPI that allows to express the block paradigm.API that allows to express the block paradigm.[Feature] Interactivity APIAPI to add frontend interactivity to blocks.API to add frontend interactivity to blocks.[Type] IterationScoped iteration of an effort from a tracking issue or overview issue ideally for a major release.Scoped iteration of an effort from a tracking issue or overview issue ideally for a major release.