Make WordPress Core


Ignore:
Timestamp:
01/29/2024 09:04:18 PM (13 months ago)
Author:
youknowriad
Message:

Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.

This patch, somewhat small brings a lot to WordPress.
This includes features like:

  • DataViews.
  • Customization tools like box shadow, background size and repeat.
  • UI improvements in the site editor.
  • Preferences sharing between the post and site editors.
  • Unified panels and editors between post and site editors.
  • Improved template mode in the post editor.
  • Iterations to multiple interactive blocks.
  • Preparing the blocks and UI for pattern overrides.
  • and a lot more.

Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks/blocks-json.php

    r56710 r57377  
    7676      ),
    7777      'caption' => array(
    78         'type' => 'string',
    79         'source' => 'html',
     78        'type' => 'rich-text',
     79        'source' => 'rich-text',
    8080        'selector' => 'figcaption',
    8181        '__experimentalRole' => 'content'
     
    155155      'spacing' => array(
    156156        'margin' => true,
    157         'padding' => true
     157        'padding' => true,
     158        '__experimentalDefaultControls' => array(
     159          'margin' => false,
     160          'padding' => false
     161        )
    158162      ),
    159163      '__experimentalBorder' => array(
     
    193197      'ref' => array(
    194198        'type' => 'number'
     199      ),
     200      'overrides' => array(
     201        'type' => 'object'
    195202      )
    196203    ),
     
    198205      'customClassName' => false,
    199206      'html' => false,
    200       'inserter' => false
     207      'inserter' => false,
     208      'renaming' => false
    201209    )
    202210  ),
     
    215223    ),
    216224    'textdomain' => 'default',
     225    'usesContext' => array(
     226      'pattern/overrides'
     227    ),
    217228    'attributes' => array(
    218229      'tagName' => array(
     
    246257      ),
    247258      'text' => array(
    248         'type' => 'string',
    249         'source' => 'html',
     259        'type' => 'rich-text',
     260        'source' => 'rich-text',
    250261        'selector' => 'a,button',
    251262        '__experimentalRole' => 'content'
     
    517528    'attributes' => array(
    518529      'content' => array(
    519         'type' => 'string',
    520         'source' => 'html',
     530        'type' => 'rich-text',
     531        'source' => 'rich-text',
    521532        'selector' => 'code',
    522533        '__unstablePreserveWhiteSpace' => true
     
    13151326      'core/comments'
    13161327    ),
    1317     'description' => 'Displays a title with the number of comments',
     1328    'description' => 'Displays a title with the number of comments.',
    13181329    'textdomain' => 'default',
    13191330    'usesContext' => array(
     
    13981409      'alt' => array(
    13991410        'type' => 'string',
    1400         'source' => 'attribute',
    1401         'selector' => 'img',
    1402         'attribute' => 'alt',
    14031411        'default' => ''
    14041412      ),
     
    14201428      'customOverlayColor' => array(
    14211429        'type' => 'string'
     1430      ),
     1431      'isUserOverlayColor' => array(
     1432        'type' => 'boolean'
    14221433      ),
    14231434      'backgroundType' => array(
     
    15091520        'enableContrastChecker' => false
    15101521      ),
     1522      'dimensions' => array(
     1523        'aspectRatio' => true
     1524      ),
    15111525      'typography' => array(
    15121526        'fontSize' => true,
     
    15491563      ),
    15501564      'summary' => array(
    1551         'type' => 'string',
    1552         'source' => 'html',
     1565        'type' => 'rich-text',
     1566        'source' => 'rich-text',
    15531567        'selector' => 'summary'
    15541568      )
     
    16161630      ),
    16171631      'caption' => array(
    1618         'type' => 'string',
    1619         'source' => 'html',
     1632        'type' => 'rich-text',
     1633        'source' => 'rich-text',
    16201634        'selector' => 'figcaption',
    16211635        '__experimentalRole' => 'content'
     
    16801694      ),
    16811695      'fileName' => array(
    1682         'type' => 'string',
    1683         'source' => 'html',
     1696        'type' => 'rich-text',
     1697        'source' => 'rich-text',
    16841698        'selector' => 'a:not([download])'
    16851699      ),
     
    17011715      ),
    17021716      'downloadButtonText' => array(
    1703         'type' => 'string',
    1704         'source' => 'html',
     1717        'type' => 'rich-text',
     1718        'source' => 'rich-text',
    17051719        'selector' => 'a[download]'
    17061720      ),
     
    17311745      'interactivity' => true
    17321746    ),
    1733     'viewScript' => 'file:./view.min.js',
    17341747    'editorStyle' => 'wp-block-file-editor',
    17351748    'style' => 'wp-block-file'
     
    17411754    'title' => 'Footnotes',
    17421755    'category' => 'text',
    1743     'description' => '',
     1756    'description' => 'Display footnotes added to the page.',
    17441757    'keywords' => array(
    17451758      'references'
     
    17751788      'multiple' => false,
    17761789      'reusable' => false,
     1790      'inserter' => false,
    17771791      'spacing' => array(
    17781792        'margin' => true,
     
    18741888          ),
    18751889          'caption' => array(
    1876             'type' => 'string',
    1877             'source' => 'html',
     1890            'type' => 'rich-text',
     1891            'source' => 'rich-text',
    18781892            'selector' => '.blocks-gallery-item__caption'
    18791893          )
     
    19041918      ),
    19051919      'caption' => array(
    1906         'type' => 'string',
    1907         'source' => 'html',
     1920        'type' => 'rich-text',
     1921        'source' => 'rich-text',
    19081922        'selector' => '.blocks-gallery-caption'
    19091923      ),
     
    19111925        'type' => 'boolean',
    19121926        'default' => true
     1927      ),
     1928      'randomOrder' => array(
     1929        'type' => 'boolean',
     1930        'default' => false
    19131931      ),
    19141932      'fixedHeight' => array(
     
    20192037      '__experimentalOnMerge' => true,
    20202038      '__experimentalSettings' => true,
    2021       '__experimentalMetadata' => true,
    20222039      'align' => array(
    20232040        'wide',
     
    20282045      'html' => false,
    20292046      'background' => array(
    2030         'backgroundImage' => true
     2047        'backgroundImage' => true,
     2048        'backgroundSize' => true,
     2049        '__experimentalDefaultControls' => array(
     2050          'backgroundImage' => true
     2051        )
    20312052      ),
    20322053      'color' => array(
     
    20532074      ),
    20542075      'dimensions' => array(
     2076        'aspectRatio' => true,
    20552077        'minHeight' => true
    20562078      ),
     
    21022124    ),
    21032125    'textdomain' => 'default',
     2126    'usesContext' => array(
     2127      'pattern/overrides'
     2128    ),
    21042129    'attributes' => array(
    21052130      'textAlign' => array(
     
    21072132      ),
    21082133      'content' => array(
    2109         'type' => 'string',
    2110         'source' => 'html',
     2134        'type' => 'rich-text',
     2135        'source' => 'rich-text',
    21112136        'selector' => 'h1,h2,h3,h4,h5,h6',
    2112         'default' => '',
    21132137        '__experimentalRole' => 'content'
    21142138      ),
     
    21552179        '__experimentalWritingMode' => true,
    21562180        '__experimentalDefaultControls' => array(
    2157           'fontSize' => true,
    2158           'fontAppearance' => true,
    2159           'textTransform' => true
     2181          'fontSize' => true
    21602182        )
    21612183      ),
     
    22442266      'allowResize',
    22452267      'imageCrop',
    2246       'fixedHeight'
     2268      'fixedHeight',
     2269      'pattern/overrides'
    22472270    ),
    22482271    'description' => 'Insert an image to make a visual statement.',
     
    22542277    'textdomain' => 'default',
    22552278    'attributes' => array(
    2256       'align' => array(
    2257         'type' => 'string'
    2258       ),
    22592279      'url' => array(
    22602280        'type' => 'string',
     
    22732293      ),
    22742294      'caption' => array(
    2275         'type' => 'string',
    2276         'source' => 'html',
     2295        'type' => 'rich-text',
     2296        'source' => 'rich-text',
    22772297        'selector' => 'figcaption',
    22782298        '__experimentalRole' => 'content'
     
    23402360    ),
    23412361    'supports' => array(
     2362      'interactivity' => true,
     2363      'align' => array(
     2364        'left',
     2365        'center',
     2366        'right',
     2367        'wide',
     2368        'full'
     2369      ),
    23422370      'anchor' => true,
    23432371      'color' => array(
     
    23782406    ),
    23792407    'editorStyle' => 'wp-block-image-editor',
    2380     'style' => 'wp-block-image',
    2381     'viewScript' => 'file:./view.min.js'
     2408    'style' => 'wp-block-image'
    23822409  ),
    23832410  'latest-comments' => array(
     
    25602587  ),
    25612588  'legacy-widget' => array(
     2589    '$schema' => 'https://schemas.wp.org/trunk/block.json',
    25622590    'apiVersion' => 3,
    25632591    'name' => 'core/legacy-widget',
     
    26872715      ),
    26882716      'content' => array(
    2689         'type' => 'string',
    2690         'source' => 'html',
     2717        'type' => 'rich-text',
     2718        'source' => 'rich-text',
    26912719        'selector' => 'li',
    2692         'default' => '',
    26932720        '__experimentalRole' => 'content'
    26942721      )
     
    26972724      'className' => false,
    26982725      '__experimentalSelector' => 'li',
     2726      'spacing' => array(
     2727        'margin' => true,
     2728        'padding' => true,
     2729        '__experimentalDefaultControls' => array(
     2730          'margin' => false,
     2731          'padding' => false
     2732        )
     2733      ),
    26992734      'typography' => array(
    27002735        'fontSize' => true,
     
    27372772    'supports' => array(
    27382773      'className' => true,
     2774      'spacing' => array(
     2775        'margin' => true,
     2776        'padding' => true,
     2777        '__experimentalDefaultControls' => array(
     2778          'margin' => false,
     2779          'padding' => false
     2780        )
     2781      ),
    27392782      'typography' => array(
    27402783        'fontSize' => true,
     
    29052948      'originalContent' => array(
    29062949        'type' => 'string',
    2907         'source' => 'html'
     2950        'source' => 'raw'
    29082951      )
    29092952    ),
     
    31023145        )
    31033146      ),
    3104       'interactivity' => true
    3105     ),
    3106     'viewScript' => 'file:./view.min.js',
     3147      'interactivity' => true,
     3148      'renaming' => false
     3149    ),
    31073150    'editorStyle' => 'wp-block-navigation-editor',
    31083151    'style' => 'wp-block-navigation'
     
    31833226          'fontSize' => true
    31843227        )
    3185       )
     3228      ),
     3229      'renaming' => false
    31863230    ),
    31873231    'editorStyle' => 'wp-block-navigation-link-editor',
     
    34043448    'textdomain' => 'default',
    34053449    'usesContext' => array(
    3406       'postId'
     3450      'postId',
     3451      'pattern/overrides'
    34073452    ),
    34083453    'attributes' => array(
     
    34113456      ),
    34123457      'content' => array(
    3413         'type' => 'string',
    3414         'source' => 'html',
     3458        'type' => 'rich-text',
     3459        'source' => 'rich-text',
    34153460        'selector' => 'p',
    3416         'default' => '',
    34173461        '__experimentalRole' => 'content'
    34183462      ),
     
    34433487        )
    34443488      ),
    3445       '__experimentalConnections' => true,
    34463489      'spacing' => array(
    34473490        'margin' => true,
     
    34813524    'supports' => array(
    34823525      'html' => false,
    3483       'inserter' => false
     3526      'inserter' => false,
     3527      'renaming' => false
    34843528    ),
    34853529    'textdomain' => 'default',
     
    39353979      'customGradient' => array(
    39363980        'type' => 'string'
     3981      ),
     3982      'useFirstImageFromPost' => array(
     3983        'type' => 'boolean',
     3984        'default' => false
    39373985      )
    39383986    ),
     
    40064054        'type' => 'string',
    40074055        'default' => 'none'
    4008       )
     4056      ),
     4057      'inSameTerm' => array(
     4058        'type' => 'boolean'
     4059      ),
     4060      'taxonomy' => array(
     4061        'type' => 'string',
     4062        'default' => ''
     4063      )
     4064    ),
     4065    'usesContext' => array(
     4066      'postType'
    40094067    ),
    40104068    'supports' => array(
     
    40454103      'queryId',
    40464104      'query',
    4047       'queryContext',
    40484105      'displayLayout',
    40494106      'templateSlug',
     
    42194276        '__experimentalLetterSpacing' => true,
    42204277        '__experimentalDefaultControls' => array(
    4221           'fontSize' => true,
    4222           'fontAppearance' => true,
    4223           'textTransform' => true
     4278          'fontSize' => true
    42244279        )
    42254280      )
     
    42374292    'attributes' => array(
    42384293      'content' => array(
    4239         'type' => 'string',
    4240         'source' => 'html',
     4294        'type' => 'rich-text',
     4295        'source' => 'rich-text',
    42414296        'selector' => 'pre',
    4242         'default' => '',
    42434297        '__unstablePreserveWhiteSpace' => true,
    42444298        '__experimentalRole' => 'content'
     
    42844338    'attributes' => array(
    42854339      'value' => array(
    4286         'type' => 'string',
    4287         'source' => 'html',
     4340        'type' => 'rich-text',
     4341        'source' => 'rich-text',
    42884342        'selector' => 'p',
    42894343        '__experimentalRole' => 'content'
    42904344      ),
    42914345      'citation' => array(
    4292         'type' => 'string',
    4293         'source' => 'html',
     4346        'type' => 'rich-text',
     4347        'source' => 'rich-text',
    42944348        'selector' => 'cite',
    4295         'default' => '',
    42964349        '__experimentalRole' => 'content'
    42974350      ),
     
    43174370        )
    43184371      ),
     4372      'spacing' => array(
     4373        'margin' => true,
     4374        'padding' => true
     4375      ),
    43194376      'typography' => array(
    43204377        'fontSize' => true,
     
    43274384        '__experimentalLetterSpacing' => true,
    43284385        '__experimentalDefaultControls' => array(
    4329           'fontSize' => true,
    4330           'fontAppearance' => true
     4386          'fontSize' => true
    43314387        )
    43324388      ),
     
    44144470    ),
    44154471    'editorStyle' => 'wp-block-query-editor',
    4416     'style' => 'wp-block-query',
    4417     'viewScript' => 'file:./view.min.js'
     4472    'style' => 'wp-block-query'
    44184473  ),
    44194474  'query-no-results' => array(
     
    45784633      'core/query-pagination'
    45794634    ),
    4580     'description' => 'Displays a list of page numbers for pagination',
     4635    'description' => 'Displays a list of page numbers for pagination.',
    45814636    'textdomain' => 'default',
    45824637    'attributes' => array(
     
    47204775        '__experimentalTextDecoration' => true,
    47214776        '__experimentalDefaultControls' => array(
    4722           'fontSize' => true,
    4723           'fontAppearance' => true,
    4724           'textTransform' => true
     4777          'fontSize' => true
    47254778        )
    47264779      )
     
    47504803      ),
    47514804      'citation' => array(
    4752         'type' => 'string',
    4753         'source' => 'html',
     4805        'type' => 'rich-text',
     4806        'source' => 'rich-text',
    47544807        'selector' => 'cite',
    4755         'default' => '',
    47564808        '__experimentalRole' => 'content'
    47574809      ),
     
    47754827        '__experimentalLetterSpacing' => true,
    47764828        '__experimentalDefaultControls' => array(
    4777           'fontSize' => true,
    4778           'fontAppearance' => true
     4829          'fontSize' => true
    47794830        )
    47804831      ),
     
    47874838          'text' => true
    47884839        )
     4840      ),
     4841      'layout' => array(
     4842        'allowEditing' => false
     4843      ),
     4844      'spacing' => array(
     4845        'blockGap' => true
    47894846      )
    47904847    ),
     
    49665023        )
    49675024      ),
    4968       'buttonBehavior' => array(
    4969         'type' => 'string',
    4970         'default' => 'expand-searchfield'
    4971       ),
    49725025      'isSearchFieldHidden' => array(
    49735026        'type' => 'boolean',
     
    50185071      'html' => false
    50195072    ),
    5020     'viewScript' => 'file:./view.min.js',
    50215073    'editorStyle' => 'wp-block-search-editor',
    50225074    'style' => 'wp-block-search'
     
    52845336        '__experimentalLetterSpacing' => true,
    52855337        '__experimentalDefaultControls' => array(
    5286           'fontSize' => true,
    5287           'lineHeight' => true,
    5288           'fontAppearance' => true,
    5289           'letterSpacing' => true,
    5290           'textTransform' => true
     5338          'fontSize' => true
    52915339        )
    52925340      )
     
    54975545      ),
    54985546      'caption' => array(
    5499         'type' => 'string',
    5500         'source' => 'html',
    5501         'selector' => 'figcaption',
    5502         'default' => ''
     5547        'type' => 'rich-text',
     5548        'source' => 'rich-text',
     5549        'selector' => 'figcaption'
    55035550      ),
    55045551      'head' => array(
     
    55195566            'query' => array(
    55205567              'content' => array(
    5521                 'type' => 'string',
    5522                 'source' => 'html'
     5568                'type' => 'rich-text',
     5569                'source' => 'rich-text'
    55235570              ),
    55245571              'tag' => array(
     
    55685615            'query' => array(
    55695616              'content' => array(
    5570                 'type' => 'string',
    5571                 'source' => 'html'
     5617                'type' => 'rich-text',
     5618                'source' => 'rich-text'
    55725619              ),
    55735620              'tag' => array(
     
    56175664            'query' => array(
    56185665              'content' => array(
    5619                 'type' => 'string',
    5620                 'source' => 'html'
     5666                'type' => 'rich-text',
     5667                'source' => 'rich-text'
    56215668              ),
    56225669              'tag' => array(
     
    57955842      'align' => true,
    57965843      'html' => false,
    5797       'reusable' => false
     5844      'reusable' => false,
     5845      'renaming' => false
    57985846    ),
    57995847    'editorStyle' => 'wp-block-template-part-editor'
     
    59015949    'attributes' => array(
    59025950      'content' => array(
    5903         'type' => 'string',
    5904         'source' => 'html',
     5951        'type' => 'rich-text',
     5952        'source' => 'rich-text',
    59055953        'selector' => 'pre',
    5906         'default' => '',
    59075954        '__unstablePreserveWhiteSpace' => true,
    59085955        '__experimentalRole' => 'content'
     
    59325979        '__experimentalTextDecoration' => true,
    59335980        '__experimentalDefaultControls' => array(
    5934           'fontSize' => true,
    5935           'fontAppearance' => true
     5981          'fontSize' => true
    59365982        )
    59375983      ),
     
    59736019      ),
    59746020      'caption' => array(
    5975         'type' => 'string',
    5976         'source' => 'html',
     6021        'type' => 'rich-text',
     6022        'source' => 'rich-text',
    59776023        'selector' => 'figcaption',
    59786024        '__experimentalRole' => 'content'
     
    60546100  ),
    60556101  'widget-group' => array(
     6102    '$schema' => 'https://schemas.wp.org/trunk/block.json',
    60566103    'apiVersion' => 3,
    60576104    'name' => 'core/widget-group',
Note: See TracChangeset for help on using the changeset viewer.