Changeset 56710 for trunk/src/wp-includes/blocks/blocks-json.php
- Timestamp:
- 09/26/2023 02:20:18 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/blocks-json.php
r56520 r56710 173 173 ) 174 174 ), 175 'selectors' => array( 176 'border' => '.wp-block-avatar img' 177 ), 175 178 'editorStyle' => 'wp-block-avatar-editor', 176 179 'style' => 'wp-block-avatar' … … 213 216 'textdomain' => 'default', 214 217 'attributes' => array( 218 'tagName' => array( 219 'type' => 'string', 220 'enum' => array( 221 'a', 222 'button' 223 ), 224 'default' => 'a' 225 ), 226 'type' => array( 227 'type' => 'string', 228 'default' => 'button' 229 ), 215 230 'textAlign' => array( 216 231 'type' => 'string' … … 226 241 'type' => 'string', 227 242 'source' => 'attribute', 228 'selector' => 'a ',243 'selector' => 'a,button', 229 244 'attribute' => 'title', 230 245 '__experimentalRole' => 'content' … … 233 248 'type' => 'string', 234 249 'source' => 'html', 235 'selector' => 'a ',250 'selector' => 'a,button', 236 251 '__experimentalRole' => 'content' 237 252 ), … … 504 519 'type' => 'string', 505 520 'source' => 'html', 506 'selector' => 'code' 521 'selector' => 'code', 522 '__unstablePreserveWhiteSpace' => true 507 523 ) 508 524 ), … … 593 609 ), 594 610 'supports' => array( 611 '__experimentalOnEnter' => true, 595 612 'anchor' => true, 596 613 'reusable' => false, … … 598 615 'color' => array( 599 616 'gradients' => true, 617 'heading' => true, 618 'button' => true, 600 619 'link' => true, 601 620 '__experimentalDefaultControls' => array( … … 677 696 'gradients' => true, 678 697 'link' => true, 698 'heading' => true, 699 'button' => true, 679 700 '__experimentalDefaultControls' => array( 680 701 'background' => true, … … 1067 1088 'color' => array( 1068 1089 'gradients' => true, 1090 'heading' => true, 1069 1091 'link' => true, 1070 1092 '__experimentalDefaultControls' => array( … … 1479 1501 'color' => array( 1480 1502 '__experimentalDuotone' => '> .wp-block-cover__image-background, > .wp-block-cover__video-background', 1503 'heading' => true, 1481 1504 'text' => true, 1482 1505 'background' => false, 1483 1506 '__experimentalSkipSerialization' => array( 1484 1507 'gradients' 1485 ) 1508 ), 1509 'enableContrastChecker' => false 1486 1510 ), 1487 1511 'typography' => array( … … 1513 1537 'description' => 'Hide and show additional content.', 1514 1538 'keywords' => array( 1515 ' disclosure',1539 'accordion', 1516 1540 'summary', 1517 'hide' 1541 'toggle', 1542 'disclosure' 1518 1543 ), 1519 1544 'textdomain' => 'default', … … 1524 1549 ), 1525 1550 'summary' => array( 1526 'type' => 'string' 1551 'type' => 'string', 1552 'source' => 'html', 1553 'selector' => 'summary' 1527 1554 ) 1528 1555 ), … … 1549 1576 'margin' => true, 1550 1577 'padding' => true, 1578 'blockGap' => true, 1551 1579 '__experimentalDefaultControls' => array( 1552 1580 'margin' => false, … … 1566 1594 'fontSize' => true 1567 1595 ) 1596 ), 1597 'layout' => array( 1598 'allowEditing' => false 1568 1599 ) 1569 1600 ), … … 1685 1716 'anchor' => true, 1686 1717 'align' => true, 1718 'spacing' => array( 1719 'margin' => true, 1720 'padding' => true 1721 ), 1687 1722 'color' => array( 1688 1723 'gradients' => true, … … 1693 1728 'link' => true 1694 1729 ) 1695 ) 1730 ), 1731 'interactivity' => true 1696 1732 ), 1697 1733 'viewScript' => 'file:./view.min.js', … … 1715 1751 ), 1716 1752 'supports' => array( 1753 '__experimentalBorder' => array( 1754 'radius' => true, 1755 'color' => true, 1756 'width' => true, 1757 'style' => true, 1758 '__experimentalDefaultControls' => array( 1759 'radius' => false, 1760 'color' => false, 1761 'width' => false, 1762 'style' => false 1763 ) 1764 ), 1765 'color' => array( 1766 'background' => true, 1767 'link' => true, 1768 'text' => true, 1769 '__experimentalDefaultControls' => array( 1770 'link' => true, 1771 'text' => true 1772 ) 1773 ), 1717 1774 'html' => false, 1718 1775 'multiple' => false, 1719 'reusable' => false 1776 'reusable' => false, 1777 'spacing' => array( 1778 'margin' => true, 1779 'padding' => true, 1780 '__experimentalDefaultControls' => array( 1781 'margin' => false, 1782 'padding' => false 1783 ) 1784 ), 1785 'typography' => array( 1786 'fontSize' => true, 1787 'lineHeight' => true, 1788 '__experimentalFontFamily' => true, 1789 '__experimentalTextDecoration' => true, 1790 '__experimentalFontStyle' => true, 1791 '__experimentalFontWeight' => true, 1792 '__experimentalLetterSpacing' => true, 1793 '__experimentalTextTransform' => true, 1794 '__experimentalWritingMode' => true, 1795 '__experimentalDefaultControls' => array( 1796 'fontSize' => true 1797 ) 1798 ) 1720 1799 ), 1721 1800 'style' => 'wp-block-footnotes' … … 1812 1891 'shortCodeTransforms' => array( 1813 1892 'type' => 'array', 1893 'items' => array( 1894 'type' => 'object' 1895 ), 1814 1896 'default' => array( 1815 1897 1816 ),1817 'items' => array(1818 'type' => 'object'1819 1898 ) 1820 1899 ), … … 1938 2017 'supports' => array( 1939 2018 '__experimentalOnEnter' => true, 2019 '__experimentalOnMerge' => true, 1940 2020 '__experimentalSettings' => true, 2021 '__experimentalMetadata' => true, 1941 2022 'align' => array( 1942 2023 'wide', … … 1946 2027 'ariaLabel' => true, 1947 2028 'html' => false, 2029 'background' => array( 2030 'backgroundImage' => true 2031 ), 1948 2032 'color' => array( 1949 2033 'gradients' => true, 2034 'heading' => true, 2035 'button' => true, 1950 2036 'link' => true, 1951 2037 '__experimentalDefaultControls' => array( … … 2067 2153 '__experimentalTextTransform' => true, 2068 2154 '__experimentalTextDecoration' => true, 2155 '__experimentalWritingMode' => true, 2069 2156 '__experimentalDefaultControls' => array( 2070 2157 'fontSize' => true, … … 2191 2278 '__experimentalRole' => 'content' 2192 2279 ), 2280 'lightbox' => array( 2281 'type' => 'object', 2282 'enabled' => array( 2283 'type' => 'boolean' 2284 ) 2285 ), 2193 2286 'title' => array( 2194 2287 'type' => 'string', … … 2248 2341 'supports' => array( 2249 2342 'anchor' => true, 2250 'behaviors' => array(2251 'lightbox' => true2252 ),2253 2343 'color' => array( 2254 2344 'text' => false, … … 2288 2378 ), 2289 2379 'editorStyle' => 'wp-block-image-editor', 2290 'style' => 'wp-block-image' 2380 'style' => 'wp-block-image', 2381 'viewScript' => 'file:./view.min.js' 2291 2382 ), 2292 2383 'latest-comments' => array( … … 2574 2665 '__unstablePasteTextInline' => true, 2575 2666 '__experimentalSelector' => 'ol,ul', 2667 '__experimentalOnMerge' => true, 2576 2668 '__experimentalSlashInserter' => true 2577 2669 ), … … 2768 2860 'color' => array( 2769 2861 'gradients' => true, 2862 'heading' => true, 2770 2863 'link' => true, 2771 2864 '__experimentalDefaultControls' => array( … … 2959 3052 'full' 2960 3053 ), 3054 'ariaLabel' => true, 2961 3055 'html' => false, 2962 3056 'inserter' => true, … … 3007 3101 ) 3008 3102 ) 3009 ) 3010 ), 3011 'viewScript' => array( 3012 'file:./view.min.js', 3013 'file:./view-modal.min.js' 3014 ), 3103 ), 3104 'interactivity' => true 3105 ), 3106 'viewScript' => 'file:./view.min.js', 3015 3107 'editorStyle' => 'wp-block-navigation-editor', 3016 3108 'style' => 'wp-block-navigation' … … 3311 3403 ), 3312 3404 'textdomain' => 'default', 3405 'usesContext' => array( 3406 'postId' 3407 ), 3313 3408 'attributes' => array( 3314 3409 'align' => array( … … 3348 3443 ) 3349 3444 ), 3445 '__experimentalConnections' => true, 3350 3446 'spacing' => array( 3351 3447 'margin' => true, … … 3365 3461 '__experimentalLetterSpacing' => true, 3366 3462 '__experimentalTextTransform' => true, 3463 '__experimentalWritingMode' => true, 3367 3464 '__experimentalDefaultControls' => array( 3368 3465 'fontSize' => true … … 3397 3494 'apiVersion' => 3, 3398 3495 'name' => 'core/post-author', 3399 'title' => ' PostAuthor',3496 'title' => 'Author', 3400 3497 'category' => 'theme', 3401 3498 'description' => 'Display post author details such as name, avatar, and bio.', … … 3468 3565 'apiVersion' => 3, 3469 3566 'name' => 'core/post-author-biography', 3470 'title' => ' PostAuthor Biography',3567 'title' => 'Author Biography', 3471 3568 'category' => 'theme', 3472 3569 'description' => 'The author biography.', … … 3513 3610 'apiVersion' => 3, 3514 3611 'name' => 'core/post-author-name', 3515 'title' => ' PostAuthor Name',3612 'title' => 'Author Name', 3516 3613 'category' => 'theme', 3517 3614 'description' => 'The author name.', … … 3568 3665 'apiVersion' => 3, 3569 3666 'name' => 'core/post-comments-form', 3570 'title' => ' PostComments Form',3667 'title' => 'Comments Form', 3571 3668 'category' => 'theme', 3572 3669 'description' => 'Display a post\'s comments form.', … … 3585 3682 'color' => array( 3586 3683 'gradients' => true, 3684 'heading' => true, 3587 3685 'link' => true, 3588 3686 '__experimentalDefaultControls' => array( … … 3618 3716 'apiVersion' => 3, 3619 3717 'name' => 'core/post-content', 3620 'title' => ' PostContent',3718 'title' => 'Content', 3621 3719 'category' => 'theme', 3622 3720 'description' => 'Displays the contents of a post or page.', … … 3637 3735 'minHeight' => true 3638 3736 ), 3737 'spacing' => array( 3738 'blockGap' => true 3739 ), 3740 'color' => array( 3741 'gradients' => true, 3742 'link' => true, 3743 '__experimentalDefaultControls' => array( 3744 'background' => false, 3745 'text' => false 3746 ) 3747 ), 3639 3748 'typography' => array( 3640 3749 'fontSize' => true, … … 3657 3766 'apiVersion' => 3, 3658 3767 'name' => 'core/post-date', 3659 'title' => ' PostDate',3768 'title' => 'Date', 3660 3769 'category' => 'theme', 3661 'description' => ' Add the date of this post.',3770 'description' => 'Display the publish date for an entry such as a post or page.', 3662 3771 'textdomain' => 'default', 3663 3772 'attributes' => array( … … 3777 3886 'apiVersion' => 3, 3778 3887 'name' => 'core/post-featured-image', 3779 'title' => ' PostFeatured Image',3888 'title' => 'Featured Image', 3780 3889 'category' => 'theme', 3781 3890 'description' => 'Display a post\'s featured image.', … … 3914 4023 '__experimentalTextDecoration' => true, 3915 4024 '__experimentalLetterSpacing' => true, 4025 '__experimentalWritingMode' => true, 3916 4026 '__experimentalDefaultControls' => array( 3917 4027 'fontSize' => true … … 3938 4048 'displayLayout', 3939 4049 'templateSlug', 3940 'previewPostType' 4050 'previewPostType', 4051 'enhancedPagination' 3941 4052 ), 3942 4053 'supports' => array( … … 4142 4253 'text' => true 4143 4254 ) 4255 ), 4256 'spacing' => array( 4257 'padding' => true, 4258 'margin' => true 4144 4259 ), 4145 4260 'typography' => array( … … 4278 4393 'namespace' => array( 4279 4394 'type' => 'string' 4395 ), 4396 'enhancedPagination' => array( 4397 'type' => 'boolean', 4398 'default' => false 4280 4399 ) 4281 4400 ), … … 4283 4402 'queryId' => 'queryId', 4284 4403 'query' => 'query', 4285 'displayLayout' => 'displayLayout' 4404 'displayLayout' => 'displayLayout', 4405 'enhancedPagination' => 'enhancedPagination' 4286 4406 ), 4287 4407 'supports' => array( … … 4293 4413 'layout' => true 4294 4414 ), 4295 'editorStyle' => 'wp-block-query-editor' 4415 'editorStyle' => 'wp-block-query-editor', 4416 'style' => 'wp-block-query', 4417 'viewScript' => 'file:./view.min.js' 4296 4418 ), 4297 4419 'query-no-results' => array( … … 4419 4541 'query', 4420 4542 'paginationArrow', 4421 'showLabel' 4543 'showLabel', 4544 'enhancedPagination' 4422 4545 ), 4423 4546 'supports' => array( … … 4457 4580 'description' => 'Displays a list of page numbers for pagination', 4458 4581 'textdomain' => 'default', 4582 'attributes' => array( 4583 'midSize' => array( 4584 'type' => 'number', 4585 'default' => 2 4586 ) 4587 ), 4459 4588 'usesContext' => array( 4460 4589 'queryId', 4461 'query' 4590 'query', 4591 'enhancedPagination' 4462 4592 ), 4463 4593 'supports' => array( … … 4507 4637 'query', 4508 4638 'paginationArrow', 4509 'showLabel' 4639 'showLabel', 4640 'enhancedPagination' 4510 4641 ), 4511 4642 'supports' => array( … … 4633 4764 'html' => false, 4634 4765 '__experimentalOnEnter' => true, 4766 '__experimentalOnMerge' => true, 4635 4767 'typography' => array( 4636 4768 'fontSize' => true, … … 4649 4781 'color' => array( 4650 4782 'gradients' => true, 4783 'heading' => true, 4651 4784 'link' => true, 4652 4785 '__experimentalDefaultControls' => array( … … 4856 4989 ) 4857 4990 ), 4991 'interactivity' => true, 4858 4992 'typography' => array( 4859 4993 '__experimentalSkipSerialization' => true,
Note: See TracChangeset
for help on using the changeset viewer.