[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

title

Body

[close]

/wp-includes/js/dist/ -> plugins.js (source)

   1  this["wp"] = this["wp"] || {}; this["wp"]["plugins"] =
   2  /******/ (function(modules) { // webpackBootstrap
   3  /******/     // The module cache
   4  /******/     var installedModules = {};
   5  /******/
   6  /******/     // The require function
   7  /******/ 	function __webpack_require__(moduleId) {
   8  /******/
   9  /******/         // Check if module is in cache
  10  /******/         if(installedModules[moduleId]) {
  11  /******/             return installedModules[moduleId].exports;
  12  /******/         }
  13  /******/         // Create a new module (and put it into the cache)
  14  /******/         var module = installedModules[moduleId] = {
  15  /******/             i: moduleId,
  16  /******/             l: false,
  17  /******/             exports: {}
  18  /******/         };
  19  /******/
  20  /******/         // Execute the module function
  21  /******/         modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  22  /******/
  23  /******/         // Flag the module as loaded
  24  /******/         module.l = true;
  25  /******/
  26  /******/         // Return the exports of the module
  27  /******/         return module.exports;
  28  /******/     }
  29  /******/
  30  /******/
  31  /******/     // expose the modules object (__webpack_modules__)
  32  /******/     __webpack_require__.m = modules;
  33  /******/
  34  /******/     // expose the module cache
  35  /******/     __webpack_require__.c = installedModules;
  36  /******/
  37  /******/     // define getter function for harmony exports
  38  /******/     __webpack_require__.d = function(exports, name, getter) {
  39  /******/         if(!__webpack_require__.o(exports, name)) {
  40  /******/             Object.defineProperty(exports, name, { enumerable: true, get: getter });
  41  /******/         }
  42  /******/     };
  43  /******/
  44  /******/     // define __esModule on exports
  45  /******/     __webpack_require__.r = function(exports) {
  46  /******/         if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  47  /******/             Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  48  /******/         }
  49  /******/         Object.defineProperty(exports, '__esModule', { value: true });
  50  /******/     };
  51  /******/
  52  /******/     // create a fake namespace object
  53  /******/     // mode & 1: value is a module id, require it
  54  /******/     // mode & 2: merge all properties of value into the ns
  55  /******/     // mode & 4: return value when already ns object
  56  /******/     // mode & 8|1: behave like require
  57  /******/     __webpack_require__.t = function(value, mode) {
  58  /******/         if(mode & 1) value = __webpack_require__(value);
  59  /******/         if(mode & 8) return value;
  60  /******/         if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
  61  /******/         var ns = Object.create(null);
  62  /******/         __webpack_require__.r(ns);
  63  /******/         Object.defineProperty(ns, 'default', { enumerable: true, value: value });
  64  /******/         if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
  65  /******/         return ns;
  66  /******/     };
  67  /******/
  68  /******/     // getDefaultExport function for compatibility with non-harmony modules
  69  /******/     __webpack_require__.n = function(module) {
  70  /******/         var getter = module && module.__esModule ?
  71  /******/ 			function getDefault() { return module['default']; } :
  72  /******/ 			function getModuleExports() { return module; };
  73  /******/         __webpack_require__.d(getter, 'a', getter);
  74  /******/         return getter;
  75  /******/     };
  76  /******/
  77  /******/     // Object.prototype.hasOwnProperty.call
  78  /******/     __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  79  /******/
  80  /******/     // __webpack_public_path__
  81  /******/     __webpack_require__.p = "";
  82  /******/
  83  /******/
  84  /******/     // Load entry module and return exports
  85  /******/     return __webpack_require__(__webpack_require__.s = 363);
  86  /******/ })
  87  /************************************************************************/
  88  /******/ ({
  89  
  90  /***/ 0:
  91  /***/ (function(module, exports) {
  92  
  93  (function() { module.exports = this["wp"]["element"]; }());
  94  
  95  /***/ }),
  96  
  97  /***/ 10:
  98  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  99  
 100  "use strict";
 101  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _defineProperty; });
 102  function _defineProperty(obj, key, value) {
 103    if (key in obj) {
 104      Object.defineProperty(obj, key, {
 105        value: value,
 106        enumerable: true,
 107        configurable: true,
 108        writable: true
 109      });
 110    } else {
 111      obj[key] = value;
 112    }
 113  
 114    return obj;
 115  }
 116  
 117  /***/ }),
 118  
 119  /***/ 11:
 120  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 121  
 122  "use strict";
 123  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createClass; });
 124  function _defineProperties(target, props) {
 125    for (var i = 0; i < props.length; i++) {
 126      var descriptor = props[i];
 127      descriptor.enumerable = descriptor.enumerable || false;
 128      descriptor.configurable = true;
 129      if ("value" in descriptor) descriptor.writable = true;
 130      Object.defineProperty(target, descriptor.key, descriptor);
 131    }
 132  }
 133  
 134  function _createClass(Constructor, protoProps, staticProps) {
 135    if (protoProps) _defineProperties(Constructor.prototype, protoProps);
 136    if (staticProps) _defineProperties(Constructor, staticProps);
 137    return Constructor;
 138  }
 139  
 140  /***/ }),
 141  
 142  /***/ 12:
 143  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 144  
 145  "use strict";
 146  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _classCallCheck; });
 147  function _classCallCheck(instance, Constructor) {
 148    if (!(instance instanceof Constructor)) {
 149      throw new TypeError("Cannot call a class as a function");
 150    }
 151  }
 152  
 153  /***/ }),
 154  
 155  /***/ 13:
 156  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 157  
 158  "use strict";
 159  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; });
 160  /* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31);
 161  /* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
 162  
 163  
 164  function _possibleConstructorReturn(self, call) {
 165    if (call && (Object(_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(call) === "object" || typeof call === "function")) {
 166      return call;
 167    }
 168  
 169    return Object(_assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(self);
 170  }
 171  
 172  /***/ }),
 173  
 174  /***/ 14:
 175  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 176  
 177  "use strict";
 178  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; });
 179  function _getPrototypeOf(o) {
 180    _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
 181      return o.__proto__ || Object.getPrototypeOf(o);
 182    };
 183    return _getPrototypeOf(o);
 184  }
 185  
 186  /***/ }),
 187  
 188  /***/ 15:
 189  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 190  
 191  "use strict";
 192  
 193  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
 194  function _setPrototypeOf(o, p) {
 195    _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
 196      o.__proto__ = p;
 197      return o;
 198    };
 199  
 200    return _setPrototypeOf(o, p);
 201  }
 202  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
 203  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _inherits; });
 204  
 205  function _inherits(subClass, superClass) {
 206    if (typeof superClass !== "function" && superClass !== null) {
 207      throw new TypeError("Super expression must either be null or a function");
 208    }
 209  
 210    subClass.prototype = Object.create(superClass && superClass.prototype, {
 211      constructor: {
 212        value: subClass,
 213        writable: true,
 214        configurable: true
 215      }
 216    });
 217    if (superClass) _setPrototypeOf(subClass, superClass);
 218  }
 219  
 220  /***/ }),
 221  
 222  /***/ 18:
 223  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 224  
 225  "use strict";
 226  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _extends; });
 227  function _extends() {
 228    _extends = Object.assign || function (target) {
 229      for (var i = 1; i < arguments.length; i++) {
 230        var source = arguments[i];
 231  
 232        for (var key in source) {
 233          if (Object.prototype.hasOwnProperty.call(source, key)) {
 234            target[key] = source[key];
 235          }
 236        }
 237      }
 238  
 239      return target;
 240    };
 241  
 242    return _extends.apply(this, arguments);
 243  }
 244  
 245  /***/ }),
 246  
 247  /***/ 2:
 248  /***/ (function(module, exports) {
 249  
 250  (function() { module.exports = this["lodash"]; }());
 251  
 252  /***/ }),
 253  
 254  /***/ 27:
 255  /***/ (function(module, exports) {
 256  
 257  (function() { module.exports = this["wp"]["hooks"]; }());
 258  
 259  /***/ }),
 260  
 261  /***/ 31:
 262  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 263  
 264  "use strict";
 265  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _typeof; });
 266  function _typeof2(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof2(obj); }
 267  
 268  function _typeof(obj) {
 269    if (typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol") {
 270      _typeof = function _typeof(obj) {
 271        return _typeof2(obj);
 272      };
 273    } else {
 274      _typeof = function _typeof(obj) {
 275        return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof2(obj);
 276      };
 277    }
 278  
 279    return _typeof(obj);
 280  }
 281  
 282  /***/ }),
 283  
 284  /***/ 363:
 285  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 286  
 287  "use strict";
 288  __webpack_require__.r(__webpack_exports__);
 289  
 290  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
 291  var classCallCheck = __webpack_require__(12);
 292  
 293  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
 294  var createClass = __webpack_require__(11);
 295  
 296  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
 297  var possibleConstructorReturn = __webpack_require__(13);
 298  
 299  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
 300  var getPrototypeOf = __webpack_require__(14);
 301  
 302  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
 303  var assertThisInitialized = __webpack_require__(5);
 304  
 305  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules
 306  var inherits = __webpack_require__(15);
 307  
 308  // EXTERNAL MODULE: external {"this":["wp","element"]}
 309  var external_this_wp_element_ = __webpack_require__(0);
 310  
 311  // EXTERNAL MODULE: external "lodash"
 312  var external_lodash_ = __webpack_require__(2);
 313  
 314  // EXTERNAL MODULE: external {"this":["wp","hooks"]}
 315  var external_this_wp_hooks_ = __webpack_require__(27);
 316  
 317  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
 318  var esm_extends = __webpack_require__(18);
 319  
 320  // EXTERNAL MODULE: external {"this":["wp","compose"]}
 321  var external_this_wp_compose_ = __webpack_require__(8);
 322  
 323  // CONCATENATED MODULE: ./node_modules/@wordpress/plugins/build-module/components/plugin-context/index.js
 324  
 325  
 326  
 327  /**
 328   * WordPress dependencies
 329   */
 330  
 331  
 332  
 333  var _createContext = Object(external_this_wp_element_["createContext"])({
 334    name: null,
 335    icon: null
 336  }),
 337      Consumer = _createContext.Consumer,
 338      Provider = _createContext.Provider;
 339  
 340  
 341  /**
 342   * A Higher Order Component used to inject Plugin context to the
 343   * wrapped component.
 344   *
 345   * @param {Function} mapContextToProps Function called on every context change,
 346   *                                     expected to return object of props to
 347   *                                     merge with the component's own props.
 348   *
 349   * @return {Component} Enhanced component with injected context as props.
 350   */
 351  
 352  var plugin_context_withPluginContext = function withPluginContext(mapContextToProps) {
 353    return Object(external_this_wp_compose_["createHigherOrderComponent"])(function (OriginalComponent) {
 354      return function (props) {
 355        return Object(external_this_wp_element_["createElement"])(Consumer, null, function (context) {
 356          return Object(external_this_wp_element_["createElement"])(OriginalComponent, Object(esm_extends["a" /* default */])({}, props, mapContextToProps(context, props)));
 357        });
 358      };
 359    }, 'withPluginContext');
 360  };
 361  
 362  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js
 363  var objectSpread = __webpack_require__(7);
 364  
 365  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
 366  var esm_typeof = __webpack_require__(31);
 367  
 368  // CONCATENATED MODULE: ./node_modules/@wordpress/plugins/build-module/api/index.js
 369  
 370  
 371  
 372  /* eslint no-console: [ 'error', { allow: [ 'error' ] } ] */
 373  
 374  /**
 375   * WordPress dependencies
 376   */
 377  
 378  /**
 379   * External dependencies
 380   */
 381  
 382  
 383  /**
 384   * Plugin definitions keyed by plugin name.
 385   *
 386   * @type {Object.<string,WPPlugin>}
 387   */
 388  
 389  var plugins = {};
 390  /**
 391   * Registers a plugin to the editor.
 392   *
 393   * @param {string}                    name            A string identifying the plugin. Must be unique across all registered plugins.
 394   * @param {Object}                    settings        The settings for this plugin.
 395   * @param {string|WPElement|Function} settings.icon   An icon to be shown in the UI. It can be a slug of the Dashicon,
 396   * or an element (or function returning an element) if you choose to render your own SVG.
 397   * @param {Function}                  settings.render A component containing the UI elements to be rendered.
 398   *
 399   * @example <caption>ES5</caption>
 400   * ```js
 401   * // Using ES5 syntax
 402   * var el = wp.element.createElement;
 403   * var Fragment = wp.element.Fragment;
 404   * var PluginSidebar = wp.editPost.PluginSidebar;
 405   * var PluginSidebarMoreMenuItem = wp.editPost.PluginSidebarMoreMenuItem;
 406   * var registerPlugin = wp.plugins.registerPlugin;
 407   *
 408   * function Component() {
 409   *     return el(
 410   *         Fragment,
 411   *         {},
 412   *         el(
 413   *             PluginSidebarMoreMenuItem,
 414   *             {
 415   *                 target: 'sidebar-name',
 416   *             },
 417   *             'My Sidebar'
 418   *         ),
 419   *         el(
 420   *             PluginSidebar,
 421   *             {
 422   *                 name: 'sidebar-name',
 423   *                 title: 'My Sidebar',
 424   *             },
 425   *             'Content of the sidebar'
 426   *         )
 427   *     );
 428   * }
 429   * registerPlugin( 'plugin-name', {
 430   *     icon: 'smiley',
 431   *     render: Component,
 432   * } );
 433   * ```
 434   *
 435   * @example <caption>ESNext</caption>
 436   * ```js
 437   * // Using ESNext syntax
 438   * const { PluginSidebar, PluginSidebarMoreMenuItem } = wp.editPost;
 439   * const { registerPlugin } = wp.plugins;
 440   *
 441   * const Component = () => (
 442   *     <>
 443   *         <PluginSidebarMoreMenuItem
 444   *             target="sidebar-name"
 445   *         >
 446   *             My Sidebar
 447   *         </PluginSidebarMoreMenuItem>
 448   *         <PluginSidebar
 449   *             name="sidebar-name"
 450   *             title="My Sidebar"
 451   *         >
 452   *             Content of the sidebar
 453   *         </PluginSidebar>
 454   *     </>
 455   * );
 456   *
 457   * registerPlugin( 'plugin-name', {
 458   *     icon: 'smiley',
 459   *     render: Component,
 460   * } );
 461   * ```
 462   *
 463   * @return {Object} The final plugin settings object.
 464   */
 465  
 466  function registerPlugin(name, settings) {
 467    if (Object(esm_typeof["a" /* default */])(settings) !== 'object') {
 468      console.error('No settings object provided!');
 469      return null;
 470    }
 471  
 472    if (typeof name !== 'string') {
 473      console.error('Plugin names must be strings.');
 474      return null;
 475    }
 476  
 477    if (!/^[a-z][a-z0-9-]*$/.test(name)) {
 478      console.error('Plugin names must include only lowercase alphanumeric characters or dashes, and start with a letter. Example: "my-plugin".');
 479      return null;
 480    }
 481  
 482    if (plugins[name]) {
 483      console.error("Plugin \"".concat(name, "\" is already registered."));
 484    }
 485  
 486    settings = Object(external_this_wp_hooks_["applyFilters"])('plugins.registerPlugin', settings, name);
 487  
 488    if (!Object(external_lodash_["isFunction"])(settings.render)) {
 489      console.error('The "render" property must be specified and must be a valid function.');
 490      return null;
 491    }
 492  
 493    plugins[name] = Object(objectSpread["a" /* default */])({
 494      name: name,
 495      icon: 'admin-plugins'
 496    }, settings);
 497    Object(external_this_wp_hooks_["doAction"])('plugins.pluginRegistered', settings, name);
 498    return settings;
 499  }
 500  /**
 501   * Unregisters a plugin by name.
 502   *
 503   * @param {string} name Plugin name.
 504   *
 505   * @example <caption>ES5</caption>
 506   * ```js
 507   * // Using ES5 syntax
 508   * var unregisterPlugin = wp.plugins.unregisterPlugin;
 509   *
 510   * unregisterPlugin( 'plugin-name' );
 511   * ```
 512   *
 513   * @example <caption>ESNext</caption>
 514   * ```js
 515   * // Using ESNext syntax
 516   * const { unregisterPlugin } = wp.plugins;
 517   *
 518   * unregisterPlugin( 'plugin-name' );
 519   * ```
 520   *
 521   * @return {?WPPlugin} The previous plugin settings object, if it has been
 522   *                     successfully unregistered; otherwise `undefined`.
 523   */
 524  
 525  function unregisterPlugin(name) {
 526    if (!plugins[name]) {
 527      console.error('Plugin "' + name + '" is not registered.');
 528      return;
 529    }
 530  
 531    var oldPlugin = plugins[name];
 532    delete plugins[name];
 533    Object(external_this_wp_hooks_["doAction"])('plugins.pluginUnregistered', oldPlugin, name);
 534    return oldPlugin;
 535  }
 536  /**
 537   * Returns a registered plugin settings.
 538   *
 539   * @param {string} name Plugin name.
 540   *
 541   * @return {?Object} Plugin setting.
 542   */
 543  
 544  function getPlugin(name) {
 545    return plugins[name];
 546  }
 547  /**
 548   * Returns all registered plugins.
 549   *
 550   * @return {Array} Plugin settings.
 551   */
 552  
 553  function getPlugins() {
 554    return Object.values(plugins);
 555  }
 556  
 557  // CONCATENATED MODULE: ./node_modules/@wordpress/plugins/build-module/components/plugin-area/index.js
 558  
 559  
 560  
 561  
 562  
 563  
 564  
 565  
 566  /**
 567   * External dependencies
 568   */
 569  
 570  /**
 571   * WordPress dependencies
 572   */
 573  
 574  
 575  
 576  /**
 577   * Internal dependencies
 578   */
 579  
 580  
 581  
 582  /**
 583   * A component that renders all plugin fills in a hidden div.
 584   *
 585   * @example <caption>ES5</caption>
 586   * ```js
 587   * // Using ES5 syntax
 588   * var el = wp.element.createElement;
 589   * var PluginArea = wp.plugins.PluginArea;
 590   *
 591   * function Layout() {
 592   *     return el(
 593   *         'div',
 594   *         {},
 595   *         'Content of the page',
 596   *         PluginArea
 597   *     );
 598   * }
 599   * ```
 600   *
 601   * @example <caption>ESNext</caption>
 602   * ```js
 603   * // Using ESNext syntax
 604   * const { PluginArea } = wp.plugins;
 605   *
 606   * const Layout = () => (
 607   *     <div>
 608   *         Content of the page
 609   *         <PluginArea />
 610   *     </div>
 611   * );
 612   * ```
 613   *
 614   * @return {WPElement} Plugin area.
 615   */
 616  
 617  var plugin_area_PluginArea =
 618  /*#__PURE__*/
 619  function (_Component) {
 620    Object(inherits["a" /* default */])(PluginArea, _Component);
 621  
 622    function PluginArea() {
 623      var _this;
 624  
 625      Object(classCallCheck["a" /* default */])(this, PluginArea);
 626  
 627      _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(PluginArea).apply(this, arguments));
 628      _this.setPlugins = _this.setPlugins.bind(Object(assertThisInitialized["a" /* default */])(_this));
 629      _this.state = _this.getCurrentPluginsState();
 630      return _this;
 631    }
 632  
 633    Object(createClass["a" /* default */])(PluginArea, [{
 634      key: "getCurrentPluginsState",
 635      value: function getCurrentPluginsState() {
 636        return {
 637          plugins: Object(external_lodash_["map"])(getPlugins(), function (_ref) {
 638            var icon = _ref.icon,
 639                name = _ref.name,
 640                render = _ref.render;
 641            return {
 642              Plugin: render,
 643              context: {
 644                name: name,
 645                icon: icon
 646              }
 647            };
 648          })
 649        };
 650      }
 651    }, {
 652      key: "componentDidMount",
 653      value: function componentDidMount() {
 654        Object(external_this_wp_hooks_["addAction"])('plugins.pluginRegistered', 'core/plugins/plugin-area/plugins-registered', this.setPlugins);
 655        Object(external_this_wp_hooks_["addAction"])('plugins.pluginUnregistered', 'core/plugins/plugin-area/plugins-unregistered', this.setPlugins);
 656      }
 657    }, {
 658      key: "componentWillUnmount",
 659      value: function componentWillUnmount() {
 660        Object(external_this_wp_hooks_["removeAction"])('plugins.pluginRegistered', 'core/plugins/plugin-area/plugins-registered');
 661        Object(external_this_wp_hooks_["removeAction"])('plugins.pluginUnregistered', 'core/plugins/plugin-area/plugins-unregistered');
 662      }
 663    }, {
 664      key: "setPlugins",
 665      value: function setPlugins() {
 666        this.setState(this.getCurrentPluginsState);
 667      }
 668    }, {
 669      key: "render",
 670      value: function render() {
 671        return Object(external_this_wp_element_["createElement"])("div", {
 672          style: {
 673            display: 'none'
 674          }
 675        }, Object(external_lodash_["map"])(this.state.plugins, function (_ref2) {
 676          var context = _ref2.context,
 677              Plugin = _ref2.Plugin;
 678          return Object(external_this_wp_element_["createElement"])(Provider, {
 679            key: context.name,
 680            value: context
 681          }, Object(external_this_wp_element_["createElement"])(Plugin, null));
 682        }));
 683      }
 684    }]);
 685  
 686    return PluginArea;
 687  }(external_this_wp_element_["Component"]);
 688  
 689  /* harmony default export */ var plugin_area = (plugin_area_PluginArea);
 690  
 691  // CONCATENATED MODULE: ./node_modules/@wordpress/plugins/build-module/components/index.js
 692  
 693  
 694  
 695  // CONCATENATED MODULE: ./node_modules/@wordpress/plugins/build-module/index.js
 696  /* concated harmony reexport PluginArea */__webpack_require__.d(__webpack_exports__, "PluginArea", function() { return plugin_area; });
 697  /* concated harmony reexport withPluginContext */__webpack_require__.d(__webpack_exports__, "withPluginContext", function() { return plugin_context_withPluginContext; });
 698  /* concated harmony reexport registerPlugin */__webpack_require__.d(__webpack_exports__, "registerPlugin", function() { return registerPlugin; });
 699  /* concated harmony reexport unregisterPlugin */__webpack_require__.d(__webpack_exports__, "unregisterPlugin", function() { return unregisterPlugin; });
 700  /* concated harmony reexport getPlugin */__webpack_require__.d(__webpack_exports__, "getPlugin", function() { return getPlugin; });
 701  /* concated harmony reexport getPlugins */__webpack_require__.d(__webpack_exports__, "getPlugins", function() { return getPlugins; });
 702  
 703  
 704  
 705  
 706  /***/ }),
 707  
 708  /***/ 5:
 709  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 710  
 711  "use strict";
 712  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assertThisInitialized; });
 713  function _assertThisInitialized(self) {
 714    if (self === void 0) {
 715      throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
 716    }
 717  
 718    return self;
 719  }
 720  
 721  /***/ }),
 722  
 723  /***/ 7:
 724  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 725  
 726  "use strict";
 727  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectSpread; });
 728  /* harmony import */ var _defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10);
 729  
 730  function _objectSpread(target) {
 731    for (var i = 1; i < arguments.length; i++) {
 732      var source = arguments[i] != null ? arguments[i] : {};
 733      var ownKeys = Object.keys(source);
 734  
 735      if (typeof Object.getOwnPropertySymbols === 'function') {
 736        ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
 737          return Object.getOwnPropertyDescriptor(source, sym).enumerable;
 738        }));
 739      }
 740  
 741      ownKeys.forEach(function (key) {
 742        Object(_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]);
 743      });
 744    }
 745  
 746    return target;
 747  }
 748  
 749  /***/ }),
 750  
 751  /***/ 8:
 752  /***/ (function(module, exports) {
 753  
 754  (function() { module.exports = this["wp"]["compose"]; }());
 755  
 756  /***/ })
 757  
 758  /******/ });


Generated: Sat Nov 23 20:47:33 2019 Cross-referenced by PHPXref 0.7