Update WordPress to 5.2
This commit is contained in:
parent
489b5a5914
commit
e00f87f2f5
599 changed files with 119573 additions and 55990 deletions
34
wp-includes/js/dist/viewport.js
vendored
34
wp-includes/js/dist/viewport.js
vendored
|
|
@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["viewport"] =
|
|||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 317);
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 372);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
|
@ -94,7 +94,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["viewport"] =
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 317:
|
||||
/***/ 372:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
|
@ -198,7 +198,7 @@ function isViewportMatch(state, query) {
|
|||
}));
|
||||
|
||||
// EXTERNAL MODULE: external {"this":["wp","compose"]}
|
||||
var external_this_wp_compose_ = __webpack_require__(7);
|
||||
var external_this_wp_compose_ = __webpack_require__(6);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/viewport/build-module/with-viewport-match.js
|
||||
/**
|
||||
|
|
@ -216,9 +216,21 @@ var external_this_wp_compose_ = __webpack_require__(7);
|
|||
* the given prop names, where the value passed to the underlying component is
|
||||
* the result of the query assigned as the object's value.
|
||||
*
|
||||
* @see isViewportMatch
|
||||
*
|
||||
* @param {Object} queries Object of prop name to viewport query.
|
||||
*
|
||||
* @see isViewportMatch
|
||||
* @example
|
||||
*
|
||||
* ```jsx
|
||||
* function MyComponent( { isMobile } ) {
|
||||
* return (
|
||||
* <div>Currently: { isMobile ? 'Mobile' : 'Not Mobile' }</div>
|
||||
* );
|
||||
* }
|
||||
*
|
||||
* MyComponent = withViewportMatch( { isMobile: '< small' } )( MyComponent );
|
||||
* ```
|
||||
*
|
||||
* @return {Function} Higher-order component.
|
||||
*/
|
||||
|
|
@ -247,9 +259,19 @@ var with_viewport_match_withViewportMatch = function withViewportMatch(queries)
|
|||
* Higher-order component creator, creating a new component which renders if
|
||||
* the viewport query is satisfied.
|
||||
*
|
||||
* @see withViewportMatches
|
||||
*
|
||||
* @param {string} query Viewport query.
|
||||
*
|
||||
* @see withViewportMatches
|
||||
* @example
|
||||
*
|
||||
* ```jsx
|
||||
* function MyMobileComponent() {
|
||||
* return <div>I'm only rendered on mobile viewports!</div>;
|
||||
* }
|
||||
*
|
||||
* MyMobileComponent = ifViewportMatches( '< small' )( MyMobileComponent );
|
||||
* ```
|
||||
*
|
||||
* @return {Function} Higher-order component.
|
||||
*/
|
||||
|
|
@ -356,7 +378,7 @@ build_module_setIsMatching.flush();
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 7:
|
||||
/***/ 6:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = this["wp"]["compose"]; }());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue