audrasjb
31569e11d0
Docs: Add missing `@global` mention in `wp_interactivity()`.
...
This merges a changeset updated upstream in the Gutenberg repository.
See https://github.com/WordPress/gutenberg/pull/59522 .
Props wildworks.
Fixes #60677 .
See #59651 .
Built from https://develop.svn.wordpress.org/trunk@57774
git-svn-id: http://core.svn.wordpress.org/trunk@57275 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-03-05 13:39:13 +00:00
Pascal Birchler
f98a921c98
Interactivity API: Rename `data_wp_context()` to `wp_interactivity_data_wp_context()`.
...
Increases clarity about where the function belongs to, bringing it in line with other related functions.
After initially merging this change in [57742] and reverting it in [57743], this reintroduces it now that the Gutenberg packages have been updated accordingly in [57760].
Props swissspidy, gziolo, cbravobernal, youknowriad, ankitmaru, westonruter, luisherranz, darerodz.
Fixes #60575 .
Built from https://develop.svn.wordpress.org/trunk@57762
git-svn-id: http://core.svn.wordpress.org/trunk@57263 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-03-04 15:39:15 +00:00
Pascal Birchler
e265c6d012
Interactivity API: Revert [57742] pending a Gutenberg package update.
...
This function can only be renamed after updating Gutenberg npm packages, as some of the core blocks already use this function.
See #60575 .
Built from https://develop.svn.wordpress.org/trunk@57743
git-svn-id: http://core.svn.wordpress.org/trunk@57244 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-02-29 14:30:12 +00:00
Pascal Birchler
fbeaad601c
Interactivity API: Rename `data_wp_context()` to `wp_interactivity_data_wp_context()`.
...
Increases clarity about where the function belongs to, bringing it in line with other related functions.
Props swissspidy, gziolo, cbravobernal, youknowriad, ankitmaru, westonruter, luisherranz, darerodz.
Fixes #60575 .
Built from https://develop.svn.wordpress.org/trunk@57742
git-svn-id: http://core.svn.wordpress.org/trunk@57243 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-02-29 12:28:09 +00:00
Pascal Birchler
41532d5638
Interactivity API: Skip instead of bail out if HTML contains `SVG` or `MATH`.
...
Addresses an issue with server-side processing of directives when there is e.g. an SVG icon a navigation menu.
Props cbravobernal, westonruter, dmsnell, swissspidy.
Fixes #60517 .
Built from https://develop.svn.wordpress.org/trunk@57649
git-svn-id: http://core.svn.wordpress.org/trunk@57150 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-02-17 15:28:04 +00:00
Pascal Birchler
61f8789d9f
Interactivity API: Use string instead of object in `data-wp-interactive` attribute.
...
The server directive processing, integrated in [57563], supports a simplified format for passing the namespace to `data-wp-interactive`.
Props cbravobernal, gziolo.
Fixes #60542 .
See #60356 .
Built from https://develop.svn.wordpress.org/trunk@57646
git-svn-id: http://core.svn.wordpress.org/trunk@57147 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-02-17 13:19:16 +00:00
gziolo
802c251971
Interactivity API: Integrate Server Directive Processing
...
The Interactivity API enables WordPress developers to create dynamic and interactive web experiences with ease using a set of special HTML attributes called directives. Please refer to the [Interactivity API proposal](https://make.wordpress.org/core/2023/03/30/proposal-the-interactivity-api-a-better-developer-experience-in-building-interactive-blocks/ ) for further details.
It syncs the changes from the Gutenberg plugin: https://github.com/WordPress/gutenberg/pull/58066 .
Fixes #60356 .
Props luisherranz, jonsurrell, swissspidy, westonruter, gziolo.
Built from https://develop.svn.wordpress.org/trunk@57563
git-svn-id: http://core.svn.wordpress.org/trunk@57064 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-02-08 09:13:09 +00:00