Changeset 59775 for trunk/src/wp-includes/blocks/blocks-json.php
- Timestamp:
- 02/07/2025 03:44:07 PM (18 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/blocks/blocks-json.php (modified) (44 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/blocks-json.php
r59119 r59775 28 28 'supports' => array( 29 29 'align' => true, 30 '__experimentalBorder' => array( 31 'radius' => true, 32 'color' => true, 33 'width' => true, 34 'style' => true 35 ), 30 36 'html' => false, 31 37 'spacing' => array( … … 325 331 ), 326 332 'typography' => array( 333 '__experimentalSkipSerialization' => array( 334 'fontSize', 335 'lineHeight', 336 'fontFamily', 337 'fontWeight', 338 'fontStyle', 339 'textTransform', 340 'textDecoration', 341 'letterSpacing' 342 ), 327 343 'fontSize' => true, 328 344 'lineHeight' => true, … … 365 381 ) 366 382 ), 367 '__experimentalSelector' => '.wp-block-button .wp-block-button__link',368 383 'interactivity' => array( 369 384 'clientNavigation' => true … … 382 397 ), 383 398 'editorStyle' => 'wp-block-button-editor', 384 'style' => 'wp-block-button' 399 'style' => 'wp-block-button', 400 'selectors' => array( 401 'root' => '.wp-block-button .wp-block-button__link', 402 'typography' => array( 403 'writingMode' => '.wp-block-button' 404 ) 405 ) 385 406 ), 386 407 'buttons' => array( … … 1315 1336 'fontSize' => true 1316 1337 ) 1338 ), 1339 '__experimentalBorder' => array( 1340 'radius' => true, 1341 'color' => true, 1342 'width' => true, 1343 'style' => true, 1344 '__experimentalDefaultControls' => array( 1345 'radius' => true, 1346 'color' => true, 1347 'width' => true, 1348 'style' => true 1349 ) 1317 1350 ) 1318 1351 ), … … 1343 1376 'type' => 'string', 1344 1377 'default' => 'none' 1378 ) 1379 ), 1380 'example' => array( 1381 'attributes' => array( 1382 'paginationArrow' => 'none' 1345 1383 ) 1346 1384 ), … … 1691 1729 'type' => 'string', 1692 1730 'default' => 'div' 1731 ), 1732 'sizeSlug' => array( 1733 'type' => 'string' 1693 1734 ) 1694 1735 ), … … 1785 1826 'source' => 'rich-text', 1786 1827 'selector' => 'summary' 1828 ), 1829 'name' => array( 1830 'type' => 'string', 1831 'source' => 'attribute', 1832 'attribute' => 'name', 1833 'selector' => '.wp-block-details' 1834 ), 1835 'allowedBlocks' => array( 1836 'type' => 'array' 1837 ), 1838 'placeholder' => array( 1839 'type' => 'string' 1787 1840 ) 1788 1841 ), … … 1793 1846 'full' 1794 1847 ), 1848 'anchor' => true, 1795 1849 'color' => array( 1796 1850 'gradients' => true, … … 1915 1969 ), 1916 1970 'href' => array( 1917 'type' => 'string' 1971 'type' => 'string', 1972 'role' => 'content' 1918 1973 ), 1919 1974 'fileId' => array( … … 1926 1981 'type' => 'rich-text', 1927 1982 'source' => 'rich-text', 1928 'selector' => 'a:not([download])' 1983 'selector' => 'a:not([download])', 1984 'role' => 'content' 1929 1985 ), 1930 1986 'textLinkHref' => array( … … 1932 1988 'source' => 'attribute', 1933 1989 'selector' => 'a:not([download])', 1934 'attribute' => 'href' 1990 'attribute' => 'href', 1991 'role' => 'content' 1935 1992 ), 1936 1993 'textLinkTarget' => array( … … 1947 2004 'type' => 'rich-text', 1948 2005 'source' => 'rich-text', 1949 'selector' => 'a[download]' 2006 'selector' => 'a[download]', 2007 'role' => 'content' 1950 2008 ), 1951 2009 'displayPreview' => array( … … 2421 2479 'radius' => true, 2422 2480 'style' => true, 2423 'width' => true, 2424 '__experimentalDefaultControls' => array( 2425 'color' => true, 2426 'radius' => true, 2427 'style' => true, 2428 'width' => true 2429 ) 2481 'width' => true 2430 2482 ), 2431 2483 'color' => array( … … 2552 2604 'allowResize', 2553 2605 'imageCrop', 2554 'fixedHeight' 2606 'fixedHeight', 2607 'postId', 2608 'postType', 2609 'queryId' 2555 2610 ), 2556 2611 'description' => 'Insert an image to make a visual statement.', … … 2890 2945 ) 2891 2946 ), 2947 '__experimentalBorder' => array( 2948 'radius' => true, 2949 'color' => true, 2950 'width' => true, 2951 'style' => true, 2952 '__experimentalDefaultControls' => array( 2953 'radius' => true, 2954 'color' => true, 2955 'width' => true, 2956 'style' => true 2957 ) 2958 ), 2892 2959 'interactivity' => array( 2893 2960 'clientNavigation' => true … … 3028 3095 'apiVersion' => 3, 3029 3096 'name' => 'core/list-item', 3030 'title' => 'List item',3097 'title' => 'List Item', 3031 3098 'category' => 'text', 3032 3099 'parent' => array( … … 3809 3876 'interactivity' => array( 3810 3877 'clientNavigation' => true 3878 ), 3879 'color' => array( 3880 'text' => true, 3881 'background' => true, 3882 'link' => true, 3883 'gradients' => true, 3884 '__experimentalDefaultControls' => array( 3885 'background' => true, 3886 'text' => true, 3887 'link' => true 3888 ) 3889 ), 3890 '__experimentalBorder' => array( 3891 'radius' => true, 3892 'color' => true, 3893 'width' => true, 3894 'style' => true 3895 ), 3896 'spacing' => array( 3897 'padding' => true, 3898 'margin' => true, 3899 '__experimentalDefaultControls' => array( 3900 'padding' => false, 3901 'margin' => false 3902 ) 3811 3903 ) 3812 3904 ), … … 3964 4056 'apiVersion' => 3, 3965 4057 'name' => 'core/pattern', 3966 'title' => 'Pattern placeholder',4058 'title' => 'Pattern Placeholder', 3967 4059 'category' => 'theme', 3968 4060 'description' => 'Show a block pattern.', … … 4010 4102 'isLink' => array( 4011 4103 'type' => 'boolean', 4012 'default' => false 4104 'default' => false, 4105 'role' => 'content' 4013 4106 ), 4014 4107 'linkTarget' => array( 4015 4108 'type' => 'string', 4016 'default' => '_self' 4109 'default' => '_self', 4110 'role' => 'content' 4017 4111 ) 4018 4112 ), … … 4147 4241 'isLink' => array( 4148 4242 'type' => 'boolean', 4149 'default' => false 4243 'default' => false, 4244 'role' => 'content' 4150 4245 ), 4151 4246 'linkTarget' => array( 4152 4247 'type' => 'string', 4153 'default' => '_self' 4248 'default' => '_self', 4249 'role' => 'content' 4154 4250 ) 4155 4251 ), … … 4268 4364 'wp-block-buttons', 4269 4365 'wp-block-button' 4366 ), 4367 'example' => array( 4368 'attributes' => array( 4369 'textAlign' => 'center' 4370 ) 4270 4371 ) 4271 4372 ), … … 4306 4407 'blockGap' => true, 4307 4408 'padding' => true, 4409 'margin' => true, 4308 4410 '__experimentalDefaultControls' => array( 4309 4411 'margin' => false, … … 4313 4415 'color' => array( 4314 4416 'gradients' => true, 4417 'heading' => true, 4315 4418 'link' => true, 4316 4419 '__experimentalDefaultControls' => array( … … 4331 4434 'fontSize' => true 4332 4435 ) 4436 ), 4437 '__experimentalBorder' => array( 4438 'radius' => true, 4439 'color' => true, 4440 'width' => true, 4441 'style' => true, 4442 '__experimentalDefaultControls' => array( 4443 'radius' => true, 4444 'color' => true, 4445 'width' => true, 4446 'style' => true 4447 ) 4333 4448 ) 4334 4449 ), … … 4353 4468 'isLink' => array( 4354 4469 'type' => 'boolean', 4355 'default' => false 4470 'default' => false, 4471 'role' => 'content' 4356 4472 ), 4357 4473 'displayType' => array( … … 4503 4619 'isLink' => array( 4504 4620 'type' => 'boolean', 4505 'default' => false 4621 'default' => false, 4622 'role' => 'content' 4506 4623 ), 4507 4624 'aspectRatio' => array( … … 4524 4641 'type' => 'string', 4525 4642 'attribute' => 'rel', 4526 'default' => '' 4643 'default' => '', 4644 'role' => 'content' 4527 4645 ), 4528 4646 'linkTarget' => array( 4529 4647 'type' => 'string', 4530 'default' => '_self' 4648 'default' => '_self', 4649 'role' => 'content' 4531 4650 ), 4532 4651 'overlayColor' => array( … … 4678 4797 'title' => 'Post Template', 4679 4798 'category' => 'theme', 4680 ' parent' => array(4799 'ancestor' => array( 4681 4800 'core/query' 4682 4801 ), … … 4689 4808 'templateSlug', 4690 4809 'previewPostType', 4691 'enhancedPagination' 4810 'enhancedPagination', 4811 'postType' 4692 4812 ), 4693 4813 'supports' => array( … … 4721 4841 ), 4722 4842 'spacing' => array( 4843 'margin' => true, 4844 'padding' => true, 4723 4845 'blockGap' => array( 4724 4846 '__experimentalDefault' => '1.25em' 4725 4847 ), 4726 4848 '__experimentalDefaultControls' => array( 4727 'blockGap' => true 4728 ) 4729 ), 4730 'interactivity' => array( 4731 'clientNavigation' => true 4849 'blockGap' => true, 4850 'padding' => false, 4851 'margin' => false 4852 ) 4853 ), 4854 'interactivity' => array( 4855 'clientNavigation' => true 4856 ), 4857 '__experimentalBorder' => array( 4858 'radius' => true, 4859 'color' => true, 4860 'width' => true, 4861 'style' => true 4732 4862 ) 4733 4863 ), … … 4842 4972 'isLink' => array( 4843 4973 'type' => 'boolean', 4844 'default' => false 4974 'default' => false, 4975 'role' => 'content' 4845 4976 ), 4846 4977 'rel' => array( 4847 4978 'type' => 'string', 4848 4979 'attribute' => 'rel', 4849 'default' => '' 4980 'default' => '', 4981 'role' => 'content' 4850 4982 ), 4851 4983 'linkTarget' => array( 4852 4984 'type' => 'string', 4853 'default' => '_self' 4985 'default' => '_self', 4986 'role' => 'content' 4854 4987 ) 4855 4988 ), … … 5072 5205 'category' => 'theme', 5073 5206 'description' => 'An advanced block that allows displaying post types based on different query parameters and visual configurations.', 5207 'keywords' => array( 5208 'posts', 5209 'list', 5210 'blog', 5211 'blogs', 5212 'custom post types' 5213 ), 5074 5214 'textdomain' => 'default', 5075 5215 'attributes' => array( … … 5115 5255 ), 5116 5256 'usesContext' => array( 5117 ' postType'5257 'templateSlug' 5118 5258 ), 5119 5259 'providesContext' => array( … … 5138 5278 'apiVersion' => 3, 5139 5279 'name' => 'core/query-no-results', 5140 'title' => 'No results',5280 'title' => 'No Results', 5141 5281 'category' => 'theme', 5142 5282 'description' => 'Contains the block elements used to render content when no query results are found.', 5143 ' parent' => array(5283 'ancestor' => array( 5144 5284 'core/query' 5145 5285 ), … … 5433 5573 ) 5434 5574 ), 5575 'example' => array( 5576 'attributes' => array( 5577 'type' => 'search' 5578 ) 5579 ), 5435 5580 'supports' => array( 5436 5581 'align' => array( … … 5480 5625 ), 5481 5626 'style' => 'wp-block-query-title' 5627 ), 5628 'query-total' => array( 5629 '$schema' => 'https://schemas.wp.org/trunk/block.json', 5630 'apiVersion' => 3, 5631 'name' => 'core/query-total', 5632 'title' => 'Query Total', 5633 'category' => 'theme', 5634 'ancestor' => array( 5635 'core/query' 5636 ), 5637 'description' => 'Display the total number of results in a query.', 5638 'textdomain' => 'default', 5639 'attributes' => array( 5640 'displayType' => array( 5641 'type' => 'string', 5642 'default' => 'total-results' 5643 ) 5644 ), 5645 'usesContext' => array( 5646 'queryId', 5647 'query' 5648 ), 5649 'supports' => array( 5650 'align' => array( 5651 'wide', 5652 'full' 5653 ), 5654 'html' => false, 5655 'spacing' => array( 5656 'margin' => true, 5657 'padding' => true 5658 ), 5659 'color' => array( 5660 'gradients' => true, 5661 'text' => true, 5662 '__experimentalDefaultControls' => array( 5663 'background' => true 5664 ) 5665 ), 5666 'typography' => array( 5667 'fontSize' => true, 5668 'lineHeight' => true, 5669 '__experimentalFontFamily' => true, 5670 '__experimentalFontWeight' => true, 5671 '__experimentalFontStyle' => true, 5672 '__experimentalTextTransform' => true, 5673 '__experimentalTextDecoration' => true, 5674 '__experimentalLetterSpacing' => true, 5675 '__experimentalDefaultControls' => array( 5676 'fontSize' => true 5677 ) 5678 ), 5679 '__experimentalBorder' => array( 5680 'radius' => true, 5681 'color' => true, 5682 'width' => true, 5683 'style' => true, 5684 '__experimentalDefaultControls' => array( 5685 'radius' => true, 5686 'color' => true, 5687 'width' => true, 5688 'style' => true 5689 ) 5690 ) 5691 ), 5692 'style' => 'wp-block-query-total' 5482 5693 ), 5483 5694 'quote' => array( … … 5711 5922 'interactivity' => array( 5712 5923 'clientNavigation' => true 5924 ), 5925 'color' => array( 5926 'background' => true, 5927 'text' => true, 5928 'gradients' => true, 5929 'link' => true 5713 5930 ) 5714 5931 ), … … 5836 6053 'type' => 'string', 5837 6054 'default' => 'alpha-channel' 6055 ), 6056 'tagName' => array( 6057 'type' => 'string', 6058 'enum' => array( 6059 'hr', 6060 'div' 6061 ), 6062 'default' => 'hr' 5838 6063 ) 5839 6064 ), … … 5918 6143 'isLink' => array( 5919 6144 'type' => 'boolean', 5920 'default' => true 6145 'default' => true, 6146 'role' => 'content' 5921 6147 ), 5922 6148 'linkTarget' => array( 5923 6149 'type' => 'string', 5924 'default' => '_self' 6150 'default' => '_self', 6151 'role' => 'content' 5925 6152 ), 5926 6153 'shouldSyncIcon' => array( … … 6086 6313 'isLink' => array( 6087 6314 'type' => 'boolean', 6088 'default' => true 6315 'default' => true, 6316 'role' => 'content' 6089 6317 ), 6090 6318 'linkTarget' => array( 6091 6319 'type' => 'string', 6092 'default' => '_self' 6320 'default' => '_self', 6321 'role' => 'content' 6093 6322 ) 6094 6323 ), … … 6159 6388 'attributes' => array( 6160 6389 'url' => array( 6161 'type' => 'string' 6390 'type' => 'string', 6391 'role' => 'content' 6162 6392 ), 6163 6393 'service' => array( … … 6165 6395 ), 6166 6396 'label' => array( 6167 'type' => 'string' 6397 'type' => 'string', 6398 'role' => 'content' 6168 6399 ), 6169 6400 'rel' => array( … … 6567 6798 ) 6568 6799 ), 6569 '__experimentalSelector' => '.wp-block-table > table', 6570 'interactivity' => array( 6571 'clientNavigation' => true 6572 ) 6800 'interactivity' => array( 6801 'clientNavigation' => true 6802 ) 6803 ), 6804 'selectors' => array( 6805 'root' => '.wp-block-table > table', 6806 'spacing' => '.wp-block-table' 6573 6807 ), 6574 6808 'styles' => array(
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)