Block Editor: Update @WordPress dependencies to match Gutenberg 4.5.1.

Updates packages: annotations,
api-fetch,
block-library,
blocks,
components,
core-data,
data,
dom, edit-post,
editor,
format-library,
jest-console,
jest-preset-default,
keycodes,
html-entities,
list-reusable-blocks,
notices,
nux,
rich-text,
scripts,
token-list, url,
viewport

Fixes undefined notices in some blocks. Removes incorrect `'gutenberg'` textdomain too.

See #45145


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43919 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daniel Bachhuber 2018-11-21 15:08:01 +00:00
parent 9ee7a34c9f
commit 60ec049c98
9 changed files with 223 additions and 175 deletions

252
package-lock.json generated
View File

@ -237,29 +237,30 @@
}
},
"@wordpress/annotations": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@wordpress/annotations/-/annotations-1.0.1.tgz",
"integrity": "sha512-p3x69/bECmnVCGbcacp/+W+oXG41ilAgMqO5AegFKOUdGajIs5gXsCWl3wD3e/07cI9DDuFwtx476jadxfZBhA==",
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/@wordpress/annotations/-/annotations-1.0.3.tgz",
"integrity": "sha512-/3KGSkugdKfFOsTqha0G3/ig5ZBrRp00ByUMDF8jy6LiMwYXmxFNxwuNJi/jgYh0s+IZtLDtUUUlzpEXlwRKhw==",
"requires": {
"@babel/runtime": "^7.0.0",
"@wordpress/data": "^4.0.0",
"@wordpress/data": "^4.0.1",
"@wordpress/hooks": "^2.0.3",
"@wordpress/i18n": "^3.1.0",
"@wordpress/rich-text": "^3.0.0",
"@wordpress/rich-text": "^3.0.2",
"lodash": "^4.17.10",
"memize": "^1.0.5",
"rememo": "^3.0.0",
"uuid": "^3.3.2"
}
},
"@wordpress/api-fetch": {
"version": "2.2.4",
"resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-2.2.4.tgz",
"integrity": "sha512-4F/soEicQTTAgZujeJ0oMAh/YPX56dUIzlB4ndswp3dvTJP/FNg2Nng9LnicCfQQHDhIrDFkwRNM4MfAVWk7WA==",
"version": "2.2.5",
"resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-2.2.5.tgz",
"integrity": "sha512-/59udJQAG5ynrA7j/E6mBhl0gv1MXpBDiuMhY7TBOdgNYIdltrcBbI2PF0r42EGPRtm+rOzBKrEM7WDkWTCkvA==",
"requires": {
"@babel/runtime": "^7.0.0",
"@wordpress/hooks": "^2.0.3",
"@wordpress/i18n": "^3.1.0",
"@wordpress/url": "^2.3.0"
"@wordpress/url": "^2.3.1"
}
},
"@wordpress/autop": {
@ -279,25 +280,25 @@
}
},
"@wordpress/block-library": {
"version": "2.2.4",
"resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-2.2.4.tgz",
"integrity": "sha512-Z/EmYdzB3GQpw8Rva/Y7xG9IS7W/cy1KWR7DrT3/bb7sGwQ4f37KPttY4s7qkRZlkKRakzEfqAIVtci6w2pqmg==",
"version": "2.2.6",
"resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-2.2.6.tgz",
"integrity": "sha512-HCRqGzGqeU36tUp26ml+2o8SXCB/gkvzJyeIKX4IGHKjONjxZim/0ht7KoyCEjup/cxNNP8NZ6BQaI3oi6P6JA==",
"requires": {
"@babel/runtime": "^7.0.0",
"@wordpress/autop": "^2.0.2",
"@wordpress/blob": "^2.1.0",
"@wordpress/blocks": "^6.0.0",
"@wordpress/components": "^6.0.2",
"@wordpress/blocks": "^6.0.2",
"@wordpress/components": "^7.0.1",
"@wordpress/compose": "^3.0.0",
"@wordpress/core-data": "^2.0.13",
"@wordpress/data": "^4.0.0",
"@wordpress/core-data": "^2.0.14",
"@wordpress/data": "^4.0.1",
"@wordpress/deprecated": "^2.0.3",
"@wordpress/editor": "^8.0.0",
"@wordpress/editor": "^9.0.1",
"@wordpress/element": "^2.1.8",
"@wordpress/html-entities": "^2.0.2",
"@wordpress/html-entities": "^2.0.3",
"@wordpress/i18n": "^3.1.0",
"@wordpress/keycodes": "^2.0.3",
"@wordpress/viewport": "^2.0.11",
"@wordpress/keycodes": "^2.0.5",
"@wordpress/viewport": "^2.0.12",
"classnames": "^2.2.5",
"lodash": "^4.17.10",
"memize": "^1.0.5",
@ -321,20 +322,20 @@
"integrity": "sha512-l5N0o2Tkc4IcDhhMfX2W3KuEV/4F7TeitJEDtBpLYf7eRMIn3Uh6l5rPDmmuTDv7UFlMWTiA8z/oCpl13ZyBOw=="
},
"@wordpress/blocks": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/@wordpress/blocks/-/blocks-6.0.0.tgz",
"integrity": "sha512-mVRY8VptqIRuGWJRhm7B5BjBJRUKvmIViljUG0mAD3mAcFR9PKNADabbEGSSoH3clUOkUBqLRLzDceQuWOsaYw==",
"version": "6.0.2",
"resolved": "https://registry.npmjs.org/@wordpress/blocks/-/blocks-6.0.2.tgz",
"integrity": "sha512-Y9cIbxXnATT6NPBbT969awm/5iLL/fRYoQ2a0xoqqHdcI8kxPbMv2TdAE8RaM8eeYL17t6CmWdfP+jkAIVGMGg==",
"requires": {
"@babel/runtime": "^7.0.0",
"@wordpress/autop": "^2.0.2",
"@wordpress/blob": "^2.1.0",
"@wordpress/block-serialization-default-parser": "^2.0.0",
"@wordpress/block-serialization-spec-parser": "^2.0.0",
"@wordpress/data": "^4.0.0",
"@wordpress/dom": "^2.0.6",
"@wordpress/data": "^4.0.1",
"@wordpress/dom": "^2.0.7",
"@wordpress/element": "^2.1.8",
"@wordpress/hooks": "^2.0.3",
"@wordpress/html-entities": "^2.0.2",
"@wordpress/html-entities": "^2.0.3",
"@wordpress/i18n": "^3.1.0",
"@wordpress/is-shallow-equal": "^1.1.4",
"@wordpress/shortcode": "^2.0.2",
@ -348,23 +349,22 @@
}
},
"@wordpress/components": {
"version": "6.0.2",
"resolved": "https://registry.npmjs.org/@wordpress/components/-/components-6.0.2.tgz",
"integrity": "sha512-La9RsHC4IBqfsUbY2hOwQyIHnrd5zzcT+HbbKPV1GPlYOxgIpX41gh8/ktAsuNcZQWOmgze5MRFVl4+2OQEV9Q==",
"version": "7.0.1",
"resolved": "https://registry.npmjs.org/@wordpress/components/-/components-7.0.1.tgz",
"integrity": "sha512-6Efciw+CwFa0b51bLZUNWv0C2p5j8VIVb6vAHB/ghwD0BkNHZ0N4JBafOIB+6toAtmLzC+SONfHNmFNJHibZ+Q==",
"requires": {
"@babel/runtime": "^7.0.0",
"@wordpress/a11y": "^2.0.2",
"@wordpress/api-fetch": "^2.2.4",
"@wordpress/api-fetch": "^2.2.5",
"@wordpress/compose": "^3.0.0",
"@wordpress/deprecated": "^2.0.3",
"@wordpress/dom": "^2.0.6",
"@wordpress/dom": "^2.0.7",
"@wordpress/element": "^2.1.8",
"@wordpress/hooks": "^2.0.3",
"@wordpress/i18n": "^3.1.0",
"@wordpress/is-shallow-equal": "^1.1.4",
"@wordpress/keycodes": "^2.0.3",
"@wordpress/rich-text": "^3.0.0",
"@wordpress/url": "^2.3.0",
"@wordpress/keycodes": "^2.0.5",
"@wordpress/rich-text": "^3.0.2",
"@wordpress/url": "^2.3.1",
"classnames": "^2.2.5",
"clipboard": "^2.0.1",
"diff": "^3.5.0",
@ -393,14 +393,14 @@
}
},
"@wordpress/core-data": {
"version": "2.0.13",
"resolved": "https://registry.npmjs.org/@wordpress/core-data/-/core-data-2.0.13.tgz",
"integrity": "sha512-vRVcBJXQ9QqC4PZOGzyC29ygvAxPr2BmzH+bPTd+EHjYypmLf3nXj8JhC6jjTCjlHt9mmYLVy/lI97kC3Jdfdg==",
"version": "2.0.14",
"resolved": "https://registry.npmjs.org/@wordpress/core-data/-/core-data-2.0.14.tgz",
"integrity": "sha512-Hbd9tOfxv41jO1VwN9KzKCVgWuUzvZwIhXj848SFi0CzV0E57fiIVAkB/7bQj1EUOGT1qzIRLHhsBAEpxrVaeA==",
"requires": {
"@babel/runtime": "^7.0.0",
"@wordpress/api-fetch": "^2.2.4",
"@wordpress/data": "^4.0.0",
"@wordpress/url": "^2.3.0",
"@wordpress/api-fetch": "^2.2.5",
"@wordpress/data": "^4.0.1",
"@wordpress/url": "^2.3.1",
"equivalent-key-map": "^0.2.2",
"lodash": "^4.17.10",
"rememo": "^3.0.0"
@ -417,9 +417,9 @@
}
},
"@wordpress/data": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/@wordpress/data/-/data-4.0.0.tgz",
"integrity": "sha512-7DlfLBcSdZb8XzpO+1lUXX3DfCnUVoNN/kc/1iGYndWtEaW6EXOBHAUMqno+DeDzriZRdYbJfqRy9cTbQtwhBQ==",
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/@wordpress/data/-/data-4.0.1.tgz",
"integrity": "sha512-UfuSPjyA4xssOVcgg1wRlngBNGVbMmZGtwoGpAWej/XRpGI26P6Xi+8skPQfLTP2yl+/nMoFd9PTwpE0MwDQ7Q==",
"requires": {
"@babel/runtime": "^7.0.0",
"@wordpress/compose": "^3.0.0",
@ -453,9 +453,9 @@
}
},
"@wordpress/dom": {
"version": "2.0.6",
"resolved": "https://registry.npmjs.org/@wordpress/dom/-/dom-2.0.6.tgz",
"integrity": "sha512-z1xdNASrkJc+FTdYAEDKub7pqrizAo2WFlkBmqrurwBcY/HoOTTEqg6wzq2SwvEq/rff741BCWD/JmGU7tI3AQ==",
"version": "2.0.7",
"resolved": "https://registry.npmjs.org/@wordpress/dom/-/dom-2.0.7.tgz",
"integrity": "sha512-vjOdGSpW3WdHH5oOoamfzdoyF4BbUJOWNNT7bBb2y15GII8rN1cGyGxqVDiiajMDe51p3lyWWCpUeY4ppxj/UA==",
"requires": {
"@babel/runtime": "^7.0.0",
"lodash": "^4.17.10"
@ -470,62 +470,62 @@
}
},
"@wordpress/edit-post": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-3.0.2.tgz",
"integrity": "sha512-bJRjyr+b4rGax/wOr+5u/ez+NbidRDKXDs35GWc8n2O0ElVFJLeNyrz2tbxLlp+uS5tZTw4P7bGtmMSgh87wcw==",
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-3.1.1.tgz",
"integrity": "sha512-sjGNSTBh6xKZUtpskkc1Hx0y+iqcfOyX+i09I+zrRyoelHvw/0nZ9iHvN34lTszAgPOx9vjy8nHc8obH0gr8AA==",
"requires": {
"@babel/runtime": "^7.0.0",
"@wordpress/a11y": "^2.0.2",
"@wordpress/api-fetch": "^2.2.4",
"@wordpress/block-library": "^2.2.4",
"@wordpress/blocks": "^6.0.0",
"@wordpress/components": "^6.0.2",
"@wordpress/api-fetch": "^2.2.5",
"@wordpress/block-library": "^2.2.6",
"@wordpress/blocks": "^6.0.2",
"@wordpress/components": "^7.0.1",
"@wordpress/compose": "^3.0.0",
"@wordpress/core-data": "^2.0.13",
"@wordpress/data": "^4.0.0",
"@wordpress/editor": "^8.0.0",
"@wordpress/core-data": "^2.0.14",
"@wordpress/data": "^4.0.1",
"@wordpress/editor": "^9.0.1",
"@wordpress/element": "^2.1.8",
"@wordpress/format-library": "^1.2.2",
"@wordpress/format-library": "^1.2.4",
"@wordpress/hooks": "^2.0.3",
"@wordpress/i18n": "^3.1.0",
"@wordpress/keycodes": "^2.0.3",
"@wordpress/nux": "^3.0.0",
"@wordpress/keycodes": "^2.0.5",
"@wordpress/nux": "^3.0.2",
"@wordpress/plugins": "^2.0.9",
"@wordpress/url": "^2.3.0",
"@wordpress/viewport": "^2.0.11",
"@wordpress/url": "^2.3.1",
"@wordpress/viewport": "^2.0.12",
"classnames": "^2.2.5",
"lodash": "^4.17.10",
"refx": "^3.0.0"
}
},
"@wordpress/editor": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-8.0.0.tgz",
"integrity": "sha512-948dOGeRyrtZyopzdPVqhmEzbAbCaGtRfuwoywOiMJb/HCXuILEbv2fg9FDjTC0bG2HX4OAdE404Win0TL9Xgg==",
"version": "9.0.1",
"resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-9.0.1.tgz",
"integrity": "sha512-ZhihGx9huZkJfKRM5dlzesmjoC0Tcl7LwdMC4UXjQSey7blriRGrEMUdhLikbqdLuK1/tVNA2HHIlHUaRBAMMA==",
"requires": {
"@babel/runtime": "^7.0.0",
"@wordpress/a11y": "^2.0.2",
"@wordpress/api-fetch": "^2.2.4",
"@wordpress/api-fetch": "^2.2.5",
"@wordpress/blob": "^2.1.0",
"@wordpress/blocks": "^6.0.0",
"@wordpress/components": "^6.0.2",
"@wordpress/blocks": "^6.0.2",
"@wordpress/components": "^7.0.1",
"@wordpress/compose": "^3.0.0",
"@wordpress/core-data": "^2.0.13",
"@wordpress/data": "^4.0.0",
"@wordpress/core-data": "^2.0.14",
"@wordpress/data": "^4.0.1",
"@wordpress/date": "^3.0.0",
"@wordpress/deprecated": "^2.0.3",
"@wordpress/dom": "^2.0.6",
"@wordpress/dom": "^2.0.7",
"@wordpress/element": "^2.1.8",
"@wordpress/hooks": "^2.0.3",
"@wordpress/html-entities": "^2.0.2",
"@wordpress/html-entities": "^2.0.3",
"@wordpress/i18n": "^3.1.0",
"@wordpress/is-shallow-equal": "^1.1.4",
"@wordpress/keycodes": "^2.0.3",
"@wordpress/notices": "^1.0.5",
"@wordpress/nux": "^3.0.0",
"@wordpress/token-list": "^1.0.2",
"@wordpress/url": "^2.3.0",
"@wordpress/viewport": "^2.0.11",
"@wordpress/keycodes": "^2.0.5",
"@wordpress/notices": "^1.1.0",
"@wordpress/nux": "^3.0.2",
"@wordpress/token-list": "^1.1.0",
"@wordpress/url": "^2.3.1",
"@wordpress/viewport": "^2.0.12",
"@wordpress/wordcount": "^2.0.3",
"classnames": "^2.2.5",
"dom-scroll-into-view": "^1.2.1",
@ -597,19 +597,19 @@
}
},
"@wordpress/format-library": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-1.2.2.tgz",
"integrity": "sha512-AvCfqy+eXk9M+usLKdtPafjgDRGLCrke0Jsh1IDB+oTIC1Ung3iGbwXFr9LrcRzjqQ9C5vA4ofGI5fFpUOP7bA==",
"version": "1.2.4",
"resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-1.2.4.tgz",
"integrity": "sha512-zHkYSu01Qpzc0UNAYTe/X39tzCv3ANPeQpdEGKyPOjhNoUi7qYh26Yheas4gWrx2pOs4tG3DfGDbFMIvgPiwZw==",
"requires": {
"@babel/runtime": "^7.0.0",
"@wordpress/components": "^6.0.2",
"@wordpress/dom": "^2.0.6",
"@wordpress/editor": "^8.0.0",
"@wordpress/components": "^7.0.1",
"@wordpress/dom": "^2.0.7",
"@wordpress/editor": "^9.0.1",
"@wordpress/element": "^2.1.8",
"@wordpress/i18n": "^3.1.0",
"@wordpress/keycodes": "^2.0.3",
"@wordpress/rich-text": "^3.0.0",
"@wordpress/url": "^2.3.0"
"@wordpress/keycodes": "^2.0.5",
"@wordpress/rich-text": "^3.0.2",
"@wordpress/url": "^2.3.1"
}
},
"@wordpress/hooks": {
@ -621,9 +621,9 @@
}
},
"@wordpress/html-entities": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/@wordpress/html-entities/-/html-entities-2.0.2.tgz",
"integrity": "sha512-cxG7YjH9EMfZyeLJAd/Vc1nFJxitMSzybv71iMPP3Dqqgz3jixX6oSe4ukTqfoOKBaF7pY7LzS6eTKu7KAmyZw==",
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/@wordpress/html-entities/-/html-entities-2.0.3.tgz",
"integrity": "sha512-qkZL538U0TyC+sp0u5U9t/SulQjOO3pmmGDmJikSn5IHU/EZwYiyFxF2EDPDHR5PHILgAmdJV8Qefmrb3ml3vg==",
"requires": {
"@babel/runtime": "^7.0.0"
}
@ -657,11 +657,12 @@
}
},
"@wordpress/keycodes": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/@wordpress/keycodes/-/keycodes-2.0.3.tgz",
"integrity": "sha512-cg4IHxz9BjRHBIhs/e0NwO/snImNqMQLZfduPf6Y+GGlq28BbQuxnucDj0ktYw/4X9jxf6IHzWUq9bkX65QGiA==",
"version": "2.0.5",
"resolved": "https://registry.npmjs.org/@wordpress/keycodes/-/keycodes-2.0.5.tgz",
"integrity": "sha512-uEnLRbEe+6FkXKTdQordwR9fBExIngnsa6FmAJ2ODzEI872g271jM5W61m33WzsBHfbFHQKqUi+ZaFAzu7XUcg==",
"requires": {
"@babel/runtime": "^7.0.0",
"@wordpress/i18n": "^3.1.0",
"lodash": "^4.17.10"
}
},
@ -677,13 +678,13 @@
}
},
"@wordpress/list-reusable-blocks": {
"version": "1.1.12",
"resolved": "https://registry.npmjs.org/@wordpress/list-reusable-blocks/-/list-reusable-blocks-1.1.12.tgz",
"integrity": "sha512-12z10twim7R6nxgEfNOZ4MkfobyeORKzTaz3IF5aN0Fz7gq83Y+ppJehMfrZEZ2KvlBp7FEqv3E81h/XKtTGNA==",
"version": "1.1.14",
"resolved": "https://registry.npmjs.org/@wordpress/list-reusable-blocks/-/list-reusable-blocks-1.1.14.tgz",
"integrity": "sha512-dRoxJHTClp6tQ5w4RjrLaJTdTkI0tU9do4gz3MNcTi6C/UAE/s/kc5pr6bEmm2hNHsLLhRQPExrNPwh98S7KaA==",
"requires": {
"@babel/runtime": "^7.0.0",
"@wordpress/api-fetch": "^2.2.4",
"@wordpress/components": "^6.0.2",
"@wordpress/api-fetch": "^2.2.5",
"@wordpress/components": "^7.0.1",
"@wordpress/compose": "^3.0.0",
"@wordpress/element": "^2.1.8",
"@wordpress/i18n": "^3.1.0",
@ -691,25 +692,25 @@
}
},
"@wordpress/notices": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/@wordpress/notices/-/notices-1.0.5.tgz",
"integrity": "sha512-Cg7WIM3Sk2FiNEWGd2lp+dAn8pPWBjNFrh+Q5ouokEDVy4VTIy0NZYwTm/+VNmmJsHZyfKhp29LU8YrW6VsNuw==",
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/@wordpress/notices/-/notices-1.1.0.tgz",
"integrity": "sha512-dVbHKUq1xo4ecGy1j/cxbnRY1L/by+O4Xu+QBdrX5MPCOEU0TLak8k9PUS+nm13zFAJg4kzZip301Udb/OgoZg==",
"requires": {
"@babel/runtime": "^7.0.0",
"@wordpress/a11y": "^2.0.2",
"@wordpress/data": "^4.0.0",
"@wordpress/data": "^4.0.1",
"lodash": "^4.17.10"
}
},
"@wordpress/nux": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/@wordpress/nux/-/nux-3.0.0.tgz",
"integrity": "sha512-O2Xn6arvgja4ciNhmE2Vgv5FtrtTXLqc4kU0LCm9okbILyvoEO53mIsU1sDjMklbzdoOimtAXJVIuow7BLLlvA==",
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/@wordpress/nux/-/nux-3.0.2.tgz",
"integrity": "sha512-La82tFww/UzWjywaFODvZ8YODvDK4GeX8ckkaP1zFk0UelkS8gRZdaWDfkEsBzbKHyhZj3JJGT1WrM1/JJYKFw==",
"requires": {
"@babel/runtime": "^7.0.0",
"@wordpress/components": "^6.0.2",
"@wordpress/components": "^7.0.1",
"@wordpress/compose": "^3.0.0",
"@wordpress/data": "^4.0.0",
"@wordpress/data": "^4.0.1",
"@wordpress/element": "^2.1.8",
"@wordpress/i18n": "^3.1.0",
"lodash": "^4.17.10",
@ -739,12 +740,13 @@
}
},
"@wordpress/rich-text": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/@wordpress/rich-text/-/rich-text-3.0.0.tgz",
"integrity": "sha512-T+FMlYbItXoMWCVRaQ7lp9fRG7P1gvekze86aK1O+/w2nlTL4Jee4zCCq6BGUtbzOInTQWz0j1R1BHNBxnXi/Q==",
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/@wordpress/rich-text/-/rich-text-3.0.2.tgz",
"integrity": "sha512-qLhQz142vpEr/j69SLir3Sz8CYMoosyP8xjGAyH22S/gH8jTydnWtDx//xdkzvikXRbV1niXuPMDyLV2QOlong==",
"requires": {
"@babel/runtime": "^7.0.0",
"@wordpress/data": "^4.0.0",
"@wordpress/compose": "^3.0.0",
"@wordpress/data": "^4.0.1",
"@wordpress/escape-html": "^1.0.1",
"lodash": "^4.17.10",
"rememo": "^3.0.0"
@ -761,31 +763,31 @@
}
},
"@wordpress/token-list": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/@wordpress/token-list/-/token-list-1.0.2.tgz",
"integrity": "sha512-hyk3xsLB1OlS52kFlR9PcSzvD6fkB2uOG4Uchs1pd304M/G3WTdD6iPiRVZeMmpWbwMq9KFtu9f8hwUzQTrTow==",
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/@wordpress/token-list/-/token-list-1.1.0.tgz",
"integrity": "sha512-1InK0ic0syqUEyY3XkiDiZW9rJB/C/KZEzaOZjyzl/mwDR0npMiAouY3fTQ6qZSsMHjszhSl90yXz1I9M/DapA==",
"requires": {
"@babel/runtime": "^7.0.0",
"lodash": "^4.17.10"
}
},
"@wordpress/url": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/@wordpress/url/-/url-2.3.0.tgz",
"integrity": "sha512-Uzl6RZnPZZHM67Z6Rs4lHgGY7dJO6OHjWrcw5/Pnoy/WQGDAg1vl5lfTbRXSNKsubOsbvB9IF8qTwVoPEl/ezA==",
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/@wordpress/url/-/url-2.3.1.tgz",
"integrity": "sha512-Z4tCYMsW3DHOLnBXM7MK2kcuX26Pszpxjst8x5hzWmYa6zJRn8MA8Bd5RF++R1NwpWJZGk4m47rj6Q36zkr86g==",
"requires": {
"@babel/runtime": "^7.0.0",
"qs": "^6.5.2"
}
},
"@wordpress/viewport": {
"version": "2.0.11",
"resolved": "https://registry.npmjs.org/@wordpress/viewport/-/viewport-2.0.11.tgz",
"integrity": "sha512-PG6/RM3YhMl/0ZNclZnGUZtfuO1z4sXkaFyfGtzbSmwqBNl0w+cs7DvJkIO4B5qCTufx+2Svvm+X88Vnjn1zSg==",
"version": "2.0.12",
"resolved": "https://registry.npmjs.org/@wordpress/viewport/-/viewport-2.0.12.tgz",
"integrity": "sha512-W2M+RIbAlfIn7B8nQtR10SD5lLpLNu2bMXk18h5ToS8BhBwEK9dagjSh1i4nJplzNzZUB/JsaVXDRRCFymuT3A==",
"requires": {
"@babel/runtime": "^7.0.0",
"@wordpress/compose": "^3.0.0",
"@wordpress/data": "^4.0.0",
"@wordpress/data": "^4.0.1",
"@wordpress/element": "^2.1.8",
"lodash": "^4.17.10"
}
@ -5815,7 +5817,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",
@ -11320,9 +11322,9 @@
}
},
"re-resizable": {
"version": "4.9.3",
"resolved": "https://registry.npmjs.org/re-resizable/-/re-resizable-4.9.3.tgz",
"integrity": "sha512-JKzmZdUAYWs85YErkmZNB7hjGR9qUOHFUZUtEplZlEZBFHRguiWck5J+HFTy/NjlMJtqQsYPQq57nQAO2BuRRg=="
"version": "4.10.0",
"resolved": "https://registry.npmjs.org/re-resizable/-/re-resizable-4.10.0.tgz",
"integrity": "sha512-g5Q5IswKX7LM+MtYFnuzaQrTEGr/kpserqGV8V6HYkjwbV60XnJv00VlKugLHEwlQ5pgrV08spm0TjyyYVbWmQ=="
},
"react": {
"version": "16.6.3",

View File

@ -51,41 +51,41 @@
"dependencies": {
"@babel/polyfill": "^7.0.0",
"@wordpress/a11y": "^2.0.2",
"@wordpress/annotations": "^1.0.1",
"@wordpress/api-fetch": "^2.2.4",
"@wordpress/annotations": "^1.0.3",
"@wordpress/api-fetch": "^2.2.5",
"@wordpress/autop": "^2.0.2",
"@wordpress/blob": "^2.1.0",
"@wordpress/block-library": "^2.2.4",
"@wordpress/block-library": "^2.2.6",
"@wordpress/block-serialization-default-parser": "^2.0.0",
"@wordpress/blocks": "^6.0.0",
"@wordpress/components": "^6.0.2",
"@wordpress/blocks": "^6.0.2",
"@wordpress/components": "^7.0.1",
"@wordpress/compose": "^3.0.0",
"@wordpress/core-data": "^2.0.13",
"@wordpress/data": "^4.0.0",
"@wordpress/core-data": "^2.0.14",
"@wordpress/data": "^4.0.1",
"@wordpress/date": "^3.0.0",
"@wordpress/deprecated": "^2.0.3",
"@wordpress/dom": "^2.0.6",
"@wordpress/dom": "^2.0.7",
"@wordpress/dom-ready": "^2.0.2",
"@wordpress/edit-post": "^3.0.2",
"@wordpress/editor": "^8.0.0",
"@wordpress/edit-post": "^3.1.1",
"@wordpress/editor": "^9.0.1",
"@wordpress/element": "^2.1.8",
"@wordpress/escape-html": "^1.0.1",
"@wordpress/format-library": "^1.2.2",
"@wordpress/format-library": "^1.2.4",
"@wordpress/hooks": "^2.0.3",
"@wordpress/html-entities": "^2.0.2",
"@wordpress/html-entities": "^2.0.3",
"@wordpress/i18n": "^3.1.0",
"@wordpress/is-shallow-equal": "^1.1.4",
"@wordpress/keycodes": "^2.0.3",
"@wordpress/list-reusable-blocks": "^1.1.12",
"@wordpress/notices": "^1.0.5",
"@wordpress/nux": "^3.0.0",
"@wordpress/keycodes": "^2.0.5",
"@wordpress/list-reusable-blocks": "^1.1.14",
"@wordpress/notices": "^1.1.0",
"@wordpress/nux": "^3.0.2",
"@wordpress/plugins": "^2.0.9",
"@wordpress/redux-routine": "^3.0.3",
"@wordpress/rich-text": "^3.0.0",
"@wordpress/rich-text": "^3.0.2",
"@wordpress/shortcode": "^2.0.2",
"@wordpress/token-list": "^1.0.2",
"@wordpress/url": "^2.3.0",
"@wordpress/viewport": "^2.0.11",
"@wordpress/token-list": "^1.1.0",
"@wordpress/url": "^2.3.1",
"@wordpress/viewport": "^2.0.12",
"@wordpress/wordcount": "^2.0.3",
"element-closest": "^2.0.2",
"formdata-polyfill": "^3.0.12",

View File

@ -177,6 +177,16 @@ $styles = array(
),
),
);
/*
* Set a locale specific default font.
* Translators: Use this to specify the CSS font family for the default font
*/
$locale_font_family = esc_html_x( 'Noto Serif', 'CSS Font Family for Editor Font' );
$styles[] = array(
'css' => "body { font-family: '$locale_font_family' }",
);
if ( $editor_styles && current_theme_supports( 'editor-styles' ) ) {
foreach ( $editor_styles as $style ) {
if ( preg_match( '~^(https?:)?//~', $style ) ) {

View File

@ -32,7 +32,7 @@ function render_block_core_archives( $attributes ) {
$class .= ' wp-block-archives-dropdown';
$dropdown_id = esc_attr( uniqid( 'wp-block-archives-' ) );
$title = __( 'Archives', 'gutenberg' );
$title = __( 'Archives' );
/** This filter is documented in wp-includes/widgets/class-wp-widget-archives.php */
$dropdown_args = apply_filters(
@ -50,19 +50,19 @@ function render_block_core_archives( $attributes ) {
switch ( $dropdown_args['type'] ) {
case 'yearly':
$label = __( 'Select Year', 'gutenberg' );
$label = __( 'Select Year' );
break;
case 'monthly':
$label = __( 'Select Month', 'gutenberg' );
$label = __( 'Select Month' );
break;
case 'daily':
$label = __( 'Select Day', 'gutenberg' );
$label = __( 'Select Day' );
break;
case 'weekly':
$label = __( 'Select Week', 'gutenberg' );
$label = __( 'Select Week' );
break;
default:
$label = __( 'Select Post', 'gutenberg' );
$label = __( 'Select Post' );
break;
}
@ -101,7 +101,7 @@ function render_block_core_archives( $attributes ) {
$block_content = sprintf(
'<div class="%1$s">%2$s</div>',
$classnames,
__( 'No archives to show.', 'gutenberg' )
__( 'No archives to show.' )
);
} else {

View File

@ -27,7 +27,7 @@ function render_block_core_categories( $attributes ) {
if ( ! empty( $attributes['displayAsDropdown'] ) ) {
$id = 'wp-block-categories-' . $block_id;
$args['id'] = $id;
$args['show_option_none'] = __( 'Select Category', 'gutenberg' );
$args['show_option_none'] = __( 'Select Category' );
$wrapper_markup = '<div class="%1$s">%2$s</div>';
$items_markup = wp_dropdown_categories( $args );
$type = 'dropdown';

View File

@ -29,7 +29,7 @@ if ( ! function_exists( 'gutenberg_draft_or_post_title' ) ) {
function gutenberg_draft_or_post_title( $post = 0 ) {
$title = get_the_title( $post );
if ( empty( $title ) ) {
$title = __( '(no title)', 'gutenberg' );
$title = __( '(no title)' );
}
return esc_html( $title );
}
@ -98,7 +98,7 @@ function gutenberg_render_block_core_latest_comments( $attributes = array() ) {
$list_items_markup .= sprintf(
/* translators: 1: author name (inside <a> or <span> tag, based on if they have a URL), 2: post title related to this comment */
__( '%1$s on %2$s', 'gutenberg' ),
__( '%1$s on %2$s' ),
$author_markup,
$post_title
);
@ -119,7 +119,7 @@ function gutenberg_render_block_core_latest_comments( $attributes = array() ) {
}
$class = 'wp-block-latest-comments';
if ( $attributes['align'] ) {
if ( isset( $attributes['align'] ) ) {
$class .= " align{$attributes['align']}";
}
if ( $attributes['displayAvatar'] ) {
@ -143,7 +143,7 @@ function gutenberg_render_block_core_latest_comments( $attributes = array() ) {
) : sprintf(
'<div class="%1$s">%2$s</div>',
$classnames,
__( 'No comments to show.', 'gutenberg' )
__( 'No comments to show.' )
);
return $block_content;

View File

@ -13,16 +13,19 @@
* @return string Returns the post content with latest posts added.
*/
function render_block_core_latest_posts( $attributes ) {
$recent_posts = wp_get_recent_posts(
array(
$args = array(
'numberposts' => $attributes['postsToShow'],
'post_status' => 'publish',
'order' => $attributes['order'],
'orderby' => $attributes['orderBy'],
'category' => $attributes['categories'],
)
);
if ( isset( $attributes['categories'] ) ) {
$args['categories'] = $attributes['categories'];
}
$recent_posts = wp_get_recent_posts( $args );
$list_items_markup = '';
foreach ( $recent_posts as $post ) {
@ -30,7 +33,7 @@ function render_block_core_latest_posts( $attributes ) {
$title = get_the_title( $post_id );
if ( ! $title ) {
$title = __( '(Untitled)', 'gutenberg' );
$title = __( '(Untitled)' );
}
$list_items_markup .= sprintf(
'<li><a href="%1$s">%2$s</a>',

View File

@ -74,6 +74,8 @@ function wp_register_tinymce_scripts( &$scripts, $force_uncompressed = false ) {
* @param WP_Scripts $scripts WP_Scripts object.
*/
function wp_default_packages_vendor( &$scripts ) {
global $wp_locale;
$dev_suffix = wp_scripts_get_suffix( 'dev' );
$vendor_scripts = array(
@ -100,9 +102,8 @@ function wp_default_packages_vendor( &$scripts ) {
}
$scripts->add( 'wp-polyfill', null, array( 'wp-polyfill' ) );
did_action( 'init' ) && $scripts->add_data(
did_action( 'init' ) && $scripts->add_inline_script(
'wp-polyfill',
'data',
wp_get_script_polyfill(
$scripts,
array(
@ -110,11 +111,40 @@ function wp_default_packages_vendor( &$scripts ) {
'document.contains' => 'wp-polyfill-node-contains',
'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata',
'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest',
)
),
'after'
)
);
did_action( 'init' ) && $scripts->add_inline_script( 'lodash', 'window.lodash = _.noConflict();' );
did_action( 'init' ) && $scripts->add_inline_script(
'moment',
sprintf(
"moment.locale( '%s', %s );",
get_user_locale(),
wp_json_encode(
array(
'months' => array_values( $wp_locale->month ),
'monthsShort' => array_values( $wp_locale->month_abbrev ),
'weekdays' => array_values( $wp_locale->weekday ),
'weekdaysShort' => array_values( $wp_locale->weekday_abbrev ),
'week' => array(
'dow' => (int) get_option( 'start_of_week', 0 ),
),
'longDateFormat' => array(
'LT' => get_option( 'time_format', __( 'g:i a', 'default' ) ),
'LTS' => null,
'L' => null,
'LL' => get_option( 'date_format', __( 'F j, Y', 'default' ) ),
'LLL' => __( 'F j, Y g:i a', 'default' ),
'LLLL' => null,
),
)
)
),
'after'
);
}
/**
@ -221,7 +251,6 @@ function wp_default_packages_scripts( &$scripts ) {
'wp-a11y',
'wp-api-fetch',
'wp-compose',
'wp-deprecated',
'wp-dom',
'wp-element',
'wp-hooks',
@ -272,6 +301,7 @@ function wp_default_packages_scripts( &$scripts ) {
'wp-embed',
'wp-i18n',
'wp-keycodes',
'wp-notices',
'wp-nux',
'wp-plugins',
'wp-polyfill',
@ -344,6 +374,7 @@ function wp_default_packages_scripts( &$scripts ) {
),
'nux' => array(
'wp-element',
'lodash',
'wp-components',
'wp-compose',
'wp-data',
@ -355,7 +386,6 @@ function wp_default_packages_scripts( &$scripts ) {
'redux-routine' => array( 'wp-polyfill' ),
'rich-text' => array(
'lodash',
'wp-blocks',
'wp-data',
'wp-escape-html',
'wp-polyfill',
@ -1688,11 +1718,13 @@ function wp_default_styles( &$styles ) {
$fonts_url = '';
/*
* Translators: If there are characters in your language that are not supported
* by Noto Serif, translate this to 'off'. Do not translate into your own language.
* Translators: Use this to specify the proper Google Font name and variants
* to load that is supported by your language. Do not translate.
* Set to 'off' to disable loading.
*/
if ( 'off' !== _x( 'on', 'Noto Serif font: on or off' ) ) {
$fonts_url = 'https://fonts.googleapis.com/css?family=Noto+Serif%3A400%2C400i%2C700%2C700i';
$font_family = _x( 'Noto Serif:400,400i,700,700i', 'Google Font Name and Variants' );
if ( 'off' !== $font_family ) {
$fonts_url = 'https://fonts.googleapis.com/css?family=' . urlencode( $font_family );
}
$styles->add( 'wp-editor-font', $fonts_url );

View File

@ -225,6 +225,7 @@ module.exports = function( env = { environment: 'production', watch: false, forc
'deprecated',
'dom-ready',
'redux-routine',
'token-list',
].map( camelCaseDash ) ),
new CustomTemplatedPathPlugin( {
basename( path, data ) {