From 9445718719ce835e804707101dcfa52d9bfe90eb Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Fri, 4 Jan 2019 19:37:30 +0000 Subject: [PATCH] Block Editor: Upgrade `@WordPress` packages to the latest versions. Updated packages: - @wordpress/annotations@1.0.5 - @wordpress/api-fetch@2.2.7 - @wordpress/block-library@2.2.12 - @wordpress/block-serialization-default-parser@2.0.3 - @wordpress/blocks@6.0.5 - @wordpress/components@7.0.5 - @wordpress/core-data@2.0.16 - @wordpress/data@4.2.0 - @wordpress/deprecated@2.0.4 - @wordpress/dom@2.0.8 - @wordpress/edit-post@3.1.7 - @wordpress/editor@9.0.7 - @wordpress/format-library@1.2.10 - @wordpress/hooks@2.0.4 - @wordpress/list-reusable-blocks@1.1.18 - @wordpress/notices@1.1.2 - @wordpress/nux@3.0.6 - @wordpress/plugins@2.0.10 - @wordpress/rich-text@3.0.4 - @wordpress/url@2.3.3 - @wordpress/viewport@2.1.0 Props: youknowriad, gziolo, desrosj. Fixes #45814. git-svn-id: https://develop.svn.wordpress.org/trunk@44389 602fd350-edb4-49c9-b593-d223f7449a82 --- package-lock.json | 328 ++++++++++++---------- package.json | 42 +-- src/wp-includes/class-wp-block-parser.php | 77 +++-- src/wp-includes/script-loader.php | 42 +-- 4 files changed, 271 insertions(+), 218 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8a9bec2383..e10608f797 100644 --- a/package-lock.json +++ b/package-lock.json @@ -243,15 +243,15 @@ } }, "@wordpress/annotations": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@wordpress/annotations/-/annotations-1.0.4.tgz", - "integrity": "sha512-4Pl6qfy74yg8O2mmepUMkT0l6/VjsTCTpfvwveezqprLklDAGLXfS0gm8ZKbVlwsoevmd2y4+1Uv6ajOpBFY0w==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@wordpress/annotations/-/annotations-1.0.5.tgz", + "integrity": "sha512-u6SErOVRKV/AjwBhYI88n0RiBn/Ogqo5f0nBP+eJ45VGDsqyr9S9uRcF1Ncxj2gV/chDk5LGJ/OSCPGq69Sqmw==", "requires": { "@babel/runtime": "^7.0.0", - "@wordpress/data": "^4.1.0", - "@wordpress/hooks": "^2.0.3", + "@wordpress/data": "^4.2.0", + "@wordpress/hooks": "^2.0.4", "@wordpress/i18n": "^3.1.0", - "@wordpress/rich-text": "^3.0.3", + "@wordpress/rich-text": "^3.0.4", "lodash": "^4.17.10", "memize": "^1.0.5", "rememo": "^3.0.0", @@ -259,14 +259,14 @@ } }, "@wordpress/api-fetch": { - "version": "2.2.6", - "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-2.2.6.tgz", - "integrity": "sha512-cZfJrkfv4+w8rWEMzuh6Q5QoaT1MxD+K3MuT+PHP/SZiSS0AuP733LsWlYJDo28EatNUHU2XPR3IpeKzbiHlvQ==", + "version": "2.2.7", + "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-2.2.7.tgz", + "integrity": "sha512-7Bl4hfLLw5rWeQ7LIa3U/rananC2Tk6uZ55acetC+hag9gJpDpddbXOlW3Li8Zk1cJvvcpgfElVPwPFnS0e/qg==", "requires": { "@babel/runtime": "^7.0.0", - "@wordpress/hooks": "^2.0.3", + "@wordpress/hooks": "^2.0.4", "@wordpress/i18n": "^3.1.0", - "@wordpress/url": "^2.3.2" + "@wordpress/url": "^2.3.3" } }, "@wordpress/autop": { @@ -286,42 +286,35 @@ } }, "@wordpress/block-library": { - "version": "2.2.11", - "resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-2.2.11.tgz", - "integrity": "sha512-ygc/MSW2i9w8e3CONFgRMs8dvKqInFO9BitUA0WQEGxovLawvu/gqAdJn8LoqMTnxgkx9VHMgg6M7v2xekz06A==", + "version": "2.2.12", + "resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-2.2.12.tgz", + "integrity": "sha512-PFFWhTny1lN5TC7fDs5aH3hW5RgwEtbysoXk5zX9f6OS4N6Ye9CMFXC2tT+ZciG/bdE3TcNx+/Hadmnt10uE+w==", "requires": { "@babel/runtime": "^7.0.0", "@wordpress/autop": "^2.0.2", "@wordpress/blob": "^2.1.0", - "@wordpress/blocks": "^6.0.4", - "@wordpress/components": "^7.0.4", + "@wordpress/blocks": "^6.0.5", + "@wordpress/components": "^7.0.5", "@wordpress/compose": "^3.0.0", - "@wordpress/core-data": "^2.0.15", - "@wordpress/data": "^4.1.0", - "@wordpress/deprecated": "^2.0.3", - "@wordpress/editor": "^9.0.6", + "@wordpress/core-data": "^2.0.16", + "@wordpress/data": "^4.2.0", + "@wordpress/deprecated": "^2.0.4", + "@wordpress/editor": "^9.0.7", "@wordpress/element": "^2.1.8", "@wordpress/html-entities": "^2.0.4", "@wordpress/i18n": "^3.1.0", "@wordpress/keycodes": "^2.0.5", - "@wordpress/viewport": "^2.0.13", + "@wordpress/viewport": "^2.1.0", "classnames": "^2.2.5", "lodash": "^4.17.10", "memize": "^1.0.5", "url": "^0.11.0" - }, - "dependencies": { - "querystringify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-1.0.0.tgz", - "integrity": "sha1-YoYkIRLFtxL6ZU5SZlK/ahP/Bcs=" - } } }, "@wordpress/block-serialization-default-parser": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@wordpress/block-serialization-default-parser/-/block-serialization-default-parser-2.0.2.tgz", - "integrity": "sha512-gk6RT2U0Fc6U+P0iT1Cu03qHbBLOj31w2W/8JvQuH9DzD3x1YaXDWRA5wl9QRqqFSM6gbH7zKy1v3UC35fuNiA==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@wordpress/block-serialization-default-parser/-/block-serialization-default-parser-2.0.3.tgz", + "integrity": "sha512-VUP3QmTlCFc8Ay5ZrXdEibQeTLIk1XRX2UAZfFiXfw1IQzeVS6q64eZbG8rh0Gpj5iQrzB/qTo01sQ+dC4gBQQ==", "requires": { "@babel/runtime": "^7.0.0" } @@ -332,19 +325,19 @@ "integrity": "sha512-H3v+ndlMEEPfc1lX7mZ6dU1RqgPr3B6CWkV3v4MAJpQVZ6Rm1afw9VUNTZYSJ2aNnpb/fix0Qc3bt22vju69OQ==" }, "@wordpress/blocks": { - "version": "6.0.4", - "resolved": "https://registry.npmjs.org/@wordpress/blocks/-/blocks-6.0.4.tgz", - "integrity": "sha512-jGPXt4biR4EVVoWUDtYge4cBi2dEktCUrUsh2ulLkbIxSlenTwLjKEpPb7rkFM65vSXU7urTltXQQ8M8Xaih2g==", + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/@wordpress/blocks/-/blocks-6.0.5.tgz", + "integrity": "sha512-ucludD4lvHuq/wn1SSjvfNlXv91GusniV1XhN8BuZZEadHdBEiMmD0MQiZoZL7YhWwHa94gWuKi+6yru3M6V3A==", "requires": { "@babel/runtime": "^7.0.0", "@wordpress/autop": "^2.0.2", "@wordpress/blob": "^2.1.0", - "@wordpress/block-serialization-default-parser": "^2.0.2", + "@wordpress/block-serialization-default-parser": "^2.0.3", "@wordpress/block-serialization-spec-parser": "^2.0.2", - "@wordpress/data": "^4.1.0", - "@wordpress/dom": "^2.0.7", + "@wordpress/data": "^4.2.0", + "@wordpress/dom": "^2.0.8", "@wordpress/element": "^2.1.8", - "@wordpress/hooks": "^2.0.3", + "@wordpress/hooks": "^2.0.4", "@wordpress/html-entities": "^2.0.4", "@wordpress/i18n": "^3.1.0", "@wordpress/is-shallow-equal": "^1.1.4", @@ -359,22 +352,22 @@ } }, "@wordpress/components": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/@wordpress/components/-/components-7.0.4.tgz", - "integrity": "sha512-SVezuw6CPJ3+81CXXArfDx2rI6hlxEWqEiPSyOgku2guKTqYnWfAU4yW9c6m4IxtKcQCphQ64AmeJ6CYIh91jw==", + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/@wordpress/components/-/components-7.0.5.tgz", + "integrity": "sha512-Csu2z4r8g3PwwLWWRMDeA//vQhHh05J9hyogE15dMS/6jrSKyl8lonGWvbnO2PSrMzKIHPeoXYzutUeNBjY1pg==", "requires": { "@babel/runtime": "^7.0.0", "@wordpress/a11y": "^2.0.2", - "@wordpress/api-fetch": "^2.2.6", + "@wordpress/api-fetch": "^2.2.7", "@wordpress/compose": "^3.0.0", - "@wordpress/dom": "^2.0.7", + "@wordpress/dom": "^2.0.8", "@wordpress/element": "^2.1.8", - "@wordpress/hooks": "^2.0.3", + "@wordpress/hooks": "^2.0.4", "@wordpress/i18n": "^3.1.0", "@wordpress/is-shallow-equal": "^1.1.4", "@wordpress/keycodes": "^2.0.5", - "@wordpress/rich-text": "^3.0.3", - "@wordpress/url": "^2.3.2", + "@wordpress/rich-text": "^3.0.4", + "@wordpress/url": "^2.3.3", "classnames": "^2.2.5", "clipboard": "^2.0.1", "diff": "^3.5.0", @@ -403,14 +396,14 @@ } }, "@wordpress/core-data": { - "version": "2.0.15", - "resolved": "https://registry.npmjs.org/@wordpress/core-data/-/core-data-2.0.15.tgz", - "integrity": "sha512-MHln34TnAGGrFkAJ9dbDq6Iu1avQ2PuJwnpLMQeW9oUPgDhxTEHjPoObv/fM4x+r1zCHGXPIyOjySonuXas/oA==", + "version": "2.0.16", + "resolved": "https://registry.npmjs.org/@wordpress/core-data/-/core-data-2.0.16.tgz", + "integrity": "sha512-JU1p/geISRi1Mv5l8KdAfZbfYqQueacr2m0XND5V5/SKQ5xOc2+vbv/Rp0ZWrlKyGbAucCO5tK2ubW43M3dVug==", "requires": { "@babel/runtime": "^7.0.0", - "@wordpress/api-fetch": "^2.2.6", - "@wordpress/data": "^4.1.0", - "@wordpress/url": "^2.3.2", + "@wordpress/api-fetch": "^2.2.7", + "@wordpress/data": "^4.2.0", + "@wordpress/url": "^2.3.3", "equivalent-key-map": "^0.2.2", "lodash": "^4.17.10", "rememo": "^3.0.0" @@ -427,9 +420,9 @@ } }, "@wordpress/data": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/@wordpress/data/-/data-4.1.0.tgz", - "integrity": "sha512-PVd1LVGV9cf6GpRmIvoP+Y56ir1VB0kwSnsJkj69IMFUKBZW4uKB8BOthnPJ7aQi7B57x/ghfgWy9A0FaV1/eg==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@wordpress/data/-/data-4.2.0.tgz", + "integrity": "sha512-9cdm5xBWgLJJ45nQCbUQFF26vGoG2PzEJrinNXLr45XNAr3XSzN/JsrmNCaHwI/NzyFIwFmFjv6ONQKxxkErrg==", "requires": { "@babel/runtime": "^7.0.0", "@wordpress/compose": "^3.0.0", @@ -454,18 +447,18 @@ } }, "@wordpress/deprecated": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@wordpress/deprecated/-/deprecated-2.0.3.tgz", - "integrity": "sha512-5v8h6BJ9xQFTho7ucitshpIahD+rVnAhgc/4juYmPLb9/GJzwY1J91Ve5mcjcjgWhdtjBKO0TCq/S4PCfS812w==", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@wordpress/deprecated/-/deprecated-2.0.4.tgz", + "integrity": "sha512-KvvQ6+aWWLSznpfhpMn/FZNZIA3sjtax0PY0TTmbm74eFnlV3eZHL/kX6Mp9KJYkrzDDRk5kg7UgW6QJLHFXhg==", "requires": { "@babel/runtime": "^7.0.0", - "@wordpress/hooks": "^2.0.3" + "@wordpress/hooks": "^2.0.4" } }, "@wordpress/dom": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/@wordpress/dom/-/dom-2.0.7.tgz", - "integrity": "sha512-vjOdGSpW3WdHH5oOoamfzdoyF4BbUJOWNNT7bBb2y15GII8rN1cGyGxqVDiiajMDe51p3lyWWCpUeY4ppxj/UA==", + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/@wordpress/dom/-/dom-2.0.8.tgz", + "integrity": "sha512-Nz1k1tB/NXcfpAWUL+mTtEzxC6Dp6UAavIzJVQgAq8gsdayh7F9lgkyyL5MWLirAKkGuhztwMrSle9s5HzrTlw==", "requires": { "@babel/runtime": "^7.0.0", "lodash": "^4.17.10" @@ -480,62 +473,62 @@ } }, "@wordpress/edit-post": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-3.1.6.tgz", - "integrity": "sha512-l3C60fEdO4UfZc46KdmIGQ2cIAtd7JgLtWMEsHEj/y4WpWg5gIC9pDRwsL0WNbZGlwt0SNJOTZRnGwBJaacp+Q==", + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-3.1.7.tgz", + "integrity": "sha512-720hfAP03KSPigxuJR/kDBd9xLhddiFL1JQHQvyOFz4DAaBROUnhuaYHS6KOuqJMJgpbjw3Ey0nzEV7KHGaYhg==", "requires": { "@babel/runtime": "^7.0.0", "@wordpress/a11y": "^2.0.2", - "@wordpress/api-fetch": "^2.2.6", - "@wordpress/block-library": "^2.2.11", - "@wordpress/blocks": "^6.0.4", - "@wordpress/components": "^7.0.4", + "@wordpress/api-fetch": "^2.2.7", + "@wordpress/block-library": "^2.2.12", + "@wordpress/blocks": "^6.0.5", + "@wordpress/components": "^7.0.5", "@wordpress/compose": "^3.0.0", - "@wordpress/core-data": "^2.0.15", - "@wordpress/data": "^4.1.0", - "@wordpress/editor": "^9.0.6", + "@wordpress/core-data": "^2.0.16", + "@wordpress/data": "^4.2.0", + "@wordpress/editor": "^9.0.7", "@wordpress/element": "^2.1.8", - "@wordpress/format-library": "^1.2.9", - "@wordpress/hooks": "^2.0.3", + "@wordpress/format-library": "^1.2.10", + "@wordpress/hooks": "^2.0.4", "@wordpress/i18n": "^3.1.0", "@wordpress/keycodes": "^2.0.5", - "@wordpress/nux": "^3.0.5", - "@wordpress/plugins": "^2.0.9", - "@wordpress/url": "^2.3.2", - "@wordpress/viewport": "^2.0.13", + "@wordpress/nux": "^3.0.6", + "@wordpress/plugins": "^2.0.10", + "@wordpress/url": "^2.3.3", + "@wordpress/viewport": "^2.1.0", "classnames": "^2.2.5", "lodash": "^4.17.10", "refx": "^3.0.0" } }, "@wordpress/editor": { - "version": "9.0.6", - "resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-9.0.6.tgz", - "integrity": "sha512-DhGA+LU1p5GU4uKFNqSWKGjYJX5qjTL1Lrh4MF6UmsVCTwnCTKuC87ERAQSV3LGz9jwHvyVqVp2kK4JnqlO+SA==", + "version": "9.0.7", + "resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-9.0.7.tgz", + "integrity": "sha512-6WlkzTrW2x3GXysWjjerU12l5xdGJtuKIOtWsB8UnooIU+lOP0PuNxrbKSBKDwlSJPeb0t2hbqF6xuuHgx6uhA==", "requires": { "@babel/runtime": "^7.0.0", "@wordpress/a11y": "^2.0.2", - "@wordpress/api-fetch": "^2.2.6", + "@wordpress/api-fetch": "^2.2.7", "@wordpress/blob": "^2.1.0", - "@wordpress/blocks": "^6.0.4", - "@wordpress/components": "^7.0.4", + "@wordpress/blocks": "^6.0.5", + "@wordpress/components": "^7.0.5", "@wordpress/compose": "^3.0.0", - "@wordpress/core-data": "^2.0.15", - "@wordpress/data": "^4.1.0", + "@wordpress/core-data": "^2.0.16", + "@wordpress/data": "^4.2.0", "@wordpress/date": "^3.0.1", - "@wordpress/deprecated": "^2.0.3", - "@wordpress/dom": "^2.0.7", + "@wordpress/deprecated": "^2.0.4", + "@wordpress/dom": "^2.0.8", "@wordpress/element": "^2.1.8", - "@wordpress/hooks": "^2.0.3", + "@wordpress/hooks": "^2.0.4", "@wordpress/html-entities": "^2.0.4", "@wordpress/i18n": "^3.1.0", "@wordpress/is-shallow-equal": "^1.1.4", "@wordpress/keycodes": "^2.0.5", - "@wordpress/notices": "^1.1.1", - "@wordpress/nux": "^3.0.5", + "@wordpress/notices": "^1.1.2", + "@wordpress/nux": "^3.0.6", "@wordpress/token-list": "^1.1.0", - "@wordpress/url": "^2.3.2", - "@wordpress/viewport": "^2.0.13", + "@wordpress/url": "^2.3.3", + "@wordpress/viewport": "^2.1.0", "@wordpress/wordcount": "^2.0.3", "classnames": "^2.2.5", "dom-scroll-into-view": "^1.2.1", @@ -614,25 +607,25 @@ } }, "@wordpress/format-library": { - "version": "1.2.9", - "resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-1.2.9.tgz", - "integrity": "sha512-7MRP29L96XVnyyQfnQESSL2HeW2+Iy7+AsQREJsXvXlNj/Z9v72iujR8uOAcgBaSebsyrSDmyQn8ipZ3siIcsg==", + "version": "1.2.10", + "resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-1.2.10.tgz", + "integrity": "sha512-ksYU4GG1Pc+lNuz+V00yH0j8mgaBFVCzCemqVZqDbNqDrC8cdwWExv9cccn0miBGwNwLgcn6fj1IAjy91rtzeA==", "requires": { "@babel/runtime": "^7.0.0", - "@wordpress/components": "^7.0.4", - "@wordpress/dom": "^2.0.7", - "@wordpress/editor": "^9.0.6", + "@wordpress/components": "^7.0.5", + "@wordpress/dom": "^2.0.8", + "@wordpress/editor": "^9.0.7", "@wordpress/element": "^2.1.8", "@wordpress/i18n": "^3.1.0", "@wordpress/keycodes": "^2.0.5", - "@wordpress/rich-text": "^3.0.3", - "@wordpress/url": "^2.3.2" + "@wordpress/rich-text": "^3.0.4", + "@wordpress/url": "^2.3.3" } }, "@wordpress/hooks": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-2.0.3.tgz", - "integrity": "sha512-dMXM8VX1MfMN+vrstOdpCXioo4evtvjTESVnSc+AjKVOAWOCbuT/ci3aDLy8DreyDrWYgUR35Gfh7Y8JJix7vA==", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-2.0.4.tgz", + "integrity": "sha512-9Z+zymxRI1vNVPnAhGOYjp05Do/rNWdj/0lrx0oC8vluQFyaU9OWS7+il1eL8kfr+27nzcBnoU0e2WfvoXVhyg==", "requires": { "@babel/runtime": "^7.0.0" } @@ -695,13 +688,13 @@ } }, "@wordpress/list-reusable-blocks": { - "version": "1.1.17", - "resolved": "https://registry.npmjs.org/@wordpress/list-reusable-blocks/-/list-reusable-blocks-1.1.17.tgz", - "integrity": "sha512-5xfjpEVQQN4RW3f1EiVZg9Cko7EcCrl9lDkkGkH7nkDg/BsmI65H8eVTo5eo91nQdxnnE+R/1Hu2ojqiIxNiFg==", + "version": "1.1.18", + "resolved": "https://registry.npmjs.org/@wordpress/list-reusable-blocks/-/list-reusable-blocks-1.1.18.tgz", + "integrity": "sha512-ujeO6mffuWYSBrjBU/Klr8cqcrNTDMebDZI1BVWNPTa8qoM+qAqySf/++5okdXN4xaQkt7Y+2vzOcn7AsNPOiA==", "requires": { "@babel/runtime": "^7.0.0", - "@wordpress/api-fetch": "^2.2.6", - "@wordpress/components": "^7.0.4", + "@wordpress/api-fetch": "^2.2.7", + "@wordpress/components": "^7.0.5", "@wordpress/compose": "^3.0.0", "@wordpress/element": "^2.1.8", "@wordpress/i18n": "^3.1.0", @@ -709,25 +702,25 @@ } }, "@wordpress/notices": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@wordpress/notices/-/notices-1.1.1.tgz", - "integrity": "sha512-iFbO0GUx+TlmgPGyjTOKErc7w6YQa/jbMMrqCOjrueShBSdgvCplfuHuaU/SCzFbvN6HiZM4XZsfSQYJX+nIAA==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@wordpress/notices/-/notices-1.1.2.tgz", + "integrity": "sha512-X4mYC1ANmKZK9m6TJirj1yZkbLEt7e+M/42+UO4EV4AdlusaUipp0IE1Mwn5rDX3B1EsCbqR/jnrvak6SRMebg==", "requires": { "@babel/runtime": "^7.0.0", "@wordpress/a11y": "^2.0.2", - "@wordpress/data": "^4.1.0", + "@wordpress/data": "^4.2.0", "lodash": "^4.17.10" } }, "@wordpress/nux": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/@wordpress/nux/-/nux-3.0.5.tgz", - "integrity": "sha512-E3HewiMzFEHPZBopHvU9O0tOe13JQj6zkb7poifO1xqLNv+BT3ZAFXAD+d6o9JhlA0yWhyxI1UqMVrBMp/Jq6Q==", + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@wordpress/nux/-/nux-3.0.6.tgz", + "integrity": "sha512-HwEus1ErZmYDmFU2iD61/P+Tmq02S83ZK0p52Ih3Guz4QXjPpNrc0WG0yupmGxPYzBGVyG9aLTmenkC0mQ+ihA==", "requires": { "@babel/runtime": "^7.0.0", - "@wordpress/components": "^7.0.4", + "@wordpress/components": "^7.0.5", "@wordpress/compose": "^3.0.0", - "@wordpress/data": "^4.1.0", + "@wordpress/data": "^4.2.0", "@wordpress/element": "^2.1.8", "@wordpress/i18n": "^3.1.0", "lodash": "^4.17.10", @@ -735,14 +728,14 @@ } }, "@wordpress/plugins": { - "version": "2.0.9", - "resolved": "https://registry.npmjs.org/@wordpress/plugins/-/plugins-2.0.9.tgz", - "integrity": "sha512-9P+XWDaGlvdckvIPbQHPRUC0O3AqDrPngA0CxjhsYuKOd77uQfGlzMdeXNebDmky/u6aV6z7R/Phf6HQEs0aDA==", + "version": "2.0.10", + "resolved": "https://registry.npmjs.org/@wordpress/plugins/-/plugins-2.0.10.tgz", + "integrity": "sha512-bg2Xo9PSz0zBM4z2hh7aTRxitRIbr4ue27vIjpOfAXEn33L0UAzpefIhHVhrRGcFjAFBxiLicktoxcTXhNuz+w==", "requires": { "@babel/runtime": "^7.0.0", "@wordpress/compose": "^3.0.0", "@wordpress/element": "^2.1.8", - "@wordpress/hooks": "^2.0.3", + "@wordpress/hooks": "^2.0.4", "lodash": "^4.17.10" } }, @@ -757,13 +750,13 @@ } }, "@wordpress/rich-text": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@wordpress/rich-text/-/rich-text-3.0.3.tgz", - "integrity": "sha512-w/03H2CyhOPAV7fGHyz1Dph59PM0f3orw9PLZYUpFOBELczoVgKwAyl5aEf6fK+KNGXO/XA4YsJ3mIVCvVdhmQ==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@wordpress/rich-text/-/rich-text-3.0.4.tgz", + "integrity": "sha512-dv14T0wk0YPZtDNdoJKuduf3McCdQpcUHczhMoYg3WssBkyOPY3Vak8RH6t/uEnEwZhgJIolkcwrTedIFXiC4Q==", "requires": { "@babel/runtime": "^7.0.0", "@wordpress/compose": "^3.0.0", - "@wordpress/data": "^4.1.0", + "@wordpress/data": "^4.2.0", "@wordpress/escape-html": "^1.0.1", "lodash": "^4.17.10", "rememo": "^3.0.0" @@ -789,9 +782,9 @@ } }, "@wordpress/url": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/@wordpress/url/-/url-2.3.2.tgz", - "integrity": "sha512-XI/LBkUNNzP2cckEjkh47I3nw4dis64Hy4i2qStYuGdk/JQnW0BOn2El4sB/8mzeqcYyIF4nna7iMe67t5BI7g==", + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/@wordpress/url/-/url-2.3.3.tgz", + "integrity": "sha512-WGqQjOyu02E7bJ77G8385GGjUYpvF8vDqZXXHW06/WRSb4nW6fmMIM65UWdBaYY5XecAkpglCqwd8DNbquLucQ==", "requires": { "@babel/runtime": "^7.0.0", "qs": "^6.5.2" @@ -805,13 +798,13 @@ } }, "@wordpress/viewport": { - "version": "2.0.13", - "resolved": "https://registry.npmjs.org/@wordpress/viewport/-/viewport-2.0.13.tgz", - "integrity": "sha512-WqJbezqauYe8gT3AIAUt0Lcp/LoAW/NJ7/M64ZlYYhajDoXpDddc3qQF3nrIHp68WD+lGDd2LuoCuNvGJwiJNw==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@wordpress/viewport/-/viewport-2.1.0.tgz", + "integrity": "sha512-CPa/ifeDCTY6mqF/1maS35kB3N2HT7nhBwEnzbWWVMVVr3joulQuPunzSoPO8TzBhyctdnaY9ltNoN+fo+u31w==", "requires": { "@babel/runtime": "^7.0.0", "@wordpress/compose": "^3.0.0", - "@wordpress/data": "^4.1.0", + "@wordpress/data": "^4.2.0", "@wordpress/element": "^2.1.8", "lodash": "^4.17.10" } @@ -5408,7 +5401,7 @@ "dependencies": { "core-js": { "version": "1.2.7", - "resolved": "http://registry.npmjs.org/core-js/-/core-js-1.2.7.tgz", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-1.2.7.tgz", "integrity": "sha1-ZSKUwUZR2yj6k70tX/KYOk8IxjY=" } } @@ -5778,12 +5771,14 @@ "balanced-match": { "version": "1.0.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, "dev": true, + "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -5798,17 +5793,20 @@ "code-point-at": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "concat-map": { "version": "0.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "console-control-strings": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "core-util-is": { "version": "1.0.2", @@ -5925,7 +5923,8 @@ "inherits": { "version": "2.0.3", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "ini": { "version": "1.3.5", @@ -5937,6 +5936,7 @@ "version": "1.0.0", "bundled": true, "dev": true, + "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -5951,6 +5951,7 @@ "version": "3.0.4", "bundled": true, "dev": true, + "optional": true, "requires": { "brace-expansion": "^1.1.7" } @@ -5958,12 +5959,14 @@ "minimist": { "version": "0.0.8", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "minipass": { "version": "2.2.4", "bundled": true, "dev": true, + "optional": true, "requires": { "safe-buffer": "^5.1.1", "yallist": "^3.0.0" @@ -5982,6 +5985,7 @@ "version": "0.5.1", "bundled": true, "dev": true, + "optional": true, "requires": { "minimist": "0.0.8" } @@ -6062,7 +6066,8 @@ "number-is-nan": { "version": "1.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "object-assign": { "version": "4.1.1", @@ -6074,6 +6079,7 @@ "version": "1.4.0", "bundled": true, "dev": true, + "optional": true, "requires": { "wrappy": "1" } @@ -6195,6 +6201,7 @@ "version": "1.0.2", "bundled": true, "dev": true, + "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -6382,7 +6389,7 @@ }, "gettext-parser": { "version": "1.4.0", - "resolved": "http://registry.npmjs.org/gettext-parser/-/gettext-parser-1.4.0.tgz", + "resolved": "https://registry.npmjs.org/gettext-parser/-/gettext-parser-1.4.0.tgz", "integrity": "sha512-sedZYLHlHeBop/gZ1jdg59hlUEcpcZJofLq2JFwJT1zTqAU3l2wFv6IsuwFHGqbiT9DWzMUW4/em2+hspnmMMA==", "requires": { "encoding": "^0.1.12", @@ -11030,14 +11037,29 @@ } }, "object.entries": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.0.4.tgz", - "integrity": "sha1-G/mk3SKI9bM/Opk9JXZh8F0WGl8=", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.0.tgz", + "integrity": "sha512-l+H6EQ8qzGRxbkHOd5I/aHRhHDKoQXQ8g0BYt4uSweQU1/J6dZUOyWh9a2Vky35YCKjzmgxOzta2hH6kf9HuXA==", "requires": { - "define-properties": "^1.1.2", - "es-abstract": "^1.6.1", - "function-bind": "^1.1.0", - "has": "^1.0.1" + "define-properties": "^1.1.3", + "es-abstract": "^1.12.0", + "function-bind": "^1.1.1", + "has": "^1.0.3" + }, + "dependencies": { + "define-properties": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", + "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", + "requires": { + "object-keys": "^1.0.12" + } + }, + "object-keys": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.0.12.tgz", + "integrity": "sha512-FTMyFUm2wBcGHnH2eXmz7tC6IwlqQZ6mVZ+6dm6vZ4IQIHjs6FdNsQBuKGPuUUUY6NfJw2PshC08Tn6LzLDOag==" + } } }, "object.getownpropertydescriptors": { @@ -11600,7 +11622,7 @@ "dependencies": { "async": { "version": "1.5.2", - "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", + "resolved": "http://registry.npmjs.org/async/-/async-1.5.2.tgz", "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", "dev": true } @@ -12420,9 +12442,9 @@ } }, "re-resizable": { - "version": "4.10.0", - "resolved": "https://registry.npmjs.org/re-resizable/-/re-resizable-4.10.0.tgz", - "integrity": "sha512-g5Q5IswKX7LM+MtYFnuzaQrTEGr/kpserqGV8V6HYkjwbV60XnJv00VlKugLHEwlQ5pgrV08spm0TjyyYVbWmQ==" + "version": "4.11.0", + "resolved": "https://registry.npmjs.org/re-resizable/-/re-resizable-4.11.0.tgz", + "integrity": "sha512-dye+7rERqNf/6mDT1iwps+4Gf42420xuZgygF33uX178DxffqcyeuHbBuJ382FIcB5iP6mMZOhfW7kI0uXwb/Q==" }, "react": { "version": "16.6.3", diff --git a/package.json b/package.json index 36a5827d8c..3b4e5cfade 100644 --- a/package.json +++ b/package.json @@ -56,41 +56,41 @@ "dependencies": { "@babel/polyfill": "^7.0.0", "@wordpress/a11y": "^2.0.2", - "@wordpress/annotations": "^1.0.4", - "@wordpress/api-fetch": "^2.2.6", + "@wordpress/annotations": "^1.0.5", + "@wordpress/api-fetch": "^2.2.7", "@wordpress/autop": "^2.0.2", "@wordpress/blob": "^2.1.0", - "@wordpress/block-library": "^2.2.11", - "@wordpress/block-serialization-default-parser": "^2.0.2", - "@wordpress/blocks": "^6.0.4", - "@wordpress/components": "^7.0.4", + "@wordpress/block-library": "^2.2.12", + "@wordpress/block-serialization-default-parser": "^2.0.3", + "@wordpress/blocks": "^6.0.5", + "@wordpress/components": "^7.0.5", "@wordpress/compose": "^3.0.0", - "@wordpress/core-data": "^2.0.15", - "@wordpress/data": "^4.1.0", + "@wordpress/core-data": "^2.0.16", + "@wordpress/data": "^4.2.0", "@wordpress/date": "^3.0.1", - "@wordpress/deprecated": "^2.0.3", - "@wordpress/dom": "^2.0.7", + "@wordpress/deprecated": "^2.0.4", + "@wordpress/dom": "^2.0.8", "@wordpress/dom-ready": "^2.0.2", - "@wordpress/edit-post": "^3.1.6", - "@wordpress/editor": "^9.0.6", + "@wordpress/edit-post": "^3.1.7", + "@wordpress/editor": "^9.0.7", "@wordpress/element": "^2.1.8", "@wordpress/escape-html": "^1.0.1", - "@wordpress/format-library": "^1.2.9", - "@wordpress/hooks": "^2.0.3", + "@wordpress/format-library": "^1.2.10", + "@wordpress/hooks": "^2.0.4", "@wordpress/html-entities": "^2.0.4", "@wordpress/i18n": "^3.1.0", "@wordpress/is-shallow-equal": "^1.1.4", "@wordpress/keycodes": "^2.0.5", - "@wordpress/list-reusable-blocks": "^1.1.17", - "@wordpress/notices": "^1.1.1", - "@wordpress/nux": "^3.0.5", - "@wordpress/plugins": "^2.0.9", + "@wordpress/list-reusable-blocks": "^1.1.18", + "@wordpress/notices": "^1.1.2", + "@wordpress/nux": "^3.0.6", + "@wordpress/plugins": "^2.0.10", "@wordpress/redux-routine": "^3.0.3", - "@wordpress/rich-text": "^3.0.3", + "@wordpress/rich-text": "^3.0.4", "@wordpress/shortcode": "^2.0.2", "@wordpress/token-list": "^1.1.0", - "@wordpress/url": "^2.3.2", - "@wordpress/viewport": "^2.0.13", + "@wordpress/url": "^2.3.3", + "@wordpress/viewport": "^2.1.0", "@wordpress/wordcount": "^2.0.3", "backbone": "1.3.3", "element-closest": "^2.0.2", diff --git a/src/wp-includes/class-wp-block-parser.php b/src/wp-includes/class-wp-block-parser.php index 439a2ce32b..8b565f1a28 100644 --- a/src/wp-includes/class-wp-block-parser.php +++ b/src/wp-includes/class-wp-block-parser.php @@ -1,4 +1,9 @@ blockName = $name; $this->attrs = $attrs; @@ -121,6 +139,19 @@ class WP_Block_Parser_Frame { */ public $leading_html_start; + /** + * Constructor + * + * Will populate object properties from the provided arguments. + * + * @since 3.8.0 + * + * @param WP_Block_Parser_Block $block Full or partial block. + * @param int $token_start Byte offset into document for start of parse token. + * @param int $token_length Byte length of entire parse token string. + * @param int $prev_offset Byte offset into document for after parse token ends. + * @param int $leading_html_start Byte offset into document where leading HTML before token starts. + */ function __construct( $block, $token_start, $token_length, $prev_offset = null, $leading_html_start = null ) { $this->block = $block; $this->token_start = $token_start; @@ -190,7 +221,7 @@ class WP_Block_Parser { * * @since 3.8.0 * - * @param string $document + * @param string $document Input document being parsed. * @return WP_Block_Parser_Block[] */ function parse( $document ) { @@ -201,7 +232,7 @@ class WP_Block_Parser { $this->empty_attrs = json_decode( '{}', true ); do { - // twiddle our thumbs + // twiddle our thumbs. } while ( $this->proceed() ); return $this->output; @@ -226,12 +257,12 @@ class WP_Block_Parser { list( $token_type, $block_name, $attrs, $start_offset, $token_length ) = $next_token; $stack_depth = count( $this->stack ); - // we may have some HTML soup before the next block + // we may have some HTML soup before the next block. $leading_html_start = $start_offset > $this->offset ? $this->offset : null; switch ( $token_type ) { case 'no-more-tokens': - // if not in a block then flush output + // if not in a block then flush output. if ( 0 === $stack_depth ) { $this->add_freeform(); return false; @@ -246,7 +277,7 @@ class WP_Block_Parser { * - assume an implicit closer (easiest when not nesting) */ - // for the easy case we'll assume an implicit closer + // for the easy case we'll assume an implicit closer. if ( 1 === $stack_depth ) { $this->add_block_from_stack(); return false; @@ -283,7 +314,7 @@ class WP_Block_Parser { return true; } - // otherwise we found an inner block + // otherwise we found an inner block. $this->add_inner_block( new WP_Block_Parser_Block( $block_name, $attrs, array(), '', array() ), $start_offset, @@ -293,7 +324,7 @@ class WP_Block_Parser { return true; case 'block-opener': - // track all newly-opened blocks on the stack + // track all newly-opened blocks on the stack. array_push( $this->stack, new WP_Block_Parser_Frame( @@ -323,7 +354,7 @@ class WP_Block_Parser { return false; } - // if we're not nesting then this is easy - close the block + // if we're not nesting then this is easy - close the block. if ( 1 === $stack_depth ) { $this->add_block_from_stack( $start_offset ); $this->offset = $start_offset + $token_length; @@ -350,7 +381,7 @@ class WP_Block_Parser { return true; default: - // This is an error + // This is an error. $this->add_freeform(); return false; } @@ -386,12 +417,12 @@ class WP_Block_Parser { $this->offset ); - // if we get here we probably have catastrophic backtracking or out-of-memory in the PCRE + // if we get here we probably have catastrophic backtracking or out-of-memory in the PCRE. if ( false === $has_match ) { return array( 'no-more-tokens', null, null, null, null ); } - // we have no more tokens + // we have no more tokens. if ( 0 === $has_match ) { return array( 'no-more-tokens', null, null, null, null ); } @@ -419,7 +450,7 @@ class WP_Block_Parser { * This is an error */ if ( $is_closer && ( $is_void || $has_attrs ) ) { - // we can ignore them since they don't hurt anything + // we can ignore them since they don't hurt anything. } if ( $is_void ) { @@ -439,8 +470,8 @@ class WP_Block_Parser { * @internal * @since 3.9.0 * - * @param string $innerHTML HTML content of block - * @return WP_Block_Parser_Block freeform block object + * @param string $innerHTML HTML content of block. + * @return WP_Block_Parser_Block freeform block object. */ function freeform( $innerHTML ) { return new WP_Block_Parser_Block( null, $this->empty_attrs, array(), $innerHTML, array( $innerHTML ) ); @@ -448,11 +479,11 @@ class WP_Block_Parser { /** * Pushes a length of text from the input document - * to the output list as a freeform block + * to the output list as a freeform block. * * @internal * @since 3.8.0 - * @param null $length how many bytes of document text to output + * @param null $length how many bytes of document text to output. */ function add_freeform( $length = null ) { $length = $length ? $length : strlen( $this->document ) - $this->offset; @@ -466,14 +497,14 @@ class WP_Block_Parser { /** * Given a block structure from memory pushes - * a new block to the output list + * a new block to the output list. * * @internal * @since 3.8.0 - * @param WP_Block_Parser_Block $block the block to add to the output - * @param int $token_start byte offset into the document where the first token for the block starts - * @param int $token_length byte length of entire block from start of opening token to end of closing token - * @param int|null $last_offset last byte offset into document if continuing form earlier output + * @param WP_Block_Parser_Block $block The block to add to the output. + * @param int $token_start Byte offset into the document where the first token for the block starts. + * @param int $token_length Byte length of entire block from start of opening token to end of closing token. + * @param int|null $last_offset Last byte offset into document if continuing form earlier output. */ function add_inner_block( WP_Block_Parser_Block $block, $token_start, $token_length, $last_offset = null ) { $parent = $this->stack[ count( $this->stack ) - 1 ]; @@ -490,11 +521,11 @@ class WP_Block_Parser { } /** - * Pushes the top block from the parsing stack to the output list + * Pushes the top block from the parsing stack to the output list. * * @internal * @since 3.8.0 - * @param int|null $end_offset byte offset into document for where we should stop sending text output as HTML + * @param int|null $end_offset byte offset into document for where we should stop sending text output as HTML. */ function add_block_from_stack( $end_offset = null ) { $stack_top = array_pop( $this->stack ); diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php index 2772ab6eb8..83ac6af1ad 100644 --- a/src/wp-includes/script-loader.php +++ b/src/wp-includes/script-loader.php @@ -224,42 +224,42 @@ function wp_default_packages_scripts( &$scripts ) { $suffix = wp_scripts_get_suffix(); $packages_versions = array( - 'api-fetch' => '2.2.6', + 'api-fetch' => '2.2.7', 'a11y' => '2.0.2', - 'annotations' => '1.0.4', + 'annotations' => '1.0.5', 'autop' => '2.0.2', 'blob' => '2.1.0', - 'block-library' => '2.2.11', - 'block-serialization-default-parser' => '2.0.2', - 'blocks' => '6.0.4', - 'components' => '7.0.4', + 'block-library' => '2.2.12', + 'block-serialization-default-parser' => '2.0.3', + 'blocks' => '6.0.5', + 'components' => '7.0.5', 'compose' => '3.0.0', - 'core-data' => '2.0.15', - 'data' => '4.1.0', + 'core-data' => '2.0.16', + 'data' => '4.2.0', 'date' => '3.0.1', - 'deprecated' => '2.0.3', - 'dom' => '2.0.7', + 'deprecated' => '2.0.4', + 'dom' => '2.0.8', 'dom-ready' => '2.0.2', - 'edit-post' => '3.1.6', - 'editor' => '9.0.6', + 'edit-post' => '3.1.7', + 'editor' => '9.0.7', 'element' => '2.1.8', 'escape-html' => '1.0.1', - 'format-library' => '1.2.9', - 'hooks' => '2.0.3', + 'format-library' => '1.2.10', + 'hooks' => '2.0.4', 'html-entities' => '2.0.4', 'i18n' => '3.1.0', 'is-shallow-equal' => '1.1.4', 'keycodes' => '2.0.5', - 'list-reusable-blocks' => '1.1.17', - 'notices' => '1.1.1', - 'nux' => '3.0.5', - 'plugins' => '2.0.9', + 'list-reusable-blocks' => '1.1.18', + 'notices' => '1.1.2', + 'nux' => '3.0.6', + 'plugins' => '2.0.10', 'redux-routine' => '3.0.3', - 'rich-text' => '3.0.3', + 'rich-text' => '3.0.4', 'shortcode' => '2.0.2', 'token-list' => '1.1.0', - 'url' => '2.3.2', - 'viewport' => '2.0.13', + 'url' => '2.3.3', + 'viewport' => '2.1.0', 'wordcount' => '2.0.3', );