WordPress.org

Make WordPress Core

Changeset 44390


Ignore:
Timestamp:
01/04/2019 08:18:09 PM (9 months ago)
Author:
desrosj
Message:

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.

Location:
branches/5.0
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0

  • branches/5.0/package-lock.json

    r44287 r44390  
    11{
    22    "name": "WordPress",
    3     "version": "5.0.2",
     3    "version": "5.0.3",
    44    "lockfileVersion": 1,
    55    "requires": true,
     
    238238        },
    239239        "@wordpress/annotations": {
    240             "version": "1.0.4",
    241             "resolved": "https://registry.npmjs.org/@wordpress/annotations/-/annotations-1.0.4.tgz",
    242             "integrity": "sha512-4Pl6qfy74yg8O2mmepUMkT0l6/VjsTCTpfvwveezqprLklDAGLXfS0gm8ZKbVlwsoevmd2y4+1Uv6ajOpBFY0w==",
     240            "version": "1.0.5",
     241            "resolved": "https://registry.npmjs.org/@wordpress/annotations/-/annotations-1.0.5.tgz",
     242            "integrity": "sha512-u6SErOVRKV/AjwBhYI88n0RiBn/Ogqo5f0nBP+eJ45VGDsqyr9S9uRcF1Ncxj2gV/chDk5LGJ/OSCPGq69Sqmw==",
    243243            "requires": {
    244244                "@babel/runtime": "^7.0.0",
    245                 "@wordpress/data": "^4.1.0",
    246                 "@wordpress/hooks": "^2.0.3",
     245                "@wordpress/data": "^4.2.0",
     246                "@wordpress/hooks": "^2.0.4",
    247247                "@wordpress/i18n": "^3.1.0",
    248                 "@wordpress/rich-text": "^3.0.3",
     248                "@wordpress/rich-text": "^3.0.4",
    249249                "lodash": "^4.17.10",
    250250                "memize": "^1.0.5",
     
    254254        },
    255255        "@wordpress/api-fetch": {
    256             "version": "2.2.6",
    257             "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-2.2.6.tgz",
    258             "integrity": "sha512-cZfJrkfv4+w8rWEMzuh6Q5QoaT1MxD+K3MuT+PHP/SZiSS0AuP733LsWlYJDo28EatNUHU2XPR3IpeKzbiHlvQ==",
     256            "version": "2.2.7",
     257            "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-2.2.7.tgz",
     258            "integrity": "sha512-7Bl4hfLLw5rWeQ7LIa3U/rananC2Tk6uZ55acetC+hag9gJpDpddbXOlW3Li8Zk1cJvvcpgfElVPwPFnS0e/qg==",
    259259            "requires": {
    260260                "@babel/runtime": "^7.0.0",
    261                 "@wordpress/hooks": "^2.0.3",
     261                "@wordpress/hooks": "^2.0.4",
    262262                "@wordpress/i18n": "^3.1.0",
    263                 "@wordpress/url": "^2.3.2"
     263                "@wordpress/url": "^2.3.3"
    264264            }
    265265        },
     
    281281        },
    282282        "@wordpress/block-library": {
    283             "version": "2.2.11",
    284             "resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-2.2.11.tgz",
    285             "integrity": "sha512-ygc/MSW2i9w8e3CONFgRMs8dvKqInFO9BitUA0WQEGxovLawvu/gqAdJn8LoqMTnxgkx9VHMgg6M7v2xekz06A==",
     283            "version": "2.2.12",
     284            "resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-2.2.12.tgz",
     285            "integrity": "sha512-PFFWhTny1lN5TC7fDs5aH3hW5RgwEtbysoXk5zX9f6OS4N6Ye9CMFXC2tT+ZciG/bdE3TcNx+/Hadmnt10uE+w==",
    286286            "requires": {
    287287                "@babel/runtime": "^7.0.0",
    288288                "@wordpress/autop": "^2.0.2",
    289289                "@wordpress/blob": "^2.1.0",
    290                 "@wordpress/blocks": "^6.0.4",
    291                 "@wordpress/components": "^7.0.4",
     290                "@wordpress/blocks": "^6.0.5",
     291                "@wordpress/components": "^7.0.5",
    292292                "@wordpress/compose": "^3.0.0",
    293                 "@wordpress/core-data": "^2.0.15",
    294                 "@wordpress/data": "^4.1.0",
    295                 "@wordpress/deprecated": "^2.0.3",
    296                 "@wordpress/editor": "^9.0.6",
     293                "@wordpress/core-data": "^2.0.16",
     294                "@wordpress/data": "^4.2.0",
     295                "@wordpress/deprecated": "^2.0.4",
     296                "@wordpress/editor": "^9.0.7",
    297297                "@wordpress/element": "^2.1.8",
    298298                "@wordpress/html-entities": "^2.0.4",
    299299                "@wordpress/i18n": "^3.1.0",
    300300                "@wordpress/keycodes": "^2.0.5",
    301                 "@wordpress/viewport": "^2.0.13",
     301                "@wordpress/viewport": "^2.1.0",
    302302                "classnames": "^2.2.5",
    303303                "lodash": "^4.17.10",
     
    307307        },
    308308        "@wordpress/block-serialization-default-parser": {
    309             "version": "2.0.2",
    310             "resolved": "https://registry.npmjs.org/@wordpress/block-serialization-default-parser/-/block-serialization-default-parser-2.0.2.tgz",
    311             "integrity": "sha512-gk6RT2U0Fc6U+P0iT1Cu03qHbBLOj31w2W/8JvQuH9DzD3x1YaXDWRA5wl9QRqqFSM6gbH7zKy1v3UC35fuNiA==",
     309            "version": "2.0.3",
     310            "resolved": "https://registry.npmjs.org/@wordpress/block-serialization-default-parser/-/block-serialization-default-parser-2.0.3.tgz",
     311            "integrity": "sha512-VUP3QmTlCFc8Ay5ZrXdEibQeTLIk1XRX2UAZfFiXfw1IQzeVS6q64eZbG8rh0Gpj5iQrzB/qTo01sQ+dC4gBQQ==",
    312312            "requires": {
    313313                "@babel/runtime": "^7.0.0"
     
    320320        },
    321321        "@wordpress/blocks": {
    322             "version": "6.0.4",
    323             "resolved": "https://registry.npmjs.org/@wordpress/blocks/-/blocks-6.0.4.tgz",
    324             "integrity": "sha512-jGPXt4biR4EVVoWUDtYge4cBi2dEktCUrUsh2ulLkbIxSlenTwLjKEpPb7rkFM65vSXU7urTltXQQ8M8Xaih2g==",
     322            "version": "6.0.5",
     323            "resolved": "https://registry.npmjs.org/@wordpress/blocks/-/blocks-6.0.5.tgz",
     324            "integrity": "sha512-ucludD4lvHuq/wn1SSjvfNlXv91GusniV1XhN8BuZZEadHdBEiMmD0MQiZoZL7YhWwHa94gWuKi+6yru3M6V3A==",
    325325            "requires": {
    326326                "@babel/runtime": "^7.0.0",
    327327                "@wordpress/autop": "^2.0.2",
    328328                "@wordpress/blob": "^2.1.0",
    329                 "@wordpress/block-serialization-default-parser": "^2.0.2",
     329                "@wordpress/block-serialization-default-parser": "^2.0.3",
    330330                "@wordpress/block-serialization-spec-parser": "^2.0.2",
    331                 "@wordpress/data": "^4.1.0",
    332                 "@wordpress/dom": "^2.0.7",
     331                "@wordpress/data": "^4.2.0",
     332                "@wordpress/dom": "^2.0.8",
    333333                "@wordpress/element": "^2.1.8",
    334                 "@wordpress/hooks": "^2.0.3",
     334                "@wordpress/hooks": "^2.0.4",
    335335                "@wordpress/html-entities": "^2.0.4",
    336336                "@wordpress/i18n": "^3.1.0",
     
    347347        },
    348348        "@wordpress/components": {
    349             "version": "7.0.4",
    350             "resolved": "https://registry.npmjs.org/@wordpress/components/-/components-7.0.4.tgz",
    351             "integrity": "sha512-SVezuw6CPJ3+81CXXArfDx2rI6hlxEWqEiPSyOgku2guKTqYnWfAU4yW9c6m4IxtKcQCphQ64AmeJ6CYIh91jw==",
     349            "version": "7.0.5",
     350            "resolved": "https://registry.npmjs.org/@wordpress/components/-/components-7.0.5.tgz",
     351            "integrity": "sha512-Csu2z4r8g3PwwLWWRMDeA//vQhHh05J9hyogE15dMS/6jrSKyl8lonGWvbnO2PSrMzKIHPeoXYzutUeNBjY1pg==",
    352352            "requires": {
    353353                "@babel/runtime": "^7.0.0",
    354354                "@wordpress/a11y": "^2.0.2",
    355                 "@wordpress/api-fetch": "^2.2.6",
     355                "@wordpress/api-fetch": "^2.2.7",
    356356                "@wordpress/compose": "^3.0.0",
    357                 "@wordpress/dom": "^2.0.7",
     357                "@wordpress/dom": "^2.0.8",
    358358                "@wordpress/element": "^2.1.8",
    359                 "@wordpress/hooks": "^2.0.3",
     359                "@wordpress/hooks": "^2.0.4",
    360360                "@wordpress/i18n": "^3.1.0",
    361361                "@wordpress/is-shallow-equal": "^1.1.4",
    362362                "@wordpress/keycodes": "^2.0.5",
    363                 "@wordpress/rich-text": "^3.0.3",
    364                 "@wordpress/url": "^2.3.2",
     363                "@wordpress/rich-text": "^3.0.4",
     364                "@wordpress/url": "^2.3.3",
    365365                "classnames": "^2.2.5",
    366366                "clipboard": "^2.0.1",
     
    391391        },
    392392        "@wordpress/core-data": {
    393             "version": "2.0.15",
    394             "resolved": "https://registry.npmjs.org/@wordpress/core-data/-/core-data-2.0.15.tgz",
    395             "integrity": "sha512-MHln34TnAGGrFkAJ9dbDq6Iu1avQ2PuJwnpLMQeW9oUPgDhxTEHjPoObv/fM4x+r1zCHGXPIyOjySonuXas/oA==",
     393            "version": "2.0.16",
     394            "resolved": "https://registry.npmjs.org/@wordpress/core-data/-/core-data-2.0.16.tgz",
     395            "integrity": "sha512-JU1p/geISRi1Mv5l8KdAfZbfYqQueacr2m0XND5V5/SKQ5xOc2+vbv/Rp0ZWrlKyGbAucCO5tK2ubW43M3dVug==",
    396396            "requires": {
    397397                "@babel/runtime": "^7.0.0",
    398                 "@wordpress/api-fetch": "^2.2.6",
    399                 "@wordpress/data": "^4.1.0",
    400                 "@wordpress/url": "^2.3.2",
     398                "@wordpress/api-fetch": "^2.2.7",
     399                "@wordpress/data": "^4.2.0",
     400                "@wordpress/url": "^2.3.3",
    401401                "equivalent-key-map": "^0.2.2",
    402402                "lodash": "^4.17.10",
     
    415415        },
    416416        "@wordpress/data": {
    417             "version": "4.1.0",
    418             "resolved": "https://registry.npmjs.org/@wordpress/data/-/data-4.1.0.tgz",
    419             "integrity": "sha512-PVd1LVGV9cf6GpRmIvoP+Y56ir1VB0kwSnsJkj69IMFUKBZW4uKB8BOthnPJ7aQi7B57x/ghfgWy9A0FaV1/eg==",
     417            "version": "4.2.0",
     418            "resolved": "https://registry.npmjs.org/@wordpress/data/-/data-4.2.0.tgz",
     419            "integrity": "sha512-9cdm5xBWgLJJ45nQCbUQFF26vGoG2PzEJrinNXLr45XNAr3XSzN/JsrmNCaHwI/NzyFIwFmFjv6ONQKxxkErrg==",
    420420            "requires": {
    421421                "@babel/runtime": "^7.0.0",
     
    442442        },
    443443        "@wordpress/deprecated": {
    444             "version": "2.0.3",
    445             "resolved": "https://registry.npmjs.org/@wordpress/deprecated/-/deprecated-2.0.3.tgz",
    446             "integrity": "sha512-5v8h6BJ9xQFTho7ucitshpIahD+rVnAhgc/4juYmPLb9/GJzwY1J91Ve5mcjcjgWhdtjBKO0TCq/S4PCfS812w==",
     444            "version": "2.0.4",
     445            "resolved": "https://registry.npmjs.org/@wordpress/deprecated/-/deprecated-2.0.4.tgz",
     446            "integrity": "sha512-KvvQ6+aWWLSznpfhpMn/FZNZIA3sjtax0PY0TTmbm74eFnlV3eZHL/kX6Mp9KJYkrzDDRk5kg7UgW6QJLHFXhg==",
    447447            "requires": {
    448448                "@babel/runtime": "^7.0.0",
    449                 "@wordpress/hooks": "^2.0.3"
     449                "@wordpress/hooks": "^2.0.4"
    450450            }
    451451        },
    452452        "@wordpress/dom": {
    453             "version": "2.0.7",
    454             "resolved": "https://registry.npmjs.org/@wordpress/dom/-/dom-2.0.7.tgz",
    455             "integrity": "sha512-vjOdGSpW3WdHH5oOoamfzdoyF4BbUJOWNNT7bBb2y15GII8rN1cGyGxqVDiiajMDe51p3lyWWCpUeY4ppxj/UA==",
     453            "version": "2.0.8",
     454            "resolved": "https://registry.npmjs.org/@wordpress/dom/-/dom-2.0.8.tgz",
     455            "integrity": "sha512-Nz1k1tB/NXcfpAWUL+mTtEzxC6Dp6UAavIzJVQgAq8gsdayh7F9lgkyyL5MWLirAKkGuhztwMrSle9s5HzrTlw==",
    456456            "requires": {
    457457                "@babel/runtime": "^7.0.0",
     
    468468        },
    469469        "@wordpress/edit-post": {
    470             "version": "3.1.6",
    471             "resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-3.1.6.tgz",
    472             "integrity": "sha512-l3C60fEdO4UfZc46KdmIGQ2cIAtd7JgLtWMEsHEj/y4WpWg5gIC9pDRwsL0WNbZGlwt0SNJOTZRnGwBJaacp+Q==",
     470            "version": "3.1.7",
     471            "resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-3.1.7.tgz",
     472            "integrity": "sha512-720hfAP03KSPigxuJR/kDBd9xLhddiFL1JQHQvyOFz4DAaBROUnhuaYHS6KOuqJMJgpbjw3Ey0nzEV7KHGaYhg==",
    473473            "requires": {
    474474                "@babel/runtime": "^7.0.0",
    475475                "@wordpress/a11y": "^2.0.2",
    476                 "@wordpress/api-fetch": "^2.2.6",
    477                 "@wordpress/block-library": "^2.2.11",
    478                 "@wordpress/blocks": "^6.0.4",
    479                 "@wordpress/components": "^7.0.4",
     476                "@wordpress/api-fetch": "^2.2.7",
     477                "@wordpress/block-library": "^2.2.12",
     478                "@wordpress/blocks": "^6.0.5",
     479                "@wordpress/components": "^7.0.5",
    480480                "@wordpress/compose": "^3.0.0",
    481                 "@wordpress/core-data": "^2.0.15",
    482                 "@wordpress/data": "^4.1.0",
    483                 "@wordpress/editor": "^9.0.6",
     481                "@wordpress/core-data": "^2.0.16",
     482                "@wordpress/data": "^4.2.0",
     483                "@wordpress/editor": "^9.0.7",
    484484                "@wordpress/element": "^2.1.8",
    485                 "@wordpress/format-library": "^1.2.9",
    486                 "@wordpress/hooks": "^2.0.3",
     485                "@wordpress/format-library": "^1.2.10",
     486                "@wordpress/hooks": "^2.0.4",
    487487                "@wordpress/i18n": "^3.1.0",
    488488                "@wordpress/keycodes": "^2.0.5",
    489                 "@wordpress/nux": "^3.0.5",
    490                 "@wordpress/plugins": "^2.0.9",
    491                 "@wordpress/url": "^2.3.2",
    492                 "@wordpress/viewport": "^2.0.13",
     489                "@wordpress/nux": "^3.0.6",
     490                "@wordpress/plugins": "^2.0.10",
     491                "@wordpress/url": "^2.3.3",
     492                "@wordpress/viewport": "^2.1.0",
    493493                "classnames": "^2.2.5",
    494494                "lodash": "^4.17.10",
     
    497497        },
    498498        "@wordpress/editor": {
    499             "version": "9.0.6",
    500             "resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-9.0.6.tgz",
    501             "integrity": "sha512-DhGA+LU1p5GU4uKFNqSWKGjYJX5qjTL1Lrh4MF6UmsVCTwnCTKuC87ERAQSV3LGz9jwHvyVqVp2kK4JnqlO+SA==",
     499            "version": "9.0.7",
     500            "resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-9.0.7.tgz",
     501            "integrity": "sha512-6WlkzTrW2x3GXysWjjerU12l5xdGJtuKIOtWsB8UnooIU+lOP0PuNxrbKSBKDwlSJPeb0t2hbqF6xuuHgx6uhA==",
    502502            "requires": {
    503503                "@babel/runtime": "^7.0.0",
    504504                "@wordpress/a11y": "^2.0.2",
    505                 "@wordpress/api-fetch": "^2.2.6",
     505                "@wordpress/api-fetch": "^2.2.7",
    506506                "@wordpress/blob": "^2.1.0",
    507                 "@wordpress/blocks": "^6.0.4",
    508                 "@wordpress/components": "^7.0.4",
     507                "@wordpress/blocks": "^6.0.5",
     508                "@wordpress/components": "^7.0.5",
    509509                "@wordpress/compose": "^3.0.0",
    510                 "@wordpress/core-data": "^2.0.15",
    511                 "@wordpress/data": "^4.1.0",
     510                "@wordpress/core-data": "^2.0.16",
     511                "@wordpress/data": "^4.2.0",
    512512                "@wordpress/date": "^3.0.1",
    513                 "@wordpress/deprecated": "^2.0.3",
    514                 "@wordpress/dom": "^2.0.7",
     513                "@wordpress/deprecated": "^2.0.4",
     514                "@wordpress/dom": "^2.0.8",
    515515                "@wordpress/element": "^2.1.8",
    516                 "@wordpress/hooks": "^2.0.3",
     516                "@wordpress/hooks": "^2.0.4",
    517517                "@wordpress/html-entities": "^2.0.4",
    518518                "@wordpress/i18n": "^3.1.0",
    519519                "@wordpress/is-shallow-equal": "^1.1.4",
    520520                "@wordpress/keycodes": "^2.0.5",
    521                 "@wordpress/notices": "^1.1.1",
    522                 "@wordpress/nux": "^3.0.5",
     521                "@wordpress/notices": "^1.1.2",
     522                "@wordpress/nux": "^3.0.6",
    523523                "@wordpress/token-list": "^1.1.0",
    524                 "@wordpress/url": "^2.3.2",
    525                 "@wordpress/viewport": "^2.0.13",
     524                "@wordpress/url": "^2.3.3",
     525                "@wordpress/viewport": "^2.1.0",
    526526                "@wordpress/wordcount": "^2.0.3",
    527527                "classnames": "^2.2.5",
     
    595595        },
    596596        "@wordpress/format-library": {
    597             "version": "1.2.9",
    598             "resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-1.2.9.tgz",
    599             "integrity": "sha512-7MRP29L96XVnyyQfnQESSL2HeW2+Iy7+AsQREJsXvXlNj/Z9v72iujR8uOAcgBaSebsyrSDmyQn8ipZ3siIcsg==",
     597            "version": "1.2.10",
     598            "resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-1.2.10.tgz",
     599            "integrity": "sha512-ksYU4GG1Pc+lNuz+V00yH0j8mgaBFVCzCemqVZqDbNqDrC8cdwWExv9cccn0miBGwNwLgcn6fj1IAjy91rtzeA==",
    600600            "requires": {
    601601                "@babel/runtime": "^7.0.0",
    602                 "@wordpress/components": "^7.0.4",
    603                 "@wordpress/dom": "^2.0.7",
    604                 "@wordpress/editor": "^9.0.6",
     602                "@wordpress/components": "^7.0.5",
     603                "@wordpress/dom": "^2.0.8",
     604                "@wordpress/editor": "^9.0.7",
    605605                "@wordpress/element": "^2.1.8",
    606606                "@wordpress/i18n": "^3.1.0",
    607607                "@wordpress/keycodes": "^2.0.5",
    608                 "@wordpress/rich-text": "^3.0.3",
    609                 "@wordpress/url": "^2.3.2"
     608                "@wordpress/rich-text": "^3.0.4",
     609                "@wordpress/url": "^2.3.3"
    610610            }
    611611        },
    612612        "@wordpress/hooks": {
    613             "version": "2.0.3",
    614             "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-2.0.3.tgz",
    615             "integrity": "sha512-dMXM8VX1MfMN+vrstOdpCXioo4evtvjTESVnSc+AjKVOAWOCbuT/ci3aDLy8DreyDrWYgUR35Gfh7Y8JJix7vA==",
     613            "version": "2.0.4",
     614            "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-2.0.4.tgz",
     615            "integrity": "sha512-9Z+zymxRI1vNVPnAhGOYjp05Do/rNWdj/0lrx0oC8vluQFyaU9OWS7+il1eL8kfr+27nzcBnoU0e2WfvoXVhyg==",
    616616            "requires": {
    617617                "@babel/runtime": "^7.0.0"
     
    676676        },
    677677        "@wordpress/list-reusable-blocks": {
    678             "version": "1.1.17",
    679             "resolved": "https://registry.npmjs.org/@wordpress/list-reusable-blocks/-/list-reusable-blocks-1.1.17.tgz",
    680             "integrity": "sha512-5xfjpEVQQN4RW3f1EiVZg9Cko7EcCrl9lDkkGkH7nkDg/BsmI65H8eVTo5eo91nQdxnnE+R/1Hu2ojqiIxNiFg==",
     678            "version": "1.1.18",
     679            "resolved": "https://registry.npmjs.org/@wordpress/list-reusable-blocks/-/list-reusable-blocks-1.1.18.tgz",
     680            "integrity": "sha512-ujeO6mffuWYSBrjBU/Klr8cqcrNTDMebDZI1BVWNPTa8qoM+qAqySf/++5okdXN4xaQkt7Y+2vzOcn7AsNPOiA==",
    681681            "requires": {
    682682                "@babel/runtime": "^7.0.0",
    683                 "@wordpress/api-fetch": "^2.2.6",
    684                 "@wordpress/components": "^7.0.4",
     683                "@wordpress/api-fetch": "^2.2.7",
     684                "@wordpress/components": "^7.0.5",
    685685                "@wordpress/compose": "^3.0.0",
    686686                "@wordpress/element": "^2.1.8",
     
    690690        },
    691691        "@wordpress/notices": {
    692             "version": "1.1.1",
    693             "resolved": "https://registry.npmjs.org/@wordpress/notices/-/notices-1.1.1.tgz",
    694             "integrity": "sha512-iFbO0GUx+TlmgPGyjTOKErc7w6YQa/jbMMrqCOjrueShBSdgvCplfuHuaU/SCzFbvN6HiZM4XZsfSQYJX+nIAA==",
     692            "version": "1.1.2",
     693            "resolved": "https://registry.npmjs.org/@wordpress/notices/-/notices-1.1.2.tgz",
     694            "integrity": "sha512-X4mYC1ANmKZK9m6TJirj1yZkbLEt7e+M/42+UO4EV4AdlusaUipp0IE1Mwn5rDX3B1EsCbqR/jnrvak6SRMebg==",
    695695            "requires": {
    696696                "@babel/runtime": "^7.0.0",
    697697                "@wordpress/a11y": "^2.0.2",
    698                 "@wordpress/data": "^4.1.0",
     698                "@wordpress/data": "^4.2.0",
    699699                "lodash": "^4.17.10"
    700700            }
    701701        },
    702702        "@wordpress/nux": {
    703             "version": "3.0.5",
    704             "resolved": "https://registry.npmjs.org/@wordpress/nux/-/nux-3.0.5.tgz",
    705             "integrity": "sha512-E3HewiMzFEHPZBopHvU9O0tOe13JQj6zkb7poifO1xqLNv+BT3ZAFXAD+d6o9JhlA0yWhyxI1UqMVrBMp/Jq6Q==",
     703            "version": "3.0.6",
     704            "resolved": "https://registry.npmjs.org/@wordpress/nux/-/nux-3.0.6.tgz",
     705            "integrity": "sha512-HwEus1ErZmYDmFU2iD61/P+Tmq02S83ZK0p52Ih3Guz4QXjPpNrc0WG0yupmGxPYzBGVyG9aLTmenkC0mQ+ihA==",
    706706            "requires": {
    707707                "@babel/runtime": "^7.0.0",
    708                 "@wordpress/components": "^7.0.4",
     708                "@wordpress/components": "^7.0.5",
    709709                "@wordpress/compose": "^3.0.0",
    710                 "@wordpress/data": "^4.1.0",
     710                "@wordpress/data": "^4.2.0",
    711711                "@wordpress/element": "^2.1.8",
    712712                "@wordpress/i18n": "^3.1.0",
     
    716716        },
    717717        "@wordpress/plugins": {
    718             "version": "2.0.9",
    719             "resolved": "https://registry.npmjs.org/@wordpress/plugins/-/plugins-2.0.9.tgz",
    720             "integrity": "sha512-9P+XWDaGlvdckvIPbQHPRUC0O3AqDrPngA0CxjhsYuKOd77uQfGlzMdeXNebDmky/u6aV6z7R/Phf6HQEs0aDA==",
     718            "version": "2.0.10",
     719            "resolved": "https://registry.npmjs.org/@wordpress/plugins/-/plugins-2.0.10.tgz",
     720            "integrity": "sha512-bg2Xo9PSz0zBM4z2hh7aTRxitRIbr4ue27vIjpOfAXEn33L0UAzpefIhHVhrRGcFjAFBxiLicktoxcTXhNuz+w==",
    721721            "requires": {
    722722                "@babel/runtime": "^7.0.0",
    723723                "@wordpress/compose": "^3.0.0",
    724724                "@wordpress/element": "^2.1.8",
    725                 "@wordpress/hooks": "^2.0.3",
     725                "@wordpress/hooks": "^2.0.4",
    726726                "lodash": "^4.17.10"
    727727            }
     
    738738        },
    739739        "@wordpress/rich-text": {
    740             "version": "3.0.3",
    741             "resolved": "https://registry.npmjs.org/@wordpress/rich-text/-/rich-text-3.0.3.tgz",
    742             "integrity": "sha512-w/03H2CyhOPAV7fGHyz1Dph59PM0f3orw9PLZYUpFOBELczoVgKwAyl5aEf6fK+KNGXO/XA4YsJ3mIVCvVdhmQ==",
     740            "version": "3.0.4",
     741            "resolved": "https://registry.npmjs.org/@wordpress/rich-text/-/rich-text-3.0.4.tgz",
     742            "integrity": "sha512-dv14T0wk0YPZtDNdoJKuduf3McCdQpcUHczhMoYg3WssBkyOPY3Vak8RH6t/uEnEwZhgJIolkcwrTedIFXiC4Q==",
    743743            "requires": {
    744744                "@babel/runtime": "^7.0.0",
    745745                "@wordpress/compose": "^3.0.0",
    746                 "@wordpress/data": "^4.1.0",
     746                "@wordpress/data": "^4.2.0",
    747747                "@wordpress/escape-html": "^1.0.1",
    748748                "lodash": "^4.17.10",
     
    770770        },
    771771        "@wordpress/url": {
    772             "version": "2.3.2",
    773             "resolved": "https://registry.npmjs.org/@wordpress/url/-/url-2.3.2.tgz",
    774             "integrity": "sha512-XI/LBkUNNzP2cckEjkh47I3nw4dis64Hy4i2qStYuGdk/JQnW0BOn2El4sB/8mzeqcYyIF4nna7iMe67t5BI7g==",
     772            "version": "2.3.3",
     773            "resolved": "https://registry.npmjs.org/@wordpress/url/-/url-2.3.3.tgz",
     774            "integrity": "sha512-WGqQjOyu02E7bJ77G8385GGjUYpvF8vDqZXXHW06/WRSb4nW6fmMIM65UWdBaYY5XecAkpglCqwd8DNbquLucQ==",
    775775            "requires": {
    776776                "@babel/runtime": "^7.0.0",
     
    779779        },
    780780        "@wordpress/viewport": {
    781             "version": "2.0.13",
    782             "resolved": "https://registry.npmjs.org/@wordpress/viewport/-/viewport-2.0.13.tgz",
    783             "integrity": "sha512-WqJbezqauYe8gT3AIAUt0Lcp/LoAW/NJ7/M64ZlYYhajDoXpDddc3qQF3nrIHp68WD+lGDd2LuoCuNvGJwiJNw==",
     781            "version": "2.1.0",
     782            "resolved": "https://registry.npmjs.org/@wordpress/viewport/-/viewport-2.1.0.tgz",
     783            "integrity": "sha512-CPa/ifeDCTY6mqF/1maS35kB3N2HT7nhBwEnzbWWVMVVr3joulQuPunzSoPO8TzBhyctdnaY9ltNoN+fo+u31w==",
    784784            "requires": {
    785785                "@babel/runtime": "^7.0.0",
    786786                "@wordpress/compose": "^3.0.0",
    787                 "@wordpress/data": "^4.1.0",
     787                "@wordpress/data": "^4.2.0",
    788788                "@wordpress/element": "^2.1.8",
    789789                "lodash": "^4.17.10"
     
    24502450        "browserify-rsa": {
    24512451            "version": "4.0.1",
    2452             "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.0.1.tgz",
     2452            "resolved": "http://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.0.1.tgz",
    24532453            "integrity": "sha1-IeCr+vbyApzy+vsTNWenAdQTVSQ=",
    24542454            "dev": true,
     
    27472747        "chalk": {
    27482748            "version": "1.1.3",
    2749             "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
     2749            "resolved": "http://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
    27502750            "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
    27512751            "requires": {
     
    45424542        "events": {
    45434543            "version": "1.1.1",
    4544             "resolved": "https://registry.npmjs.org/events/-/events-1.1.1.tgz",
     4544            "resolved": "http://registry.npmjs.org/events/-/events-1.1.1.tgz",
    45454545            "integrity": "sha1-nr23Y1rQmccNzEwqH1AEKI6L2SQ=",
    45464546            "dev": true
     
    48364836                "core-js": {
    48374837                    "version": "1.2.7",
    4838                     "resolved": "http://registry.npmjs.org/core-js/-/core-js-1.2.7.tgz",
     4838                    "resolved": "https://registry.npmjs.org/core-js/-/core-js-1.2.7.tgz",
    48394839                    "integrity": "sha1-ZSKUwUZR2yj6k70tX/KYOk8IxjY="
    48404840                }
     
    51905190                    "version": "1.0.0",
    51915191                    "bundled": true,
    5192                     "dev": true
     5192                    "dev": true,
     5193                    "optional": true
    51935194                },
    51945195                "brace-expansion": {
     
    51965197                    "bundled": true,
    51975198                    "dev": true,
     5199                    "optional": true,
    51985200                    "requires": {
    51995201                        "balanced-match": "^1.0.0",
     
    52105212                    "version": "1.1.0",
    52115213                    "bundled": true,
    5212                     "dev": true
     5214                    "dev": true,
     5215                    "optional": true
    52135216                },
    52145217                "concat-map": {
    52155218                    "version": "0.0.1",
    52165219                    "bundled": true,
    5217                     "dev": true
     5220                    "dev": true,
     5221                    "optional": true
    52185222                },
    52195223                "console-control-strings": {
    52205224                    "version": "1.1.0",
    52215225                    "bundled": true,
    5222                     "dev": true
     5226                    "dev": true,
     5227                    "optional": true
    52235228                },
    52245229                "core-util-is": {
     
    53375342                    "version": "2.0.3",
    53385343                    "bundled": true,
    5339                     "dev": true
     5344                    "dev": true,
     5345                    "optional": true
    53405346                },
    53415347                "ini": {
     
    53495355                    "bundled": true,
    53505356                    "dev": true,
     5357                    "optional": true,
    53515358                    "requires": {
    53525359                        "number-is-nan": "^1.0.0"
     
    53635370                    "bundled": true,
    53645371                    "dev": true,
     5372                    "optional": true,
    53655373                    "requires": {
    53665374                        "brace-expansion": "^1.1.7"
     
    53705378                    "version": "0.0.8",
    53715379                    "bundled": true,
    5372                     "dev": true
     5380                    "dev": true,
     5381                    "optional": true
    53735382                },
    53745383                "minipass": {
     
    53765385                    "bundled": true,
    53775386                    "dev": true,
     5387                    "optional": true,
    53785388                    "requires": {
    53795389                        "safe-buffer": "^5.1.1",
     
    53945404                    "bundled": true,
    53955405                    "dev": true,
     5406                    "optional": true,
    53965407                    "requires": {
    53975408                        "minimist": "0.0.8"
     
    54745485                    "version": "1.0.1",
    54755486                    "bundled": true,
    5476                     "dev": true
     5487                    "dev": true,
     5488                    "optional": true
    54775489                },
    54785490                "object-assign": {
     
    54865498                    "bundled": true,
    54875499                    "dev": true,
     5500                    "optional": true,
    54885501                    "requires": {
    54895502                        "wrappy": "1"
     
    56075620                    "bundled": true,
    56085621                    "dev": true,
     5622                    "optional": true,
    56095623                    "requires": {
    56105624                        "code-point-at": "^1.0.0",
     
    58155829        "gettext-parser": {
    58165830            "version": "1.4.0",
    5817             "resolved": "http://registry.npmjs.org/gettext-parser/-/gettext-parser-1.4.0.tgz",
     5831            "resolved": "https://registry.npmjs.org/gettext-parser/-/gettext-parser-1.4.0.tgz",
    58185832            "integrity": "sha512-sedZYLHlHeBop/gZ1jdg59hlUEcpcZJofLq2JFwJT1zTqAU3l2wFv6IsuwFHGqbiT9DWzMUW4/em2+hspnmMMA==",
    58195833            "requires": {
     
    1010210116        },
    1010310117        "object.entries": {
    10104             "version": "1.0.4",
    10105             "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.0.4.tgz",
    10106             "integrity": "sha1-G/mk3SKI9bM/Opk9JXZh8F0WGl8=",
    10107             "requires": {
    10108                 "define-properties": "^1.1.2",
    10109                 "es-abstract": "^1.6.1",
    10110                 "function-bind": "^1.1.0",
    10111                 "has": "^1.0.1"
     10118            "version": "1.1.0",
     10119            "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.0.tgz",
     10120            "integrity": "sha512-l+H6EQ8qzGRxbkHOd5I/aHRhHDKoQXQ8g0BYt4uSweQU1/J6dZUOyWh9a2Vky35YCKjzmgxOzta2hH6kf9HuXA==",
     10121            "requires": {
     10122                "define-properties": "^1.1.3",
     10123                "es-abstract": "^1.12.0",
     10124                "function-bind": "^1.1.1",
     10125                "has": "^1.0.3"
    1011210126            }
    1011310127        },
     
    1019210206        "onetime": {
    1019310207            "version": "1.1.0",
    10194             "resolved": "https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz",
     10208            "resolved": "http://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz",
    1019510209            "integrity": "sha1-ofeDj4MUxRbwXs78vEzP4EtO14k=",
    1019610210            "dev": true
     
    1061410628                "async": {
    1061510629                    "version": "1.5.2",
    10616                     "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz",
     10630                    "resolved": "http://registry.npmjs.org/async/-/async-1.5.2.tgz",
    1061710631                    "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=",
    1061810632                    "dev": true
     
    1131511329        },
    1131611330        "re-resizable": {
    11317             "version": "4.10.0",
    11318             "resolved": "https://registry.npmjs.org/re-resizable/-/re-resizable-4.10.0.tgz",
    11319             "integrity": "sha512-g5Q5IswKX7LM+MtYFnuzaQrTEGr/kpserqGV8V6HYkjwbV60XnJv00VlKugLHEwlQ5pgrV08spm0TjyyYVbWmQ=="
     11331            "version": "4.11.0",
     11332            "resolved": "https://registry.npmjs.org/re-resizable/-/re-resizable-4.11.0.tgz",
     11333            "integrity": "sha512-dye+7rERqNf/6mDT1iwps+4Gf42420xuZgygF33uX178DxffqcyeuHbBuJ382FIcB5iP6mMZOhfW7kI0uXwb/Q=="
    1132011334        },
    1132111335        "react": {
  • branches/5.0/package.json

    r44342 r44390  
    5252        "@babel/polyfill": "^7.0.0",
    5353        "@wordpress/a11y": "^2.0.2",
    54         "@wordpress/annotations": "^1.0.4",
    55         "@wordpress/api-fetch": "^2.2.6",
     54        "@wordpress/annotations": "^1.0.5",
     55        "@wordpress/api-fetch": "^2.2.7",
    5656        "@wordpress/autop": "^2.0.2",
    5757        "@wordpress/blob": "^2.1.0",
    58         "@wordpress/block-library": "^2.2.11",
    59         "@wordpress/block-serialization-default-parser": "^2.0.2",
    60         "@wordpress/blocks": "^6.0.4",
    61         "@wordpress/components": "^7.0.4",
     58        "@wordpress/block-library": "^2.2.12",
     59        "@wordpress/block-serialization-default-parser": "^2.0.3",
     60        "@wordpress/blocks": "^6.0.5",
     61        "@wordpress/components": "^7.0.5",
    6262        "@wordpress/compose": "^3.0.0",
    63         "@wordpress/core-data": "^2.0.15",
    64         "@wordpress/data": "^4.1.0",
     63        "@wordpress/core-data": "^2.0.16",
     64        "@wordpress/data": "^4.2.0",
    6565        "@wordpress/date": "^3.0.1",
    66         "@wordpress/deprecated": "^2.0.3",
    67         "@wordpress/dom": "^2.0.7",
     66        "@wordpress/deprecated": "^2.0.4",
     67        "@wordpress/dom": "^2.0.8",
    6868        "@wordpress/dom-ready": "^2.0.2",
    69         "@wordpress/edit-post": "^3.1.6",
    70         "@wordpress/editor": "^9.0.6",
     69        "@wordpress/edit-post": "^3.1.7",
     70        "@wordpress/editor": "^9.0.7",
    7171        "@wordpress/element": "^2.1.8",
    7272        "@wordpress/escape-html": "^1.0.1",
    73         "@wordpress/format-library": "^1.2.9",
    74         "@wordpress/hooks": "^2.0.3",
     73        "@wordpress/format-library": "^1.2.10",
     74        "@wordpress/hooks": "^2.0.4",
    7575        "@wordpress/html-entities": "^2.0.4",
    7676        "@wordpress/i18n": "^3.1.0",
    7777        "@wordpress/is-shallow-equal": "^1.1.4",
    7878        "@wordpress/keycodes": "^2.0.5",
    79         "@wordpress/list-reusable-blocks": "^1.1.17",
    80         "@wordpress/notices": "^1.1.1",
    81         "@wordpress/nux": "^3.0.5",
    82         "@wordpress/plugins": "^2.0.9",
     79        "@wordpress/list-reusable-blocks": "^1.1.18",
     80        "@wordpress/notices": "^1.1.2",
     81        "@wordpress/nux": "^3.0.6",
     82        "@wordpress/plugins": "^2.0.10",
    8383        "@wordpress/redux-routine": "^3.0.3",
    84         "@wordpress/rich-text": "^3.0.3",
     84        "@wordpress/rich-text": "^3.0.4",
    8585        "@wordpress/shortcode": "^2.0.2",
    8686        "@wordpress/token-list": "^1.1.0",
    87         "@wordpress/url": "^2.3.2",
    88         "@wordpress/viewport": "^2.0.13",
     87        "@wordpress/url": "^2.3.3",
     88        "@wordpress/viewport": "^2.1.0",
    8989        "@wordpress/wordcount": "^2.0.3",
    9090        "element-closest": "^2.0.2",
  • branches/5.0/src/wp-includes/class-wp-block-parser.php

    r43955 r44390  
    11<?php
     2/**
     3 * Block Serialization Parser
     4 *
     5 * @package WordPress
     6 */
    27
    38/**
     
    6368    public $innerContent;
    6469
     70    /**
     71     * Constructor.
     72     *
     73     * Will populate object properties from the provided arguments.
     74     *
     75     * @since 3.8.0
     76     *
     77     * @param string $name         Name of block.
     78     * @param array  $attrs        Optional set of attributes from block comment delimiters.
     79     * @param array  $innerBlocks  List of inner blocks (of this same class).
     80     * @param string $innerHTML    Resultant HTML from inside block comment delimiters after removing inner blocks.
     81     * @param array  $innerContent List of string fragments and null markers where inner blocks were found.
     82     */
    6583    function __construct( $name, $attrs, $innerBlocks, $innerHTML, $innerContent ) {
    66         $this->blockName   = $name;
    67         $this->attrs       = $attrs;
    68         $this->innerBlocks = $innerBlocks;
    69         $this->innerHTML   = $innerHTML;
     84        $this->blockName    = $name;
     85        $this->attrs        = $attrs;
     86        $this->innerBlocks  = $innerBlocks;
     87        $this->innerHTML    = $innerHTML;
    7088        $this->innerContent = $innerContent;
    7189    }
     
    122140    public $leading_html_start;
    123141
     142    /**
     143     * Constructor
     144     *
     145     * Will populate object properties from the provided arguments.
     146     *
     147     * @since 3.8.0
     148     *
     149     * @param WP_Block_Parser_Block $block              Full or partial block.
     150     * @param int                   $token_start        Byte offset into document for start of parse token.
     151     * @param int                   $token_length       Byte length of entire parse token string.
     152     * @param int                   $prev_offset        Byte offset into document for after parse token ends.
     153     * @param int                   $leading_html_start Byte offset into document where leading HTML before token starts.
     154     */
    124155    function __construct( $block, $token_start, $token_length, $prev_offset = null, $leading_html_start = null ) {
    125156        $this->block              = $block;
     
    191222     * @since 3.8.0
    192223     *
    193      * @param string $document
     224     * @param string $document Input document being parsed.
    194225     * @return WP_Block_Parser_Block[]
    195226     */
     
    202233
    203234        do {
    204             // twiddle our thumbs
     235            // twiddle our thumbs.
    205236        } while ( $this->proceed() );
    206237
     
    227258        $stack_depth = count( $this->stack );
    228259
    229         // we may have some HTML soup before the next block
     260        // we may have some HTML soup before the next block.
    230261        $leading_html_start = $start_offset > $this->offset ? $this->offset : null;
    231262
    232263        switch ( $token_type ) {
    233264            case 'no-more-tokens':
    234                 // if not in a block then flush output
     265                // if not in a block then flush output.
    235266                if ( 0 === $stack_depth ) {
    236267                    $this->add_freeform();
     
    247278                 */
    248279
    249                 // for the easy case we'll assume an implicit closer
     280                // for the easy case we'll assume an implicit closer.
    250281                if ( 1 === $stack_depth ) {
    251282                    $this->add_block_from_stack();
     
    270301                if ( 0 === $stack_depth ) {
    271302                    if ( isset( $leading_html_start ) ) {
    272                         $this->output[] = (array) self::freeform( substr(
    273                             $this->document,
    274                             $leading_html_start,
    275                             $start_offset - $leading_html_start
    276                         ) );
     303                        $this->output[] = (array) self::freeform(
     304                            substr(
     305                                $this->document,
     306                                $leading_html_start,
     307                                $start_offset - $leading_html_start
     308                            )
     309                        );
    277310                    }
    278311
    279312                    $this->output[] = (array) new WP_Block_Parser_Block( $block_name, $attrs, array(), '', array() );
    280                     $this->offset = $start_offset + $token_length;
     313                    $this->offset   = $start_offset + $token_length;
    281314                    return true;
    282315                }
    283316
    284                 // otherwise we found an inner block
     317                // otherwise we found an inner block.
    285318                $this->add_inner_block(
    286319                    new WP_Block_Parser_Block( $block_name, $attrs, array(), '', array() ),
     
    292325
    293326            case 'block-opener':
    294                 // track all newly-opened blocks on the stack
    295                 array_push( $this->stack, new WP_Block_Parser_Frame(
    296                     new WP_Block_Parser_Block( $block_name, $attrs, array(), '', array() ),
    297                     $start_offset,
    298                     $token_length,
    299                     $start_offset + $token_length,
    300                     $leading_html_start
    301                 ) );
     327                // track all newly-opened blocks on the stack.
     328                array_push(
     329                    $this->stack,
     330                    new WP_Block_Parser_Frame(
     331                        new WP_Block_Parser_Block( $block_name, $attrs, array(), '', array() ),
     332                        $start_offset,
     333                        $token_length,
     334                        $start_offset + $token_length,
     335                        $leading_html_start
     336                    )
     337                );
    302338                $this->offset = $start_offset + $token_length;
    303339                return true;
     
    319355                }
    320356
    321                 // if we're not nesting then this is easy - close the block
     357                // if we're not nesting then this is easy - close the block.
    322358                if ( 1 === $stack_depth ) {
    323359                    $this->add_block_from_stack( $start_offset );
     
    330366                 * block and add it as a new innerBlock to the parent
    331367                 */
    332                 $stack_top = array_pop( $this->stack );
    333                 $html = substr( $this->document, $stack_top->prev_offset, $start_offset - $stack_top->prev_offset );
    334                 $stack_top->block->innerHTML .= $html;
     368                $stack_top                        = array_pop( $this->stack );
     369                $html                             = substr( $this->document, $stack_top->prev_offset, $start_offset - $stack_top->prev_offset );
     370                $stack_top->block->innerHTML     .= $html;
    335371                $stack_top->block->innerContent[] = $html;
    336                 $stack_top->prev_offset = $start_offset + $token_length;
     372                $stack_top->prev_offset           = $start_offset + $token_length;
    337373
    338374                $this->add_inner_block(
     
    346382
    347383            default:
    348                 // This is an error
     384                // This is an error.
    349385                $this->add_freeform();
    350386                return false;
     
    382418        );
    383419
    384         // if we get here we probably have catastrophic backtracking or out-of-memory in the PCRE
     420        // if we get here we probably have catastrophic backtracking or out-of-memory in the PCRE.
    385421        if ( false === $has_match ) {
    386422            return array( 'no-more-tokens', null, null, null, null );
    387423        }
    388424
    389         // we have no more tokens
     425        // we have no more tokens.
    390426        if ( 0 === $has_match ) {
    391427            return array( 'no-more-tokens', null, null, null, null );
    392428        }
    393429
    394         list( $match, $started_at ) = $matches[ 0 ];
     430        list( $match, $started_at ) = $matches[0];
    395431
    396432        $length    = strlen( $match );
    397         $is_closer = isset( $matches[ 'closer' ] ) && -1 !== $matches[ 'closer' ][ 1 ];
    398         $is_void   = isset( $matches[ 'void' ] ) && -1 !== $matches[ 'void' ][ 1 ];
    399         $namespace = $matches[ 'namespace' ];
    400         $namespace = ( isset( $namespace ) && -1 !== $namespace[ 1 ] ) ? $namespace[ 0 ] : 'core/';
    401         $name      = $namespace . $matches[ 'name' ][ 0 ];
    402         $has_attrs = isset( $matches[ 'attrs' ] ) && -1 !== $matches[ 'attrs' ][ 1 ];
     433        $is_closer = isset( $matches['closer'] ) && -1 !== $matches['closer'][1];
     434        $is_void   = isset( $matches['void'] ) && -1 !== $matches['void'][1];
     435        $namespace = $matches['namespace'];
     436        $namespace = ( isset( $namespace ) && -1 !== $namespace[1] ) ? $namespace[0] : 'core/';
     437        $name      = $namespace . $matches['name'][0];
     438        $has_attrs = isset( $matches['attrs'] ) && -1 !== $matches['attrs'][1];
    403439
    404440        /*
     
    407443         */
    408444        $attrs = $has_attrs
    409             ? json_decode( $matches[ 'attrs' ][ 0 ], /* as-associative */ true )
     445            ? json_decode( $matches['attrs'][0], /* as-associative */ true )
    410446            : $this->empty_attrs;
    411447
     
    415451         */
    416452        if ( $is_closer && ( $is_void || $has_attrs ) ) {
    417             // we can ignore them since they don't hurt anything
     453            // we can ignore them since they don't hurt anything.
    418454        }
    419455
     
    435471     * @since 3.9.0
    436472     *
    437      * @param string $innerHTML HTML content of block
    438      * @return WP_Block_Parser_Block freeform block object
     473     * @param string $innerHTML HTML content of block.
     474     * @return WP_Block_Parser_Block freeform block object.
    439475     */
    440476    function freeform( $innerHTML ) {
     
    444480    /**
    445481     * Pushes a length of text from the input document
    446      * to the output list as a freeform block
     482     * to the output list as a freeform block.
    447483     *
    448484     * @internal
    449485     * @since 3.8.0
    450      * @param null $length how many bytes of document text to output
     486     * @param null $length how many bytes of document text to output.
    451487     */
    452488    function add_freeform( $length = null ) {
     
    462498    /**
    463499     * Given a block structure from memory pushes
    464      * a new block to the output list
     500     * a new block to the output list.
    465501     *
    466502     * @internal
    467503     * @since 3.8.0
    468      * @param WP_Block_Parser_Block $block the block to add to the output
    469      * @param int $token_start byte offset into the document where the first token for the block starts
    470      * @param int $token_length byte length of entire block from start of opening token to end of closing token
    471      * @param int|null $last_offset last byte offset into document if continuing form earlier output
     504     * @param WP_Block_Parser_Block $block        The block to add to the output.
     505     * @param int                   $token_start  Byte offset into the document where the first token for the block starts.
     506     * @param int                   $token_length Byte length of entire block from start of opening token to end of closing token.
     507     * @param int|null              $last_offset  Last byte offset into document if continuing form earlier output.
    472508     */
    473509    function add_inner_block( WP_Block_Parser_Block $block, $token_start, $token_length, $last_offset = null ) {
    474         $parent = $this->stack[ count( $this->stack ) - 1 ];
     510        $parent                       = $this->stack[ count( $this->stack ) - 1 ];
    475511        $parent->block->innerBlocks[] = (array) $block;
    476         $html = substr( $this->document, $parent->prev_offset, $token_start - $parent->prev_offset );
     512        $html                         = substr( $this->document, $parent->prev_offset, $token_start - $parent->prev_offset );
    477513
    478514        if ( ! empty( $html ) ) {
    479             $parent->block->innerHTML .= $html;
     515            $parent->block->innerHTML     .= $html;
    480516            $parent->block->innerContent[] = $html;
    481517        }
    482518
    483519        $parent->block->innerContent[] = null;
    484         $parent->prev_offset = $last_offset ? $last_offset : $token_start + $token_length;
    485     }
    486 
    487     /**
    488      * Pushes the top block from the parsing stack to the output list
     520        $parent->prev_offset           = $last_offset ? $last_offset : $token_start + $token_length;
     521    }
     522
     523    /**
     524     * Pushes the top block from the parsing stack to the output list.
    489525     *
    490526     * @internal
    491527     * @since 3.8.0
    492      * @param int|null $end_offset byte offset into document for where we should stop sending text output as HTML
     528     * @param int|null $end_offset byte offset into document for where we should stop sending text output as HTML.
    493529     */
    494530    function add_block_from_stack( $end_offset = null ) {
     
    501537
    502538        if ( ! empty( $html ) ) {
    503             $stack_top->block->innerHTML .= $html;
     539            $stack_top->block->innerHTML     .= $html;
    504540            $stack_top->block->innerContent[] = $html;
    505541        }
    506542
    507543        if ( isset( $stack_top->leading_html_start ) ) {
    508             $this->output[] = (array) self::freeform( substr(
    509                 $this->document,
    510                 $stack_top->leading_html_start,
    511                 $stack_top->token_start - $stack_top->leading_html_start
    512             ) );
     544            $this->output[] = (array) self::freeform(
     545                substr(
     546                    $this->document,
     547                    $stack_top->leading_html_start,
     548                    $stack_top->token_start - $stack_top->leading_html_start
     549                )
     550            );
    513551        }
    514552
  • branches/5.0/src/wp-includes/script-loader.php

    r44287 r44390  
    225225
    226226    $packages_versions = array(
    227         'api-fetch' => '2.2.6',
     227        'api-fetch' => '2.2.7',
    228228        'a11y' => '2.0.2',
    229         'annotations' => '1.0.4',
     229        'annotations' => '1.0.5',
    230230        'autop' => '2.0.2',
    231231        'blob' => '2.1.0',
    232         'block-library' => '2.2.11',
    233         'block-serialization-default-parser' => '2.0.2',
    234         'blocks' => '6.0.4',
    235         'components' => '7.0.4',
     232        'block-library' => '2.2.12',
     233        'block-serialization-default-parser' => '2.0.3',
     234        'blocks' => '6.0.5',
     235        'components' => '7.0.5',
    236236        'compose' => '3.0.0',
    237         'core-data' => '2.0.15',
    238         'data' => '4.1.0',
     237        'core-data' => '2.0.16',
     238        'data' => '4.2.0',
    239239        'date' => '3.0.1',
    240         'deprecated' => '2.0.3',
    241         'dom' => '2.0.7',
     240        'deprecated' => '2.0.4',
     241        'dom' => '2.0.8',
    242242        'dom-ready' => '2.0.2',
    243         'edit-post' => '3.1.6',
    244         'editor' => '9.0.6',
     243        'edit-post' => '3.1.7',
     244        'editor' => '9.0.7',
    245245        'element' => '2.1.8',
    246246        'escape-html' => '1.0.1',
    247         'format-library' => '1.2.9',
    248         'hooks' => '2.0.3',
     247        'format-library' => '1.2.10',
     248        'hooks' => '2.0.4',
    249249        'html-entities' => '2.0.4',
    250250        'i18n' => '3.1.0',
    251251        'is-shallow-equal' => '1.1.4',
    252252        'keycodes' => '2.0.5',
    253         'list-reusable-blocks' => '1.1.17',
    254         'notices' => '1.1.1',
    255         'nux' => '3.0.5',
    256         'plugins' => '2.0.9',
     253        'list-reusable-blocks' => '1.1.18',
     254        'notices' => '1.1.2',
     255        'nux' => '3.0.6',
     256        'plugins' => '2.0.10',
    257257        'redux-routine' => '3.0.3',
    258         'rich-text' => '3.0.3',
     258        'rich-text' => '3.0.4',
    259259        'shortcode' => '2.0.2',
    260260        'token-list' => '1.1.0',
    261         'url' => '2.3.2',
    262         'viewport' => '2.0.13',
     261        'url' => '2.3.3',
     262        'viewport' => '2.1.0',
    263263        'wordcount' => '2.0.3',
    264264    );
Note: See TracChangeset for help on using the changeset viewer.