Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
aa490ab
Add interactivity schemas
cbravobernal Jan 23, 2024
53c0f34
Update all blocks with clientNavigation support
cbravobernal Jan 23, 2024
35f558e
Update non compatible with client side navigation blocks
cbravobernal Jan 23, 2024
d6ed376
Add clientNavigation conditional to Query block
cbravobernal Jan 23, 2024
f548120
Update changelog
cbravobernal Jan 23, 2024
6a7a5a1
Add interactivty enabled
cbravobernal Jan 24, 2024
2224a6f
Update with new schema
cbravobernal Jan 26, 2024
d3aecc7
Update with new schema
cbravobernal Jan 26, 2024
8d32c4b
Still not working, but updates on query
cbravobernal Jan 26, 2024
0ffdfd9
Hard reset of query PHP part, tests should pass
cbravobernal Jan 31, 2024
4279bfc
Update supports version and query code, tests still failing
cbravobernal Jan 31, 2024
c5bafa5
Remove comment template interactivity
cbravobernal Feb 1, 2024
7fd4df2
Simplify query
cbravobernal Feb 1, 2024
5f8f077
Simplify query
cbravobernal Feb 1, 2024
787767f
Remove not needed interactive false
cbravobernal Feb 1, 2024
e519909
Revert duplicated interactivity
cbravobernal Feb 2, 2024
0f01dda
Update supports
cbravobernal Feb 2, 2024
072c51f
Update schema
cbravobernal Feb 2, 2024
60efcbe
Update docs
cbravobernal Feb 2, 2024
dccc845
Fix query php render
cbravobernal Feb 2, 2024
e9fbe23
Improve comment
cbravobernal Feb 2, 2024
dfc7f6d
Add consistency to the render query
cbravobernal Feb 2, 2024
39d79ad
Avoid not needed serialization
cbravobernal Feb 2, 2024
4dede2f
Revert "Avoid not needed serialization"
cbravobernal Feb 2, 2024
36d9491
Improve `interactive` descriptions
luisherranz Feb 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update non compatible with client side navigation blocks
  • Loading branch information
cbravobernal committed Feb 2, 2024
commit 35f558e13e8c0a2db927e7ae9c3bf8a9f48107db
6 changes: 3 additions & 3 deletions docs/reference-guides/core-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ An advanced block that allows displaying post comments using different visual co

- **Name:** core/comments
- **Category:** theme
- **Supports:** align (full, wide), clientNavigation, color (background, gradients, heading, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~
- **Supports:** align (full, wide), color (background, gradients, heading, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~
- **Attributes:** legacy, tagName

## Comments Pagination
Expand Down Expand Up @@ -284,7 +284,7 @@ A form. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/blo
- **Name:** core/form
- **Experimental:** true
- **Category:** common
- **Supports:** anchor, clientNavigation, color (background, gradients, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~className~~
- **Supports:** anchor, color (background, gradients, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~className~~
- **Attributes:** action, email, method, submissionMethod

## Input Field
Expand Down Expand Up @@ -583,7 +583,7 @@ Display a post's comments form. ([Source](https://github.com/WordPress/gutenberg

- **Name:** core/post-comments-form
- **Category:** theme
- **Supports:** clientNavigation, color (background, gradients, heading, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~
- **Supports:** color (background, gradients, heading, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~
- **Attributes:** textAlign

## Comments Link
Expand Down
3 changes: 1 addition & 2 deletions packages/block-library/src/comments/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@
"__experimentalDefaultControls": {
"fontSize": true
}
},
"clientNavigation": true
}
},
"editorStyle": "wp-block-comments-editor",
"usesContext": [ "postId", "postType" ]
Expand Down
3 changes: 1 addition & 2 deletions packages/block-library/src/form/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@
"fontSize": true
}
},
"__experimentalSelector": "form",
"clientNavigation": true
"__experimentalSelector": "form"
},
"viewScript": "file:./view.min.js"
}
3 changes: 1 addition & 2 deletions packages/block-library/src/post-comments-form/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@
"__experimentalDefaultControls": {
"fontSize": true
}
},
"clientNavigation": true
}
},
"editorStyle": "wp-block-post-comments-form-editor",
"style": [
Expand Down
1 change: 1 addition & 0 deletions packages/block-library/src/query/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ function block_core_query_disable_enhanced_pagination( $parsed_block ) {
// If ! clientNavigation && !interactivity. Post-content is the only core block without clientNavigation.
( ! str_starts_with( $block_name, 'core/' ) || 'core/post-content' === $block_name )
) {
var_dump( 'patata' );
foreach ( $enhanced_query_stack as $query_id ) {
$dirty_enhanced_queries[ $query_id ] = true;
}
Expand Down