-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking Issue - Interactivity API runtime for core blocks #49868
Comments
I've opened a PR that removes full hydration and client-side navigation. It is ready to be reviewed. |
I've done the same for removing components. |
I've asked the Preact team about this PR to know if they plan to merge it soon or not. If they don't, I'll add a new issue to incorporate that |
Once we finish, I think the next step would be to introduce priorities because that's going to affect the code of the |
This is ready for review: |
This one is merged: And this other one ready for review |
I have updated the refactoring-for-gutenberg branch with the latest changes from the main one. |
I've opened a PR for these items: WordPress/block-interactivity-experiments#223
I'll work on Solve bug of props passing to the next element now. |
We've merged everything that was needed before moving this to Gutenberg. We'll try to move it to Gutenberg now in a new PR. |
This is the PR that adds the Interactivity API to Gutenberg. It is ready to review. |
I've added these additional items to the list:
|
I added the following to the list: |
I added the following PRs to the list of tasks: |
I've added three issues to the Tracking Issue discovered by @jeryj that contain accessibility discrepancies between this implementation and the previous one (thanks, Jerry!).
He also reported a problem with the |
I can't reproduce it with the latest version in |
It looks like that one was just a problem with Also, @DAreRodz has been working on the priorities: |
Closing this as finished, we'll keep working on the next steps on: #50866 |
Reopened to add an additional task to merge both |
Closed as we don't need to that anymore. |
The Interactivity API aims to provide a standard way to develop the frontend of Gutenberg blocks, in a way that they can communicate and be combined with each other easily.
Until now, most Gutenberg APIs have focused on the Block Editor, leaving an intentional gap in the frontend. The Interactivity API aims to cover that gap.
Imagine providing user experiences like instant search, add to cart, or comments form without a page reload, in a way that is immediately familiar and compatible with the block ecosystem, without complex scaffolding or external tools, and without sacrificing PHP server rendering and the plugin ecosystem. That's what the Interactivity API is for.
The goal of these tasks is to provide a basic runtime to start experimenting with interactivity in some of the core blocks.
We will start shaping the version of the runtime on a branch of the block interactivity experiments repo, and once it's ready we'll move it to this repository:
wp-show
andwp-text
directives block-interactivity-experiments#220evaluate
so it is always the same function instance block-interactivity-experiments#224 (related issue)/packages/block-library/src/interactivity
runtimeChunk
defer
manually to the runtime + vendors + viewsuseSignalEffect
implementation that behaves likeuseEffect
block-interactivity-experiments#226vendors
andruntime
in a single file and rename the handle towp-interactive
Navigation block
aria-expanded
Attribute on load #50752The text was updated successfully, but these errors were encountered: