Make WordPress Core

Changeset 54184


Ignore:
Timestamp:
09/15/2022 10:26:28 PM (19 months ago)
Author:
hellofromTonya
Message:

Editor: Fix get_block_templates() to get templates for a post type.

When a post type is passed to get_block_templates() in the query, return only the templates that match that post type.

Fixes an issue where:

  • when a block template provided by a theme has been edited by the user
  • and that template has specific defined postTypes
  • but after editing, the template was available for all post types.

Follow-up to [52062].

Props aljullu, bernhard-reiter, hellofromTonya.
Fixes #55881.

Location:
trunk
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/package-lock.json

    r54182 r54184  
    32013201            "version": "0.0.29",
    32023202            "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz",
    3203             "integrity": "sha1-7ihweulOEdK4J7y+UnC86n8+ce4=",
     3203            "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==",
    32043204            "dev": true
    32053205        },
     
    1013310133            "version": "0.0.7",
    1013410134            "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz",
    10135             "integrity": "sha1-9wtzXGvKGlycItmCw+Oef+ujva0=",
     10135            "integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==",
    1013610136            "dev": true
    1013710137        },
     
    1051510515            "version": "0.6.1",
    1051610516            "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz",
    10517             "integrity": "sha1-3DQxT05nkxgJP8dgJyUl+UvyXBY=",
     10517            "integrity": "sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw==",
    1051810518            "dev": true
    1051910519        },
     
    1092510925                    "version": "2.0.0",
    1092610926                    "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
    10927                     "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
     10927                    "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
    1092810928                    "dev": true
    1092910929                },
     
    1109211092            "version": "3.0.0",
    1109311093            "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz",
    11094             "integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=",
     11094            "integrity": "sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw==",
    1109511095            "dev": true
    1109611096        },
     
    1178211782            "version": "0.2.4",
    1178311783            "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-0.2.4.tgz",
    11784             "integrity": "sha1-TnPdCen7lxzDhnDF3O2cGJZIHMY=",
     11784            "integrity": "sha512-we+NuQo2DHhSl+DP6jlUiAhyAjBQrYnpOk15rN6c6JSPScjiCLh8IbSU+VTcph6YS3o7mASE8a0+gbZ7ChLpgg==",
    1178511785            "dev": true,
    1178611786            "requires": {
     
    1180511805            "version": "4.6.0",
    1180611806            "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz",
    11807             "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=",
     11807            "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==",
    1180811808            "dev": true
    1180911809        },
     
    1193411934            "version": "1.0.1",
    1193511935            "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz",
    11936             "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=",
     11936            "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==",
    1193711937            "dev": true
    1193811938        },
     
    1197911979                    "version": "2.0.0",
    1198011980                    "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
    11981                     "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
     11981                    "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
    1198211982                    "dev": true
    1198311983                },
     
    1199811998            "version": "0.1.4",
    1199911999            "resolved": "https://registry.npmjs.org/computed-style/-/computed-style-0.1.4.tgz",
    12000             "integrity": "sha1-fzRP2FhLLkJb7cpKGvwOMAuwXXQ="
     12000            "integrity": "sha512-WpAmaKbMNmS3OProfHIdJiNleNJdgUrJfbKArXua28QF7+0CoZjlLn0lp6vlc+dl5r2/X9GQiQRQQU4BzSa69w=="
    1200112001        },
    1200212002        "concat-map": {
     
    1210012100            "version": "1.0.6",
    1210112101            "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
    12102             "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=",
     12102            "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==",
    1210312103            "dev": true
    1210412104        },
     
    1265712657            "version": "0.10.0",
    1265812658            "resolved": "https://registry.npmjs.org/cwd/-/cwd-0.10.0.tgz",
    12659             "integrity": "sha1-FyQAaUBXwioTsM8WFix+S3p/5Wc=",
     12659            "integrity": "sha512-YGZxdTTL9lmLkCUTpg4j0zQ7IhRB5ZmqNBbGCl3Tg6MP/d5/6sY7L5mmTjzbc6JKgVZYiqTQTNhPFsbXNGlRaA==",
    1266012660            "dev": true,
    1266112661            "requires": {
     
    1275212752            "version": "1.1.0",
    1275312753            "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.0.tgz",
    12754             "integrity": "sha1-0XGoeTMlKAfrPLYdwcFEXQeN8tk=",
     12754            "integrity": "sha512-ocLWuYzRPoS9bfiSdDd3cxvrzovVMZnRDVEzAs+hWIVXGDbHxWMECij2OBuyB/An0FFW/nLuq6Kv1i/YC5Qfzg==",
    1275512755            "dev": true,
    1275612756            "requires": {
     
    1296112961            "version": "0.7.0",
    1296212962            "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz",
    12963             "integrity": "sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw=",
     12963            "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==",
    1296412964            "dev": true
    1296512965        },
     
    1315013150                    "version": "6.1.0",
    1315113151                    "resolved": "https://registry.npmjs.org/globby/-/globby-6.1.0.tgz",
    13152                     "integrity": "sha1-9abXDoOV4hyFj7BInWTfAkJNUGw=",
     13152                    "integrity": "sha512-KVbFv2TQtbzCoxAnfD6JcHZTYCzyliEaaeM/gH8qQdkKr5s0OP9scEgvdcngyk7AVdY6YVW/TJHd+lQ/Df3Daw==",
    1315313153                    "dev": true,
    1315413154                    "requires": {
     
    1316313163                            "version": "2.3.0",
    1316413164                            "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
    13165                             "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=",
     13165                            "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==",
    1316613166                            "dev": true
    1316713167                        }
     
    1325013250            "version": "1.0.0",
    1325113251            "resolved": "https://registry.npmjs.org/discontinuous-range/-/discontinuous-range-1.0.0.tgz",
    13252             "integrity": "sha1-44Mx8IRLukm5qctxx3FYWqsbxlo=",
     13252            "integrity": "sha512-c68LpLbO+7kP/b1Hr1qs8/BJ09F5khZGTxqxZuhzxpmwJKOgRFHJWIb9/KmqnqHhLdO55aOxFH/EGBvUQbL/RQ==",
    1325313253            "dev": true
    1325413254        },
     
    1325613256            "version": "1.0.0",
    1325713257            "resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz",
    13258             "integrity": "sha1-s55/HabrCnW6nBcySzR1PEfgZU0=",
     13258            "integrity": "sha512-z+paD6YUQsk+AbGCEM4PrOXSss5gd66QfcVBFTKR/HpFL9jCqikS94HYwKww6fQyO7IxrIIyUu+g0Ka9tUS2Cg==",
    1325913259            "dev": true
    1326013260        },
     
    1328813288            "version": "1.2.1",
    1328913289            "resolved": "https://registry.npmjs.org/dom-scroll-into-view/-/dom-scroll-into-view-1.2.1.tgz",
    13290             "integrity": "sha1-6PNnMt0ImwIBqI14Fdw/iObWbH4="
     13290            "integrity": "sha512-LwNVg3GJOprWDO+QhLL1Z9MMgWe/KAFLxVWKzjRTxNSPn8/LLDIfmuG71YHznXCqaqTjvHJDYO1MEAgX6XCNbQ=="
    1329113291        },
    1329213292        "dom-serializer": {
     
    1344413444            "version": "1.4.7",
    1344513445            "resolved": "https://registry.npmjs.org/downloadjs/-/downloadjs-1.4.7.tgz",
    13446             "integrity": "sha1-9p+W+UDg0FU9rCkROYZaPNAQHjw="
     13446            "integrity": "sha512-LN1gO7+u9xjU5oEScGFKvXhYf7Y/empUIIEAGBs1LzUq/rg5duiDrkuH5A2lQGd5jfMOb9X9usDa2oVXwJ0U/Q=="
    1344713447        },
    1344813448        "downshift": {
     
    1349113491            "version": "1.1.1",
    1349213492            "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
    13493             "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=",
     13493            "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",
    1349413494            "dev": true
    1349513495        },
     
    1352513525            "version": "1.0.2",
    1352613526            "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
    13527             "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=",
     13527            "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==",
    1352813528            "dev": true
    1352913529        },
     
    1370613706            "version": "1.0.3",
    1370713707            "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
    13708             "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=",
     13708            "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
    1370913709            "dev": true
    1371013710        },
     
    1373613736                    "version": "0.3.0",
    1373713737                    "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz",
    13738                     "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=",
     13738                    "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==",
    1373913739                    "dev": true,
    1374013740                    "requires": {
     
    1376013760                    "version": "1.1.2",
    1376113761                    "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz",
    13762                     "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=",
     13762                    "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==",
    1376313763                    "dev": true
    1376413764                },
     
    1377313773                    "version": "0.3.2",
    1377413774                    "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz",
    13775                     "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=",
     13775                    "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==",
    1377613776                    "dev": true,
    1377713777                    "requires": {
     
    1428314283                    "version": "2.0.0",
    1428414284                    "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
    14285                     "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
     14285                    "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
    1428614286                    "dev": true
    1428714287                },
     
    1480214802            "version": "1.8.1",
    1480314803            "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
    14804             "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=",
     14804            "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
    1480514805            "dev": true
    1480614806        },
     
    1500115001            "version": "1.2.2",
    1500215002            "resolved": "https://registry.npmjs.org/expand-tilde/-/expand-tilde-1.2.2.tgz",
    15003             "integrity": "sha1-C4HrqJflo9MdHD0QL48BRB5VlEk=",
     15003            "integrity": "sha512-rtmc+cjLZqnu9dSYosX9EWmSJhTwpACgJQTfj4hgg2JjOD/6SIQalZrt4a3aQeh++oNxkazcaxrhPUj6+g5G/Q==",
    1500415004            "dev": true,
    1500515005            "requires": {
     
    1506715067                    "version": "1.1.1",
    1506815068                    "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
    15069                     "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=",
     15069                    "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==",
    1507015070                    "dev": true
    1507115071                },
     
    1509115091                    "version": "2.0.0",
    1509215092                    "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
    15093                     "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
     15093                    "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
    1509415094                    "dev": true
    1509515095                },
     
    1536515365            "version": "2.0.6",
    1536615366            "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
    15367             "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=",
     15367            "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",
    1536815368            "dev": true
    1536915369        },
     
    1552915529                    "version": "2.0.0",
    1553015530                    "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
    15531                     "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
     15531                    "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
    1553215532                    "dev": true
    1553315533                }
     
    1554815548            "version": "0.1.3",
    1554915549            "resolved": "https://registry.npmjs.org/find-file-up/-/find-file-up-0.1.3.tgz",
    15550             "integrity": "sha1-z2gJG8+fMApA2kEbN9pczlovvqA=",
     15550            "integrity": "sha512-mBxmNbVyjg1LQIIpgO8hN+ybWBgDQK8qjht+EbrTCGmmPV/sc7RF1i9stPTD6bpvXZywBdrwRYxhSdJv867L6A==",
    1555115551            "dev": true,
    1555215552            "requires": {
     
    1556415564            "version": "0.1.2",
    1556515565            "resolved": "https://registry.npmjs.org/find-pkg/-/find-pkg-0.1.2.tgz",
    15566             "integrity": "sha1-G9wiwG42NlUy4qJIBGhUuXiNpVc=",
     15566            "integrity": "sha512-0rnQWcFwZr7eO0513HahrWafsc3CTFioEB7DRiEYCUM/70QXSY8f3mCST17HXLcPvEhzH/Ty/Bxd72ZZsr/yvw==",
    1556715567            "dev": true,
    1556815568            "requires": {
     
    1576515765            "version": "0.1.5",
    1576615766            "resolved": "https://registry.npmjs.org/for-own/-/for-own-0.1.5.tgz",
    15767             "integrity": "sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4=",
     15767            "integrity": "sha512-SKmowqGTJoPzLO1T0BBJpkfp3EMacCMOuH40hOUbrbzElVktk4DioXVM99QkLCyKoiuOmyjgcWMpVz2xjE7LZw==",
    1576815768            "dev": true,
    1576915769            "requires": {
     
    1585915859            "version": "0.5.2",
    1586015860            "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
    15861             "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=",
     15861            "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
    1586215862            "dev": true
    1586315863        },
     
    1588815888            "version": "0.1.0",
    1588915889            "resolved": "https://registry.npmjs.org/fs-exists-sync/-/fs-exists-sync-0.1.0.tgz",
    15890             "integrity": "sha1-mC1ok6+RjnLQjeyehnP/K1qNat0=",
     15890            "integrity": "sha512-cR/vflFyPZtrN6b38ZyWxpWdhlXrzZEBawlpBQMq7033xVY7/kg0GDMBK5jg8lDYQckdJ5x/YC88lM3C7VMsLg==",
    1589115891            "dev": true
    1589215892        },
     
    1607316073            "version": "1.0.1",
    1607416074            "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz",
    16075             "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=",
     16075            "integrity": "sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==",
    1607616076            "dev": true
    1607716077        },
     
    1626716267            "version": "0.2.3",
    1626816268            "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-0.2.3.tgz",
    16269             "integrity": "sha1-6lo77ULG1s6ZWk+KEmm12uIjgo0=",
     16269            "integrity": "sha512-JeXuCbvYzYXcwE6acL9V2bAOeSIGl4dD+iwLY9iUx2VBJJ80R18HCn+JCwHM9Oegdfya3lEkGCdaRkSyc10hDA==",
    1627016270            "dev": true,
    1627116271            "requires": {
     
    1627716277                    "version": "0.2.0",
    1627816278                    "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-0.2.0.tgz",
    16279                     "integrity": "sha1-3hqm1j6indJIc3tp8f+LgALSEIw=",
     16279                    "integrity": "sha512-n67eJYmXbniZB7RF4I/FTjK1s6RPOCTxhYrVYLRaCt3lF0mpWZPKr3T2LSZAqyjQsxR2qMmGYXXzK0YWwcPM1Q==",
    1628016280                    "dev": true
    1628116281                }
     
    1628516285            "version": "0.1.5",
    1628616286            "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-0.1.5.tgz",
    16287             "integrity": "sha1-jTvGuNo8qBEqFg2NSW/wRiv+948=",
     16287            "integrity": "sha512-gOPiyxcD9dJGCEArAhF4Hd0BAqvAe/JzERP7tYumE4yIkmIedPUVXcJFWbV3/p/ovIIvKjkrTk+f1UVkq7vvbw==",
    1628816288            "dev": true,
    1628916289            "requires": {
     
    1629716297                    "version": "0.2.0",
    1629816298                    "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-0.2.0.tgz",
    16299                     "integrity": "sha1-3hqm1j6indJIc3tp8f+LgALSEIw=",
     16299                    "integrity": "sha512-n67eJYmXbniZB7RF4I/FTjK1s6RPOCTxhYrVYLRaCt3lF0mpWZPKr3T2LSZAqyjQsxR2qMmGYXXzK0YWwcPM1Q==",
    1630016300                    "dev": true
    1630116301                },
     
    1634816348            "version": "0.1.4",
    1634916349            "resolved": "https://registry.npmjs.org/globjoin/-/globjoin-0.1.4.tgz",
    16350             "integrity": "sha1-L0SUrIkZ43Z8XLtpHp9GMyQoXUM=",
     16350            "integrity": "sha512-xYfnw62CKG8nLkZBfWbhWwDw02CHty86jfPcc2cr3ZfeuK9ysoVPPEUxf21bAD/rWAgk52SuBrLJlefNy8mvFg==",
    1635116351            "dev": true
    1635216352        },
     
    1642216422            "version": "0.1.5",
    1642316423            "resolved": "https://registry.npmjs.org/gradient-parser/-/gradient-parser-0.1.5.tgz",
    16424             "integrity": "sha1-DH4heVWeXOfY1x9EI6+TcQCyJIw="
     16424            "integrity": "sha512-+uPlcVbjrKOnTzvz0MjTj7BfACj8OmxIa1moIjJV7btvhUMSJk0D47RfDCgDrZE3dYMz9Cf5xKJwnrKLjUq0KQ=="
    1642516425        },
    1642616426        "grapheme-splitter": {
     
    1759017590            "version": "2.1.6",
    1759117591            "resolved": "https://registry.npmjs.org/hpack.js/-/hpack.js-2.1.6.tgz",
    17592             "integrity": "sha1-h3dMCUnlE/QuhFdbPEVoH63ioLI=",
     17592            "integrity": "sha512-zJxVehUdMGIKsRaNt7apO2Gqp0BdqW5yaiGHXXmbpvxgBYVZnAql+BJb4RO5ad2MgpbZKn5G6nMnegrH1FcNYQ==",
    1759317593            "dev": true,
    1759417594            "requires": {
     
    1773217732            "version": "1.2.7",
    1773317733            "resolved": "https://registry.npmjs.org/http-deceiver/-/http-deceiver-1.2.7.tgz",
    17734             "integrity": "sha1-+nFolEq5pRnTN8sL7HKE3D5yPYc=",
     17734            "integrity": "sha512-LmpOGxTfbpgtGVxJrj5k7asXHCgNZp5nLfp+hWc8QQRqtb7fUy6kRY3BO1h9ddF6yIPYUARgxGOwB42DnxIaNw==",
    1773517735            "dev": true
    1773617736        },
     
    1813318133            "version": "0.1.4",
    1813418134            "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
    18135             "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=",
     18135            "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",
    1813618136            "dev": true
    1813718137        },
     
    1871418714            "version": "0.1.1",
    1871518715            "resolved": "https://registry.npmjs.org/is-subset/-/is-subset-0.1.1.tgz",
    18716             "integrity": "sha1-ilkRfZMt4d4A8kX83TnOQ/HpOaY=",
     18716            "integrity": "sha512-6Ybun0IkarhmEqxXCNw/C0bna6Zb/TkfUX9UbwJtK6ObwAVCxmAP308WWTHviM/zAqXk05cdhYsUsZeGQh99iw==",
    1871718717            "dev": true
    1871818718        },
     
    2114521145            "version": "1.0.1",
    2114621146            "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",
    21147             "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=",
     21147            "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",
    2114821148            "dev": true
    2114921149        },
     
    2115721157            "version": "0.0.4",
    2115821158            "resolved": "https://registry.npmjs.org/json2php/-/json2php-0.0.4.tgz",
    21159             "integrity": "sha1-a9haHdpqXdfpECK7JEA8wbfC7jQ=",
     21159            "integrity": "sha512-hFzejhs28f70sGnutcsRS459MnAsjRVI85RgPAL1KQIZEpjiDitc27CZv4IgOtaR86vrqOVlu9vJNew2XyTH4g==",
    2116021160            "dev": true
    2116121161        },
     
    2130321303            "version": "1.0.5",
    2130421304            "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.5.tgz",
    21305             "integrity": "sha1-0yHbxNowuovzAk4ED6XBRmH5GTo=",
     21305            "integrity": "sha512-qJhlO9cGXi6hBGKoxEG/sKZDAHD5Hnu9Hs4WbOY3pCWXDhw0N8x1NenNzm2EnNLkLkk7J2SdxAkDSbb6ftT+UQ==",
    2130621306            "dev": true,
    2130721307            "requires": {
     
    2131221312            "version": "1.0.4",
    2131321313            "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz",
    21314             "integrity": "sha1-odePw6UEdMuAhF07O24dpJpEbo4=",
     21314            "integrity": "sha512-RE2g0b5VGZsOCFOCgP7omTRYFqydmZkBwl5oNnQ1lDYC57uyO9KqNnNVxT7COSHTxrRCWVcAVOcbjk+tvh/rgQ==",
    2131521315            "dev": true
    2131621316        },
     
    2147121471            "version": "0.3.1",
    2147221472            "resolved": "https://registry.npmjs.org/line-height/-/line-height-0.3.1.tgz",
    21473             "integrity": "sha1-SxIF7d4YKHKl76PI9iCzGHqcVMk=",
     21473            "integrity": "sha512-YExecgqPwnp5gplD2+Y8e8A5+jKpr25+DzMbFdI1/1UAr0FJrTFv4VkHLf8/6B590i1wUPJWMKKldkd/bdQ//w==",
    2147421474            "requires": {
    2147521475                "computed-style": "~0.1.3"
     
    2157321573            "version": "4.0.8",
    2157421574            "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz",
    21575             "integrity": "sha1-gteb/zCmfEAF/9XiUVMArZyk168=",
     21575            "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==",
    2157621576            "dev": true
    2157721577        },
     
    2157921579            "version": "4.5.0",
    2158021580            "resolved": "https://registry.npmjs.org/lodash.differencewith/-/lodash.differencewith-4.5.0.tgz",
    21581             "integrity": "sha1-uvr7yRi1UVTheRdqALsK76rIVLc=",
     21581            "integrity": "sha512-/8JFjydAS+4bQuo3CpLMBv7WxGFyk7/etOAsrQUCu0a9QVDemxv0YQ0rFyeZvqlUD314SERfNlgnlqqHmaQ0Cg==",
    2158221582            "dev": true
    2158321583        },
     
    2158521585            "version": "4.0.1",
    2158621586            "resolved": "https://registry.npmjs.org/lodash.escape/-/lodash.escape-4.0.1.tgz",
    21587             "integrity": "sha1-yQRGkMIeBClL6qUXcS/e0fqI3pg=",
     21587            "integrity": "sha512-nXEOnb/jK9g0DYMr1/Xvq6l5xMD7GDG55+GSYIYmS0G4tBk/hURD4JR9WCavs04t33WmJx9kCyp9vJ+mr4BOUw==",
    2158821588            "dev": true
    2158921589        },
     
    2159121591            "version": "4.4.0",
    2159221592            "resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz",
    21593             "integrity": "sha1-8xwiIlqWMtK7+OSt2+8kCqdlph8=",
     21593            "integrity": "sha512-C5N2Z3DgnnKr0LOpv/hKCgKdb7ZZwafIrsesve6lmzvZIRZRGaZ/l6Q8+2W7NaT+ZwO3fFlSCzCzrDCFdJfZ4g==",
    2159421594            "dev": true
    2159521595        },
     
    2159721597            "version": "4.4.0",
    2159821598            "resolved": "https://registry.npmjs.org/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz",
    21599             "integrity": "sha1-+wMJF/hqMTTlvJvsDWngAT3f7bI=",
     21599            "integrity": "sha512-uHaJFihxmJcEX3kT4I23ABqKKalJ/zDrDg0lsFtc1h+3uw49SIJ5beyhx5ExVRti3AvKoOJngIj7xz3oylPdWQ==",
    2160021600            "dev": true
    2160121601        },
     
    2160921609            "version": "4.5.0",
    2161021610            "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz",
    21611             "integrity": "sha1-QVxEePK8wwEgwizhDtMib30+GOA=",
     21611            "integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==",
    2161221612            "dev": true
    2161321613        },
     
    2163321633            "version": "4.4.2",
    2163421634            "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz",
    21635             "integrity": "sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM=",
     21635            "integrity": "sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw==",
    2163621636            "dev": true
    2163721637        },
     
    2216622166            "version": "0.3.0",
    2216722167            "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
    22168             "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=",
     22168            "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
    2216922169            "dev": true
    2217022170        },
     
    2221622216            "version": "1.0.1",
    2221722217            "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz",
    22218             "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=",
     22218            "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==",
    2221922219            "dev": true
    2222022220        },
     
    2223322233            "version": "1.1.2",
    2223422234            "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
    22235             "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=",
     22235            "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
    2223622236            "dev": true
    2223722237        },
     
    2243422434            "version": "2.0.1",
    2243522435            "resolved": "https://registry.npmjs.org/mixin-object/-/mixin-object-2.0.1.tgz",
    22436             "integrity": "sha1-T7lJRB2rGCVA8f4DW6YOGUel5X4=",
     22436            "integrity": "sha512-ALGF1Jt9ouehcaXaHhn6t1yGWRqGaHkPFndtFVHfZXOvkIZ/yoGaSi0AHVTafb3ZBGg4dr/bDwnaEKqCXzchMA==",
    2243722437            "dev": true,
    2243822438            "requires": {
     
    2244422444                    "version": "0.1.8",
    2244522445                    "resolved": "https://registry.npmjs.org/for-in/-/for-in-0.1.8.tgz",
    22446                     "integrity": "sha1-2Hc5COMSVhCZUrH9ubP6hn0ndeE=",
     22446                    "integrity": "sha512-F0to7vbBSHP8E3l6dCjxNOLuSFAACIxFy3UehTUlG7svlXi37HHsDkyVcHo0Pq8QwrE+pXvWSVX3ZT1T9wAZ9g==",
    2244722447                    "dev": true
    2244822448                }
     
    2256022560            "version": "1.4.0",
    2256122561            "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
    22562             "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=",
     22562            "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",
    2256322563            "dev": true
    2256422564        },
     
    2267622676            "version": "0.4.0",
    2267722677            "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz",
    22678             "integrity": "sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs=",
     22678            "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==",
    2267922679            "dev": true
    2268022680        },
     
    2274122741            "version": "1.0.1",
    2274222742            "resolved": "https://registry.npmjs.org/normalize-wheel/-/normalize-wheel-1.0.1.tgz",
    22743             "integrity": "sha1-rsiGr/2wRQcNhWRH32Ls+GFG7EU="
     22743            "integrity": "sha512-1OnlAPZ3zgrk8B91HyRj+eVv+kS5u+Z0SCsak6Xil/kmgEia50ga7zfkumayonZrImffAxPU/5WcyGhzetHNPA=="
    2274422744        },
    2274522745        "npm-bundled": {
     
    2406824068            "version": "3.0.0",
    2406924069            "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz",
    24070             "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU="
     24070            "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ=="
    2407124071        },
    2407224072        "path-is-absolute": {
     
    2407924079            "version": "1.0.2",
    2408024080            "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz",
    24081             "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=",
     24081            "integrity": "sha512-DUWJr3+ULp4zXmol/SZkFf3JGsS9/SIv+Y3Rt93/UjPpDpklB5f1er4O3POIbUuUJ3FXgqte2Q7SrU6zAqwk8w==",
    2408224082            "dev": true
    2408324083        },
     
    2411224112            "version": "0.1.7",
    2411324113            "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",
    24114             "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=",
     24114            "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==",
    2411524115            "dev": true
    2411624116        },
     
    2443524435            "version": "0.2.3",
    2443624436            "resolved": "https://registry.npmjs.org/postcss-media-query-parser/-/postcss-media-query-parser-0.2.3.tgz",
    24437             "integrity": "sha1-J7Ocb02U+Bsac7j3Y1HGCeXO8kQ=",
     24437            "integrity": "sha512-3sOlxmbKcSHMjlUXQZKQ06jOswE7oVkXPxmZdoB1r5l0q6gTFTQSHxNxOrCccElbW7dxNytifNEo8qidX2Vsig==",
    2443824438            "dev": true
    2443924439        },
     
    2472624726            "version": "0.1.1",
    2472724727            "resolved": "https://registry.npmjs.org/postcss-resolve-nested-selector/-/postcss-resolve-nested-selector-0.1.1.tgz",
    24728             "integrity": "sha1-Kcy8fDfe36wwTp//C/FZaz9qDk4=",
     24728            "integrity": "sha512-HvExULSwLqHLgUy1rl3ANIqCsvMS0WHss2UOsXhXnQaZ9VCc2oBvIpXrl00IUFT5ZDITME0o6oiXeiHr2SAIfw==",
    2472924729            "dev": true
    2473024730        },
     
    2510425104            "version": "1.0.0",
    2510525105            "resolved": "https://registry.npmjs.org/railroad-diagrams/-/railroad-diagrams-1.0.0.tgz",
    25106             "integrity": "sha1-635iZ1SN3t+4mcG5Dlc3RVnN234=",
     25106            "integrity": "sha512-cz93DjNeLY0idrCNOH6PviZGRN9GJhsdm9hpn1YCS879fj4W+x5IFJhhkRZcwVgMmFF7R82UA/7Oh+R8lLZg6A==",
    2510725107            "dev": true
    2510825108        },
     
    2517625176                    "version": "2.0.1",
    2517725177                    "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
    25178                     "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=",
     25178                    "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==",
    2517925179                    "dev": true
    2518025180                }
     
    2568625686            "version": "0.2.0",
    2568725687            "resolved": "https://registry.npmjs.org/reflect.ownkeys/-/reflect.ownkeys-0.2.0.tgz",
    25688             "integrity": "sha1-dJrO7H8/34tj+SegSAnpDFwLNGA="
     25688            "integrity": "sha512-qOLsBKHCpSOFKK1NUOCGC5VyeufB6lEsFe92AL2bhIJsacZS1qdoOZSbPk3MYKuT2cFlRDnulKXuuElIrMjGUg=="
    2568925689        },
    2569025690        "regenerate": {
     
    2579225792                    "version": "0.5.0",
    2579325793                    "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz",
    25794                     "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=",
     25794                    "integrity": "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==",
    2579525795                    "dev": true
    2579625796                }
     
    2589025890            "version": "2.1.1",
    2589125891            "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
    25892             "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I="
     25892            "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q=="
    2589325893        },
    2589425894        "require-from-string": {
     
    2591225912            "version": "1.0.0",
    2591325913            "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz",
    25914             "integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=",
     25914            "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==",
    2591525915            "dev": true
    2591625916        },
     
    2596225962            "version": "0.1.1",
    2596325963            "resolved": "https://registry.npmjs.org/resolve-dir/-/resolve-dir-0.1.1.tgz",
    25964             "integrity": "sha1-shklmlYC+sXFxJatiUpujMQwJh4=",
     25964            "integrity": "sha512-QxMPqI6le2u0dCLyiGzgy92kjkkL6zO0XyvHzjdTNH3zM6e5Hz3BwG6+aEyNgiQ5Xz6PwTwgQEj3U50dByPKIA==",
    2596525965            "dev": true,
    2596625966            "requires": {
     
    2606526065            "version": "2.2.3",
    2606626066            "resolved": "https://registry.npmjs.org/rst-selector-parser/-/rst-selector-parser-2.2.3.tgz",
    26067             "integrity": "sha1-gbIw6i/MYGbInjRy3nlChdmwPZE=",
     26067            "integrity": "sha512-nDG1rZeP6oFTLN6yNDV/uiAvs1+FS/KlrEwh7+y7dpuApDBy6bI2HTBcc0/V8lv9OTqfyD34eF7au2pm8aBbhA==",
    2606826068            "dev": true,
    2606926069            "requires": {
     
    2613626136            "version": "0.3.2",
    2613726137            "resolved": "https://registry.npmjs.org/rungen/-/rungen-0.3.2.tgz",
    26138             "integrity": "sha1-QAwJ6+kU57F+C27zJjQA/Cq8fLM="
     26138            "integrity": "sha512-zWl10xu2D7zoR8zSC2U6bg5bYF6T/Wk7rxwp8IPaJH7f0Ge21G03kNHVgHR7tyVkSSfAOG0Rqf/Cl38JftSmtw=="
    2613926139        },
    2614026140        "rxjs": {
     
    2633926339            "version": "2.0.0",
    2634026340            "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz",
    26341             "integrity": "sha1-Yl2GWPhlr0Psliv8N2o3NZpJlMo=",
     26341            "integrity": "sha512-mEugaLK+YfkijB4fx0e6kImuJdCIt2LxCRcbEYPqRGCs4F2ogyfZU5IAZRdjCP8JPq2AtdNoC/Dux63d9Kiryg==",
    2634226342            "dev": true
    2634326343        },
     
    2641826418                            "version": "2.0.0",
    2641926419                            "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
    26420                             "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
     26420                            "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
    2642126421                            "dev": true
    2642226422                        }
     
    2644726447            "version": "1.9.1",
    2644826448            "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz",
    26449             "integrity": "sha1-03aNabHn2C5c4FD/9bRTvqEqkjk=",
     26449            "integrity": "sha512-pXHfKNP4qujrtteMrSBb0rc8HJ9Ms/GrXwcUtUtD5s4ewDJI8bT3Cz2zTVRMKtri49pLx2e0Ya8ziP5Ya2pZZw==",
    2645026450            "dev": true,
    2645126451            "requires": {
     
    2647126471                    "version": "1.1.2",
    2647226472                    "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz",
    26473                     "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=",
     26473                    "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==",
    2647426474                    "dev": true
    2647526475                },
     
    2647726477                    "version": "1.6.3",
    2647826478                    "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz",
    26479                     "integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=",
     26479                    "integrity": "sha512-lks+lVC8dgGyh97jxvxeYTWQFvh4uw4yC12gVl63Cg30sjPX4wuGcdkICVXDAESr6OJGjqGA8Iz5mkeN6zlD7A==",
    2648026480                    "dev": true,
    2648126481                    "requires": {
     
    2648926489                    "version": "2.0.3",
    2649026490                    "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
    26491                     "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=",
     26491                    "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==",
    2649226492                    "dev": true
    2649326493                },
     
    2649526495                    "version": "2.0.0",
    2649626496                    "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
    26497                     "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
     26497                    "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
    2649826498                    "dev": true
    2649926499                },
     
    2650726507                    "version": "1.5.0",
    2650826508                    "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz",
    26509                     "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=",
     26509                    "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==",
    2651026510                    "dev": true
    2651126511                }
     
    2652726527            "version": "2.0.0",
    2652826528            "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
    26529             "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc="
     26529            "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw=="
    2653026530        },
    2653126531        "set-value": {
     
    2656126561            "version": "0.1.2",
    2656226562            "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-0.1.2.tgz",
    26563             "integrity": "sha1-WQnodLp3EG1zrEFM/sH/yofZcGA=",
     26563            "integrity": "sha512-J1zdXCky5GmNnuauESROVu31MQSnLoYvlyEn6j2Ztk6Q5EHFIhxkMhYcv6vuDzl2XEzoRr856QwzMgWM/TmZgw==",
    2656426564            "dev": true,
    2656526565            "requires": {
     
    2657326573                    "version": "2.0.1",
    2657426574                    "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-2.0.1.tgz",
    26575                     "integrity": "sha1-AY7HpM5+OobLkUG+UZ0kyPqpgbU=",
     26575                    "integrity": "sha512-0u8i1NZ/mg0b+W3MGGw5I7+6Eib2nx72S/QvXa0hYjEkjTknYmEYQJwGu3mLC0BrhtJjtQafTkyRUQ75Kx0LVg==",
    2657626576                    "dev": true,
    2657726577                    "requires": {
     
    2658226582                    "version": "0.2.7",
    2658326583                    "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-0.2.7.tgz",
    26584                     "integrity": "sha1-f+3fLctu23fRHvHRF6tf/fCrG2U=",
     26584                    "integrity": "sha512-gkX52wvU/R8DVMMt78ATVPFMJqfW8FPz1GZ1sVHBVQHmu/WvhIWE4cE1GBzhJNFicDeYhnwp6Rl35BcAIM3YOQ==",
    2658526585                    "dev": true
    2658626586                }
     
    2764627646            "version": "3.0.0",
    2764727647            "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz",
    27648             "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=",
     27648            "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==",
    2764927649            "dev": true
    2765027650        },
     
    2771627716            "version": "0.1.0",
    2771727717            "resolved": "https://registry.npmjs.org/style-search/-/style-search-0.1.0.tgz",
    27718             "integrity": "sha1-eVjHk+R+MuB9K1yv5cC/jhLneQI=",
     27718            "integrity": "sha512-Dj1Okke1C3uKKwQcetra4jSuk0DqbzbYtXipzFlFMZtowbF1x7BKJwB9AayVMyFARvU8EDrZdcax4At/452cAg==",
    2771927719            "dev": true
    2772027720        },
     
    2826428264            "version": "1.0.0",
    2826528265            "resolved": "https://registry.npmjs.org/svg-tags/-/svg-tags-1.0.0.tgz",
    28266             "integrity": "sha1-WPcc7jvVGbWdSyqEO2x95krAR2Q=",
     28266            "integrity": "sha512-ovssysQTa+luh7A5Weu3Rta6FJlFBBbInjOh722LIt6klpU2/HtdUbszju/G4devcvk8PGt7FCLv5wftu3THUA==",
    2826728267            "dev": true
    2826828268        },
     
    2852828528            "version": "0.2.0",
    2852928529            "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz",
    28530             "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=",
     28530            "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==",
    2853128531            "dev": true
    2853228532        },
     
    2862728627            "version": "2.0.0",
    2862828628            "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz",
    28629             "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4="
     28629            "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog=="
    2863028630        },
    2863128631        "to-object-path": {
     
    2870628706            "version": "0.6.6",
    2870728707            "resolved": "https://registry.npmjs.org/traverse/-/traverse-0.6.6.tgz",
    28708             "integrity": "sha1-y99WD9e5r2MlAv7UD5GMFX6pcTc="
     28708            "integrity": "sha512-kdf4JKs8lbARxWdp7RKdNzoJBhGUcIalSYibuGyHJbmk40pOysQ0+QPvlkCOICOivDWU2IJo2rkrxyTK2AH4fw=="
    2870928709        },
    2871028710        "tree-kill": {
     
    2899028990            "version": "1.0.0",
    2899128991            "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
    28992             "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=",
     28992            "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
    2899328993            "dev": true
    2899428994        },
     
    2916829168            "version": "1.0.1",
    2916929169            "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
    29170             "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=",
     29170            "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==",
    2917129171            "dev": true
    2917229172        },
     
    2922329223            "version": "1.1.2",
    2922429224            "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
    29225             "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=",
     29225            "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
    2922629226            "dev": true
    2922729227        },
     
    2985329853            "version": "2.0.0",
    2985429854            "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz",
    29855             "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho="
     29855            "integrity": "sha512-B+enWhmw6cjfVC7kS8Pj9pCrKSc5txArRyaYGe088shv/FGWH+0Rjx/xPgtsWfsUtS27FkP697E4DDhgrgoc0Q=="
    2985629856        },
    2985729857        "wildcard": {
  • trunk/src/wp-includes/block-template-utils.php

    r54104 r54184  
    553553
    554554    $theme          = $terms[0]->name;
    555     $has_theme_file = wp_get_theme()->get_stylesheet() === $theme &&
    556         null !== _get_block_template_file( $post->post_type, $post->post_name );
     555    $template_file = _get_block_template_file( $post->post_type, $post->post_name );
     556    $has_theme_file = wp_get_theme()->get_stylesheet() === $theme && null !== $template_file;
    557557
    558558    $origin = get_post_meta( $post->ID, 'origin', true );
     
    574574    $template->author         = $post->post_author;
    575575
     576    if ( 'wp_template' === $post->post_type && $has_theme_file && isset( $template_file['postTypes'] ) ) {
     577        $template->post_types = $template_file['postTypes'];
     578    }
     579
    576580    if ( 'wp_template' === $post->post_type && isset( $default_template_types[ $template->slug ] ) ) {
    577581        $template->is_custom = false;
     
    673677
    674678        if ( $post_type && ! $template->is_custom ) {
     679            continue;
     680        }
     681
     682        if ( $post_type &&
     683            isset( $template->post_types ) &&
     684            ! in_array( $post_type, $template->post_types, true )
     685        ) {
    675686            continue;
    676687        }
  • trunk/tests/phpunit/data/themedir1/block-theme/theme.json

    r54036 r54184  
    5959            "name": "page-home",
    6060            "title": "Homepage template"
     61        },
     62        {
     63            "name": "custom-single-post-template",
     64            "title": "Custom Single Post template",
     65            "postTypes": ["post"]
    6166        }
    6267    ],
  • trunk/tests/phpunit/tests/block-template-utils.php

    r54104 r54184  
    1313class Tests_Block_Template_Utils extends WP_UnitTestCase {
    1414    private static $post;
     15    private static $custom_single_post_template_post;
    1516    private static $template_part_post;
    1617    private static $test_theme = 'block-theme';
     
    5152        wp_set_post_terms( self::$post->ID, self::$test_theme, 'wp_theme' );
    5253
     54        // Set up template post.
     55        $args                                   = array(
     56            'post_type'    => 'wp_template',
     57            'post_name'    => 'custom-single-post-template',
     58            'post_title'   => 'Custom Single Post template (modified)',
     59            'post_content' => 'Content',
     60            'post_excerpt' => 'Description of custom single post template',
     61            'tax_input'    => array(
     62                'wp_theme' => array(
     63                    self::$test_theme,
     64                ),
     65            ),
     66        );
     67        self::$custom_single_post_template_post = self::factory()->post->create_and_get( $args );
     68        wp_set_post_terms( self::$custom_single_post_template_post->ID, self::$test_theme, 'wp_theme' );
     69
    5370        // Set up template part post.
    5471        $template_part_args       = array(
     
    7996    public static function wpTearDownAfterClass() {
    8097        wp_delete_post( self::$post->ID );
     98        wp_delete_post( self::$custom_single_post_template_post->ID );
    8199    }
    82100
     
    320338        );
    321339        */
     340    }
     341
     342    /**
     343     * @dataProvider data_get_block_template_should_respect_posttypes_property
     344     * @ticket 55881
     345     * @covers ::get_block_templates
     346     *
     347     * @param string $post_type Post type for query.
     348     * @param array  $expected  Expected template IDs.
     349     */
     350    public function test_get_block_template_should_respect_posttypes_property( $post_type, $expected ) {
     351        $templates = get_block_templates( array( 'post_type' => $post_type ) );
     352
     353        $this->assertSame(
     354            $expected,
     355            $this->get_template_ids( $templates )
     356        );
     357    }
     358
     359    /**
     360     * Data provider.
     361     *
     362     * @return array
     363     */
     364    public function data_get_block_template_should_respect_posttypes_property() {
     365        return array(
     366            'post' => array(
     367                'post_type' => 'post',
     368                'expected'  => array(
     369                    'block-theme//my_template',
     370                    'block-theme//custom-single-post-template',
     371                ),
     372            ),
     373            'page' => array(
     374                'post_type' => 'page',
     375                'expected'  => array(
     376                    'block-theme//my_template',
     377                    'block-theme//page-home',
     378                ),
     379            ),
     380        );
     381    }
     382
     383    /**
     384     * Gets the template IDs from the given array.
     385     *
     386     * @param object[] $templates Array of template objects to parse.
     387     * @return string[] The template IDs.
     388     */
     389    private function get_template_ids( $templates ) {
     390        return array_map(
     391            static function( $template ) {
     392                return $template->id;
     393            },
     394            $templates
     395        );
    322396    }
    323397
  • trunk/tests/phpunit/tests/theme/wpThemeJsonResolver.php

    r54036 r54184  
    155155            $theme_data->get_settings()
    156156        );
    157         $this->assertSameSets(
    158             array(
    159                 'page-home' => array(
    160                     'title'     => 'Szablon strony głównej',
    161                     'postTypes' => array( 'page' ),
    162                 ),
    163             ),
    164             $theme_data->get_custom_templates()
     157
     158        $custom_templates = $theme_data->get_custom_templates();
     159        $this->assertArrayHasKey( 'page-home', $custom_templates );
     160        $this->assertSame(
     161            $custom_templates['page-home'],
     162            array(
     163                'title'     => 'Szablon strony głównej',
     164                'postTypes' => array( 'page' ),
     165            )
    165166        );
    166167        $this->assertSameSets(
     
    341342            WP_Theme_JSON_Resolver::get_theme_data()->get_custom_templates(),
    342343            array(
    343                 'page-home' => array(
     344                'page-home'                   => array(
    344345                    'title'     => 'Homepage',
    345346                    'postTypes' => array( 'page' ),
     347                ),
     348                'custom-single-post-template' => array(
     349                    'title'     => 'Custom Single Post template',
     350                    'postTypes' => array( 'post' ),
    346351                ),
    347352            )
Note: See TracChangeset for help on using the changeset viewer.