mirror of
git://develop.git.wordpress.org/
synced 2025-04-07 13:43:25 +02:00
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. Merges [44389] to the 5.0 branch. Fixes #45814. git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44390 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d55618e69c
commit
5340afd185
316
package-lock.json
generated
316
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "WordPress",
|
||||
"version": "5.0.2",
|
||||
"version": "5.0.3",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
@ -237,15 +237,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",
|
||||
@ -253,14 +253,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": {
|
||||
@ -280,25 +280,25 @@
|
||||
}
|
||||
},
|
||||
"@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",
|
||||
@ -306,9 +306,9 @@
|
||||
}
|
||||
},
|
||||
"@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"
|
||||
}
|
||||
@ -319,19 +319,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",
|
||||
@ -346,22 +346,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",
|
||||
@ -390,14 +390,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"
|
||||
@ -414,9 +414,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",
|
||||
@ -441,18 +441,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"
|
||||
@ -467,62 +467,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",
|
||||
@ -594,25 +594,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"
|
||||
}
|
||||
@ -675,13 +675,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",
|
||||
@ -689,25 +689,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",
|
||||
@ -715,14 +715,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"
|
||||
}
|
||||
},
|
||||
@ -737,13 +737,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"
|
||||
@ -769,22 +769,22 @@
|
||||
}
|
||||
},
|
||||
"@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"
|
||||
}
|
||||
},
|
||||
"@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"
|
||||
}
|
||||
@ -2449,7 +2449,7 @@
|
||||
},
|
||||
"browserify-rsa": {
|
||||
"version": "4.0.1",
|
||||
"resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.0.1.tgz",
|
||||
"resolved": "http://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.0.1.tgz",
|
||||
"integrity": "sha1-IeCr+vbyApzy+vsTNWenAdQTVSQ=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
@ -2746,7 +2746,7 @@
|
||||
},
|
||||
"chalk": {
|
||||
"version": "1.1.3",
|
||||
"resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
|
||||
"resolved": "http://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
|
||||
"integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
|
||||
"requires": {
|
||||
"ansi-styles": "^2.2.1",
|
||||
@ -4541,7 +4541,7 @@
|
||||
},
|
||||
"events": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/events/-/events-1.1.1.tgz",
|
||||
"resolved": "http://registry.npmjs.org/events/-/events-1.1.1.tgz",
|
||||
"integrity": "sha1-nr23Y1rQmccNzEwqH1AEKI6L2SQ=",
|
||||
"dev": true
|
||||
},
|
||||
@ -4835,7 +4835,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="
|
||||
}
|
||||
}
|
||||
@ -5189,12 +5189,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"
|
||||
@ -5209,17 +5211,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",
|
||||
@ -5336,7 +5341,8 @@
|
||||
"inherits": {
|
||||
"version": "2.0.3",
|
||||
"bundled": true,
|
||||
"dev": true
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"ini": {
|
||||
"version": "1.3.5",
|
||||
@ -5348,6 +5354,7 @@
|
||||
"version": "1.0.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"number-is-nan": "^1.0.0"
|
||||
}
|
||||
@ -5362,6 +5369,7 @@
|
||||
"version": "3.0.4",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"brace-expansion": "^1.1.7"
|
||||
}
|
||||
@ -5369,12 +5377,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"
|
||||
@ -5393,6 +5403,7 @@
|
||||
"version": "0.5.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"minimist": "0.0.8"
|
||||
}
|
||||
@ -5473,7 +5484,8 @@
|
||||
"number-is-nan": {
|
||||
"version": "1.0.1",
|
||||
"bundled": true,
|
||||
"dev": true
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"object-assign": {
|
||||
"version": "4.1.1",
|
||||
@ -5485,6 +5497,7 @@
|
||||
"version": "1.4.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"wrappy": "1"
|
||||
}
|
||||
@ -5606,6 +5619,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",
|
||||
@ -5814,7 +5828,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",
|
||||
@ -10101,14 +10115,14 @@
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"object.getownpropertydescriptors": {
|
||||
@ -10191,7 +10205,7 @@
|
||||
},
|
||||
"onetime": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz",
|
||||
"resolved": "http://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz",
|
||||
"integrity": "sha1-ofeDj4MUxRbwXs78vEzP4EtO14k=",
|
||||
"dev": true
|
||||
},
|
||||
@ -10613,7 +10627,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
|
||||
}
|
||||
@ -11314,9 +11328,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",
|
||||
|
42
package.json
42
package.json
@ -51,41 +51,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",
|
||||
"element-closest": "^2.0.2",
|
||||
"formdata-polyfill": "^3.0.12",
|
||||
|
@ -1,4 +1,9 @@
|
||||
<?php
|
||||
/**
|
||||
* Block Serialization Parser
|
||||
*
|
||||
* @package WordPress
|
||||
*/
|
||||
|
||||
/**
|
||||
* Class WP_Block_Parser_Block
|
||||
@ -62,11 +67,24 @@ class WP_Block_Parser_Block {
|
||||
*/
|
||||
public $innerContent;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* Will populate object properties from the provided arguments.
|
||||
*
|
||||
* @since 3.8.0
|
||||
*
|
||||
* @param string $name Name of block.
|
||||
* @param array $attrs Optional set of attributes from block comment delimiters.
|
||||
* @param array $innerBlocks List of inner blocks (of this same class).
|
||||
* @param string $innerHTML Resultant HTML from inside block comment delimiters after removing inner blocks.
|
||||
* @param array $innerContent List of string fragments and null markers where inner blocks were found.
|
||||
*/
|
||||
function __construct( $name, $attrs, $innerBlocks, $innerHTML, $innerContent ) {
|
||||
$this->blockName = $name;
|
||||
$this->attrs = $attrs;
|
||||
$this->innerBlocks = $innerBlocks;
|
||||
$this->innerHTML = $innerHTML;
|
||||
$this->blockName = $name;
|
||||
$this->attrs = $attrs;
|
||||
$this->innerBlocks = $innerBlocks;
|
||||
$this->innerHTML = $innerHTML;
|
||||
$this->innerContent = $innerContent;
|
||||
}
|
||||
}
|
||||
@ -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;
|
||||
@ -269,19 +300,21 @@ class WP_Block_Parser {
|
||||
*/
|
||||
if ( 0 === $stack_depth ) {
|
||||
if ( isset( $leading_html_start ) ) {
|
||||
$this->output[] = (array) self::freeform( substr(
|
||||
$this->document,
|
||||
$leading_html_start,
|
||||
$start_offset - $leading_html_start
|
||||
) );
|
||||
$this->output[] = (array) self::freeform(
|
||||
substr(
|
||||
$this->document,
|
||||
$leading_html_start,
|
||||
$start_offset - $leading_html_start
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
$this->output[] = (array) new WP_Block_Parser_Block( $block_name, $attrs, array(), '', array() );
|
||||
$this->offset = $start_offset + $token_length;
|
||||
$this->offset = $start_offset + $token_length;
|
||||
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,
|
||||
@ -291,14 +324,17 @@ class WP_Block_Parser {
|
||||
return true;
|
||||
|
||||
case 'block-opener':
|
||||
// track all newly-opened blocks on the stack
|
||||
array_push( $this->stack, new WP_Block_Parser_Frame(
|
||||
new WP_Block_Parser_Block( $block_name, $attrs, array(), '', array() ),
|
||||
$start_offset,
|
||||
$token_length,
|
||||
$start_offset + $token_length,
|
||||
$leading_html_start
|
||||
) );
|
||||
// track all newly-opened blocks on the stack.
|
||||
array_push(
|
||||
$this->stack,
|
||||
new WP_Block_Parser_Frame(
|
||||
new WP_Block_Parser_Block( $block_name, $attrs, array(), '', array() ),
|
||||
$start_offset,
|
||||
$token_length,
|
||||
$start_offset + $token_length,
|
||||
$leading_html_start
|
||||
)
|
||||
);
|
||||
$this->offset = $start_offset + $token_length;
|
||||
return true;
|
||||
|
||||
@ -318,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;
|
||||
@ -329,11 +365,11 @@ class WP_Block_Parser {
|
||||
* otherwise we're nested and we have to close out the current
|
||||
* block and add it as a new innerBlock to the parent
|
||||
*/
|
||||
$stack_top = array_pop( $this->stack );
|
||||
$html = substr( $this->document, $stack_top->prev_offset, $start_offset - $stack_top->prev_offset );
|
||||
$stack_top->block->innerHTML .= $html;
|
||||
$stack_top = array_pop( $this->stack );
|
||||
$html = substr( $this->document, $stack_top->prev_offset, $start_offset - $stack_top->prev_offset );
|
||||
$stack_top->block->innerHTML .= $html;
|
||||
$stack_top->block->innerContent[] = $html;
|
||||
$stack_top->prev_offset = $start_offset + $token_length;
|
||||
$stack_top->prev_offset = $start_offset + $token_length;
|
||||
|
||||
$this->add_inner_block(
|
||||
$stack_top->block,
|
||||
@ -345,7 +381,7 @@ class WP_Block_Parser {
|
||||
return true;
|
||||
|
||||
default:
|
||||
// This is an error
|
||||
// This is an error.
|
||||
$this->add_freeform();
|
||||
return false;
|
||||
}
|
||||
@ -381,32 +417,32 @@ 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 );
|
||||
}
|
||||
|
||||
list( $match, $started_at ) = $matches[ 0 ];
|
||||
list( $match, $started_at ) = $matches[0];
|
||||
|
||||
$length = strlen( $match );
|
||||
$is_closer = isset( $matches[ 'closer' ] ) && -1 !== $matches[ 'closer' ][ 1 ];
|
||||
$is_void = isset( $matches[ 'void' ] ) && -1 !== $matches[ 'void' ][ 1 ];
|
||||
$namespace = $matches[ 'namespace' ];
|
||||
$namespace = ( isset( $namespace ) && -1 !== $namespace[ 1 ] ) ? $namespace[ 0 ] : 'core/';
|
||||
$name = $namespace . $matches[ 'name' ][ 0 ];
|
||||
$has_attrs = isset( $matches[ 'attrs' ] ) && -1 !== $matches[ 'attrs' ][ 1 ];
|
||||
$is_closer = isset( $matches['closer'] ) && -1 !== $matches['closer'][1];
|
||||
$is_void = isset( $matches['void'] ) && -1 !== $matches['void'][1];
|
||||
$namespace = $matches['namespace'];
|
||||
$namespace = ( isset( $namespace ) && -1 !== $namespace[1] ) ? $namespace[0] : 'core/';
|
||||
$name = $namespace . $matches['name'][0];
|
||||
$has_attrs = isset( $matches['attrs'] ) && -1 !== $matches['attrs'][1];
|
||||
|
||||
/*
|
||||
* Fun fact! It's not trivial in PHP to create "an empty associative array" since all arrays
|
||||
* are associative arrays. If we use `array()` we get a JSON `[]`
|
||||
*/
|
||||
$attrs = $has_attrs
|
||||
? json_decode( $matches[ 'attrs' ][ 0 ], /* as-associative */ true )
|
||||
? json_decode( $matches['attrs'][0], /* as-associative */ true )
|
||||
: $this->empty_attrs;
|
||||
|
||||
/*
|
||||
@ -414,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 ) {
|
||||
@ -434,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 ) );
|
||||
@ -443,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;
|
||||
@ -461,35 +497,35 @@ 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 ];
|
||||
$parent = $this->stack[ count( $this->stack ) - 1 ];
|
||||
$parent->block->innerBlocks[] = (array) $block;
|
||||
$html = substr( $this->document, $parent->prev_offset, $token_start - $parent->prev_offset );
|
||||
$html = substr( $this->document, $parent->prev_offset, $token_start - $parent->prev_offset );
|
||||
|
||||
if ( ! empty( $html ) ) {
|
||||
$parent->block->innerHTML .= $html;
|
||||
$parent->block->innerHTML .= $html;
|
||||
$parent->block->innerContent[] = $html;
|
||||
}
|
||||
|
||||
$parent->block->innerContent[] = null;
|
||||
$parent->prev_offset = $last_offset ? $last_offset : $token_start + $token_length;
|
||||
$parent->prev_offset = $last_offset ? $last_offset : $token_start + $token_length;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 );
|
||||
@ -500,16 +536,18 @@ class WP_Block_Parser {
|
||||
: substr( $this->document, $prev_offset );
|
||||
|
||||
if ( ! empty( $html ) ) {
|
||||
$stack_top->block->innerHTML .= $html;
|
||||
$stack_top->block->innerHTML .= $html;
|
||||
$stack_top->block->innerContent[] = $html;
|
||||
}
|
||||
|
||||
if ( isset( $stack_top->leading_html_start ) ) {
|
||||
$this->output[] = (array) self::freeform( substr(
|
||||
$this->document,
|
||||
$stack_top->leading_html_start,
|
||||
$stack_top->token_start - $stack_top->leading_html_start
|
||||
) );
|
||||
$this->output[] = (array) self::freeform(
|
||||
substr(
|
||||
$this->document,
|
||||
$stack_top->leading_html_start,
|
||||
$stack_top->token_start - $stack_top->leading_html_start
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
$this->output[] = (array) $stack_top->block;
|
||||
|
@ -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',
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user