-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Behaviors UI #49972
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
Merged
Merged
Behaviors UI #49972
Changes from 1 commit
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
bd53de2
Add behaviors to the core theme.json
michalczaplinski bd43bf6
Add behaviors to json schemas for theme.json
michalczaplinski e1dd737
Add a behaviors panel
michalczaplinski 8b84a22
Remove the changes to theme.json schema
michalczaplinski d5dbc1c
Add behaviors to the VALID_SETTINGS in class-wp-theme-json-gutenberg.php
michalczaplinski 037d669
Add the first (still broken) version of the lightbox settings
michalczaplinski 8f62d34
WIP: Added a SelectControl for the behaviors
michalczaplinski 62b6217
Format PHP
michalczaplinski edfd7d1
Format correctly again
michalczaplinski 8ee4065
Use the props.name when getting the behaviors
michalczaplinski 594224b
Add initial e2e tests
cbravobernal fd6fe36
Update the withBehaviors description
michalczaplinski da4a5ad
Cleaned up behaviors.js
michalczaplinski 2958fd1
Update e2e tests to check visibility
cbravobernal 0a68bea
Update core-blocks doc with behaviors attribute
cbravobernal fd08928
Update fixtures with new lightbox attribute
cbravobernal 4e03e0d
Add a new theme for e2e tests
michalczaplinski 92b6e6c
Change theme.json to include `settings.behaviors`
michalczaplinski ffa881e
Remove default behavior value from block.json
michalczaplinski 99c964b
Minor fix to the implementation
michalczaplinski 7f7db2c
Add more e2e tests
michalczaplinski 5e5ff9a
Create a selector for behaviors
michalczaplinski ad20b64
Add a filter to load behaviors on the server from the theme.json
michalczaplinski d16266b
Add behaviors on the top-level in core theme.json
michalczaplinski 0982d9f
Use the behaviors in the hooks
michalczaplinski 0ef7b5e
Update the comment
michalczaplinski e75fd87
Update the comment in behaviors.js
michalczaplinski f6414f9
Update fixtures and e2e
cbravobernal 31c0623
Prevent mobile test gutenberg error (temporary - not the best solution)
cbravobernal ee3701f
Add priority on filter
cbravobernal a0ac748
Fix php standards
cbravobernal 1dd6df1
Found a much better way to fix php tests
cbravobernal a737200
Small refactor
cbravobernal 3fd9270
Add `behaviors` as an allowed key to BLOCK_EDITOR_SETTINGS
michalczaplinski 5a9748c
Move the behaviors to top level in the e2e test theme.json file
michalczaplinski 9a6b1f2
Rename the `behaviors` setting to `behaviorsUIEnabled`
michalczaplinski 1c7f6d5
Change "None" to "No behaviors"
michalczaplinski 470f74f
Behaviors -> behavior
michalczaplinski bba7c2d
Fix redundant ternary
michalczaplinski 2cb348c
Improve the JSDoc for behaviors selector
michalczaplinski c65bc57
Rename the test themes to make more sense
michalczaplinski 1c655f7
Remove definition of `behaviors` attribute in core/image
michalczaplinski 697c04f
Change default value for `behaviors.lightbox` to false and update e2e…
michalczaplinski d4fd9d9
Change the way we get the data from `theme.json` and adjust e2e
michalczaplinski a57d634
Capitalize behaviors' labels
michalczaplinski 234a8b6
Move PHP code adding `theme.json` behaviors to `block-editor-settings`
michalczaplinski 4bef633
Update comment
michalczaplinski 7aa7231
Remove the behaviors require from load.php
michalczaplinski 1d923ab
Revert "Update comment"
michalczaplinski aee908a
Revert "Move PHP code adding `theme.json` behaviors to `block-editor-…
michalczaplinski 33cb62d
Remove the comment that was added previously
michalczaplinski 55e37a3
Update comments in `behaviors.php`
michalczaplinski d4d657b
Add back the require_once in load.php
michalczaplinski 8d6b0d0
Use `settings.blocks.core/image.behaviors.lightbox`
michalczaplinski 76b2a75
Use `behaviors.blocks.core/image.lightbox`
michalczaplinski 70e51cd
Remove experimental setting for interactivity API
cbravobernal 69ebe6c
Revert "Remove experimental setting for interactivity API"
cbravobernal c32be86
Move `interactivity.js` files to `block.json`
SantosGuillamot b8dc7dd
Remove experimental flag for the Interactivity API
SantosGuillamot 4800d91
Revert "Move `interactivity.js` files to `block.json`"
michalczaplinski 9124b58
Revert "Remove experimental flag for the Interactivity API"
michalczaplinski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add behaviors on the top-level in core theme.json
- Loading branch information
commit d16266b4f5ad3c827e669c3c3b4899f6303abaf7
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.