Build Tools: Integrate DependencyExtractionWebpackPlugin in the JS build.

This patch integrates DependencyExtractionWebpackPlugin which was battle-tested in Gutenberg. 

This will greatly simplify the process of upgrading npm packages which change after every Gutenberg release. It might even useful during the WordPress release cycle as we might need to publish more often as we discover critical bugs and regressions.

Props jonsurrell, adamsilverstein, youknowriad, ocean90, netweb.

Fixes #48154. 


Built from https://develop.svn.wordpress.org/trunk@47035


git-svn-id: http://core.svn.wordpress.org/trunk@46835 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
gziolo 2020-01-03 13:17:24 +00:00
parent 9bec6f1e54
commit 355c05ea71
156 changed files with 4545 additions and 11475 deletions

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-dom-ready', 'wp-polyfill'), 'version' => 'af27b431d4f07434a92266990a7d3200');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-dom-ready', 'wp-polyfill'), 'version' => '5dc59b2dfaca60de5c8a1cc891499f37');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => '60fcaed1bcbfa3d4eed146cad2f8e5f0');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => 'b171feca624cc4941e9ab684d54d8cee');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '153fb1306d9092a86720b8d7a94db45f');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '8c197b51561370ff41bfe6eb282c19f4');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '37dd324cde5f705f94ec94a8ee48602a');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '823837761a3437d4b1fa25cf69b57adf');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'a3c41acb9815d735bacd15e8f9dfe71a');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'adfdd1facf5a649995ed1e2c6d665bbe');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '56ee285ad354b24d6fe3118074df165d');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '854d9d41fa1653ae75e6b3b5c620695c');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-rich-text', 'wp-token-list', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '4dcb4b3052a105afad405a87931067d9');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-rich-text', 'wp-token-list', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '23971788f81a47ab9b492e6cbc279f65');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'moment', 'wp-a11y', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-editor', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => '0dff0566205e839bb9836efc95d43355');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'moment', 'wp-a11y', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-editor', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => 'f1f1814422958952e2cca63a0759e069');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '7ff608695039a6eebcaca94c7b0cbe0b');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '4f1ad4e301f6d8e3fe19fa2dd547cf55');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-shortcode'), 'version' => '2fd7d71040e681bf25f52e613070e987');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-shortcode'), 'version' => '0806c45af0e214df5c37406e0877f72b');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-rich-text'), 'version' => '2c562d21c0eb3b3bfe3de73476733e6c');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-rich-text'), 'version' => '30785f4d41cf73bb1bf1eea0be62a4cf');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill'), 'version' => 'ec6e5b34fe3cbb2b5d1514269b567a93');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill'), 'version' => 'c430c6150a198fb6d4c2eabb7cd03583');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => 'c0d428e65d3c6b57c6f098724ce8d587');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => '46d824acf71eb4a50d36fcbe1e0b46e0');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-polyfill'), 'version' => '2f1f369d2fb8dca36c3265d9b8a92c44');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-polyfill'), 'version' => 'a625c6cccd427ea9ae75b0f6ba62fbc5');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-redux-routine'), 'version' => '15534ec9df39be607b0a256599a4988a');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-redux-routine'), 'version' => 'df3adc44a43e27722ceae00ecdd06fc9');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('moment', 'wp-polyfill'), 'version' => 'd43cc0144bfd4977eb7f74d855c73a50');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('moment', 'wp-polyfill'), 'version' => '43bab887da69e32a933022340ee79968');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '00c8ff07af6ff4909c66e136d13b6176');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '360d4616481ef8f439fa923fa7d7e79d');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '964ef101f2fbe14a6d8ba9721f6cc295');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '1823bf311f01bd539f92cb70a34a3490');

1
wp-includes/assets/dist/dom.asset.php vendored Normal file
View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '0a63ec8def9444ec51bbeb0387630d29');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'aca57c2013f6451b44f0a7288a6a1b17');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-nux', 'wp-plugins', 'wp-polyfill', 'wp-url', 'wp-viewport'), 'version' => '00342b369b89df397bbae49e03be43d0');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-nux', 'wp-plugins', 'wp-polyfill', 'wp-url', 'wp-viewport'), 'version' => '6cebc08df7e67a3ba1188a1a25d094c4');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-autop', 'wp-block-directory', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-nux', 'wp-polyfill', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '4b6e66c5e7ecb9e1c661303db63b2aaf');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-autop', 'wp-block-directory', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-nux', 'wp-polyfill', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '05b6933253ccb09c63cc7f693ff53389');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => 'cae2422b8f0408835b38dc6387fb767a');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => '259fe2760939f45060b7f9c7ae24301b');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'f77f13f9c7796a1dda56b4bf1650a17a');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'a94dcf86d2486735989d9d135dcc2066');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-block-editor', 'wp-components', 'wp-dom', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-rich-text', 'wp-url'), 'version' => 'a7891c00b81896a75bc9ad9ec0b53255');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-block-editor', 'wp-components', 'wp-dom', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-rich-text', 'wp-url'), 'version' => '85f30e069b97903f0513a91b61d2d258');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '4c27c055506e57b56ecf3b2a4ffee195');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '11ee0c5a6035d3a6ba7e47a253dc74e1');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'c62608e5c602dca4aff5176cb1b17503');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'a26ef41cfcf764b5eb1bc721ec0acd28');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '069d2293dc9586cc0afb6905ea48a500');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '4d88acdeb69fa3d9f78a14c0ab3bec9b');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'a02634b945ecc4a61dc46c94c35855f6');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'c79efbd1bf901fe4cd5f3dde4cbfa6d8');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => '59d8d431cd479879a1d314671f18fd3b');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => 'be608fe55382d457ef1c21540c8cf0aa');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '5a205b47d2d3d37e136eeb926947e087');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '05fbb6d1d79b54d7d13bf5911d2a00a3');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'c86dcf5b0742c92305b50153df8e7b81');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '5e498e5114404cb2584c77bca9b9b63d');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-a11y', 'wp-data', 'wp-polyfill'), 'version' => 'cc4bbc7372798a3f4357e381690e6fcc');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-a11y', 'wp-data', 'wp-polyfill'), 'version' => '72bc960c10048f975a693cafb38e3653');

1
wp-includes/assets/dist/nux.asset.php vendored Normal file
View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '86fa43e67fb5dda7da1a948c34845bf7');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '6ec8a38f68d8486a95465e09fa560f7e');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill'), 'version' => '42dd14e0a3b26c66324e5a17fc8e9c61');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill'), 'version' => 'fbb518fd8958d8f7fbc3fcfdf88679c1');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '20e33db2eef5149773790911f2eda61b');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'c032c9992ec6078eaa3a6fcbb685317c');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '1bbb6d90c2818ae1b9ef83b7ae87ef94');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '28e4976c02845f866a879ce3bf50db8c');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill'), 'version' => '3e1208977112a4cd81cd1a4959f64789');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill'), 'version' => '718b996a2c0c1e6f15f5b36657c630bd');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '248ddbdb10f424f31d2403874d09d0da');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '8b29152d4e771c5ff8f7ffc4e2b8a53b');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '579f8a20b9143d82002d25e9eac99bf2');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '26d57d47c8e8094e524292e85f0fbfcc');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'c2df1b11c1bc12ec743f03f29d8b94ca');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'b113ea5defe00531b6645991010dd72f');

1
wp-includes/assets/dist/url.asset.php vendored Normal file
View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'c49a6dac14c9ecc8e0fd7bb9615fcac0');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '360ce80242f4d48f03e1eb1e80eb407a');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-polyfill'), 'version' => 'f9da26d55be12411a829c633d5105612');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-polyfill'), 'version' => '9e482342a6b19b0a2385b50d78e2fe14');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'de70c1e678adac13e5c5c8f91dd35e80');

View File

@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '0a5ee0ce8726a5aa27d76f80bfbfe0c2');

View File

@ -0,0 +1,166 @@
/**
* Colors
*/
/**
* Breakpoints & Media Queries
*/
/**
* Often re-used variables
*/
/**
* Breakpoint mixins
*/
/**
* Long content fade mixin
*
* Creates a fading overlay to signify that the content is longer
* than the space allows.
*/
/**
* Button states and focus styles
*/
/**
* Applies editor left position to the selector passed as argument
*/
/**
* Applies editor right position to the selector passed as argument
*/
/**
* Styles that are reused verbatim in a few places
*/
/**
* Allows users to opt-out of animations via OS-level preferences.
*/
/**
* Reset default styles for JavaScript UI based pages.
* This is a WP-admin agnostic reset
*/
/**
* Reset the WP Admin page styles for Gutenberg-like pages.
*/
.block-directory-downloadable-block-header__row {
display: flex;
flex-grow: 1; }
.block-directory-downloadable-block-header__row .block-editor-block-icon {
width: 36px;
height: 36px;
font-size: 36px;
background-color: #edeff0; }
.block-directory-downloadable-block-header__row img {
width: 36px;
height: 36px; }
.block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column {
display: flex;
flex-direction: column;
flex-grow: 1; }
.block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column .block-directory-downloadable-block-header__title {
font-weight: 600;
margin-right: 12px; }
.block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column .block-directory-block-ratings {
margin-right: 12px; }
.block-directory-downloadable-block-info__content {
font-size: 13px; }
.block-directory-downloadable-block-info__row {
display: flex;
justify-content: space-between;
color: #606a73;
margin-top: 8px; }
.block-directory-downloadable-block-info__row .block-directory-downloadable-block-info__column {
display: flex;
align-items: flex-start; }
.block-directory-downloadable-block-info__row .block-directory-downloadable-block-info__column .dashicon {
font-size: 16px;
margin-left: 4px; }
.block-directory-downloadable-block-author-info__content {
color: #606a73;
margin-bottom: 4px; }
.block-directory-downloadable-block-author-info__content-author {
margin-bottom: 4px;
font-size: 14px; }
.block-directory-downloadable-block-list-item {
width: 100%;
padding: 0;
margin: 0 0 12px;
display: flex;
flex-direction: row;
font-size: 13px;
color: #32373c;
align-items: flex-start;
justify-content: center;
background: transparent;
word-break: break-word;
border-radius: 4px;
border: 1px solid #e2e4e7;
transition: all 0.05s ease-in-out;
position: relative;
text-align: right;
overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
.block-directory-downloadable-block-list-item {
transition-duration: 0s; } }
.block-directory-downloadable-block-list-item__panel {
display: flex;
flex-grow: 1;
flex-direction: column; }
.block-directory-downloadable-block-list-item__header {
display: flex;
flex-direction: column;
padding: 12px 12px 0; }
.block-directory-downloadable-block-list-item__body {
display: flex;
flex-direction: column;
padding: 12px; }
.block-directory-downloadable-block-list-item__footer {
display: flex;
flex-direction: column;
padding: 12px;
background-color: #f3f4f5; }
.block-directory-downloadable-block-list-item__content {
color: #606a73; }
.block-directory-downloadable-blocks-list {
list-style: none;
padding: 2px 0;
overflow: hidden;
display: flex;
flex-wrap: wrap; }
.block-directory-downloadable-blocks-panel__description {
font-style: italic;
padding: 0;
margin-top: 0;
text-align: right;
color: #606a73; }
.block-directory-downloadable-blocks-panel__description.has-no-results {
font-style: normal;
padding: 0;
margin-top: 100px;
text-align: center;
color: #606a73; }
.block-directory-downloadable-blocks-panel__description.has-no-results .components-spinner {
float: inherit; }
.block-directory-block-ratings {
display: flex; }
.block-directory-block-ratings > div {
line-height: 1;
display: flex; }
.block-directory-block-ratings .dashicons {
font-size: ms(-2);
width: 1.1em; }
.block-directory-block-ratings .block-directory-block-ratings__rating-count {
color: #606a73;
font-size: ms(-2); }
.block-directory-block-ratings [class*="dashicons-star-"] {
color: #ffb900; }

View File

@ -0,0 +1 @@
.block-directory-downloadable-block-header__row{display:flex;flex-grow:1}.block-directory-downloadable-block-header__row .block-editor-block-icon{width:36px;height:36px;font-size:36px;background-color:#edeff0}.block-directory-downloadable-block-header__row img{width:36px;height:36px}.block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column{display:flex;flex-direction:column;flex-grow:1}.block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column .block-directory-downloadable-block-header__title{font-weight:600;margin-right:12px}.block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column .block-directory-block-ratings{margin-right:12px}.block-directory-downloadable-block-info__content{font-size:13px}.block-directory-downloadable-block-info__row{display:flex;justify-content:space-between;color:#606a73;margin-top:8px}.block-directory-downloadable-block-info__row .block-directory-downloadable-block-info__column{display:flex;align-items:flex-start}.block-directory-downloadable-block-info__row .block-directory-downloadable-block-info__column .dashicon{font-size:16px;margin-left:4px}.block-directory-downloadable-block-author-info__content{color:#606a73;margin-bottom:4px}.block-directory-downloadable-block-author-info__content-author{margin-bottom:4px;font-size:14px}.block-directory-downloadable-block-list-item{width:100%;padding:0;margin:0 0 12px;display:flex;flex-direction:row;font-size:13px;color:#32373c;align-items:flex-start;justify-content:center;background:transparent;word-break:break-word;border-radius:4px;border:1px solid #e2e4e7;transition:all .05s ease-in-out;position:relative;text-align:right;overflow:hidden}@media (prefers-reduced-motion:reduce){.block-directory-downloadable-block-list-item{transition-duration:0s}}.block-directory-downloadable-block-list-item__panel{display:flex;flex-grow:1;flex-direction:column}.block-directory-downloadable-block-list-item__header{display:flex;flex-direction:column;padding:12px 12px 0}.block-directory-downloadable-block-list-item__body{display:flex;flex-direction:column;padding:12px}.block-directory-downloadable-block-list-item__footer{display:flex;flex-direction:column;padding:12px;background-color:#f3f4f5}.block-directory-downloadable-block-list-item__content{color:#606a73}.block-directory-downloadable-blocks-list{list-style:none;padding:2px 0;overflow:hidden;display:flex;flex-wrap:wrap}.block-directory-downloadable-blocks-panel__description{font-style:italic;padding:0;margin-top:0;text-align:right;color:#606a73}.block-directory-downloadable-blocks-panel__description.has-no-results{font-style:normal;padding:0;margin-top:100px;text-align:center;color:#606a73}.block-directory-downloadable-blocks-panel__description.has-no-results .components-spinner{float:inherit}.block-directory-block-ratings{display:flex}.block-directory-block-ratings>div{line-height:1;display:flex}.block-directory-block-ratings .dashicons{font-size:ms(-2);width:1.1em}.block-directory-block-ratings .block-directory-block-ratings__rating-count{color:#606a73;font-size:ms(-2)}.block-directory-block-ratings [class*=dashicons-star-]{color:#ffb900}

View File

@ -0,0 +1,166 @@
/**
* Colors
*/
/**
* Breakpoints & Media Queries
*/
/**
* Often re-used variables
*/
/**
* Breakpoint mixins
*/
/**
* Long content fade mixin
*
* Creates a fading overlay to signify that the content is longer
* than the space allows.
*/
/**
* Button states and focus styles
*/
/**
* Applies editor left position to the selector passed as argument
*/
/**
* Applies editor right position to the selector passed as argument
*/
/**
* Styles that are reused verbatim in a few places
*/
/**
* Allows users to opt-out of animations via OS-level preferences.
*/
/**
* Reset default styles for JavaScript UI based pages.
* This is a WP-admin agnostic reset
*/
/**
* Reset the WP Admin page styles for Gutenberg-like pages.
*/
.block-directory-downloadable-block-header__row {
display: flex;
flex-grow: 1; }
.block-directory-downloadable-block-header__row .block-editor-block-icon {
width: 36px;
height: 36px;
font-size: 36px;
background-color: #edeff0; }
.block-directory-downloadable-block-header__row img {
width: 36px;
height: 36px; }
.block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column {
display: flex;
flex-direction: column;
flex-grow: 1; }
.block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column .block-directory-downloadable-block-header__title {
font-weight: 600;
margin-left: 12px; }
.block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column .block-directory-block-ratings {
margin-left: 12px; }
.block-directory-downloadable-block-info__content {
font-size: 13px; }
.block-directory-downloadable-block-info__row {
display: flex;
justify-content: space-between;
color: #606a73;
margin-top: 8px; }
.block-directory-downloadable-block-info__row .block-directory-downloadable-block-info__column {
display: flex;
align-items: flex-start; }
.block-directory-downloadable-block-info__row .block-directory-downloadable-block-info__column .dashicon {
font-size: 16px;
margin-right: 4px; }
.block-directory-downloadable-block-author-info__content {
color: #606a73;
margin-bottom: 4px; }
.block-directory-downloadable-block-author-info__content-author {
margin-bottom: 4px;
font-size: 14px; }
.block-directory-downloadable-block-list-item {
width: 100%;
padding: 0;
margin: 0 0 12px;
display: flex;
flex-direction: row;
font-size: 13px;
color: #32373c;
align-items: flex-start;
justify-content: center;
background: transparent;
word-break: break-word;
border-radius: 4px;
border: 1px solid #e2e4e7;
transition: all 0.05s ease-in-out;
position: relative;
text-align: left;
overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
.block-directory-downloadable-block-list-item {
transition-duration: 0s; } }
.block-directory-downloadable-block-list-item__panel {
display: flex;
flex-grow: 1;
flex-direction: column; }
.block-directory-downloadable-block-list-item__header {
display: flex;
flex-direction: column;
padding: 12px 12px 0; }
.block-directory-downloadable-block-list-item__body {
display: flex;
flex-direction: column;
padding: 12px; }
.block-directory-downloadable-block-list-item__footer {
display: flex;
flex-direction: column;
padding: 12px;
background-color: #f3f4f5; }
.block-directory-downloadable-block-list-item__content {
color: #606a73; }
.block-directory-downloadable-blocks-list {
list-style: none;
padding: 2px 0;
overflow: hidden;
display: flex;
flex-wrap: wrap; }
.block-directory-downloadable-blocks-panel__description {
font-style: italic;
padding: 0;
margin-top: 0;
text-align: left;
color: #606a73; }
.block-directory-downloadable-blocks-panel__description.has-no-results {
font-style: normal;
padding: 0;
margin-top: 100px;
text-align: center;
color: #606a73; }
.block-directory-downloadable-blocks-panel__description.has-no-results .components-spinner {
float: inherit; }
.block-directory-block-ratings {
display: flex; }
.block-directory-block-ratings > div {
line-height: 1;
display: flex; }
.block-directory-block-ratings .dashicons {
font-size: ms(-2);
width: 1.1em; }
.block-directory-block-ratings .block-directory-block-ratings__rating-count {
color: #606a73;
font-size: ms(-2); }
.block-directory-block-ratings [class*="dashicons-star-"] {
color: #ffb900; }

View File

@ -0,0 +1 @@
.block-directory-downloadable-block-header__row{display:flex;flex-grow:1}.block-directory-downloadable-block-header__row .block-editor-block-icon{width:36px;height:36px;font-size:36px;background-color:#edeff0}.block-directory-downloadable-block-header__row img{width:36px;height:36px}.block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column{display:flex;flex-direction:column;flex-grow:1}.block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column .block-directory-downloadable-block-header__title{font-weight:600;margin-left:12px}.block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column .block-directory-block-ratings{margin-left:12px}.block-directory-downloadable-block-info__content{font-size:13px}.block-directory-downloadable-block-info__row{display:flex;justify-content:space-between;color:#606a73;margin-top:8px}.block-directory-downloadable-block-info__row .block-directory-downloadable-block-info__column{display:flex;align-items:flex-start}.block-directory-downloadable-block-info__row .block-directory-downloadable-block-info__column .dashicon{font-size:16px;margin-right:4px}.block-directory-downloadable-block-author-info__content{color:#606a73;margin-bottom:4px}.block-directory-downloadable-block-author-info__content-author{margin-bottom:4px;font-size:14px}.block-directory-downloadable-block-list-item{width:100%;padding:0;margin:0 0 12px;display:flex;flex-direction:row;font-size:13px;color:#32373c;align-items:flex-start;justify-content:center;background:transparent;word-break:break-word;border-radius:4px;border:1px solid #e2e4e7;transition:all .05s ease-in-out;position:relative;text-align:left;overflow:hidden}@media (prefers-reduced-motion:reduce){.block-directory-downloadable-block-list-item{transition-duration:0s}}.block-directory-downloadable-block-list-item__panel{display:flex;flex-grow:1;flex-direction:column}.block-directory-downloadable-block-list-item__header{display:flex;flex-direction:column;padding:12px 12px 0}.block-directory-downloadable-block-list-item__body{display:flex;flex-direction:column;padding:12px}.block-directory-downloadable-block-list-item__footer{display:flex;flex-direction:column;padding:12px;background-color:#f3f4f5}.block-directory-downloadable-block-list-item__content{color:#606a73}.block-directory-downloadable-blocks-list{list-style:none;padding:2px 0;overflow:hidden;display:flex;flex-wrap:wrap}.block-directory-downloadable-blocks-panel__description{font-style:italic;padding:0;margin-top:0;text-align:left;color:#606a73}.block-directory-downloadable-blocks-panel__description.has-no-results{font-style:normal;padding:0;margin-top:100px;text-align:center;color:#606a73}.block-directory-downloadable-blocks-panel__description.has-no-results .components-spinner{float:inherit}.block-directory-block-ratings{display:flex}.block-directory-block-ratings>div{line-height:1;display:flex}.block-directory-block-ratings .dashicons{font-size:ms(-2);width:1.1em}.block-directory-block-ratings .block-directory-block-ratings__rating-count{color:#606a73;font-size:ms(-2)}.block-directory-block-ratings [class*=dashicons-star-]{color:#ffb900}

View File

@ -82,26 +82,26 @@ this["wp"] = this["wp"] || {}; this["wp"]["a11y"] =
/******/ /******/
/******/ /******/
/******/ // Load entry module and return exports /******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 365); /******/ return __webpack_require__(__webpack_require__.s = 367);
/******/ }) /******/ })
/************************************************************************/ /************************************************************************/
/******/ ({ /******/ ({
/***/ 217: /***/ 216:
/***/ (function(module, exports) { /***/ (function(module, exports) {
(function() { module.exports = this["wp"]["domReady"]; }()); (function() { module.exports = this["wp"]["domReady"]; }());
/***/ }), /***/ }),
/***/ 365: /***/ 367:
/***/ (function(module, __webpack_exports__, __webpack_require__) { /***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict"; "use strict";
__webpack_require__.r(__webpack_exports__); __webpack_require__.r(__webpack_exports__);
// EXTERNAL MODULE: external {"this":["wp","domReady"]} // EXTERNAL MODULE: external {"this":["wp","domReady"]}
var external_this_wp_domReady_ = __webpack_require__(217); var external_this_wp_domReady_ = __webpack_require__(216);
var external_this_wp_domReady_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_domReady_); var external_this_wp_domReady_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_domReady_);
// CONCATENATED MODULE: ./node_modules/@wordpress/a11y/build-module/addContainer.js // CONCATENATED MODULE: ./node_modules/@wordpress/a11y/build-module/addContainer.js

View File

@ -1,2 +1,2 @@
/*! This file is auto-generated */ /*! This file is auto-generated */
this.wp=this.wp||{},this.wp.a11y=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=365)}({217:function(e,t){!function(){e.exports=this.wp.domReady}()},365:function(e,t,n){"use strict";n.r(t);var r=n(217),o=n.n(r),i=function(e){e=e||"polite";var t=document.createElement("div");return t.id="a11y-speak-"+e,t.className="a11y-speak-region",t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true"),document.querySelector("body").appendChild(t),t},a=function(){for(var e=document.querySelectorAll(".a11y-speak-region"),t=0;t<e.length;t++)e[t].textContent=""},u="",l=function(e){return e=e.replace(/<[^<>]+>/g," "),u===e&&(e+=" "),u=e,e};n.d(t,"setup",(function(){return p})),n.d(t,"speak",(function(){return c}));var p=function(){var e=document.getElementById("a11y-speak-polite"),t=document.getElementById("a11y-speak-assertive");null===e&&(e=i("polite")),null===t&&(t=i("assertive"))};o()(p);var c=function(e,t){a(),e=l(e);var n=document.getElementById("a11y-speak-polite"),r=document.getElementById("a11y-speak-assertive");r&&"assertive"===t?r.textContent=e:n&&(n.textContent=e)}}}); this.wp=this.wp||{},this.wp.a11y=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=367)}({216:function(e,t){!function(){e.exports=this.wp.domReady}()},367:function(e,t,n){"use strict";n.r(t);var r=n(216),o=n.n(r),i=function(e){e=e||"polite";var t=document.createElement("div");return t.id="a11y-speak-"+e,t.className="a11y-speak-region",t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true"),document.querySelector("body").appendChild(t),t},a=function(){for(var e=document.querySelectorAll(".a11y-speak-region"),t=0;t<e.length;t++)e[t].textContent=""},u="",l=function(e){return e=e.replace(/<[^<>]+>/g," "),u===e&&(e+=" "),u=e,e};n.d(t,"setup",(function(){return p})),n.d(t,"speak",(function(){return c}));var p=function(){var e=document.getElementById("a11y-speak-polite"),t=document.getElementById("a11y-speak-assertive");null===e&&(e=i("polite")),null===t&&(t=i("assertive"))};o()(p);var c=function(e,t){a(),e=l(e);var n=document.getElementById("a11y-speak-polite"),r=document.getElementById("a11y-speak-assertive");r&&"assertive"===t?r.textContent=e:n&&(n.textContent=e)}}});

View File

@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["annotations"] =
/******/ /******/
/******/ /******/
/******/ // Load entry module and return exports /******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 355); /******/ return __webpack_require__(__webpack_require__.s = 357);
/******/ }) /******/ })
/************************************************************************/ /************************************************************************/
/******/ ({ /******/ ({
@ -225,7 +225,7 @@ function _iterableToArray(iter) {
/***/ }), /***/ }),
/***/ 355: /***/ 357:
/***/ (function(module, __webpack_exports__, __webpack_require__) { /***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict"; "use strict";
@ -255,8 +255,8 @@ var toConsumableArray = __webpack_require__(17);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js
var objectSpread = __webpack_require__(7); var objectSpread = __webpack_require__(7);
// EXTERNAL MODULE: external "lodash" // EXTERNAL MODULE: external {"this":"lodash"}
var external_lodash_ = __webpack_require__(2); var external_this_lodash_ = __webpack_require__(2);
// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/build-module/store/reducer.js // CONCATENATED MODULE: ./node_modules/@wordpress/annotations/build-module/store/reducer.js
@ -290,7 +290,7 @@ function filterWithReference(collection, predicate) {
function isValidAnnotationRange(annotation) { function isValidAnnotationRange(annotation) {
return Object(external_lodash_["isNumber"])(annotation.start) && Object(external_lodash_["isNumber"])(annotation.end) && annotation.start <= annotation.end; return Object(external_this_lodash_["isNumber"])(annotation.start) && Object(external_this_lodash_["isNumber"])(annotation.end) && annotation.start <= annotation.end;
} }
/** /**
* Reducer managing annotations. * Reducer managing annotations.
@ -322,18 +322,18 @@ function reducer_annotations() {
return state; return state;
} }
var previousAnnotationsForBlock = Object(external_lodash_["get"])(state, blockClientId, []); var previousAnnotationsForBlock = Object(external_this_lodash_["get"])(state, blockClientId, []);
return Object(objectSpread["a" /* default */])({}, state, Object(defineProperty["a" /* default */])({}, blockClientId, [].concat(Object(toConsumableArray["a" /* default */])(previousAnnotationsForBlock), [newAnnotation]))); return Object(objectSpread["a" /* default */])({}, state, Object(defineProperty["a" /* default */])({}, blockClientId, [].concat(Object(toConsumableArray["a" /* default */])(previousAnnotationsForBlock), [newAnnotation])));
case 'ANNOTATION_REMOVE': case 'ANNOTATION_REMOVE':
return Object(external_lodash_["mapValues"])(state, function (annotationsForBlock) { return Object(external_this_lodash_["mapValues"])(state, function (annotationsForBlock) {
return filterWithReference(annotationsForBlock, function (annotation) { return filterWithReference(annotationsForBlock, function (annotation) {
return annotation.id !== action.annotationId; return annotation.id !== action.annotationId;
}); });
}); });
case 'ANNOTATION_UPDATE_RANGE': case 'ANNOTATION_UPDATE_RANGE':
return Object(external_lodash_["mapValues"])(state, function (annotationsForBlock) { return Object(external_this_lodash_["mapValues"])(state, function (annotationsForBlock) {
var hasChangedRange = false; var hasChangedRange = false;
var newAnnotations = annotationsForBlock.map(function (annotation) { var newAnnotations = annotationsForBlock.map(function (annotation) {
if (annotation.id === action.annotationId) { if (annotation.id === action.annotationId) {
@ -352,7 +352,7 @@ function reducer_annotations() {
}); });
case 'ANNOTATION_REMOVE_SOURCE': case 'ANNOTATION_REMOVE_SOURCE':
return Object(external_lodash_["mapValues"])(state, function (annotationsForBlock) { return Object(external_this_lodash_["mapValues"])(state, function (annotationsForBlock) {
return filterWithReference(annotationsForBlock, function (annotation) { return filterWithReference(annotationsForBlock, function (annotation) {
return annotation.source !== action.source; return annotation.source !== action.source;
}); });
@ -399,14 +399,14 @@ var EMPTY_ARRAY = [];
*/ */
var __experimentalGetAnnotationsForBlock = Object(rememo["a" /* default */])(function (state, blockClientId) { var __experimentalGetAnnotationsForBlock = Object(rememo["a" /* default */])(function (state, blockClientId) {
return Object(external_lodash_["get"])(state, blockClientId, []).filter(function (annotation) { return Object(external_this_lodash_["get"])(state, blockClientId, []).filter(function (annotation) {
return annotation.selector === 'block'; return annotation.selector === 'block';
}); });
}, function (state, blockClientId) { }, function (state, blockClientId) {
return [Object(external_lodash_["get"])(state, blockClientId, EMPTY_ARRAY)]; return [Object(external_this_lodash_["get"])(state, blockClientId, EMPTY_ARRAY)];
}); });
var selectors_experimentalGetAllAnnotationsForBlock = function __experimentalGetAllAnnotationsForBlock(state, blockClientId) { var selectors_experimentalGetAllAnnotationsForBlock = function __experimentalGetAllAnnotationsForBlock(state, blockClientId) {
return Object(external_lodash_["get"])(state, blockClientId, EMPTY_ARRAY); return Object(external_this_lodash_["get"])(state, blockClientId, EMPTY_ARRAY);
}; };
/** /**
* Returns the annotations that apply to the given RichText instance. * Returns the annotations that apply to the given RichText instance.
@ -422,7 +422,7 @@ var selectors_experimentalGetAllAnnotationsForBlock = function __experimentalGet
*/ */
var __experimentalGetAnnotationsForRichText = Object(rememo["a" /* default */])(function (state, blockClientId, richTextIdentifier) { var __experimentalGetAnnotationsForRichText = Object(rememo["a" /* default */])(function (state, blockClientId, richTextIdentifier) {
return Object(external_lodash_["get"])(state, blockClientId, []).filter(function (annotation) { return Object(external_this_lodash_["get"])(state, blockClientId, []).filter(function (annotation) {
return annotation.selector === 'range' && richTextIdentifier === annotation.richTextIdentifier; return annotation.selector === 'range' && richTextIdentifier === annotation.richTextIdentifier;
}).map(function (annotation) { }).map(function (annotation) {
var range = annotation.range, var range = annotation.range,
@ -431,7 +431,7 @@ var __experimentalGetAnnotationsForRichText = Object(rememo["a" /* default */])(
return Object(objectSpread["a" /* default */])({}, range, other); return Object(objectSpread["a" /* default */])({}, range, other);
}); });
}, function (state, blockClientId) { }, function (state, blockClientId) {
return [Object(external_lodash_["get"])(state, blockClientId, EMPTY_ARRAY)]; return [Object(external_this_lodash_["get"])(state, blockClientId, EMPTY_ARRAY)];
}); });
/** /**
* Returns all annotations in the editor state. * Returns all annotations in the editor state.
@ -441,13 +441,13 @@ var __experimentalGetAnnotationsForRichText = Object(rememo["a" /* default */])(
*/ */
function __experimentalGetAnnotations(state) { function __experimentalGetAnnotations(state) {
return Object(external_lodash_["flatMap"])(state, function (annotations) { return Object(external_this_lodash_["flatMap"])(state, function (annotations) {
return annotations; return annotations;
}); });
} }
// EXTERNAL MODULE: ./node_modules/uuid/v4.js // EXTERNAL MODULE: ./node_modules/uuid/v4.js
var v4 = __webpack_require__(67); var v4 = __webpack_require__(66);
var v4_default = /*#__PURE__*/__webpack_require__.n(v4); var v4_default = /*#__PURE__*/__webpack_require__.n(v4);
// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/build-module/store/actions.js // CONCATENATED MODULE: ./node_modules/@wordpress/annotations/build-module/store/actions.js
@ -1104,11 +1104,11 @@ function isShallowEqual( a, b, fromIndex ) {
/***/ }), /***/ }),
/***/ 67: /***/ 66:
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
var rng = __webpack_require__(85); var rng = __webpack_require__(84);
var bytesToUuid = __webpack_require__(86); var bytesToUuid = __webpack_require__(85);
function v4(options, buf, offset) { function v4(options, buf, offset) {
var i = buf && offset || 0; var i = buf && offset || 0;
@ -1168,7 +1168,7 @@ function _objectSpread(target) {
/***/ }), /***/ }),
/***/ 85: /***/ 84:
/***/ (function(module, exports) { /***/ (function(module, exports) {
// Unique ID creation requires a high quality random # generator. In the // Unique ID creation requires a high quality random # generator. In the
@ -1209,7 +1209,7 @@ if (getRandomValues) {
/***/ }), /***/ }),
/***/ 86: /***/ 85:
/***/ (function(module, exports) { /***/ (function(module, exports) {
/** /**

File diff suppressed because one or more lines are too long

View File

@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["apiFetch"] =
/******/ /******/
/******/ /******/
/******/ // Load entry module and return exports /******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 353); /******/ return __webpack_require__(__webpack_require__.s = 354);
/******/ }) /******/ })
/************************************************************************/ /************************************************************************/
/******/ ({ /******/ ({
@ -117,10 +117,9 @@ function _defineProperty(obj, key, value) {
/***/ }), /***/ }),
/***/ 20: /***/ 20:
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports) {
module.exports = __webpack_require__(47);
(function() { module.exports = this["regeneratorRuntime"]; }());
/***/ }), /***/ }),
@ -175,7 +174,7 @@ function _objectWithoutProperties(source, excluded) {
/***/ }), /***/ }),
/***/ 353: /***/ 354:
/***/ (function(module, __webpack_exports__, __webpack_require__) { /***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict"; "use strict";
@ -330,9 +329,9 @@ var createPreloadingMiddleware = function createPreloadingMiddleware(preloadedDa
/* harmony default export */ var preloading = (createPreloadingMiddleware); /* harmony default export */ var preloading = (createPreloadingMiddleware);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js // EXTERNAL MODULE: external {"this":"regeneratorRuntime"}
var regenerator = __webpack_require__(20); var external_this_regeneratorRuntime_ = __webpack_require__(20);
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator); var external_this_regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(external_this_regeneratorRuntime_);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(43); var asyncToGenerator = __webpack_require__(43);
@ -399,9 +398,9 @@ var fetchAllMiddleware =
function () { function () {
var _ref2 = Object(asyncToGenerator["a" /* default */])( var _ref2 = Object(asyncToGenerator["a" /* default */])(
/*#__PURE__*/ /*#__PURE__*/
regenerator_default.a.mark(function _callee(options, next) { external_this_regeneratorRuntime_default.a.mark(function _callee(options, next) {
var response, results, nextPage, mergedResults, nextResponse, nextResults; var response, results, nextPage, mergedResults, nextResponse, nextResults;
return regenerator_default.a.wrap(function _callee$(_context) { return external_this_regeneratorRuntime_default.a.wrap(function _callee$(_context) {
while (1) { while (1) {
switch (_context.prev = _context.next) { switch (_context.prev = _context.next) {
case 0: case 0:
@ -915,739 +914,6 @@ function _asyncToGenerator(fn) {
}; };
} }
/***/ }),
/***/ 47:
/***/ (function(module, exports, __webpack_require__) {
/**
* Copyright (c) 2014-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var runtime = (function (exports) {
"use strict";
var Op = Object.prototype;
var hasOwn = Op.hasOwnProperty;
var undefined; // More compressible than void 0.
var $Symbol = typeof Symbol === "function" ? Symbol : {};
var iteratorSymbol = $Symbol.iterator || "@@iterator";
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
function wrap(innerFn, outerFn, self, tryLocsList) {
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
var generator = Object.create(protoGenerator.prototype);
var context = new Context(tryLocsList || []);
// The ._invoke method unifies the implementations of the .next,
// .throw, and .return methods.
generator._invoke = makeInvokeMethod(innerFn, self, context);
return generator;
}
exports.wrap = wrap;
// Try/catch helper to minimize deoptimizations. Returns a completion
// record like context.tryEntries[i].completion. This interface could
// have been (and was previously) designed to take a closure to be
// invoked without arguments, but in all the cases we care about we
// already have an existing method we want to call, so there's no need
// to create a new function object. We can even get away with assuming
// the method takes exactly one argument, since that happens to be true
// in every case, so we don't have to touch the arguments object. The
// only additional allocation required is the completion record, which
// has a stable shape and so hopefully should be cheap to allocate.
function tryCatch(fn, obj, arg) {
try {
return { type: "normal", arg: fn.call(obj, arg) };
} catch (err) {
return { type: "throw", arg: err };
}
}
var GenStateSuspendedStart = "suspendedStart";
var GenStateSuspendedYield = "suspendedYield";
var GenStateExecuting = "executing";
var GenStateCompleted = "completed";
// Returning this object from the innerFn has the same effect as
// breaking out of the dispatch switch statement.
var ContinueSentinel = {};
// Dummy constructor functions that we use as the .constructor and
// .constructor.prototype properties for functions that return Generator
// objects. For full spec compliance, you may wish to configure your
// minifier not to mangle the names of these two functions.
function Generator() {}
function GeneratorFunction() {}
function GeneratorFunctionPrototype() {}
// This is a polyfill for %IteratorPrototype% for environments that
// don't natively support it.
var IteratorPrototype = {};
IteratorPrototype[iteratorSymbol] = function () {
return this;
};
var getProto = Object.getPrototypeOf;
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
if (NativeIteratorPrototype &&
NativeIteratorPrototype !== Op &&
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
// This environment has a native %IteratorPrototype%; use it instead
// of the polyfill.
IteratorPrototype = NativeIteratorPrototype;
}
var Gp = GeneratorFunctionPrototype.prototype =
Generator.prototype = Object.create(IteratorPrototype);
GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
GeneratorFunctionPrototype.constructor = GeneratorFunction;
GeneratorFunctionPrototype[toStringTagSymbol] =
GeneratorFunction.displayName = "GeneratorFunction";
// Helper for defining the .next, .throw, and .return methods of the
// Iterator interface in terms of a single ._invoke method.
function defineIteratorMethods(prototype) {
["next", "throw", "return"].forEach(function(method) {
prototype[method] = function(arg) {
return this._invoke(method, arg);
};
});
}
exports.isGeneratorFunction = function(genFun) {
var ctor = typeof genFun === "function" && genFun.constructor;
return ctor
? ctor === GeneratorFunction ||
// For the native GeneratorFunction constructor, the best we can
// do is to check its .name property.
(ctor.displayName || ctor.name) === "GeneratorFunction"
: false;
};
exports.mark = function(genFun) {
if (Object.setPrototypeOf) {
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
} else {
genFun.__proto__ = GeneratorFunctionPrototype;
if (!(toStringTagSymbol in genFun)) {
genFun[toStringTagSymbol] = "GeneratorFunction";
}
}
genFun.prototype = Object.create(Gp);
return genFun;
};
// Within the body of any async function, `await x` is transformed to
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
// `hasOwn.call(value, "__await")` to determine if the yielded value is
// meant to be awaited.
exports.awrap = function(arg) {
return { __await: arg };
};
function AsyncIterator(generator) {
function invoke(method, arg, resolve, reject) {
var record = tryCatch(generator[method], generator, arg);
if (record.type === "throw") {
reject(record.arg);
} else {
var result = record.arg;
var value = result.value;
if (value &&
typeof value === "object" &&
hasOwn.call(value, "__await")) {
return Promise.resolve(value.__await).then(function(value) {
invoke("next", value, resolve, reject);
}, function(err) {
invoke("throw", err, resolve, reject);
});
}
return Promise.resolve(value).then(function(unwrapped) {
// When a yielded Promise is resolved, its final value becomes
// the .value of the Promise<{value,done}> result for the
// current iteration.
result.value = unwrapped;
resolve(result);
}, function(error) {
// If a rejected Promise was yielded, throw the rejection back
// into the async generator function so it can be handled there.
return invoke("throw", error, resolve, reject);
});
}
}
var previousPromise;
function enqueue(method, arg) {
function callInvokeWithMethodAndArg() {
return new Promise(function(resolve, reject) {
invoke(method, arg, resolve, reject);
});
}
return previousPromise =
// If enqueue has been called before, then we want to wait until
// all previous Promises have been resolved before calling invoke,
// so that results are always delivered in the correct order. If
// enqueue has not been called before, then it is important to
// call invoke immediately, without waiting on a callback to fire,
// so that the async generator function has the opportunity to do
// any necessary setup in a predictable way. This predictability
// is why the Promise constructor synchronously invokes its
// executor callback, and why async functions synchronously
// execute code before the first await. Since we implement simple
// async functions in terms of async generators, it is especially
// important to get this right, even though it requires care.
previousPromise ? previousPromise.then(
callInvokeWithMethodAndArg,
// Avoid propagating failures to Promises returned by later
// invocations of the iterator.
callInvokeWithMethodAndArg
) : callInvokeWithMethodAndArg();
}
// Define the unified helper method that is used to implement .next,
// .throw, and .return (see defineIteratorMethods).
this._invoke = enqueue;
}
defineIteratorMethods(AsyncIterator.prototype);
AsyncIterator.prototype[asyncIteratorSymbol] = function () {
return this;
};
exports.AsyncIterator = AsyncIterator;
// Note that simple async functions are implemented on top of
// AsyncIterator objects; they just return a Promise for the value of
// the final result produced by the iterator.
exports.async = function(innerFn, outerFn, self, tryLocsList) {
var iter = new AsyncIterator(
wrap(innerFn, outerFn, self, tryLocsList)
);
return exports.isGeneratorFunction(outerFn)
? iter // If outerFn is a generator, return the full iterator.
: iter.next().then(function(result) {
return result.done ? result.value : iter.next();
});
};
function makeInvokeMethod(innerFn, self, context) {
var state = GenStateSuspendedStart;
return function invoke(method, arg) {
if (state === GenStateExecuting) {
throw new Error("Generator is already running");
}
if (state === GenStateCompleted) {
if (method === "throw") {
throw arg;
}
// Be forgiving, per 25.3.3.3.3 of the spec:
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
return doneResult();
}
context.method = method;
context.arg = arg;
while (true) {
var delegate = context.delegate;
if (delegate) {
var delegateResult = maybeInvokeDelegate(delegate, context);
if (delegateResult) {
if (delegateResult === ContinueSentinel) continue;
return delegateResult;
}
}
if (context.method === "next") {
// Setting context._sent for legacy support of Babel's
// function.sent implementation.
context.sent = context._sent = context.arg;
} else if (context.method === "throw") {
if (state === GenStateSuspendedStart) {
state = GenStateCompleted;
throw context.arg;
}
context.dispatchException(context.arg);
} else if (context.method === "return") {
context.abrupt("return", context.arg);
}
state = GenStateExecuting;
var record = tryCatch(innerFn, self, context);
if (record.type === "normal") {
// If an exception is thrown from innerFn, we leave state ===
// GenStateExecuting and loop back for another invocation.
state = context.done
? GenStateCompleted
: GenStateSuspendedYield;
if (record.arg === ContinueSentinel) {
continue;
}
return {
value: record.arg,
done: context.done
};
} else if (record.type === "throw") {
state = GenStateCompleted;
// Dispatch the exception by looping back around to the
// context.dispatchException(context.arg) call above.
context.method = "throw";
context.arg = record.arg;
}
}
};
}
// Call delegate.iterator[context.method](context.arg) and handle the
// result, either by returning a { value, done } result from the
// delegate iterator, or by modifying context.method and context.arg,
// setting context.delegate to null, and returning the ContinueSentinel.
function maybeInvokeDelegate(delegate, context) {
var method = delegate.iterator[context.method];
if (method === undefined) {
// A .throw or .return when the delegate iterator has no .throw
// method always terminates the yield* loop.
context.delegate = null;
if (context.method === "throw") {
// Note: ["return"] must be used for ES3 parsing compatibility.
if (delegate.iterator["return"]) {
// If the delegate iterator has a return method, give it a
// chance to clean up.
context.method = "return";
context.arg = undefined;
maybeInvokeDelegate(delegate, context);
if (context.method === "throw") {
// If maybeInvokeDelegate(context) changed context.method from
// "return" to "throw", let that override the TypeError below.
return ContinueSentinel;
}
}
context.method = "throw";
context.arg = new TypeError(
"The iterator does not provide a 'throw' method");
}
return ContinueSentinel;
}
var record = tryCatch(method, delegate.iterator, context.arg);
if (record.type === "throw") {
context.method = "throw";
context.arg = record.arg;
context.delegate = null;
return ContinueSentinel;
}
var info = record.arg;
if (! info) {
context.method = "throw";
context.arg = new TypeError("iterator result is not an object");
context.delegate = null;
return ContinueSentinel;
}
if (info.done) {
// Assign the result of the finished delegate to the temporary
// variable specified by delegate.resultName (see delegateYield).
context[delegate.resultName] = info.value;
// Resume execution at the desired location (see delegateYield).
context.next = delegate.nextLoc;
// If context.method was "throw" but the delegate handled the
// exception, let the outer generator proceed normally. If
// context.method was "next", forget context.arg since it has been
// "consumed" by the delegate iterator. If context.method was
// "return", allow the original .return call to continue in the
// outer generator.
if (context.method !== "return") {
context.method = "next";
context.arg = undefined;
}
} else {
// Re-yield the result returned by the delegate method.
return info;
}
// The delegate iterator is finished, so forget it and continue with
// the outer generator.
context.delegate = null;
return ContinueSentinel;
}
// Define Generator.prototype.{next,throw,return} in terms of the
// unified ._invoke helper method.
defineIteratorMethods(Gp);
Gp[toStringTagSymbol] = "Generator";
// A Generator should always return itself as the iterator object when the
// @@iterator function is called on it. Some browsers' implementations of the
// iterator prototype chain incorrectly implement this, causing the Generator
// object to not be returned from this call. This ensures that doesn't happen.
// See https://github.com/facebook/regenerator/issues/274 for more details.
Gp[iteratorSymbol] = function() {
return this;
};
Gp.toString = function() {
return "[object Generator]";
};
function pushTryEntry(locs) {
var entry = { tryLoc: locs[0] };
if (1 in locs) {
entry.catchLoc = locs[1];
}
if (2 in locs) {
entry.finallyLoc = locs[2];
entry.afterLoc = locs[3];
}
this.tryEntries.push(entry);
}
function resetTryEntry(entry) {
var record = entry.completion || {};
record.type = "normal";
delete record.arg;
entry.completion = record;
}
function Context(tryLocsList) {
// The root entry object (effectively a try statement without a catch
// or a finally block) gives us a place to store values thrown from
// locations where there is no enclosing try statement.
this.tryEntries = [{ tryLoc: "root" }];
tryLocsList.forEach(pushTryEntry, this);
this.reset(true);
}
exports.keys = function(object) {
var keys = [];
for (var key in object) {
keys.push(key);
}
keys.reverse();
// Rather than returning an object with a next method, we keep
// things simple and return the next function itself.
return function next() {
while (keys.length) {
var key = keys.pop();
if (key in object) {
next.value = key;
next.done = false;
return next;
}
}
// To avoid creating an additional object, we just hang the .value
// and .done properties off the next function object itself. This
// also ensures that the minifier will not anonymize the function.
next.done = true;
return next;
};
};
function values(iterable) {
if (iterable) {
var iteratorMethod = iterable[iteratorSymbol];
if (iteratorMethod) {
return iteratorMethod.call(iterable);
}
if (typeof iterable.next === "function") {
return iterable;
}
if (!isNaN(iterable.length)) {
var i = -1, next = function next() {
while (++i < iterable.length) {
if (hasOwn.call(iterable, i)) {
next.value = iterable[i];
next.done = false;
return next;
}
}
next.value = undefined;
next.done = true;
return next;
};
return next.next = next;
}
}
// Return an iterator with no values.
return { next: doneResult };
}
exports.values = values;
function doneResult() {
return { value: undefined, done: true };
}
Context.prototype = {
constructor: Context,
reset: function(skipTempReset) {
this.prev = 0;
this.next = 0;
// Resetting context._sent for legacy support of Babel's
// function.sent implementation.
this.sent = this._sent = undefined;
this.done = false;
this.delegate = null;
this.method = "next";
this.arg = undefined;
this.tryEntries.forEach(resetTryEntry);
if (!skipTempReset) {
for (var name in this) {
// Not sure about the optimal order of these conditions:
if (name.charAt(0) === "t" &&
hasOwn.call(this, name) &&
!isNaN(+name.slice(1))) {
this[name] = undefined;
}
}
}
},
stop: function() {
this.done = true;
var rootEntry = this.tryEntries[0];
var rootRecord = rootEntry.completion;
if (rootRecord.type === "throw") {
throw rootRecord.arg;
}
return this.rval;
},
dispatchException: function(exception) {
if (this.done) {
throw exception;
}
var context = this;
function handle(loc, caught) {
record.type = "throw";
record.arg = exception;
context.next = loc;
if (caught) {
// If the dispatched exception was caught by a catch block,
// then let that catch block handle the exception normally.
context.method = "next";
context.arg = undefined;
}
return !! caught;
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i];
var record = entry.completion;
if (entry.tryLoc === "root") {
// Exception thrown outside of any try block that could handle
// it, so set the completion value of the entire function to
// throw the exception.
return handle("end");
}
if (entry.tryLoc <= this.prev) {
var hasCatch = hasOwn.call(entry, "catchLoc");
var hasFinally = hasOwn.call(entry, "finallyLoc");
if (hasCatch && hasFinally) {
if (this.prev < entry.catchLoc) {
return handle(entry.catchLoc, true);
} else if (this.prev < entry.finallyLoc) {
return handle(entry.finallyLoc);
}
} else if (hasCatch) {
if (this.prev < entry.catchLoc) {
return handle(entry.catchLoc, true);
}
} else if (hasFinally) {
if (this.prev < entry.finallyLoc) {
return handle(entry.finallyLoc);
}
} else {
throw new Error("try statement without catch or finally");
}
}
}
},
abrupt: function(type, arg) {
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i];
if (entry.tryLoc <= this.prev &&
hasOwn.call(entry, "finallyLoc") &&
this.prev < entry.finallyLoc) {
var finallyEntry = entry;
break;
}
}
if (finallyEntry &&
(type === "break" ||
type === "continue") &&
finallyEntry.tryLoc <= arg &&
arg <= finallyEntry.finallyLoc) {
// Ignore the finally entry if control is not jumping to a
// location outside the try/catch block.
finallyEntry = null;
}
var record = finallyEntry ? finallyEntry.completion : {};
record.type = type;
record.arg = arg;
if (finallyEntry) {
this.method = "next";
this.next = finallyEntry.finallyLoc;
return ContinueSentinel;
}
return this.complete(record);
},
complete: function(record, afterLoc) {
if (record.type === "throw") {
throw record.arg;
}
if (record.type === "break" ||
record.type === "continue") {
this.next = record.arg;
} else if (record.type === "return") {
this.rval = this.arg = record.arg;
this.method = "return";
this.next = "end";
} else if (record.type === "normal" && afterLoc) {
this.next = afterLoc;
}
return ContinueSentinel;
},
finish: function(finallyLoc) {
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i];
if (entry.finallyLoc === finallyLoc) {
this.complete(entry.completion, entry.afterLoc);
resetTryEntry(entry);
return ContinueSentinel;
}
}
},
"catch": function(tryLoc) {
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i];
if (entry.tryLoc === tryLoc) {
var record = entry.completion;
if (record.type === "throw") {
var thrown = record.arg;
resetTryEntry(entry);
}
return thrown;
}
}
// The context.catch method must only be called with a location
// argument that corresponds to a known catch block.
throw new Error("illegal catch attempt");
},
delegateYield: function(iterable, resultName, nextLoc) {
this.delegate = {
iterator: values(iterable),
resultName: resultName,
nextLoc: nextLoc
};
if (this.method === "next") {
// Deliberately forget the last sent value so that we don't
// accidentally pass it on to the delegate.
this.arg = undefined;
}
return ContinueSentinel;
}
};
// Regardless of whether this script is executing as a CommonJS module
// or not, return the runtime object so that we can declare the variable
// regeneratorRuntime in the outer scope, which allows this module to be
// injected easily by `bin/regenerator --include-runtime script.js`.
return exports;
}(
// If this script is executing as a CommonJS module, use module.exports
// as the regeneratorRuntime namespace. Otherwise create a new empty
// object. Either way, the resulting object will be used to initialize
// the regeneratorRuntime variable at the top of this file.
true ? module.exports : undefined
));
try {
regeneratorRuntime = runtime;
} catch (accidentalStrictMode) {
// This module should not be running in strict mode, so the above
// assignment should always work unless something is misconfigured. Just
// in case runtime.js accidentally runs in strict mode, we can escape
// strict mode using a global Function call. This could conceivably fail
// if a Content Security Policy forbids using Function, but in that case
// the proper solution is to fix the accidental strict mode problem. If
// you've misconfigured your bundler to force strict mode and applied a
// CSP to forbid Function, and you're not willing to fix either of those
// problems, please detail your unique predicament in a GitHub issue.
Function("r", "regeneratorRuntime = r")(runtime);
}
/***/ }), /***/ }),
/***/ 7: /***/ 7:

File diff suppressed because one or more lines are too long

1501
wp-includes/js/dist/block-directory.js vendored Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More