Make WordPress Core

Changeset 52434


Ignore:
Timestamp:
01/04/2022 05:37:25 AM (3 years ago)
Author:
noisysocks
Message:

Update @wordpress packages

Update packages to include these bug fixes from Gutenberg:

  • Site Logo: Add option to set site icon from Site Logo block
  • Navigation: Enable even more compact setup state.
  • Remove template parts from post content inserter an unstable filter
  • Template Editor Mode: Hide editor mode switcher
  • Avoid using CSS variables for block gap styles
  • Try to fix auto resizing in template part focus mode
  • Lower the specificity of font size CSS Custom Properties in the editor
  • Site icon: Fix site icon styling to display non-square site icons within a square button
  • [Site Editor]: Register block editor shortcuts
  • Update regex to handle 404 template slug
  • Site Editor: Remove dead code
  • [Block Editor]: Restrict delete multi selected blocks shortcut
  • Fix: Gradients are not being applied by class
  • Update: Make the global styles subtitles font smaller
  • Post Content/Title: Reflect changes when previewing post
  • ServerSideRender: Fix loading state
  • [Block Library]: Fix editable post blocks in Query Loop with zero queryId
  • Post Excerpt: Fix previews
  • WP59: Contextualize "Export" string to differentiate it from other occurrences in WP Core
  • Tools Panel: Fix race conditions caused by conditionally displayed ToolsPanelItems
  • ToolsPanel: Allow items to register when panelId is null
  • Font Size Picker: Allow non-integers as simple CSS values and in hints
  • [Components - FontSizePicker]: Use incremental sequence of numbers as labels for the available font-sizes at the segmented control (conditionally)

See #54487.

Location:
trunk
Files:
1 deleted
17 edited

Legend:

Unmodified
Added
Removed
  • trunk/package-lock.json

    r52429 r52434  
    13981398        },
    13991399        "@emotion/babel-plugin": {
    1400             "version": "11.7.1",
    1401             "resolved": "https://registry.npmjs.org/@emotion/babel-plugin/-/babel-plugin-11.7.1.tgz",
    1402             "integrity": "sha512-K3/6Y+J/sIAjplf3uIteWLhPuOyuMNnE+iyYnTF/m294vc6IL90kTHp7y8ldZYbpKlP17rpOWDKM9DvTcrOmNQ==",
     1400            "version": "11.7.2",
     1401            "resolved": "https://registry.npmjs.org/@emotion/babel-plugin/-/babel-plugin-11.7.2.tgz",
     1402            "integrity": "sha512-6mGSCWi9UzXut/ZAN6lGFu33wGR3SJisNl3c0tvlmb8XChH1b2SUvxvnOh7hvLpqyRdHHU9AiazV3Cwbk5SXKQ==",
    14031403            "requires": {
    14041404                "@babel/helper-module-imports": "^7.12.13",
     
    22772277        },
    22782278        "@react-spring/animated": {
    2279             "version": "9.3.1",
    2280             "resolved": "https://registry.npmjs.org/@react-spring/animated/-/animated-9.3.1.tgz",
    2281             "integrity": "sha512-23YaERZ++BwZ8F8PxPFqrpOwp/JZun1Pj6aHZtPAU42j5LycBRasT9XMw7Eyr7zNFhT+rl3R3wFfd4WX6Ax+UA==",
    2282             "requires": {
    2283                 "@react-spring/shared": "~9.3.0",
    2284                 "@react-spring/types": "~9.3.0"
     2279            "version": "9.4.0",
     2280            "resolved": "https://registry.npmjs.org/@react-spring/animated/-/animated-9.4.0.tgz",
     2281            "integrity": "sha512-hOj90pXC1ovukgA63l6zQRr7jq6Lay/kUgwlMZWOwgaZoPb1J02BjLtS0rbFvx+BUMd3mrL0QVdno+B6eYsLQQ==",
     2282            "requires": {
     2283                "@react-spring/shared": "~9.4.0",
     2284                "@react-spring/types": "~9.4.0"
    22852285            }
    22862286        },
    22872287        "@react-spring/core": {
    2288             "version": "9.3.1",
    2289             "resolved": "https://registry.npmjs.org/@react-spring/core/-/core-9.3.1.tgz",
    2290             "integrity": "sha512-8rmfmEHLHGtF1CUiXRn64YJqsXNxv2cGX8oNnBnsuoE33c48Zc34t2VIMB4R9q5zwIUCvDBGfiEenA8ZAPxqOQ==",
    2291             "requires": {
    2292                 "@react-spring/animated": "~9.3.0",
    2293                 "@react-spring/shared": "~9.3.0",
    2294                 "@react-spring/types": "~9.3.0"
     2288            "version": "9.4.0",
     2289            "resolved": "https://registry.npmjs.org/@react-spring/core/-/core-9.4.0.tgz",
     2290            "integrity": "sha512-zJC6JgLTv42tdNLZiN8eRgKnVaQxRvGHt329GxZFB9/bhH9FqjOMQ2GsEu8uImw3eicaXlWy10Ssp4SQftZSPg==",
     2291            "requires": {
     2292                "@react-spring/animated": "~9.4.0",
     2293                "@react-spring/rafz": "~9.4.0",
     2294                "@react-spring/shared": "~9.4.0",
     2295                "@react-spring/types": "~9.4.0"
    22952296            }
    22962297        },
    22972298        "@react-spring/rafz": {
    2298             "version": "9.3.1",
    2299             "resolved": "https://registry.npmjs.org/@react-spring/rafz/-/rafz-9.3.1.tgz",
    2300             "integrity": "sha512-fEBMCarGVl+/2kdO+g6Zig4F+3ymwmcGN8S71gb1c7Cbbxb87kviPz8EhshfIHoiLeJPGlqwcuGbxNmZbBamvA=="
     2299            "version": "9.4.0",
     2300            "resolved": "https://registry.npmjs.org/@react-spring/rafz/-/rafz-9.4.0.tgz",
     2301            "integrity": "sha512-CqBLODaAZ9HrTNZyOtrr4XQ7CdUNd4OU3Hh7T6JSdB88MyJScsJBKCT9QaJop6wuhvQPiQEviMnD8TfKEkVfuw=="
    23012302        },
    23022303        "@react-spring/shared": {
    2303             "version": "9.3.1",
    2304             "resolved": "https://registry.npmjs.org/@react-spring/shared/-/shared-9.3.1.tgz",
    2305             "integrity": "sha512-jhPpxzURGo6Nty90ex1lkxmZae7w/VAbnGmb/nXcYoZwSoNR+W2aAd00iXsh2ZGz6MgoJOsc495JeG3uC7Am8A==",
    2306             "requires": {
    2307                 "@react-spring/rafz": "~9.3.0",
    2308                 "@react-spring/types": "~9.3.0"
     2304            "version": "9.4.0",
     2305            "resolved": "https://registry.npmjs.org/@react-spring/shared/-/shared-9.4.0.tgz",
     2306            "integrity": "sha512-VgQd8NxfbLTeWqzKpGMXXVf1IrmBKO8/fsHFiW+OxZdmFpz77G1aJZ+AnMgCcwrV9KtLdeG0G8YXOQrhsLA7dA==",
     2307            "requires": {
     2308                "@react-spring/rafz": "~9.4.0",
     2309                "@react-spring/types": "~9.4.0"
    23092310            }
    23102311        },
    23112312        "@react-spring/types": {
    2312             "version": "9.3.1",
    2313             "resolved": "https://registry.npmjs.org/@react-spring/types/-/types-9.3.1.tgz",
    2314             "integrity": "sha512-W/YMJMX35XgGGzX0gKORBTwnvQ+1loDOFN3XlZkW5fgpEY+7VkRUpPyqPWXQr3n6lHrsLmHIGdpznqZi54ACTQ=="
     2313            "version": "9.4.0",
     2314            "resolved": "https://registry.npmjs.org/@react-spring/types/-/types-9.4.0.tgz",
     2315            "integrity": "sha512-K49Fb/rPX6cSb15ZcW6d45NBYqAJbGh4MKpsBmvZWahJTXKtFDfQq10Bq0+wlLYQr8r1bgsE8v4blfCIdm6UoA=="
    23152316        },
    23162317        "@react-spring/web": {
    2317             "version": "9.3.1",
    2318             "resolved": "https://registry.npmjs.org/@react-spring/web/-/web-9.3.1.tgz",
    2319             "integrity": "sha512-sisZIgFGva/Z+xKWPSfXpukF0AP3kR9ALTxlHL87fVotMUCJX5vtH/YlVcywToEFwTHKt3MpI5Wy2M+vgVEeaw==",
    2320             "requires": {
    2321                 "@react-spring/animated": "~9.3.0",
    2322                 "@react-spring/core": "~9.3.0",
    2323                 "@react-spring/shared": "~9.3.0",
    2324                 "@react-spring/types": "~9.3.0"
     2318            "version": "9.4.0",
     2319            "resolved": "https://registry.npmjs.org/@react-spring/web/-/web-9.4.0.tgz",
     2320            "integrity": "sha512-czg38A12w5glP33cfbjiwRnpCw3TNBuJ8eVxP6H2frMnADESsxmSpe0vNlvxrCEOhZxbhUu3ILJ2v02H9LV7bw==",
     2321            "requires": {
     2322                "@react-spring/animated": "~9.4.0",
     2323                "@react-spring/core": "~9.4.0",
     2324                "@react-spring/shared": "~9.4.0",
     2325                "@react-spring/types": "~9.4.0"
    23252326            }
    23262327        },
     
    35403541        },
    35413542        "@wordpress/block-directory": {
    3542             "version": "3.0.19",
    3543             "resolved": "https://registry.npmjs.org/@wordpress/block-directory/-/block-directory-3.0.19.tgz",
    3544             "integrity": "sha512-gHD5cDjkri2NKY5vK+RubBgpHc+5zZA8uWULzvbqbVAlul9Qo+i8tkY900gYdhGQgxzcnfWJjU58zM9ML5MBRg==",
     3543            "version": "3.0.20",
     3544            "resolved": "https://registry.npmjs.org/@wordpress/block-directory/-/block-directory-3.0.20.tgz",
     3545            "integrity": "sha512-sm6dFYtHflHAeD1keC/oc7RN4GjdbOz18wxKGkyiOM8jzOIWqcrMcgfhzh98F6sSN/oJkYpTafpTQwT3Kz9nlQ==",
    35453546            "requires": {
    35463547                "@babel/runtime": "^7.16.0",
    35473548                "@wordpress/a11y": "^3.2.4",
    35483549                "@wordpress/api-fetch": "^5.2.6",
    3549                 "@wordpress/block-editor": "^8.0.12",
     3550                "@wordpress/block-editor": "^8.0.13",
    35503551                "@wordpress/blocks": "^11.1.5",
    3551                 "@wordpress/components": "^19.1.6",
     3552                "@wordpress/components": "^19.2.0",
    35523553                "@wordpress/compose": "^5.0.7",
    35533554                "@wordpress/core-data": "^4.0.9",
    35543555                "@wordpress/data": "^6.1.5",
    3555                 "@wordpress/edit-post": "^5.0.19",
    3556                 "@wordpress/editor": "^12.0.15",
     3556                "@wordpress/edit-post": "^5.0.20",
     3557                "@wordpress/editor": "^12.0.16",
    35573558                "@wordpress/element": "^4.0.4",
    35583559                "@wordpress/hooks": "^3.2.2",
     
    35673568        },
    35683569        "@wordpress/block-editor": {
    3569             "version": "8.0.12",
    3570             "resolved": "https://registry.npmjs.org/@wordpress/block-editor/-/block-editor-8.0.12.tgz",
    3571             "integrity": "sha512-wif8ntsph9N9s6wAh6xfEOQMzXg0uTnqaczoK01K+5gou01JILvGwaApTbWucgPDrLvU3CVW1Mt8USvBB2ujhw==",
     3570            "version": "8.0.13",
     3571            "resolved": "https://registry.npmjs.org/@wordpress/block-editor/-/block-editor-8.0.13.tgz",
     3572            "integrity": "sha512-U/0Hj6wwayOFqBZg8ObR6XaDMpEnq1PXsNemxKp4BhLixiBDKMC0eXC0kBQJYm6BouMVwiw2r0StIyvl+XFovA==",
    35723573            "requires": {
    35733574                "@babel/runtime": "^7.16.0",
     
    35783579                "@wordpress/block-serialization-default-parser": "^4.2.3",
    35793580                "@wordpress/blocks": "^11.1.5",
    3580                 "@wordpress/components": "^19.1.6",
     3581                "@wordpress/components": "^19.2.0",
    35813582                "@wordpress/compose": "^5.0.7",
    35823583                "@wordpress/data": "^6.1.5",
     
    36143615        },
    36153616        "@wordpress/block-library": {
    3616             "version": "6.0.17",
    3617             "resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-6.0.17.tgz",
    3618             "integrity": "sha512-/YC1eOHcb5ZokSODx04rcA5Qco3EDi3nIVZVyx1VMeJHxWB+qaYb49dnliqvnG/A5DoaEJeV5YsOMMbHbz914Q==",
     3617            "version": "6.0.18",
     3618            "resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-6.0.18.tgz",
     3619            "integrity": "sha512-U7JiHp5d+JkUtsSByplkvfbWonUbRLFS1Gm6afbICT1w4hj3xFFxgBo9aCc8VzQOFS/2fpoQUANEK6h5QUBdAg==",
    36193620            "requires": {
    36203621                "@babel/runtime": "^7.16.0",
     
    36233624                "@wordpress/autop": "^3.2.3",
    36243625                "@wordpress/blob": "^3.2.2",
    3625                 "@wordpress/block-editor": "^8.0.12",
     3626                "@wordpress/block-editor": "^8.0.13",
    36263627                "@wordpress/blocks": "^11.1.5",
    3627                 "@wordpress/components": "^19.1.6",
     3628                "@wordpress/components": "^19.2.0",
    36283629                "@wordpress/compose": "^5.0.7",
    36293630                "@wordpress/core-data": "^4.0.9",
     
    36383639                "@wordpress/i18n": "^4.2.4",
    36393640                "@wordpress/icons": "^6.1.1",
    3640                 "@wordpress/interface": "^4.1.14",
     3641                "@wordpress/interface": "^4.1.15",
    36413642                "@wordpress/is-shallow-equal": "^4.2.1",
    36423643                "@wordpress/keycodes": "^3.2.4",
    36433644                "@wordpress/notices": "^3.2.8",
    36443645                "@wordpress/primitives": "^3.0.4",
    3645                 "@wordpress/reusable-blocks": "^3.0.18",
     3646                "@wordpress/reusable-blocks": "^3.0.19",
    36463647                "@wordpress/rich-text": "^5.0.7",
    3647                 "@wordpress/server-side-render": "^3.0.16",
     3648                "@wordpress/server-side-render": "^3.0.17",
    36483649                "@wordpress/url": "^3.3.1",
    36493650                "@wordpress/viewport": "^4.0.7",
     
    37003701        },
    37013702        "@wordpress/components": {
    3702             "version": "19.1.6",
    3703             "resolved": "https://registry.npmjs.org/@wordpress/components/-/components-19.1.6.tgz",
    3704             "integrity": "sha512-+Vmj+w7aLudXUzBdAOA/1a/RKoFvVSckGfuF/qpsFCVv80t2a22sgG8ZVnjm6f+L5dcCQdr3xgvqyRgE4lOvqQ==",
     3703            "version": "19.2.0",
     3704            "resolved": "https://registry.npmjs.org/@wordpress/components/-/components-19.2.0.tgz",
     3705            "integrity": "sha512-IFvbH7Jo9jqbH+ZXCMm+tLaJDn95Q783aNtm9GVA+z3nJSyh4Dl2MXsRfOSE/mLd2iToPDCrpuHi51hr/lrGcw==",
    37053706            "requires": {
    37063707                "@babel/runtime": "^7.16.0",
     
    37963797        },
    37973798        "@wordpress/customize-widgets": {
    3798             "version": "2.0.19",
    3799             "resolved": "https://registry.npmjs.org/@wordpress/customize-widgets/-/customize-widgets-2.0.19.tgz",
    3800             "integrity": "sha512-nEXbAn+9Nik71p3dabXoJYvP5U0vuGBY2/8BRgNQWWHG/qhU9pkXhG12medpu53Ng86c0YyzlxK5hfru93LqvQ==",
     3799            "version": "2.0.20",
     3800            "resolved": "https://registry.npmjs.org/@wordpress/customize-widgets/-/customize-widgets-2.0.20.tgz",
     3801            "integrity": "sha512-80tz/X4QtJwsGXzhNcEOuDE298dDWzpr+uVI/8a/g9/f5Y8O2Qf+0EfUmscQ8HHo4eKjY284im1HviAZYonOKg==",
    38013802            "requires": {
    38023803                "@babel/runtime": "^7.16.0",
    38033804                "@wordpress/a11y": "^3.2.4",
    3804                 "@wordpress/block-editor": "^8.0.12",
    3805                 "@wordpress/block-library": "^6.0.17",
     3805                "@wordpress/block-editor": "^8.0.13",
     3806                "@wordpress/block-library": "^6.0.18",
    38063807                "@wordpress/blocks": "^11.1.5",
    3807                 "@wordpress/components": "^19.1.6",
     3808                "@wordpress/components": "^19.2.0",
    38083809                "@wordpress/compose": "^5.0.7",
    38093810                "@wordpress/core-data": "^4.0.9",
     
    38143815                "@wordpress/i18n": "^4.2.4",
    38153816                "@wordpress/icons": "^6.1.1",
    3816                 "@wordpress/interface": "^4.1.14",
     3817                "@wordpress/interface": "^4.1.15",
    38173818                "@wordpress/is-shallow-equal": "^4.2.1",
    38183819                "@wordpress/keyboard-shortcuts": "^3.0.7",
    38193820                "@wordpress/keycodes": "^3.2.4",
    38203821                "@wordpress/media-utils": "^3.0.5",
    3821                 "@wordpress/widgets": "^2.0.18",
     3822                "@wordpress/widgets": "^2.0.19",
    38223823                "classnames": "^2.3.1",
    38233824                "lodash": "^4.17.21"
     
    39483949        },
    39493950        "@wordpress/edit-post": {
    3950             "version": "5.0.19",
    3951             "resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-5.0.19.tgz",
    3952             "integrity": "sha512-uvEwH4cXsmZD+hMk/yOimUEyphhG0MsDwH5RVJQ/dTtuJZ+HmrzOAawF/L+GWP1/xpUHmTpbHFNdn2pULCS0CQ==",
     3951            "version": "5.0.20",
     3952            "resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-5.0.20.tgz",
     3953            "integrity": "sha512-7/8BT2vPin/vg6Opml3uFYhtFMjsdX4DGniiEUeZhoRLC7AiU1VNlxEKklTNRkMHQI4tCcr6+qc7YoMbB5nmyQ==",
    39533954            "requires": {
    39543955                "@babel/runtime": "^7.16.0",
    39553956                "@wordpress/a11y": "^3.2.4",
    39563957                "@wordpress/api-fetch": "^5.2.6",
    3957                 "@wordpress/block-editor": "^8.0.12",
    3958                 "@wordpress/block-library": "^6.0.17",
     3958                "@wordpress/block-editor": "^8.0.13",
     3959                "@wordpress/block-library": "^6.0.18",
    39593960                "@wordpress/blocks": "^11.1.5",
    3960                 "@wordpress/components": "^19.1.6",
     3961                "@wordpress/components": "^19.2.0",
    39613962                "@wordpress/compose": "^5.0.7",
    39623963                "@wordpress/core-data": "^4.0.9",
    39633964                "@wordpress/data": "^6.1.5",
    39643965                "@wordpress/data-controls": "^2.2.8",
    3965                 "@wordpress/editor": "^12.0.15",
     3966                "@wordpress/editor": "^12.0.16",
    39663967                "@wordpress/element": "^4.0.4",
    39673968                "@wordpress/hooks": "^3.2.2",
    39683969                "@wordpress/i18n": "^4.2.4",
    39693970                "@wordpress/icons": "^6.1.1",
    3970                 "@wordpress/interface": "^4.1.14",
     3971                "@wordpress/interface": "^4.1.15",
    39713972                "@wordpress/keyboard-shortcuts": "^3.0.7",
    39723973                "@wordpress/keycodes": "^3.2.4",
     
    39933994        },
    39943995        "@wordpress/edit-site": {
    3995             "version": "3.0.19",
    3996             "resolved": "https://registry.npmjs.org/@wordpress/edit-site/-/edit-site-3.0.19.tgz",
    3997             "integrity": "sha512-TwZ2svgbmPl0pbIbCFoabFYVNx6HjGl6wOMbj5NBb8Vy2qszPM/6hJOTc18c20YoMid9uR1taHC+R0/uRGHiTQ==",
     3996            "version": "3.0.20",
     3997            "resolved": "https://registry.npmjs.org/@wordpress/edit-site/-/edit-site-3.0.20.tgz",
     3998            "integrity": "sha512-rfT8ex8uYn2DpcRFO3ola2NhywBrxV2Yzy2BA9MvI7tIo+/2UFJVrFROafycb1pXjufwrq35ST69XvUMRvL6Fg==",
    39983999            "requires": {
    39994000                "@babel/runtime": "^7.16.0",
    40004001                "@wordpress/a11y": "^3.2.4",
    40014002                "@wordpress/api-fetch": "^5.2.6",
    4002                 "@wordpress/block-editor": "^8.0.12",
    4003                 "@wordpress/block-library": "^6.0.17",
     4003                "@wordpress/block-editor": "^8.0.13",
     4004                "@wordpress/block-library": "^6.0.18",
    40044005                "@wordpress/blocks": "^11.1.5",
    4005                 "@wordpress/components": "^19.1.6",
     4006                "@wordpress/components": "^19.2.0",
    40064007                "@wordpress/compose": "^5.0.7",
    40074008                "@wordpress/core-data": "^4.0.9",
    40084009                "@wordpress/data": "^6.1.5",
    40094010                "@wordpress/data-controls": "^2.2.8",
    4010                 "@wordpress/editor": "^12.0.15",
     4011                "@wordpress/editor": "^12.0.16",
    40114012                "@wordpress/element": "^4.0.4",
    40124013                "@wordpress/hooks": "^3.2.2",
     
    40144015                "@wordpress/i18n": "^4.2.4",
    40154016                "@wordpress/icons": "^6.1.1",
    4016                 "@wordpress/interface": "^4.1.14",
     4017                "@wordpress/interface": "^4.1.15",
    40174018                "@wordpress/keyboard-shortcuts": "^3.0.7",
    40184019                "@wordpress/keycodes": "^3.2.4",
     
    40214022                "@wordpress/plugins": "^4.0.7",
    40224023                "@wordpress/primitives": "^3.0.4",
    4023                 "@wordpress/reusable-blocks": "^3.0.18",
     4024                "@wordpress/reusable-blocks": "^3.0.19",
    40244025                "@wordpress/url": "^3.3.1",
    40254026                "@wordpress/viewport": "^4.0.7",
     
    40344035        },
    40354036        "@wordpress/edit-widgets": {
    4036             "version": "3.1.14",
    4037             "resolved": "https://registry.npmjs.org/@wordpress/edit-widgets/-/edit-widgets-3.1.14.tgz",
    4038             "integrity": "sha512-7OpU4tGLUM7arEXFtIEK1l7ozelpyzQqjoY3jgVo+GS9mM6Ia87jhJGzy4coCNuumb9Jp8DHwI85oZapUY9FPg==",
     4037            "version": "3.1.15",
     4038            "resolved": "https://registry.npmjs.org/@wordpress/edit-widgets/-/edit-widgets-3.1.15.tgz",
     4039            "integrity": "sha512-mgetLhi5yaJ5b6VDD6GuTsMWZJhyt9yb/RBhtiubyVnCO9yPg9W1VoKFDT/r5+arDshqrHweSr5nxQG+qcRWww==",
    40394040            "requires": {
    40404041                "@babel/runtime": "^7.16.0",
    40414042                "@wordpress/a11y": "^3.2.4",
    40424043                "@wordpress/api-fetch": "^5.2.6",
    4043                 "@wordpress/block-editor": "^8.0.12",
    4044                 "@wordpress/block-library": "^6.0.17",
     4044                "@wordpress/block-editor": "^8.0.13",
     4045                "@wordpress/block-library": "^6.0.18",
    40454046                "@wordpress/blocks": "^11.1.5",
    4046                 "@wordpress/components": "^19.1.6",
     4047                "@wordpress/components": "^19.2.0",
    40474048                "@wordpress/compose": "^5.0.7",
    40484049                "@wordpress/core-data": "^4.0.9",
     
    40534054                "@wordpress/i18n": "^4.2.4",
    40544055                "@wordpress/icons": "^6.1.1",
    4055                 "@wordpress/interface": "^4.1.14",
     4056                "@wordpress/interface": "^4.1.15",
    40564057                "@wordpress/keyboard-shortcuts": "^3.0.7",
    40574058                "@wordpress/keycodes": "^3.2.4",
     
    40594060                "@wordpress/notices": "^3.2.8",
    40604061                "@wordpress/plugins": "^4.0.7",
    4061                 "@wordpress/reusable-blocks": "^3.0.18",
    4062                 "@wordpress/server-side-render": "^3.0.16",
     4062                "@wordpress/reusable-blocks": "^3.0.19",
     4063                "@wordpress/server-side-render": "^3.0.17",
    40634064                "@wordpress/url": "^3.3.1",
    4064                 "@wordpress/widgets": "^2.0.18",
     4065                "@wordpress/widgets": "^2.0.19",
    40654066                "classnames": "^2.3.1",
    40664067                "lodash": "^4.17.21",
     
    40704071        },
    40714072        "@wordpress/editor": {
    4072             "version": "12.0.15",
    4073             "resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-12.0.15.tgz",
    4074             "integrity": "sha512-eJ2ne6GYHnso6GPbRVRRhwTz3Eg4sp/HfV5bacfiKsdN4yd/3Ci1ABvhJD4JtFq2vXZPfE02sWhjRXgSpbcY1w==",
     4073            "version": "12.0.16",
     4074            "resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-12.0.16.tgz",
     4075            "integrity": "sha512-RtDf0h0lh613qudt5eG9EbG5Pp5PMuB8yfwnHCrA8d0yGaF24k3pxE7QMBaWeAcKGnDwev30Nt980nBtcm5+1w==",
    40754076            "requires": {
    40764077                "@babel/runtime": "^7.16.0",
     
    40794080                "@wordpress/autop": "^3.2.3",
    40804081                "@wordpress/blob": "^3.2.2",
    4081                 "@wordpress/block-editor": "^8.0.12",
     4082                "@wordpress/block-editor": "^8.0.13",
    40824083                "@wordpress/blocks": "^11.1.5",
    4083                 "@wordpress/components": "^19.1.6",
     4084                "@wordpress/components": "^19.2.0",
    40844085                "@wordpress/compose": "^5.0.7",
    40854086                "@wordpress/core-data": "^4.0.9",
     
    40984099                "@wordpress/media-utils": "^3.0.5",
    40994100                "@wordpress/notices": "^3.2.8",
    4100                 "@wordpress/reusable-blocks": "^3.0.18",
     4101                "@wordpress/reusable-blocks": "^3.0.19",
    41014102                "@wordpress/rich-text": "^5.0.7",
    4102                 "@wordpress/server-side-render": "^3.0.16",
     4103                "@wordpress/server-side-render": "^3.0.17",
    41034104                "@wordpress/url": "^3.3.1",
    41044105                "@wordpress/wordcount": "^3.2.3",
     
    41874188        },
    41884189        "@wordpress/format-library": {
    4189             "version": "3.0.18",
    4190             "resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-3.0.18.tgz",
    4191             "integrity": "sha512-HWuCsG4/tDLRunEC5U4I6SqUGRe1jWPAO/62QFewRI/zxDi5tCi6pYl9N1Sn6rOCKWfcKKkEZcno6IN4H4g9Dw==",
     4190            "version": "3.0.19",
     4191            "resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-3.0.19.tgz",
     4192            "integrity": "sha512-MsXaS1QgMtkZUioStCnAQViIOcLPS5OqsJAwnl5/aVvmciV+IABtT4ffPCaiShiTyqBiZMj8UEaaJD8SOeZidw==",
    41924193            "requires": {
    41934194                "@babel/runtime": "^7.16.0",
    41944195                "@wordpress/a11y": "^3.2.4",
    4195                 "@wordpress/block-editor": "^8.0.12",
    4196                 "@wordpress/components": "^19.1.6",
     4196                "@wordpress/block-editor": "^8.0.13",
     4197                "@wordpress/components": "^19.2.0",
    41974198                "@wordpress/compose": "^5.0.7",
    41984199                "@wordpress/data": "^6.1.5",
     
    42494250        },
    42504251        "@wordpress/interface": {
    4251             "version": "4.1.14",
    4252             "resolved": "https://registry.npmjs.org/@wordpress/interface/-/interface-4.1.14.tgz",
    4253             "integrity": "sha512-jFz4l0OajxHBX9vI2muH6fs2ZlzAJKk2dIGnPcOHpZJbXdOIsu4D2lMQMQJOn8G0018q9f2iowMTU9JWYr31zg==",
     4252            "version": "4.1.15",
     4253            "resolved": "https://registry.npmjs.org/@wordpress/interface/-/interface-4.1.15.tgz",
     4254            "integrity": "sha512-11vTvDG08A0QMicNc4hJBNMFDATRxWPEEEiB0g2pZRyZ09kMXcJ4Je9SdZz5jl2Bz/x8oEeTYeLqyvioq928cw==",
    42544255            "requires": {
    42554256                "@babel/runtime": "^7.16.0",
    42564257                "@wordpress/a11y": "^3.2.4",
    4257                 "@wordpress/components": "^19.1.6",
     4258                "@wordpress/components": "^19.2.0",
    42584259                "@wordpress/compose": "^5.0.7",
    42594260                "@wordpress/data": "^6.1.5",
     
    43534354        },
    43544355        "@wordpress/list-reusable-blocks": {
    4355             "version": "3.0.16",
    4356             "resolved": "https://registry.npmjs.org/@wordpress/list-reusable-blocks/-/list-reusable-blocks-3.0.16.tgz",
    4357             "integrity": "sha512-ABiWh7nxYU9zpfONvxw+OW/lSvgWwtpT119IWcBUq7mywl3IY48zessHbCkkeTllD0CFKJLceuLCPm95Nn0vng==",
     4356            "version": "3.0.17",
     4357            "resolved": "https://registry.npmjs.org/@wordpress/list-reusable-blocks/-/list-reusable-blocks-3.0.17.tgz",
     4358            "integrity": "sha512-tYmCzIVhOUHlmINMtCvWwUfgfaorwv1+mAHdPJ2XqCW5e27ws3EdWJxqdTWZNu1Z8Rz9ucv+mOHyOxL91JByhg==",
    43584359            "requires": {
    43594360                "@babel/runtime": "^7.16.0",
    43604361                "@wordpress/api-fetch": "^5.2.6",
    4361                 "@wordpress/components": "^19.1.6",
     4362                "@wordpress/components": "^19.2.0",
    43624363                "@wordpress/compose": "^5.0.7",
    43634364                "@wordpress/element": "^4.0.4",
     
    43974398        },
    43984399        "@wordpress/nux": {
    4399             "version": "5.0.16",
    4400             "resolved": "https://registry.npmjs.org/@wordpress/nux/-/nux-5.0.16.tgz",
    4401             "integrity": "sha512-pULdjKfs0XZR06Le1fI8+0wuyhNGn2gkKJugApXtsP5gB/pZ+YWyRG44ZEFEqN4mZ1gBq6n50BkfQ7u5NPEE3w==",
     4400            "version": "5.0.17",
     4401            "resolved": "https://registry.npmjs.org/@wordpress/nux/-/nux-5.0.17.tgz",
     4402            "integrity": "sha512-W122kgEW5ZfAsYPN7sc9372GPE4Iulx9h8zB2z5E+Vz/CqrVvw/TDQqJgqk7DPScQWGcqWTIfHJh0zyDdY8yRw==",
    44024403            "requires": {
    44034404                "@babel/runtime": "^7.16.0",
    4404                 "@wordpress/components": "^19.1.6",
     4405                "@wordpress/components": "^19.2.0",
    44054406                "@wordpress/compose": "^5.0.7",
    44064407                "@wordpress/data": "^6.1.5",
     
    45274528        },
    45284529        "@wordpress/reusable-blocks": {
    4529             "version": "3.0.18",
    4530             "resolved": "https://registry.npmjs.org/@wordpress/reusable-blocks/-/reusable-blocks-3.0.18.tgz",
    4531             "integrity": "sha512-AzKPtWFgeqCrW35Yui66JHYlPJp3GIfnm+syQRS/7Qn9hbcMe1awuoSbv2OI0FQeoe8oWQWykrex1QUA3w5rUw==",
    4532             "requires": {
    4533                 "@wordpress/block-editor": "^8.0.12",
     4530            "version": "3.0.19",
     4531            "resolved": "https://registry.npmjs.org/@wordpress/reusable-blocks/-/reusable-blocks-3.0.19.tgz",
     4532            "integrity": "sha512-EU4Vo3ETTTN5DAQCrgh3AOuVRsZCrIJ1LcRgGJfFBSEJe6Sto3pxxj3ZtI+Goc4U553q3M/qpghHZNo1JZcfew==",
     4533            "requires": {
     4534                "@wordpress/block-editor": "^8.0.13",
    45344535                "@wordpress/blocks": "^11.1.5",
    4535                 "@wordpress/components": "^19.1.6",
     4536                "@wordpress/components": "^19.2.0",
    45364537                "@wordpress/compose": "^5.0.7",
    45374538                "@wordpress/core-data": "^4.0.9",
     
    54995500        },
    55005501        "@wordpress/server-side-render": {
    5501             "version": "3.0.16",
    5502             "resolved": "https://registry.npmjs.org/@wordpress/server-side-render/-/server-side-render-3.0.16.tgz",
    5503             "integrity": "sha512-cHuzL9fowuVz8G4Yz+DbbS850h+iUjM8+5jYzRZ9DH04fv/Y/dEGbdxZQ2K/p9wFQrQfnJ4EWUxJV1lUN/HTUw==",
     5502            "version": "3.0.17",
     5503            "resolved": "https://registry.npmjs.org/@wordpress/server-side-render/-/server-side-render-3.0.17.tgz",
     5504            "integrity": "sha512-UIyywGUSlbOVFi1SNwI/uUmHmUJFX+N9XeBCAnS15PmfYflBkiuz9FPmZWoqLoOE4uWTI7K9lAP1tkY80lotIA==",
    55045505            "requires": {
    55055506                "@babel/runtime": "^7.16.0",
    55065507                "@wordpress/api-fetch": "^5.2.6",
    55075508                "@wordpress/blocks": "^11.1.5",
    5508                 "@wordpress/components": "^19.1.6",
     5509                "@wordpress/components": "^19.2.0",
    55095510                "@wordpress/compose": "^5.0.7",
    55105511                "@wordpress/data": "^6.1.5",
     
    55725573        },
    55735574        "@wordpress/widgets": {
    5574             "version": "2.0.18",
    5575             "resolved": "https://registry.npmjs.org/@wordpress/widgets/-/widgets-2.0.18.tgz",
    5576             "integrity": "sha512-Hryq9W1V45zyNn0TFKSrdSYG0FrTLaApNYRpWM7nBuuyaUkFa4C3rqZsUIrsnpmjbKU9DKpT03W1o2BzOLq8ug==",
     5575            "version": "2.0.19",
     5576            "resolved": "https://registry.npmjs.org/@wordpress/widgets/-/widgets-2.0.19.tgz",
     5577            "integrity": "sha512-TSPV0pYikUXvSH3L3TToLFDXwB0gjRVcL7/TpQyFiaN5QfONOGpxZBoCbW0l3w+z/ZhzTtwe/BwX25TFmEHILg==",
    55775578            "requires": {
    55785579                "@babel/runtime": "^7.16.0",
    55795580                "@wordpress/api-fetch": "^5.2.6",
    5580                 "@wordpress/block-editor": "^8.0.12",
     5581                "@wordpress/block-editor": "^8.0.13",
    55815582                "@wordpress/blocks": "^11.1.5",
    5582                 "@wordpress/components": "^19.1.6",
     5583                "@wordpress/components": "^19.2.0",
    55835584                "@wordpress/compose": "^5.0.7",
    55845585                "@wordpress/core-data": "^4.0.9",
  • trunk/package.json

    r52429 r52434  
    8383        "@wordpress/autop": "3.2.3",
    8484        "@wordpress/blob": "3.2.2",
    85         "@wordpress/block-directory": "3.0.19",
    86         "@wordpress/block-editor": "8.0.12",
    87         "@wordpress/block-library": "6.0.17",
     85        "@wordpress/block-directory": "3.0.20",
     86        "@wordpress/block-editor": "8.0.13",
     87        "@wordpress/block-library": "6.0.18",
    8888        "@wordpress/block-serialization-default-parser": "4.2.3",
    8989        "@wordpress/blocks": "11.1.5",
    90         "@wordpress/components": "19.1.6",
     90        "@wordpress/components": "19.2.0",
    9191        "@wordpress/compose": "5.0.7",
    9292        "@wordpress/core-data": "4.0.9",
    93         "@wordpress/customize-widgets": "2.0.19",
     93        "@wordpress/customize-widgets": "2.0.20",
    9494        "@wordpress/data": "6.1.5",
    9595        "@wordpress/data-controls": "2.2.8",
     
    9898        "@wordpress/dom": "3.2.7",
    9999        "@wordpress/dom-ready": "3.2.3",
    100         "@wordpress/edit-post": "5.0.19",
    101         "@wordpress/edit-site": "3.0.19",
    102         "@wordpress/edit-widgets": "3.1.14",
    103         "@wordpress/editor": "12.0.15",
     100        "@wordpress/edit-post": "5.0.20",
     101        "@wordpress/edit-site": "3.0.20",
     102        "@wordpress/edit-widgets": "3.1.15",
     103        "@wordpress/editor": "12.0.16",
    104104        "@wordpress/element": "4.0.4",
    105105        "@wordpress/escape-html": "2.2.3",
    106         "@wordpress/format-library": "3.0.18",
     106        "@wordpress/format-library": "3.0.19",
    107107        "@wordpress/hooks": "3.2.2",
    108108        "@wordpress/html-entities": "3.2.3",
    109109        "@wordpress/i18n": "4.2.4",
    110110        "@wordpress/icons": "6.1.1",
    111         "@wordpress/interface": "4.1.14",
     111        "@wordpress/interface": "4.1.15",
    112112        "@wordpress/is-shallow-equal": "4.2.1",
    113113        "@wordpress/keyboard-shortcuts": "3.0.7",
    114114        "@wordpress/keycodes": "3.2.4",
    115         "@wordpress/list-reusable-blocks": "3.0.16",
     115        "@wordpress/list-reusable-blocks": "3.0.17",
    116116        "@wordpress/media-utils": "3.0.5",
    117117        "@wordpress/notices": "3.2.8",
    118         "@wordpress/nux": "5.0.16",
     118        "@wordpress/nux": "5.0.17",
    119119        "@wordpress/plugins": "4.0.7",
    120120        "@wordpress/primitives": "3.0.4",
    121121        "@wordpress/priority-queue": "2.2.3",
    122122        "@wordpress/redux-routine": "4.2.2",
    123         "@wordpress/reusable-blocks": "3.0.18",
     123        "@wordpress/reusable-blocks": "3.0.19",
    124124        "@wordpress/rich-text": "5.0.7",
    125         "@wordpress/server-side-render": "3.0.16",
     125        "@wordpress/server-side-render": "3.0.17",
    126126        "@wordpress/shortcode": "3.2.3",
    127127        "@wordpress/token-list": "2.2.2",
     
    129129        "@wordpress/viewport": "4.0.7",
    130130        "@wordpress/warning": "2.2.2",
    131         "@wordpress/widgets": "2.0.18",
     131        "@wordpress/widgets": "2.0.19",
    132132        "@wordpress/wordcount": "3.2.3",
    133133        "backbone": "1.4.0",
  • trunk/src/wp-includes/assets/script-loader-packages.php

    r52402 r52434  
    1 <?php return array('a11y.js' => array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => 'fa03f246887237d01c383e85ff6f107c'), 'annotations.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => 'acd6ed75d460d0d3781e1ef6c12cf2aa'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '59f6dbf5a1d9a141515c25411bc4f01e'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'e65166da67ee5d5ff66d36ab14532b3b'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b8855b04f6a52a7bca89f8d945d46866'), 'block-directory.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => 'a8ff26eaaddf949aee8669d14277aec3'), 'block-editor.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-shortcode', 'wp-token-list', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => '70766723a1d46b8e71e00462caf5d2ef'), 'block-library.js' => array('dependencies' => array('lodash', 'moment', 'wp-a11y', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => '8a91e82c434e7cd1aea9c505ad67e51a'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'cc8e5d0e23cf68bb9944bf2a7a016e52'), 'blocks.js' => array('dependencies' => array('lodash', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-shortcode'), 'version' => 'a32036d432544d670dbd252aafb343aa'), 'components.js' => array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-warning'), 'version' => '414c4f189ece4f85f23026b82fa52400'), 'compose.js' => array('dependencies' => array('lodash', 'react', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-priority-queue'), 'version' => '1491dea52ef44b12c4130dc7fe00ea20'), 'core-data.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => '15ee57b1f0ac2f25cdee181ee369950a'), 'customize-widgets.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-viewport', 'wp-widgets'), 'version' => 'a4ae79ff9d722a302a31b7af5478e6b7'), 'data.js' => array('dependencies' => array('lodash', 'react', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-redux-routine'), 'version' => '93e547cee9fc74070215d5c1ce324bf6'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-polyfill'), 'version' => 'a6b5897d9fe0799f7c5167a4a9fb3fc2'), 'date.js' => array('dependencies' => array('moment', 'wp-polyfill'), 'version' => 'be8358e0f87d66f2bec405069f113602'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '64e8de35a014ff611a39da7042d361dd'), 'dom.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '7d156934b7b48d00965baf08e162ab91'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => '7ad174e925c73007ee5b17358242e7d9'), 'edit-post.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport', 'wp-warning'), 'version' => 'c786d8e15ad8d37821a262e270574299'), 'edit-site.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-url', 'wp-viewport'), 'version' => 'dea553bd6e79d81ffb2d3cecc445b9c5'), 'edit-widgets.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => 'd2d4142238e30f8173bcb9c0ecfc9daa'), 'editor.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => 'ca158f847aa4d5eb7c341e509e70340b'), 'element.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => '32e0abe121ab85a88acb6472274ad136'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => '4f03d9c45a01df8191f6833373fe1cfa'), 'format-library.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '638b31b2e32bdc443afa62d9aa251d8a'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'fee9af3abfeb76b497fd074608dca647'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => '140ecb91be91e7eec34220584d085033'), 'i18n.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '9ddfa7e364f034c04939567c6c6079d5'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => '798b660598677b39413fdb5f68624aa8'), 'keyboard-shortcuts.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-element', 'wp-keycodes', 'wp-polyfill'), 'version' => '78a4020b31c5ae28f7e97405b83d5027'), 'keycodes.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => '57a448b50bb24e264205e448e0b19ea2'), 'list-reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '411699046747b4d90f82c5b2547ff43c'), 'media-utils.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'ab2c70450229febbbb0a87e88074db07'), 'notices.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-polyfill'), 'version' => 'b9e78ffafe025c455d9ccf2c1a78d1de'), 'nux.js' => array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => 'feee5fbb3df2a20c6dc4653f33d12e13'), 'plugins.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-primitives'), 'version' => '76d0e1ad216a273ab1359db9aaab1809'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => 'ec5aecfc61b399ed5c8fa2de6b175942'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => '18c93919f04bb681234310b314675b17'), 'redux-routine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'f4483156a9bae90512f894dbd867b929'), 'reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '436b8be211e4f30893de92b1faad8984'), 'rich-text.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-compose', 'wp-data', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes', 'wp-polyfill'), 'version' => 'c491067ec9fe71eeaa2c74e4ee78f956'), 'server-side-render.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'ff256efbd27ce91d114094be9982fadc'), 'shortcode.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '0e7a194ec8387c92e8d2c2b3755c3c9b'), 'token-list.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'a50777df914543c1a77067959d6b3fbf'), 'url.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'd99eea3ea07b8acf242f75a06a2c49ff'), 'viewport.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '67406a236d2370eedc90db2dfdcb46bd'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5ebe2df53cf3c74ebffc7e2d3e76184c'), 'widgets.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives'), 'version' => '3dd8fa0fcd8381649603b755437d9be1'), 'wordcount.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '02339c8ad03da1e7a03f9212da004007'));
     1<?php return array('a11y.js' => array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => 'fa03f246887237d01c383e85ff6f107c'), 'annotations.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => 'acd6ed75d460d0d3781e1ef6c12cf2aa'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '59f6dbf5a1d9a141515c25411bc4f01e'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'e65166da67ee5d5ff66d36ab14532b3b'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b8855b04f6a52a7bca89f8d945d46866'), 'block-directory.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => 'a8ff26eaaddf949aee8669d14277aec3'), 'block-editor.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-shortcode', 'wp-token-list', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => '3b92c40c1fc027868ec4521bef69dfec'), 'block-library.js' => array('dependencies' => array('lodash', 'moment', 'wp-a11y', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => 'b32bec4f49c6a87e8fae9893883eb1e5'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'cc8e5d0e23cf68bb9944bf2a7a016e52'), 'blocks.js' => array('dependencies' => array('lodash', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-shortcode'), 'version' => 'a32036d432544d670dbd252aafb343aa'), 'components.js' => array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-warning'), 'version' => 'd584639b62dd0110961babe2a0321284'), 'compose.js' => array('dependencies' => array('lodash', 'react', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-priority-queue'), 'version' => '1491dea52ef44b12c4130dc7fe00ea20'), 'core-data.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => '15ee57b1f0ac2f25cdee181ee369950a'), 'customize-widgets.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-viewport', 'wp-widgets'), 'version' => 'a4ae79ff9d722a302a31b7af5478e6b7'), 'data.js' => array('dependencies' => array('lodash', 'react', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-redux-routine'), 'version' => '93e547cee9fc74070215d5c1ce324bf6'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-polyfill'), 'version' => 'a6b5897d9fe0799f7c5167a4a9fb3fc2'), 'date.js' => array('dependencies' => array('moment', 'wp-polyfill'), 'version' => 'be8358e0f87d66f2bec405069f113602'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '64e8de35a014ff611a39da7042d361dd'), 'dom.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '7d156934b7b48d00965baf08e162ab91'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => '7ad174e925c73007ee5b17358242e7d9'), 'edit-post.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport', 'wp-warning'), 'version' => 'e1b624e1873607abf4c32039e7fb342b'), 'edit-site.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-url', 'wp-viewport'), 'version' => '8659ca040bec4715a2e2d70e39481022'), 'edit-widgets.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => 'd2d4142238e30f8173bcb9c0ecfc9daa'), 'editor.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => '2f11c17951f84f3b17149d8002ed2e49'), 'element.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => '32e0abe121ab85a88acb6472274ad136'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => '4f03d9c45a01df8191f6833373fe1cfa'), 'format-library.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '638b31b2e32bdc443afa62d9aa251d8a'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'fee9af3abfeb76b497fd074608dca647'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => '140ecb91be91e7eec34220584d085033'), 'i18n.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '9ddfa7e364f034c04939567c6c6079d5'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => '798b660598677b39413fdb5f68624aa8'), 'keyboard-shortcuts.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-element', 'wp-keycodes', 'wp-polyfill'), 'version' => '78a4020b31c5ae28f7e97405b83d5027'), 'keycodes.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => '57a448b50bb24e264205e448e0b19ea2'), 'list-reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '411699046747b4d90f82c5b2547ff43c'), 'media-utils.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'ab2c70450229febbbb0a87e88074db07'), 'notices.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-polyfill'), 'version' => 'b9e78ffafe025c455d9ccf2c1a78d1de'), 'nux.js' => array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => 'feee5fbb3df2a20c6dc4653f33d12e13'), 'plugins.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-primitives'), 'version' => '76d0e1ad216a273ab1359db9aaab1809'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => 'ec5aecfc61b399ed5c8fa2de6b175942'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => '18c93919f04bb681234310b314675b17'), 'redux-routine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'f4483156a9bae90512f894dbd867b929'), 'reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '436b8be211e4f30893de92b1faad8984'), 'rich-text.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-compose', 'wp-data', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes', 'wp-polyfill'), 'version' => 'c491067ec9fe71eeaa2c74e4ee78f956'), 'server-side-render.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'c8b79b06e8a76272ee868b17b6a9d37b'), 'shortcode.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '0e7a194ec8387c92e8d2c2b3755c3c9b'), 'token-list.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'a50777df914543c1a77067959d6b3fbf'), 'url.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'd99eea3ea07b8acf242f75a06a2c49ff'), 'viewport.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '67406a236d2370eedc90db2dfdcb46bd'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5ebe2df53cf3c74ebffc7e2d3e76184c'), 'widgets.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives'), 'version' => '3dd8fa0fcd8381649603b755437d9be1'), 'wordcount.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '02339c8ad03da1e7a03f9212da004007'));
  • trunk/src/wp-includes/block-supports/layout.php

    r52410 r52434  
    4040 *                                      the existence of default block layout.
    4141 * @param bool   $has_block_gap_support Whether the theme has support for the block gap.
     42 * @param string $gap_value             The block gap value to apply.
    4243 * @return string CSS style.
    4344 */
    44 function wp_get_layout_style( $selector, $layout, $has_block_gap_support = false ) {
     45function wp_get_layout_style( $selector, $layout, $has_block_gap_support = false, $gap_value = null ) {
    4546    $layout_type = isset( $layout['type'] ) ? $layout['type'] : 'default';
    4647
     
    7374        $style .= "$selector .alignright { float: right; margin-left: 2em; }";
    7475        if ( $has_block_gap_support ) {
    75             $style .= "$selector > * { margin-top: 0; margin-bottom: 0; }";
    76             $style .= "$selector > * + * { margin-top: var( --wp--style--block-gap ); margin-bottom: 0; }";
     76            $gap_style = $gap_value ? $gap_value : 'var( --wp--style--block-gap )';
     77            $style    .= "$selector > * { margin-top: 0; margin-bottom: 0; }";
     78            $style    .= "$selector > * + * { margin-top: $gap_style;  margin-bottom: 0; }";
    7779        }
    7880    } elseif ( 'flex' === $layout_type ) {
     
    9799        $style .= 'display: flex;';
    98100        if ( $has_block_gap_support ) {
    99             $style .= 'gap: var( --wp--style--block-gap, 0.5em );';
     101            $gap_style = $gap_value ? $gap_value : 'var( --wp--style--block-gap, 0.5em )';
     102            $style    .= "gap: $gap_style;";
    100103        } else {
    101104            $style .= 'gap: 0.5em;';
     
    157160    }
    158161
    159     $id    = uniqid();
    160     $style = wp_get_layout_style( ".wp-container-$id", $used_layout, $has_block_gap_support );
     162    $id        = uniqid();
     163    $gap_value = _wp_array_get( $block, array( 'attrs', 'style', 'spacing', 'blockGap' ) );
     164    // Skip if gap value contains unsupported characters.
     165    // Regex for CSS value borrowed from `safecss_filter_attr`, and used here
     166    // because we only want to match against the value, not the CSS attribute.
     167    $gap_value = preg_match( '%[\\\(&=}]|/\*%', $gap_value ) ? null : $gap_value;
     168    $style     = wp_get_layout_style( ".wp-container-$id", $used_layout, $has_block_gap_support, $gap_value );
    161169    // This assumes the hook only applies to blocks with a single wrapper.
    162170    // I think this is a reasonable limitation for that particular hook.
  • trunk/src/wp-includes/block-supports/spacing.php

    r52302 r52434  
    9696}
    9797
    98 /**
    99  * Renders the spacing gap support to the block wrapper, to ensure
    100  * that the CSS variable is rendered in all environments.
    101  *
    102  * @since 5.9.0
    103  * @access private
    104  *
    105  * @param string $block_content Rendered block content.
    106  * @param array  $block         Block object.
    107  * @return string Filtered block content.
    108  */
    109 function wp_render_spacing_gap_support( $block_content, $block ) {
    110     $block_type      = WP_Block_Type_Registry::get_instance()->get_registered( $block['blockName'] );
    111     $has_gap_support = block_has_support( $block_type, array( 'spacing', 'blockGap' ), false );
    112     if ( ! $has_gap_support || ! isset( $block['attrs']['style']['spacing']['blockGap'] ) ) {
    113         return $block_content;
    114     }
    115 
    116     $gap_value = $block['attrs']['style']['spacing']['blockGap'];
    117 
    118     // Skip if gap value contains unsupported characters.
    119     // Regex for CSS value borrowed from `safecss_filter_attr`, and used here
    120     // because we only want to match against the value, not the CSS attribute.
    121     if ( preg_match( '%[\\\(&=}]|/\*%', $gap_value ) ) {
    122         return $block_content;
    123     }
    124 
    125     $style = sprintf(
    126         '--wp--style--block-gap: %s',
    127         esc_attr( $gap_value )
    128     );
    129 
    130     // Attempt to update an existing style attribute on the wrapper element.
    131     $injected_style = preg_replace(
    132         '/^([^>.]+?)(' . preg_quote( 'style="', '/' ) . ')(?=.+?>)/',
    133         '$1$2' . $style . '; ',
    134         $block_content,
    135         1
    136     );
    137 
    138     // If there is no existing style attribute, add one to the wrapper element.
    139     if ( $injected_style === $block_content ) {
    140         $injected_style = preg_replace(
    141             '/<([a-zA-Z0-9]+)([ >])/',
    142             '<$1 style="' . $style . '"$2',
    143             $block_content,
    144             1
    145         );
    146     };
    147 
    148     return $injected_style;
    149 }
    150 
    15198// Register the block support.
    15299WP_Block_Supports::get_instance()->register(
     
    157104    )
    158105);
    159 
    160 add_filter( 'render_block', 'wp_render_spacing_gap_support', 10, 2 );
  • trunk/src/wp-includes/blocks/columns/block.json

    r52042 r52434  
    2424        },
    2525        "spacing": {
    26             "blockGap": true,
    2726            "margin": [ "top", "bottom" ],
    2827            "padding": true,
    2928            "__experimentalDefaultControls": {
    30                 "blockGap": true
     29                "padding": true
    3130            }
    3231        }
  • trunk/src/wp-includes/blocks/navigation/block.json

    r52402 r52434  
    9999        },
    100100        "spacing": {
    101             "blockGap": true,
    102             "units": [
    103                 "px",
    104                 "em",
    105                 "rem",
    106                 "vh",
    107                 "vw"
    108             ],
    109             "__experimentalDefaultControls": {
    110                 "blockGap": true
    111             }
     101            "units": [ "px", "em", "rem", "vh", "vw" ]
    112102        },
    113103        "__experimentalLayout": {
  • trunk/src/wp-includes/blocks/post-content.php

    r51344 r52434  
    3737    $seen_ids[ $post_id ] = true;
    3838
     39    // Check is needed for backward compatibility with third-party plugins
     40    // that might rely on the `in_the_loop` check; calling `the_post` sets it to true.
    3941    if ( ! in_the_loop() && have_posts() ) {
    4042        the_post();
    4143    }
    4244
    43     $content = get_the_content( null, false, $post_id );
     45    // When inside the main loop, we want to use queried object
     46    // so that `the_preview` for the current post can apply.
     47    // We force this behavior by omitting the third argument (post ID) from the `get_the_content`.
     48    $content = get_the_content( null, false );
    4449    /** This filter is documented in wp-includes/post-template.php */
    4550    $content = apply_filters( 'the_content', str_replace( ']]>', ']]&gt;', $content ) );
  • trunk/src/wp-includes/blocks/post-excerpt.php

    r52042 r52434  
    1919    }
    2020
    21     $excerpt = get_the_excerpt( $block->context['postId'] );
     21    $excerpt = get_the_excerpt();
    2222
    2323    if ( empty( $excerpt ) ) {
  • trunk/src/wp-includes/blocks/post-title.php

    r52042 r52434  
    2121
    2222    $post_ID = $block->context['postId'];
    23     $title   = get_the_title( $post_ID );
     23    $title   = get_the_title();
    2424
    2525    if ( ! $title ) {
  • trunk/src/wp-includes/blocks/site-logo.php

    r52402 r52434  
    7878
    7979/**
     80 * Register a core site setting for a site icon
     81 */
     82function register_block_core_site_icon_setting() {
     83    register_setting(
     84        'general',
     85        'site_icon',
     86        array(
     87            'show_in_rest' => true,
     88            'type'         => 'integer',
     89            'description'  => __( 'Site icon.' ),
     90        )
     91    );
     92}
     93
     94add_action( 'rest_api_init', 'register_block_core_site_icon_setting', 10 );
     95
     96/**
    8097 * Registers the `core/site-logo` block on the server.
    8198 */
  • trunk/src/wp-includes/blocks/site-logo/block.json

    r52402 r52434  
    1717            "type": "string",
    1818            "default": "_self"
     19        },
     20        "shouldSyncIcon": {
     21            "type": "boolean"
    1922        }
    2023    },
     
    2225        "viewportWidth": 500,
    2326        "attributes": {
    24             "width": 350
     27            "width": 350,
     28            "className": "block-editor-block-types-list__site-logo-example"
    2529        }
    2630    },
  • trunk/src/wp-includes/class-wp-theme-json.php

    r52403 r52434  
    318318            'margin'   => null,
    319319            'padding'  => null,
    320             'blockGap' => null,
     320            'blockGap' => 'top',
    321321        ),
    322322        'typography' => array(
     
    473473        $output = array_intersect_key( $input, array_flip( self::VALID_TOP_LEVEL_KEYS ) );
    474474
     475        // Some styles are only meant to be available at the top-level (e.g.: blockGap),
     476        // hence, the schema for blocks & elements should not have them.
     477        $styles_non_top_level = self::VALID_STYLES;
     478        foreach ( array_keys( $styles_non_top_level ) as $section ) {
     479            foreach ( array_keys( $styles_non_top_level[ $section ] ) as $prop ) {
     480                if ( 'top' === $styles_non_top_level[ $section ][ $prop ] ) {
     481                    unset( $styles_non_top_level[ $section ][ $prop ] );
     482                }
     483            }
     484        }
     485
    475486        // Build the schema based on valid block & element names.
    476487        $schema                 = array();
    477488        $schema_styles_elements = array();
    478489        foreach ( $valid_element_names as $element ) {
    479             $schema_styles_elements[ $element ] = self::VALID_STYLES;
     490            $schema_styles_elements[ $element ] = $styles_non_top_level;
    480491        }
    481492        $schema_styles_blocks   = array();
     
    483494        foreach ( $valid_block_names as $block ) {
    484495            $schema_settings_blocks[ $block ]           = self::VALID_SETTINGS;
    485             $schema_styles_blocks[ $block ]             = self::VALID_STYLES;
     496            $schema_styles_blocks[ $block ]             = $styles_non_top_level;
    486497            $schema_styles_blocks[ $block ]['elements'] = $schema_styles_elements;
    487498        }
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php

    r52399 r52434  
    782782                    'required'    => true,
    783783                    'minLength'   => 1,
    784                     'pattern'     => '[a-zA-Z_\-]+',
     784                    'pattern'     => '[a-zA-Z0-9_\-]+',
    785785                ),
    786786                'theme'          => array(
  • trunk/tests/phpunit/tests/rest-api/rest-settings-controller.php

    r51568 r52434  
    109109            'default_ping_status',
    110110            'default_comment_status',
     111            'site_icon', // Registered in wp-includes/blocks/site-logo.php
    111112        );
    112113
  • trunk/tests/phpunit/tests/theme/wpThemeJson.php

    r52402 r52434  
    420420                        'blockGap' => '1em',
    421421                    ),
    422                     'blocks'  => array(
    423                         'core/columns' => array(
    424                             'spacing' => array(
    425                                 'blockGap' => '24px',
    426                             ),
    427                         ),
    428                     ),
    429                 ),
    430             )
    431         );
    432 
    433         $expected = 'body { margin: 0; }body{--wp--style--block-gap: 1em;}.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }.wp-site-blocks > * { margin-top: 0; margin-bottom: 0; }.wp-site-blocks > * + * { margin-top: var( --wp--style--block-gap ); }.wp-block-columns{--wp--style--block-gap: 24px;}';
     422                ),
     423            )
     424        );
     425
     426        $expected = 'body { margin: 0; }body{--wp--style--block-gap: 1em;}.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }.wp-site-blocks > * { margin-top: 0; margin-bottom: 0; }.wp-site-blocks > * + * { margin-top: var( --wp--style--block-gap ); }';
    434427        $this->assertSame( $expected, $theme_json->get_stylesheet() );
    435428        $this->assertSame( $expected, $theme_json->get_stylesheet( array( 'styles' ) ) );
     
    23492342    }
    23502343
     2344    /**
     2345     * @ticket 54487
     2346     */
     2347    public function test_sanitization() {
     2348        $theme_json = new WP_Theme_JSON(
     2349            array(
     2350                'version' => 2,
     2351                'styles'  => array(
     2352                    'spacing' => array(
     2353                        'blockGap' => 'valid value',
     2354                    ),
     2355                    'blocks'  => array(
     2356                        'core/group' => array(
     2357                            'spacing' => array(
     2358                                'margin'   => 'valid value',
     2359                                'blockGap' => 'invalid value',
     2360                            ),
     2361                        ),
     2362                    ),
     2363                ),
     2364            )
     2365        );
     2366
     2367        $actual   = $theme_json->get_raw_data();
     2368        $expected = array(
     2369            'version' => 2,
     2370            'styles'  => array(
     2371                'spacing' => array(
     2372                    'blockGap' => 'valid value',
     2373                ),
     2374                'blocks'  => array(
     2375                    'core/group' => array(
     2376                        'spacing' => array(
     2377                            'margin' => 'valid value',
     2378                        ),
     2379                    ),
     2380                ),
     2381            ),
     2382        );
     2383
     2384        $this->assertEqualSetsWithIndex( $expected, $actual );
     2385    }
     2386
    23512387}
  • trunk/tests/qunit/fixtures/wp-api-generated.js

    r52399 r52434  
    50365036                            "type": "string",
    50375037                            "minLength": 1,
    5038                             "pattern": "[a-zA-Z_\\-]+",
     5038                            "pattern": "[a-zA-Z0-9_\\-]+",
    50395039                            "required": true
    50405040                        },
     
    51905190                            "type": "string",
    51915191                            "minLength": 1,
    5192                             "pattern": "[a-zA-Z_\\-]+",
     5192                            "pattern": "[a-zA-Z0-9_\\-]+",
    51935193                            "required": false
    51945194                        },
     
    55045504                            "type": "string",
    55055505                            "minLength": 1,
    5506                             "pattern": "[a-zA-Z_\\-]+",
     5506                            "pattern": "[a-zA-Z0-9_\\-]+",
    55075507                            "required": false
    55085508                        },
     
    56835683                            "type": "string",
    56845684                            "minLength": 1,
    5685                             "pattern": "[a-zA-Z_\\-]+",
     5685                            "pattern": "[a-zA-Z0-9_\\-]+",
    56865686                            "required": true
    56875687                        },
     
    58425842                            "type": "string",
    58435843                            "minLength": 1,
    5844                             "pattern": "[a-zA-Z_\\-]+",
     5844                            "pattern": "[a-zA-Z0-9_\\-]+",
    58455845                            "required": false
    58465846                        },
     
    61616161                            "type": "string",
    61626162                            "minLength": 1,
    6163                             "pattern": "[a-zA-Z_\\-]+",
     6163                            "pattern": "[a-zA-Z0-9_\\-]+",
    61646164                            "required": false
    61656165                        },
     
    96299629                        "site_logo": {
    96309630                            "description": "Site logo.",
     9631                            "type": "integer",
     9632                            "required": false
     9633                        },
     9634                        "site_icon": {
     9635                            "description": "Site icon.",
    96319636                            "type": "integer",
    96329637                            "required": false
     
    1221312218    "default_ping_status": "open",
    1221412219    "default_comment_status": "open",
    12215     "site_logo": null
     12220    "site_logo": null,
     12221    "site_icon": 0
    1221612222};
Note: See TracChangeset for help on using the changeset viewer.