Open juanmaguitar opened 11 months ago
The following new issues related to Interactivity API documentation have been created
They're also part of https://github.com/WordPress/gutenberg/issues/53740
This is the list of APIs that in my opinion would cover the whole spectrum of what the Interactivity API encompasses:
It would be great to review it and start adding the missing items so this is ready before the WP 6.5 Release Candidate 1.
supports.interactivity
supports.interactivity.clientNavigation
data-wp-interactive
data-wp-ignore
data-wp-key
data-wp-context
data-wp-bind--{attribute}
data-wp-class--{className}
data-wp-style--{styleProperty}
data-wp-text
data-wp-on--{event}
data-wp-on-window--{event}
data-wp-on-window--{event}
data-wp-init
data-wp-watch
data-wp-run
useInit()
useWatch()
useEffect()
useLayoutEffect()
useCallback()
useMemo()
useState()
useRef()
data-wp-each
data-wp-each-child
store()
getContext()
getElement()
getConfig()
withScope()
wp_interactivity_state()
wp_interactivity_config()
core/router
state.url
actions.navigate()
actions.prefetch()
data-wp-router-region
The Core Concepts guides are optional and could be released after WP 6.5, but they would be a good addition to understanding the mental model behind the Interactivity API.
The readmes should be updated to point to the official documentation, the getting started guide and the Interactivity API discussions for questions.
@wordpress/interactivity
package@wordpress/interactivity-router
packageThe following new issues related to Interactivity API documentation have been created
As a dev user, I'd love to see a full CRUD example (with dynamic form submission) walkthrough, such as https://learn.wordpress.org/course/using-the-wordpress-data-layer/ b.t.w. :)
Interactivity API Docs are now available from Block Editor Handbook > Reference Guides > Interactivity API Reference
I have opened https://github.com/WordPress/gutenberg/issues/62055 to review and update the README
of the @wordpress/interactivity-router
package
@juanmaguitar The current format of the Interactivity API Docs is well-suited for developers with some experience in Gutenberg blocks. However, it lacks basic explanations and a separate guide on how to apply this outside of Gutenberg. We've posted a detailed explanation in our blog that aims to fill the gaps. Wouldn't it be useful to mention this article in the Docs & Examples section?
Wow! That post is great! Congratulations @WPLake 🙌
WordPress Docs does have a external linking policy that doesn't allow to link resources outside of wordpress.org (with some exceptions), but I would love that some of the explanations and ideas that are covered in your article are also included in the official docs.
Would you like to help shape and improve the official docs?
If so, the best next step would be opening an issue detailing the specific improvements you'd like to see in the docs.
I'd also be happy to connect via Make WordPress Slack (@JuanMa
) to discuss any other ways to collaborate to improve the iAPI docs.
After a conversation with @luisherranz at WCEU about improving the Interactivity API Docs, I've created the following issues that reflect some of the suggested changes we discussed:
Note: They have also been added to the description of this issue
@juanmaguitar I'm also open to collaboration on the iAPI Docs. I wrote you in Slack DM (@JuanMa from WPLake) on 18th June. Should we rather chat by email?
@WPLake, I apologize for the delay in getting back to you. I've been intensely focused lately on the Docs Squad work for WP 6.6 release 😅 I actually had my response in draft form, but I wanted to provide some background GitHub issues to frame our conversation. I finally completed that today, so I'm happy to continue the discussion via Slack. I'll ping you there today.
Interactivity API is a proposal for a new standard to create interactive blocks. It's still in an experimental phase and is available with Gutenberg 16.2 or later
This tracking issue compiles all issues related to the documentation of the Interactivity API to keep track of the pending tasks and to ease the coordination of this work.
Interactivity API Docs are currently being created as Markdown files in the
/docs
folder of theinteractivity
package . When the Interactivity API is no longer in an experimental phase or is integrated into WordPress Core, the plan is to move this documentation to the Block Editor HandBookIf you are willing to help with the documentation, please add a comment to https://github.com/WordPress/gutenberg/discussions/51928, and we'll coordinate everyone's efforts.
Tasks
Tasks related to Interactivity API Docs are labelled with [
[Feature] Interactivity API]
&[Type] Developer Documentation]
](https://github.com/WordPress/gutenberg/issues?q=is%3Aopen+is%3Aissue+label%3A%22%5BFeature%5D+Interactivity+API%22+label%3A%22%5BType%5D+Developer+Documentation%22)