Skip to content

Commit

Permalink
Revert dynamic block anchor support (#48592)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Mar 1, 2023
1 parent a7b888a commit 3854ce8
Show file tree
Hide file tree
Showing 56 changed files with 54 additions and 175 deletions.
106 changes: 53 additions & 53 deletions docs/reference-guides/core-blocks.md

Large diffs are not rendered by default.

67 changes: 0 additions & 67 deletions lib/block-supports/anchor.php

This file was deleted.

1 change: 0 additions & 1 deletion lib/load.php
Expand Up @@ -141,5 +141,4 @@ function gutenberg_is_experiment_enabled( $name ) {
require __DIR__ . '/block-supports/spacing.php';
require __DIR__ . '/block-supports/dimensions.php';
require __DIR__ . '/block-supports/duotone.php';
require __DIR__ . '/block-supports/anchor.php';
require __DIR__ . '/block-supports/shadow.php';
1 change: 0 additions & 1 deletion packages/block-library/src/archives/block.json
Expand Up @@ -26,7 +26,6 @@
},
"supports": {
"align": true,
"anchor": true,
"html": false,
"spacing": {
"margin": true,
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/avatar/block.json
Expand Up @@ -25,7 +25,6 @@
},
"usesContext": [ "postType", "postId", "commentId" ],
"supports": {
"anchor": true,
"html": false,
"align": true,
"alignWide": false,
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/calendar/block.json
Expand Up @@ -17,7 +17,6 @@
},
"supports": {
"align": true,
"anchor": true,
"color": {
"link": true,
"__experimentalSkipSerialization": [ "text", "background" ],
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/categories/block.json
Expand Up @@ -30,7 +30,6 @@
},
"supports": {
"align": true,
"anchor": true,
"html": false,
"spacing": {
"margin": true,
Expand Down
Expand Up @@ -20,7 +20,6 @@
},
"usesContext": [ "commentId" ],
"supports": {
"anchor": true,
"html": false,
"inserter": false,
"__experimentalBorder": {
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/comment-author-name/block.json
Expand Up @@ -22,7 +22,6 @@
},
"usesContext": [ "commentId" ],
"supports": {
"anchor": true,
"html": false,
"spacing": {
"margin": true,
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/comment-content/block.json
Expand Up @@ -14,7 +14,6 @@
}
},
"supports": {
"anchor": true,
"color": {
"gradients": true,
"link": true,
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/comment-date/block.json
Expand Up @@ -18,7 +18,6 @@
},
"usesContext": [ "commentId" ],
"supports": {
"anchor": true,
"html": false,
"color": {
"gradients": true,
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/comment-edit-link/block.json
Expand Up @@ -18,7 +18,6 @@
}
},
"supports": {
"anchor": true,
"html": false,
"color": {
"link": true,
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/comment-reply-link/block.json
Expand Up @@ -14,7 +14,6 @@
}
},
"supports": {
"anchor": true,
"color": {
"gradients": true,
"link": true,
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/comment-template/block.json
Expand Up @@ -10,7 +10,6 @@
"usesContext": [ "postId" ],
"supports": {
"align": true,
"anchor": true,
"html": false,
"reusable": false,
"spacing": {
Expand Down
Expand Up @@ -14,7 +14,6 @@
},
"usesContext": [ "postId", "comments/paginationArrow" ],
"supports": {
"anchor": true,
"reusable": false,
"html": false,
"color": {
Expand Down
Expand Up @@ -9,7 +9,6 @@
"textdomain": "default",
"usesContext": [ "postId" ],
"supports": {
"anchor": true,
"reusable": false,
"html": false,
"color": {
Expand Down
Expand Up @@ -14,7 +14,6 @@
},
"usesContext": [ "postId", "comments/paginationArrow" ],
"supports": {
"anchor": true,
"reusable": false,
"html": false,
"color": {
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/comments-pagination/block.json
Expand Up @@ -17,7 +17,6 @@
"comments/paginationArrow": "paginationArrow"
},
"supports": {
"anchor": true,
"align": true,
"reusable": false,
"html": false,
Expand Down
3 changes: 1 addition & 2 deletions packages/block-library/src/comments/block.json
Expand Up @@ -18,8 +18,6 @@
},
"supports": {
"align": [ "wide", "full" ],
"anchor": true,
"html": false,
"color": {
"gradients": true,
"link": true,
Expand All @@ -29,6 +27,7 @@
"link": true
}
},
"html": false,
"spacing": {
"margin": true,
"padding": true
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/home-link/block.json
Expand Up @@ -22,7 +22,6 @@
"style"
],
"supports": {
"anchor": true,
"reusable": false,
"html": false,
"typography": {
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/latest-comments/block.json
Expand Up @@ -29,7 +29,6 @@
},
"supports": {
"align": true,
"anchor": true,
"html": false,
"spacing": {
"margin": true,
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/latest-posts/block.json
Expand Up @@ -84,7 +84,6 @@
},
"supports": {
"align": true,
"anchor": true,
"html": false,
"color": {
"gradients": true,
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/loginout/block.json
Expand Up @@ -18,7 +18,6 @@
}
},
"supports": {
"anchor": true,
"className": true,
"typography": {
"fontSize": false
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/navigation/block.json
Expand Up @@ -92,7 +92,6 @@
},
"supports": {
"align": [ "wide", "full" ],
"anchor": true,
"html": false,
"inserter": true,
"typography": {
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/page-list/block.json
Expand Up @@ -33,7 +33,6 @@
"openSubmenusOnClick"
],
"supports": {
"anchor": true,
"reusable": false,
"html": false,
"typography": {
Expand Down
Expand Up @@ -13,7 +13,6 @@
},
"usesContext": [ "postType", "postId" ],
"supports": {
"anchor": true,
"spacing": {
"margin": true,
"padding": true
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/post-author-name/block.json
Expand Up @@ -21,7 +21,6 @@
},
"usesContext": [ "postType", "postId" ],
"supports": {
"anchor": true,
"html": false,
"spacing": {
"margin": true,
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/post-author/block.json
Expand Up @@ -35,7 +35,6 @@
},
"usesContext": [ "postType", "postId", "queryId" ],
"supports": {
"anchor": true,
"html": false,
"spacing": {
"margin": true,
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/post-comments-count/block.json
Expand Up @@ -14,7 +14,6 @@
},
"usesContext": [ "postId" ],
"supports": {
"anchor": true,
"html": false,
"color": {
"gradients": true,
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/post-comments-form/block.json
Expand Up @@ -13,7 +13,6 @@
},
"usesContext": [ "postId", "postType" ],
"supports": {
"anchor": true,
"html": false,
"color": {
"gradients": true,
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/post-comments-link/block.json
Expand Up @@ -14,7 +14,6 @@
}
},
"supports": {
"anchor": true,
"html": false,
"color": {
"link": true,
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/post-content/block.json
Expand Up @@ -8,7 +8,6 @@
"textdomain": "default",
"usesContext": [ "postId", "postType", "queryId" ],
"supports": {
"anchor": true,
"align": [ "wide", "full" ],
"html": false,
"__experimentalLayout": true,
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/post-date/block.json
Expand Up @@ -24,7 +24,6 @@
},
"usesContext": [ "postId", "postType", "queryId" ],
"supports": {
"anchor": true,
"html": false,
"color": {
"gradients": true,
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/post-excerpt/block.json
Expand Up @@ -20,7 +20,6 @@
},
"usesContext": [ "postId", "postType", "queryId" ],
"supports": {
"anchor": true,
"html": false,
"color": {
"gradients": true,
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/post-featured-image/block.json
Expand Up @@ -53,7 +53,6 @@
"usesContext": [ "postId", "postType", "queryId" ],
"supports": {
"align": [ "left", "right", "center", "wide", "full" ],
"anchor": true,
"color": {
"__experimentalDuotone": "img, .wp-block-post-featured-image__placeholder, .components-placeholder__illustration, .components-placeholder::before",
"text": false,
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/post-navigation-link/block.json
Expand Up @@ -31,7 +31,6 @@
}
},
"supports": {
"anchor": true,
"reusable": false,
"html": false,
"color": {
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/post-template/block.json
Expand Up @@ -19,7 +19,6 @@
"reusable": false,
"html": false,
"align": true,
"anchor": true,
"__experimentalLayout": {
"allowEditing": false
},
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/post-terms/block.json
Expand Up @@ -28,7 +28,6 @@
},
"usesContext": [ "postId", "postType" ],
"supports": {
"anchor": true,
"html": false,
"color": {
"gradients": true,
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/post-title/block.json
Expand Up @@ -31,7 +31,6 @@
},
"supports": {
"align": [ "wide", "full" ],
"anchor": true,
"html": false,
"color": {
"gradients": true,
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/query-no-results/block.json
Expand Up @@ -9,7 +9,6 @@
"textdomain": "default",
"usesContext": [ "queryId", "query" ],
"supports": {
"anchor": true,
"align": true,
"reusable": false,
"html": false,
Expand Down
Expand Up @@ -14,7 +14,6 @@
},
"usesContext": [ "queryId", "query", "paginationArrow" ],
"supports": {
"anchor": true,
"reusable": false,
"html": false,
"color": {
Expand Down
Expand Up @@ -9,7 +9,6 @@
"textdomain": "default",
"usesContext": [ "queryId", "query" ],
"supports": {
"anchor": true,
"reusable": false,
"html": false,
"color": {
Expand Down

1 comment on commit 3854ce8

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 3854ce8.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4300372959
📝 Reported issues:

Please sign in to comment.