* @return {?WPPlugin} Plugin setting.
function getPlugin(name) {
return api_plugins[name];
* Returns all registered plugins.
* @return {WPPlugin[]} Plugin settings.
return Object.values(api_plugins);
// CONCATENATED MODULE: ./node_modules/@wordpress/plugins/build-module/components/plugin-area/index.js
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
* A component that renders all plugin fills in a hidden div.
* var el = wp.element.createElement;
* var PluginArea = wp.plugins.PluginArea;
* <caption>ESNext</caption>
* import { PluginArea } from '@wordpress/plugins';
* @return {WPComponent} The component to be rendered.
var plugin_area_PluginArea = /*#__PURE__*/function (_Component) {
Object(inherits["a" /* default */])(PluginArea, _Component);
var _super = _createSuper(PluginArea);
Object(classCallCheck["a" /* default */])(this, PluginArea);
_this = _super.apply(this, arguments);
_this.setPlugins = _this.setPlugins.bind(Object(assertThisInitialized["a" /* default */])(_this));
_this.state = _this.getCurrentPluginsState();
Object(createClass["a" /* default */])(PluginArea, [{
key: "getCurrentPluginsState",
value: function getCurrentPluginsState() {
plugins: Object(external_lodash_["map"])(getPlugins(), function (_ref) {
key: "componentDidMount",
value: function componentDidMount() {
Object(external_wp_hooks_["addAction"])('plugins.pluginRegistered', 'core/plugins/plugin-area/plugins-registered', this.setPlugins);
Object(external_wp_hooks_["addAction"])('plugins.pluginUnregistered', 'core/plugins/plugin-area/plugins-unregistered', this.setPlugins);
key: "componentWillUnmount",
value: function componentWillUnmount() {
Object(external_wp_hooks_["removeAction"])('plugins.pluginRegistered', 'core/plugins/plugin-area/plugins-registered');
Object(external_wp_hooks_["removeAction"])('plugins.pluginUnregistered', 'core/plugins/plugin-area/plugins-unregistered');
value: function setPlugins() {
this.setState(this.getCurrentPluginsState);
value: function render() {
return Object(external_wp_element_["createElement"])("div", {
}, Object(external_lodash_["map"])(this.state.plugins, function (_ref2) {
var context = _ref2.context,
return Object(external_wp_element_["createElement"])(Provider, {
}, Object(external_wp_element_["createElement"])(Plugin, null));
}(external_wp_element_["Component"]);
/* harmony default export */ var plugin_area = (plugin_area_PluginArea);
// CONCATENATED MODULE: ./node_modules/@wordpress/plugins/build-module/components/index.js
// CONCATENATED MODULE: ./node_modules/@wordpress/plugins/build-module/index.js
/***/ (function(module, __webpack_exports__, __webpack_require__) {
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; });
function _getPrototypeOf(o) {
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
return o.__proto__ || Object.getPrototypeOf(o);
return _getPrototypeOf(o);
/***/ (function(module, exports) {
(function() { module.exports = window["wp"]["hooks"]; }());
/***/ (function(module, __webpack_exports__, __webpack_require__) {
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; });
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("U8pU");
/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("JX7q");
function _possibleConstructorReturn(self, call) {
if (call && (Object(_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(call) === "object" || typeof call === "function")) {
return Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(self);
/***/ (function(module, __webpack_exports__, __webpack_require__) {
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _defineProperty; });
function _defineProperty(obj, key, value) {
Object.defineProperty(obj, key, {
/***/ (function(module, __webpack_exports__, __webpack_require__) {
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _setPrototypeOf; });
function _setPrototypeOf(o, p) {
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
return _setPrototypeOf(o, p);
/***/ (function(module, __webpack_exports__, __webpack_require__) {
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createClass; });
function _defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
function _createClass(Constructor, protoProps, staticProps) {
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
if (staticProps) _defineProperties(Constructor, staticProps);
/***/ (function(module, __webpack_exports__, __webpack_require__) {
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _extends; });
_extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
return _extends.apply(this, arguments);