From 8b0167343ef6ee7640a1fc2919dc4c7378f03891 Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Tue, 24 Nov 2020 13:36:46 -0500 Subject: [PATCH] New build --- composer.json | 9 +- jetpack.php | 4 +- vendor/autoload.php | 2 +- vendor/autoload_packages.php | 2 +- .../src/js/intersectionobserver-polyfill.js | 730 -------------- .../js/intersectionobserver-polyfill.min.js | 1 - .../jetpack-lazy-images/src/js/lazy-images.js | 891 +++++++++++++++--- .../src/js/lazy-images.min.js | 2 +- .../jetpack-lazy-images/src/lazy-images.php | 21 +- vendor/composer/autoload_real.php | 14 +- vendor/composer/autoload_static.php | 10 +- vendor/composer/installed.json | 792 ++++++++-------- vendor/composer/jetpack_autoload_classmap.php | 226 ++--- vendor/composer/jetpack_autoload_filemap.php | 6 +- .../jetpack-autoloader/autoload_functions.php | 2 +- .../class-autoloader-handler.php | 2 +- .../class-autoloader-locator.php | 2 +- .../class-manifest-handler.php | 2 +- .../class-plugins-handler.php | 2 +- .../class-version-loader.php | 2 +- .../class-version-selector.php | 2 +- 21 files changed, 1317 insertions(+), 1407 deletions(-) delete mode 100644 vendor/automattic/jetpack-lazy-images/src/js/intersectionobserver-polyfill.js delete mode 100644 vendor/automattic/jetpack-lazy-images/src/js/intersectionobserver-polyfill.min.js diff --git a/composer.json b/composer.json index 3ea6f2af5cbe4..b04e94be503db 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ "nojimage/twitter-text-php": "3.1.1" }, "require-dev": { - "automattic/jetpack-codesniffer": "@dev", + "automattic/jetpack-codesniffer": "^2.0", "dealerdirect/phpcodesniffer-composer-installer": "0.7.0", "php-parallel-lint/php-parallel-lint": "1.2.0", "sirbrillig/phpcs-changed": "2.5.1" @@ -27,12 +27,7 @@ "php:lint:errors": "vendor/bin/phpcs -p -s --runtime-set ignore_warnings_on_exit 1", "php:requirelist": "node bin/phpcs-requirelist-commands.js" }, - "repositories": [ - { - "type": "path", - "url": "./packages/*" - } - ], + "repositories": [], "autoload": { "classmap": [ "src" diff --git a/jetpack.php b/jetpack.php index 5a79c9da3c576..f32507907585e 100644 --- a/jetpack.php +++ b/jetpack.php @@ -4,7 +4,7 @@ * Plugin URI: https://jetpack.com * Description: Bring the power of the WordPress.com cloud to your self-hosted WordPress. Jetpack enables you to connect your blog to a WordPress.com account to use the powerful features normally only available to WordPress.com users. * Author: Automattic - * Version: 9.2-alpha + * Version: 9.2-beta * Author URI: https://jetpack.com * License: GPL2+ * Text Domain: jetpack @@ -16,7 +16,7 @@ define( 'JETPACK__MINIMUM_WP_VERSION', '5.5' ); define( 'JETPACK__MINIMUM_PHP_VERSION', '5.6' ); -define( 'JETPACK__VERSION', '9.2-alpha' ); +define( 'JETPACK__VERSION', '9.2-beta' ); /** * Constant used to fetch the connection owner token diff --git a/vendor/autoload.php b/vendor/autoload.php index ac918d4e273d8..412f1b23c7658 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -4,4 +4,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInitf4b7b70b114e3d14b34ab30f33a9a084::getLoader(); +return ComposerAutoloaderInit322320f583925c267e07d92b1da9a1a8::getLoader(); diff --git a/vendor/autoload_packages.php b/vendor/autoload_packages.php index a25f0eb81f3b8..d11bed464ab5d 100644 --- a/vendor/autoload_packages.php +++ b/vendor/autoload_packages.php @@ -5,7 +5,7 @@ * @package automattic/jetpack-autoloader */ -namespace Automattic\Jetpack\Autoloader\jpf4b7b70b114e3d14b34ab30f33a9a084; +namespace Automattic\Jetpack\Autoloader\jp322320f583925c267e07d92b1da9a1a8; // phpcs:ignore diff --git a/vendor/automattic/jetpack-lazy-images/src/js/intersectionobserver-polyfill.js b/vendor/automattic/jetpack-lazy-images/src/js/intersectionobserver-polyfill.js deleted file mode 100644 index 0b3eba1e92de5..0000000000000 --- a/vendor/automattic/jetpack-lazy-images/src/js/intersectionobserver-polyfill.js +++ /dev/null @@ -1,730 +0,0 @@ -/** - * The following is an Intersection observer polyfill which is licensed under - * the W3C SOFTWARE AND DOCUMENT NOTICE AND LICENSE and can be found at: - * https://github.com/w3c/IntersectionObserver/tree/master/polyfill - */ - -/** - * Copyright 2016 Google Inc. All Rights Reserved. - * - * Licensed under the W3C SOFTWARE AND DOCUMENT NOTICE AND LICENSE. - * - * https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document - * - */ - -(function(window, document) { - 'use strict'; - - - // Exits early if all IntersectionObserver and IntersectionObserverEntry - // features are natively supported. - if ('IntersectionObserver' in window && - 'IntersectionObserverEntry' in window && - 'intersectionRatio' in window.IntersectionObserverEntry.prototype) { - - // Minimal polyfill for Edge 15's lack of `isIntersecting` - // See: https://github.com/w3c/IntersectionObserver/issues/211 - if (!('isIntersecting' in window.IntersectionObserverEntry.prototype)) { - Object.defineProperty(window.IntersectionObserverEntry.prototype, - 'isIntersecting', { - get: function () { - return this.intersectionRatio > 0; - } - }); - } - return; - } - - - /** - * An IntersectionObserver registry. This registry exists to hold a strong - * reference to IntersectionObserver instances currently observering a target - * element. Without this registry, instances without another reference may be - * garbage collected. - */ - var registry = []; - - - /** - * Creates the global IntersectionObserverEntry constructor. - * https://w3c.github.io/IntersectionObserver/#intersection-observer-entry - * @param {Object} entry A dictionary of instance properties. - * @constructor - */ - function IntersectionObserverEntry(entry) { - this.time = entry.time; - this.target = entry.target; - this.rootBounds = entry.rootBounds; - this.boundingClientRect = entry.boundingClientRect; - this.intersectionRect = entry.intersectionRect || getEmptyRect(); - this.isIntersecting = !!entry.intersectionRect; - - // Calculates the intersection ratio. - var targetRect = this.boundingClientRect; - var targetArea = targetRect.width * targetRect.height; - var intersectionRect = this.intersectionRect; - var intersectionArea = intersectionRect.width * intersectionRect.height; - - // Sets intersection ratio. - if (targetArea) { - this.intersectionRatio = intersectionArea / targetArea; - } else { - // If area is zero and is intersecting, sets to 1, otherwise to 0 - this.intersectionRatio = this.isIntersecting ? 1 : 0; - } - } - - - /** - * Creates the global IntersectionObserver constructor. - * https://w3c.github.io/IntersectionObserver/#intersection-observer-interface - * @param {Function} callback The function to be invoked after intersection - * changes have queued. The function is not invoked if the queue has - * been emptied by calling the `takeRecords` method. - * @param {Object=} opt_options Optional configuration options. - * @constructor - */ - function IntersectionObserver(callback, opt_options) { - - var options = opt_options || {}; - - if (typeof callback != 'function') { - throw new Error('callback must be a function'); - } - - if (options.root && options.root.nodeType != 1) { - throw new Error('root must be an Element'); - } - - // Binds and throttles `this._checkForIntersections`. - this._checkForIntersections = throttle( - this._checkForIntersections.bind(this), this.THROTTLE_TIMEOUT); - - // Private properties. - this._callback = callback; - this._observationTargets = []; - this._queuedEntries = []; - this._rootMarginValues = this._parseRootMargin(options.rootMargin); - - // Public properties. - this.thresholds = this._initThresholds(options.threshold); - this.root = options.root || null; - this.rootMargin = this._rootMarginValues.map(function(margin) { - return margin.value + margin.unit; - }).join(' '); - } - - - /** - * The minimum interval within which the document will be checked for - * intersection changes. - */ - IntersectionObserver.prototype.THROTTLE_TIMEOUT = 100; - - - /** - * The frequency in which the polyfill polls for intersection changes. - * this can be updated on a per instance basis and must be set prior to - * calling `observe` on the first target. - */ - IntersectionObserver.prototype.POLL_INTERVAL = null; - - /** - * Use a mutation observer on the root element - * to detect intersection changes. - */ - IntersectionObserver.prototype.USE_MUTATION_OBSERVER = true; - - - /** - * Starts observing a target element for intersection changes based on - * the thresholds values. - * @param {Element} target The DOM element to observe. - */ - IntersectionObserver.prototype.observe = function(target) { - var isTargetAlreadyObserved = this._observationTargets.some(function(item) { - return item.element == target; - }); - - if (isTargetAlreadyObserved) { - return; - } - - if (!(target && target.nodeType == 1)) { - throw new Error('target must be an Element'); - } - - this._registerInstance(); - this._observationTargets.push({element: target, entry: null}); - this._monitorIntersections(); - this._checkForIntersections(); - }; - - - /** - * Stops observing a target element for intersection changes. - * @param {Element} target The DOM element to observe. - */ - IntersectionObserver.prototype.unobserve = function(target) { - this._observationTargets = - this._observationTargets.filter(function(item) { - - return item.element != target; - }); - if (!this._observationTargets.length) { - this._unmonitorIntersections(); - this._unregisterInstance(); - } - }; - - - /** - * Stops observing all target elements for intersection changes. - */ - IntersectionObserver.prototype.disconnect = function() { - this._observationTargets = []; - this._unmonitorIntersections(); - this._unregisterInstance(); - }; - - - /** - * Returns any queue entries that have not yet been reported to the - * callback and clears the queue. This can be used in conjunction with the - * callback to obtain the absolute most up-to-date intersection information. - * @return {Array} The currently queued entries. - */ - IntersectionObserver.prototype.takeRecords = function() { - var records = this._queuedEntries.slice(); - this._queuedEntries = []; - return records; - }; - - - /** - * Accepts the threshold value from the user configuration object and - * returns a sorted array of unique threshold values. If a value is not - * between 0 and 1 and error is thrown. - * @private - * @param {Array|number=} opt_threshold An optional threshold value or - * a list of threshold values, defaulting to [0]. - * @return {Array} A sorted list of unique and valid threshold values. - */ - IntersectionObserver.prototype._initThresholds = function(opt_threshold) { - var threshold = opt_threshold || [0]; - if (!Array.isArray(threshold)) threshold = [threshold]; - - return threshold.sort().filter(function(t, i, a) { - if (typeof t != 'number' || isNaN(t) || t < 0 || t > 1) { - throw new Error('threshold must be a number between 0 and 1 inclusively'); - } - return t !== a[i - 1]; - }); - }; - - - /** - * Accepts the rootMargin value from the user configuration object - * and returns an array of the four margin values as an object containing - * the value and unit properties. If any of the values are not properly - * formatted or use a unit other than px or %, and error is thrown. - * @private - * @param {string=} opt_rootMargin An optional rootMargin value, - * defaulting to '0px'. - * @return {Array} An array of margin objects with the keys - * value and unit. - */ - IntersectionObserver.prototype._parseRootMargin = function(opt_rootMargin) { - var marginString = opt_rootMargin || '0px'; - var margins = marginString.split(/\s+/).map(function(margin) { - var parts = /^(-?\d*\.?\d+)(px|%)$/.exec(margin); - if (!parts) { - throw new Error('rootMargin must be specified in pixels or percent'); - } - return {value: parseFloat(parts[1]), unit: parts[2]}; - }); - - // Handles shorthand. - margins[1] = margins[1] || margins[0]; - margins[2] = margins[2] || margins[0]; - margins[3] = margins[3] || margins[1]; - - return margins; - }; - - - /** - * Starts polling for intersection changes if the polling is not already - * happening, and if the page's visibility state is visible. - * @private - */ - IntersectionObserver.prototype._monitorIntersections = function() { - if (!this._monitoringIntersections) { - this._monitoringIntersections = true; - - // If a poll interval is set, use polling instead of listening to - // resize and scroll events or DOM mutations. - if (this.POLL_INTERVAL) { - this._monitoringInterval = setInterval( - this._checkForIntersections, this.POLL_INTERVAL); - } - else { - addEvent(window, 'resize', this._checkForIntersections, true); - addEvent(document, 'scroll', this._checkForIntersections, true); - - if (this.USE_MUTATION_OBSERVER && 'MutationObserver' in window) { - this._domObserver = new MutationObserver(this._checkForIntersections); - this._domObserver.observe(document, { - attributes: true, - childList: true, - characterData: true, - subtree: true - }); - } - } - } - }; - - - /** - * Stops polling for intersection changes. - * @private - */ - IntersectionObserver.prototype._unmonitorIntersections = function() { - if (this._monitoringIntersections) { - this._monitoringIntersections = false; - - clearInterval(this._monitoringInterval); - this._monitoringInterval = null; - - removeEvent(window, 'resize', this._checkForIntersections, true); - removeEvent(document, 'scroll', this._checkForIntersections, true); - - if (this._domObserver) { - this._domObserver.disconnect(); - this._domObserver = null; - } - } - }; - - - /** - * Scans each observation target for intersection changes and adds them - * to the internal entries queue. If new entries are found, it - * schedules the callback to be invoked. - * @private - */ - IntersectionObserver.prototype._checkForIntersections = function() { - var rootIsInDom = this._rootIsInDom(); - var rootRect = rootIsInDom ? this._getRootRect() : getEmptyRect(); - - this._observationTargets.forEach(function(item) { - var target = item.element; - var targetRect = getBoundingClientRect(target); - var rootContainsTarget = this._rootContainsTarget(target); - var oldEntry = item.entry; - var intersectionRect = rootIsInDom && rootContainsTarget && - this._computeTargetAndRootIntersection(target, rootRect); - - var newEntry = item.entry = new IntersectionObserverEntry({ - time: now(), - target: target, - boundingClientRect: targetRect, - rootBounds: rootRect, - intersectionRect: intersectionRect - }); - - if (!oldEntry) { - this._queuedEntries.push(newEntry); - } else if (rootIsInDom && rootContainsTarget) { - // If the new entry intersection ratio has crossed any of the - // thresholds, add a new entry. - if (this._hasCrossedThreshold(oldEntry, newEntry)) { - this._queuedEntries.push(newEntry); - } - } else { - // If the root is not in the DOM or target is not contained within - // root but the previous entry for this target had an intersection, - // add a new record indicating removal. - if (oldEntry && oldEntry.isIntersecting) { - this._queuedEntries.push(newEntry); - } - } - }, this); - - if (this._queuedEntries.length) { - this._callback(this.takeRecords(), this); - } - }; - - - /** - * Accepts a target and root rect computes the intersection between then - * following the algorithm in the spec. - * TODO(philipwalton): at this time clip-path is not considered. - * https://w3c.github.io/IntersectionObserver/#calculate-intersection-rect-algo - * @param {Element} target The target DOM element - * @param {Object} rootRect The bounding rect of the root after being - * expanded by the rootMargin value. - * @return {?Object} The final intersection rect object or undefined if no - * intersection is found. - * @private - */ - IntersectionObserver.prototype._computeTargetAndRootIntersection = - function(target, rootRect) { - - // If the element isn't displayed, an intersection can't happen. - if (window.getComputedStyle(target).display == 'none') return; - - var targetRect = getBoundingClientRect(target); - var intersectionRect = targetRect; - var parent = getParentNode(target); - var atRoot = false; - - while (!atRoot) { - var parentRect = null; - var parentComputedStyle = parent.nodeType == 1 ? - window.getComputedStyle(parent) : {}; - - // If the parent isn't displayed, an intersection can't happen. - if (parentComputedStyle.display == 'none') return; - - if (parent == this.root || parent == document) { - atRoot = true; - parentRect = rootRect; - } else { - // If the element has a non-visible overflow, and it's not the - // or element, update the intersection rect. - // Note: and cannot be clipped to a rect that's not also - // the document rect, so no need to compute a new intersection. - if (parent != document.body && - parent != document.documentElement && - parentComputedStyle.overflow != 'visible') { - parentRect = getBoundingClientRect(parent); - } - } - - // If either of the above conditionals set a new parentRect, - // calculate new intersection data. - if (parentRect) { - intersectionRect = computeRectIntersection(parentRect, intersectionRect); - - if (!intersectionRect) break; - } - parent = getParentNode(parent); - } - return intersectionRect; - }; - - - /** - * Returns the root rect after being expanded by the rootMargin value. - * @return {Object} The expanded root rect. - * @private - */ - IntersectionObserver.prototype._getRootRect = function() { - var rootRect; - if (this.root) { - rootRect = getBoundingClientRect(this.root); - } else { - // Use / instead of window since scroll bars affect size. - var html = document.documentElement; - var body = document.body; - rootRect = { - top: 0, - left: 0, - right: html.clientWidth || body.clientWidth, - width: html.clientWidth || body.clientWidth, - bottom: html.clientHeight || body.clientHeight, - height: html.clientHeight || body.clientHeight - }; - } - return this._expandRectByRootMargin(rootRect); - }; - - - /** - * Accepts a rect and expands it by the rootMargin value. - * @param {Object} rect The rect object to expand. - * @return {Object} The expanded rect. - * @private - */ - IntersectionObserver.prototype._expandRectByRootMargin = function(rect) { - var margins = this._rootMarginValues.map(function(margin, i) { - return margin.unit == 'px' ? margin.value : - margin.value * (i % 2 ? rect.width : rect.height) / 100; - }); - var newRect = { - top: rect.top - margins[0], - right: rect.right + margins[1], - bottom: rect.bottom + margins[2], - left: rect.left - margins[3] - }; - newRect.width = newRect.right - newRect.left; - newRect.height = newRect.bottom - newRect.top; - - return newRect; - }; - - - /** - * Accepts an old and new entry and returns true if at least one of the - * threshold values has been crossed. - * @param {?IntersectionObserverEntry} oldEntry The previous entry for a - * particular target element or null if no previous entry exists. - * @param {IntersectionObserverEntry} newEntry The current entry for a - * particular target element. - * @return {boolean} Returns true if a any threshold has been crossed. - * @private - */ - IntersectionObserver.prototype._hasCrossedThreshold = - function(oldEntry, newEntry) { - - // To make comparing easier, an entry that has a ratio of 0 - // but does not actually intersect is given a value of -1 - var oldRatio = oldEntry && oldEntry.isIntersecting ? - oldEntry.intersectionRatio || 0 : -1; - var newRatio = newEntry.isIntersecting ? - newEntry.intersectionRatio || 0 : -1; - - // Ignore unchanged ratios - if (oldRatio === newRatio) return; - - for (var i = 0; i < this.thresholds.length; i++) { - var threshold = this.thresholds[i]; - - // Return true if an entry matches a threshold or if the new ratio - // and the old ratio are on the opposite sides of a threshold. - if (threshold == oldRatio || threshold == newRatio || - threshold < oldRatio !== threshold < newRatio) { - return true; - } - } - }; - - - /** - * Returns whether or not the root element is an element and is in the DOM. - * @return {boolean} True if the root element is an element and is in the DOM. - * @private - */ - IntersectionObserver.prototype._rootIsInDom = function() { - return !this.root || containsDeep(document, this.root); - }; - - - /** - * Returns whether or not the target element is a child of root. - * @param {Element} target The target element to check. - * @return {boolean} True if the target element is a child of root. - * @private - */ - IntersectionObserver.prototype._rootContainsTarget = function(target) { - return containsDeep(this.root || document, target); - }; - - - /** - * Adds the instance to the global IntersectionObserver registry if it isn't - * already present. - * @private - */ - IntersectionObserver.prototype._registerInstance = function() { - if (registry.indexOf(this) < 0) { - registry.push(this); - } - }; - - - /** - * Removes the instance from the global IntersectionObserver registry. - * @private - */ - IntersectionObserver.prototype._unregisterInstance = function() { - var index = registry.indexOf(this); - if (index != -1) registry.splice(index, 1); - }; - - - /** - * Returns the result of the performance.now() method or null in browsers - * that don't support the API. - * @return {number} The elapsed time since the page was requested. - */ - function now() { - return window.performance && performance.now && performance.now(); - } - - - /** - * Throttles a function and delays its executiong, so it's only called at most - * once within a given time period. - * @param {Function} fn The function to throttle. - * @param {number} timeout The amount of time that must pass before the - * function can be called again. - * @return {Function} The throttled function. - */ - function throttle(fn, timeout) { - var timer = null; - return function () { - if (!timer) { - timer = setTimeout(function() { - fn(); - timer = null; - }, timeout); - } - }; - } - - - /** - * Adds an event handler to a DOM node ensuring cross-browser compatibility. - * @param {Node} node The DOM node to add the event handler to. - * @param {string} event The event name. - * @param {Function} fn The event handler to add. - * @param {boolean} opt_useCapture Optionally adds the even to the capture - * phase. Note: this only works in modern browsers. - */ - function addEvent(node, event, fn, opt_useCapture) { - if (typeof node.addEventListener == 'function') { - node.addEventListener(event, fn, opt_useCapture || false); - } - else if (typeof node.attachEvent == 'function') { - node.attachEvent('on' + event, fn); - } - } - - - /** - * Removes a previously added event handler from a DOM node. - * @param {Node} node The DOM node to remove the event handler from. - * @param {string} event The event name. - * @param {Function} fn The event handler to remove. - * @param {boolean} opt_useCapture If the event handler was added with this - * flag set to true, it should be set to true here in order to remove it. - */ - function removeEvent(node, event, fn, opt_useCapture) { - if (typeof node.removeEventListener == 'function') { - node.removeEventListener(event, fn, opt_useCapture || false); - } - else if (typeof node.detatchEvent == 'function') { - node.detatchEvent('on' + event, fn); - } - } - - - /** - * Returns the intersection between two rect objects. - * @param {Object} rect1 The first rect. - * @param {Object} rect2 The second rect. - * @return {?Object} The intersection rect or undefined if no intersection - * is found. - */ - function computeRectIntersection(rect1, rect2) { - var top = Math.max(rect1.top, rect2.top); - var bottom = Math.min(rect1.bottom, rect2.bottom); - var left = Math.max(rect1.left, rect2.left); - var right = Math.min(rect1.right, rect2.right); - var width = right - left; - var height = bottom - top; - - return (width >= 0 && height >= 0) && { - top: top, - bottom: bottom, - left: left, - right: right, - width: width, - height: height - }; - } - - - /** - * Shims the native getBoundingClientRect for compatibility with older IE. - * @param {Element} el The element whose bounding rect to get. - * @return {Object} The (possibly shimmed) rect of the element. - */ - function getBoundingClientRect(el) { - var rect; - - try { - rect = el.getBoundingClientRect(); - } catch (err) { - // Ignore Windows 7 IE11 "Unspecified error" - // https://github.com/w3c/IntersectionObserver/pull/205 - } - - if (!rect) return getEmptyRect(); - - // Older IE - if (!(rect.width && rect.height)) { - rect = { - top: rect.top, - right: rect.right, - bottom: rect.bottom, - left: rect.left, - width: rect.right - rect.left, - height: rect.bottom - rect.top - }; - } - return rect; - } - - - /** - * Returns an empty rect object. An empty rect is returned when an element - * is not in the DOM. - * @return {Object} The empty rect. - */ - function getEmptyRect() { - return { - top: 0, - bottom: 0, - left: 0, - right: 0, - width: 0, - height: 0 - }; - } - - /** - * Checks to see if a parent element contains a child elemnt (including inside - * shadow DOM). - * @param {Node} parent The parent element. - * @param {Node} child The child element. - * @return {boolean} True if the parent node contains the child node. - */ - function containsDeep(parent, child) { - var node = child; - while (node) { - if (node == parent) return true; - - node = getParentNode(node); - } - return false; - } - - - /** - * Gets the parent node of an element or its host element if the parent node - * is a shadow root. - * @param {Node} node The node whose parent to get. - * @return {Node|null} The parent node or null if no parent exists. - */ - function getParentNode(node) { - var parent = node.parentNode; - - if (parent && parent.nodeType == 11 && parent.host) { - // If the parent is a shadow root, return the host element. - return parent.host; - } - return parent; - } - - - // Exposes the constructors globally. - window.IntersectionObserver = IntersectionObserver; - window.IntersectionObserverEntry = IntersectionObserverEntry; - - }(window, document)); diff --git a/vendor/automattic/jetpack-lazy-images/src/js/intersectionobserver-polyfill.min.js b/vendor/automattic/jetpack-lazy-images/src/js/intersectionobserver-polyfill.min.js deleted file mode 100644 index 5f34cb86d2716..0000000000000 --- a/vendor/automattic/jetpack-lazy-images/src/js/intersectionobserver-polyfill.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e){!function(t,e){"use strict";if("IntersectionObserver"in t&&"IntersectionObserverEntry"in t&&"intersectionRatio"in t.IntersectionObserverEntry.prototype)"isIntersecting"in t.IntersectionObserverEntry.prototype||Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var n=[];r.prototype.THROTTLE_TIMEOUT=100,r.prototype.POLL_INTERVAL=null,r.prototype.USE_MUTATION_OBSERVER=!0,r.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},r.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},r.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},r.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},r.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]}))},r.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},r.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(i(t,"resize",this._checkForIntersections,!0),i(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in t&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},r.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,s(t,"resize",this._checkForIntersections,!0),s(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},r.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),n=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var i=r.element,s=h(i),c=this._rootContainsTarget(i),u=r.entry,a=e&&c&&this._computeTargetAndRootIntersection(i,n),l=r.entry=new o({time:t.performance&&performance.now&&performance.now(),target:i,boundingClientRect:s,rootBounds:n,intersectionRect:a});u?e&&c?this._hasCrossedThreshold(u,l)&&this._queuedEntries.push(l):u&&u.isIntersecting&&this._queuedEntries.push(l):this._queuedEntries.push(l)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},r.prototype._computeTargetAndRootIntersection=function(n,o){if("none"!=t.getComputedStyle(n).display){for(var r,i,s,c,a,l,p,f,d=h(n),g=u(n),_=!1;!_;){var v=null,m=1==g.nodeType?t.getComputedStyle(g):{};if("none"==m.display)return;if(g==this.root||g==e?(_=!0,v=o):g!=e.body&&g!=e.documentElement&&"visible"!=m.overflow&&(v=h(g)),v&&(r=v,i=d,s=void 0,c=void 0,a=void 0,l=void 0,p=void 0,f=void 0,s=Math.max(r.top,i.top),c=Math.min(r.bottom,i.bottom),a=Math.max(r.left,i.left),l=Math.min(r.right,i.right),f=c-s,!(d=(p=l-a)>=0&&f>=0&&{top:s,bottom:c,left:a,right:l,width:p,height:f})))break;g=u(g)}return d}},r.prototype._getRootRect=function(){var t;if(this.root)t=h(this.root);else{var n=e.documentElement,o=e.body;t={top:0,left:0,right:n.clientWidth||o.clientWidth,width:n.clientWidth||o.clientWidth,bottom:n.clientHeight||o.clientHeight,height:n.clientHeight||o.clientHeight}}return this._expandRectByRootMargin(t)},r.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100})),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},r.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,o=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==o)for(var r=0;r} immediateImages List of lazy-loaded images to load immediately. */ - function loadAllImages() { - if ( observer ) { - observer.disconnect(); - } + function loadImagesImmediately( immediateImages ) { + var i; - while ( lazyImages.length > 0 ) { - applyImage( lazyImages[ 0 ] ); + // foreach() is not supported in IE + for ( i = 0; i < immediateImages.length; i++ ) { + var image = immediateImages[ i ]; + applyImage( image ); } } /** * On intersection - * - * @param {Array} entries - List of elements being observed. + * @param {array} entries List of elements being observed. */ function onIntersection( entries ) { + var i; + + // Disconnect if we've already loaded all of the images + if ( imageCount === 0 ) { + observer.disconnect(); + } + // Loop through the entries - for ( let i = 0; i < entries.length; i++ ) { - const entry = entries[ i ]; + for ( i = 0; i < entries.length; i++ ) { + var entry = entries[ i ]; // Are we in viewport? if ( entry.intersectionRatio > 0 ) { + imageCount--; + // Stop watching and load the image observer.unobserve( entry.target ); applyImage( entry.target ); } } - - // Disconnect if we've already loaded all of the images - if ( lazyImages.length === 0 ) { - observer.disconnect(); - } - } - - /** - * On print - */ - function onPrint() { - if ( ! loadingWarning && ( lazyImages.length > 0 || loadingImages.length > 0 ) ) { - // Replace the printed page with a notice that images are still loading. - // Hopefully the user won't actually print this, but if they do at least it'll not - // waste too much ink. - loadingWarning = document.createElement( 'div' ); - loadingWarning.id = 'loadingWarning'; - loadingWarning.style.fontWeight = 'bold'; - loadingWarning.innerText = jetpackLazyImagesL10n.loading_warning; - - const s = document.createElement( 'style' ); - s.innerHTML = - '#loadingWarning { display: none; }\n@media print {\n#loadingWarning { display: block; }\nbody > #loadingWarning ~ * { display: none !important; }\n}'; - loadingWarning.appendChild( s ); - - bodyEl.insertBefore( loadingWarning, bodyEl.firstChild ); - } - - if ( lazyImages.length > 0 ) { - loadAllImages(); - } - - // May as well try an alert() too. The browser may block it, but if not - // it could save them some trouble. - if ( loadingWarning ) { - alert( jetpackLazyImagesL10n.loading_warning ); - } } /** * Apply the image - * - * @param {Element} image - The image object. + * @param {object} image The image object. */ function applyImage( image ) { - let lazyLoadedImageEvent; + var srcset, + sizes, + lazyLoadedImageEvent; - if ( ! ( image instanceof HTMLImageElement ) ) { + if ( ! image instanceof HTMLImageElement ) { return; } - const srcset = image.getAttribute( 'data-lazy-srcset' ); - const sizes = image.getAttribute( 'data-lazy-sizes' ); + srcset = image.getAttribute( 'data-lazy-srcset' ); + sizes = image.getAttribute( 'data-lazy-sizes' ); // Remove lazy attributes. image.removeAttribute( 'data-lazy-srcset' ); @@ -163,55 +127,754 @@ const jetpackLazyImagesModule = function () { image.setAttribute( 'srcset', srcset ); } - // Force eager loading, otherwise the browser-native loading=lazy support will still - // prevent the loading. - image.setAttribute( 'loading', 'eager' ); - - loadingImages.push( image ); - const idx = lazyImages.indexOf( image ); - if ( idx >= 0 ) { - lazyImages.splice( idx, 1 ); - } - - if ( image.complete ) { - loadedImage.call( image, null ); - } else { - image.addEventListener( 'load', loadedImage, { once: true } ); - image.addEventListener( 'error', loadedImage, { once: true } ); - } - // Fire an event so that third-party code can perform actions after an image is loaded. try { lazyLoadedImageEvent = new Event( 'jetpack-lazy-loaded-image', { bubbles: true, - cancelable: true, + cancelable: true } ); } catch ( e ) { - lazyLoadedImageEvent = document.createEvent( 'Event' ); + lazyLoadedImageEvent = document.createEvent( 'Event' ) lazyLoadedImageEvent.initEvent( 'jetpack-lazy-loaded-image', true, true ); } image.dispatchEvent( lazyLoadedImageEvent ); } +}; + +/** + * The following is an Intersection observer polyfill which is licensed under + * the W3C SOFTWARE AND DOCUMENT NOTICE AND LICENSE and can be found at: + * https://github.com/w3c/IntersectionObserver/tree/master/polyfill + */ + +/** + * Copyright 2016 Google Inc. All Rights Reserved. + * + * Licensed under the W3C SOFTWARE AND DOCUMENT NOTICE AND LICENSE. + * + * https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document + * + */ + +(function(window, document) { + 'use strict'; + + + // Exits early if all IntersectionObserver and IntersectionObserverEntry + // features are natively supported. + if ('IntersectionObserver' in window && + 'IntersectionObserverEntry' in window && + 'intersectionRatio' in window.IntersectionObserverEntry.prototype) { + + // Minimal polyfill for Edge 15's lack of `isIntersecting` + // See: https://github.com/w3c/IntersectionObserver/issues/211 + if (!('isIntersecting' in window.IntersectionObserverEntry.prototype)) { + Object.defineProperty(window.IntersectionObserverEntry.prototype, + 'isIntersecting', { + get: function () { + return this.intersectionRatio > 0; + } + }); + } + return; + } + + + /** + * An IntersectionObserver registry. This registry exists to hold a strong + * reference to IntersectionObserver instances currently observering a target + * element. Without this registry, instances without another reference may be + * garbage collected. + */ + var registry = []; + + + /** + * Creates the global IntersectionObserverEntry constructor. + * https://w3c.github.io/IntersectionObserver/#intersection-observer-entry + * @param {Object} entry A dictionary of instance properties. + * @constructor + */ + function IntersectionObserverEntry(entry) { + this.time = entry.time; + this.target = entry.target; + this.rootBounds = entry.rootBounds; + this.boundingClientRect = entry.boundingClientRect; + this.intersectionRect = entry.intersectionRect || getEmptyRect(); + this.isIntersecting = !!entry.intersectionRect; + + // Calculates the intersection ratio. + var targetRect = this.boundingClientRect; + var targetArea = targetRect.width * targetRect.height; + var intersectionRect = this.intersectionRect; + var intersectionArea = intersectionRect.width * intersectionRect.height; + + // Sets intersection ratio. + if (targetArea) { + this.intersectionRatio = intersectionArea / targetArea; + } else { + // If area is zero and is intersecting, sets to 1, otherwise to 0 + this.intersectionRatio = this.isIntersecting ? 1 : 0; + } + } + + + /** + * Creates the global IntersectionObserver constructor. + * https://w3c.github.io/IntersectionObserver/#intersection-observer-interface + * @param {Function} callback The function to be invoked after intersection + * changes have queued. The function is not invoked if the queue has + * been emptied by calling the `takeRecords` method. + * @param {Object=} opt_options Optional configuration options. + * @constructor + */ + function IntersectionObserver(callback, opt_options) { + + var options = opt_options || {}; + + if (typeof callback != 'function') { + throw new Error('callback must be a function'); + } + + if (options.root && options.root.nodeType != 1) { + throw new Error('root must be an Element'); + } + + // Binds and throttles `this._checkForIntersections`. + this._checkForIntersections = throttle( + this._checkForIntersections.bind(this), this.THROTTLE_TIMEOUT); + + // Private properties. + this._callback = callback; + this._observationTargets = []; + this._queuedEntries = []; + this._rootMarginValues = this._parseRootMargin(options.rootMargin); + + // Public properties. + this.thresholds = this._initThresholds(options.threshold); + this.root = options.root || null; + this.rootMargin = this._rootMarginValues.map(function(margin) { + return margin.value + margin.unit; + }).join(' '); + } + + + /** + * The minimum interval within which the document will be checked for + * intersection changes. + */ + IntersectionObserver.prototype.THROTTLE_TIMEOUT = 100; + + + /** + * The frequency in which the polyfill polls for intersection changes. + * this can be updated on a per instance basis and must be set prior to + * calling `observe` on the first target. + */ + IntersectionObserver.prototype.POLL_INTERVAL = null; + + /** + * Use a mutation observer on the root element + * to detect intersection changes. + */ + IntersectionObserver.prototype.USE_MUTATION_OBSERVER = true; + + + /** + * Starts observing a target element for intersection changes based on + * the thresholds values. + * @param {Element} target The DOM element to observe. + */ + IntersectionObserver.prototype.observe = function(target) { + var isTargetAlreadyObserved = this._observationTargets.some(function(item) { + return item.element == target; + }); + + if (isTargetAlreadyObserved) { + return; + } + + if (!(target && target.nodeType == 1)) { + throw new Error('target must be an Element'); + } + + this._registerInstance(); + this._observationTargets.push({element: target, entry: null}); + this._monitorIntersections(); + this._checkForIntersections(); + }; + + + /** + * Stops observing a target element for intersection changes. + * @param {Element} target The DOM element to observe. + */ + IntersectionObserver.prototype.unobserve = function(target) { + this._observationTargets = + this._observationTargets.filter(function(item) { + + return item.element != target; + }); + if (!this._observationTargets.length) { + this._unmonitorIntersections(); + this._unregisterInstance(); + } + }; + + + /** + * Stops observing all target elements for intersection changes. + */ + IntersectionObserver.prototype.disconnect = function() { + this._observationTargets = []; + this._unmonitorIntersections(); + this._unregisterInstance(); + }; + + + /** + * Returns any queue entries that have not yet been reported to the + * callback and clears the queue. This can be used in conjunction with the + * callback to obtain the absolute most up-to-date intersection information. + * @return {Array} The currently queued entries. + */ + IntersectionObserver.prototype.takeRecords = function() { + var records = this._queuedEntries.slice(); + this._queuedEntries = []; + return records; + }; + /** - * An image from applyImage() finished loading. + * Accepts the threshold value from the user configuration object and + * returns a sorted array of unique threshold values. If a value is not + * between 0 and 1 and error is thrown. + * @private + * @param {Array|number=} opt_threshold An optional threshold value or + * a list of threshold values, defaulting to [0]. + * @return {Array} A sorted list of unique and valid threshold values. */ - function loadedImage() { - const idx = loadingImages.indexOf( this ); - if ( idx >= 0 ) { - loadingImages.splice( idx, 1 ); + IntersectionObserver.prototype._initThresholds = function(opt_threshold) { + var threshold = opt_threshold || [0]; + if (!Array.isArray(threshold)) threshold = [threshold]; + + return threshold.sort().filter(function(t, i, a) { + if (typeof t != 'number' || isNaN(t) || t < 0 || t > 1) { + throw new Error('threshold must be a number between 0 and 1 inclusively'); } + return t !== a[i - 1]; + }); + }; + - if ( loadingWarning && lazyImages.length === 0 && loadingImages.length === 0 ) { - loadingWarning.parentNode.removeChild( loadingWarning ); - loadingWarning = null; + /** + * Accepts the rootMargin value from the user configuration object + * and returns an array of the four margin values as an object containing + * the value and unit properties. If any of the values are not properly + * formatted or use a unit other than px or %, and error is thrown. + * @private + * @param {string=} opt_rootMargin An optional rootMargin value, + * defaulting to '0px'. + * @return {Array} An array of margin objects with the keys + * value and unit. + */ + IntersectionObserver.prototype._parseRootMargin = function(opt_rootMargin) { + var marginString = opt_rootMargin || '0px'; + var margins = marginString.split(/\s+/).map(function(margin) { + var parts = /^(-?\d*\.?\d+)(px|%)$/.exec(margin); + if (!parts) { + throw new Error('rootMargin must be specified in pixels or percent'); } + return {value: parseFloat(parts[1]), unit: parts[2]}; + }); + + // Handles shorthand. + margins[1] = margins[1] || margins[0]; + margins[2] = margins[2] || margins[0]; + margins[3] = margins[3] || margins[1]; + + return margins; + }; + + + /** + * Starts polling for intersection changes if the polling is not already + * happening, and if the page's visibility state is visible. + * @private + */ + IntersectionObserver.prototype._monitorIntersections = function() { + if (!this._monitoringIntersections) { + this._monitoringIntersections = true; + + // If a poll interval is set, use polling instead of listening to + // resize and scroll events or DOM mutations. + if (this.POLL_INTERVAL) { + this._monitoringInterval = setInterval( + this._checkForIntersections, this.POLL_INTERVAL); + } + else { + addEvent(window, 'resize', this._checkForIntersections, true); + addEvent(document, 'scroll', this._checkForIntersections, true); + + if (this.USE_MUTATION_OBSERVER && 'MutationObserver' in window) { + this._domObserver = new MutationObserver(this._checkForIntersections); + this._domObserver.observe(document, { + attributes: true, + childList: true, + characterData: true, + subtree: true + }); + } + } + } + }; + + + /** + * Stops polling for intersection changes. + * @private + */ + IntersectionObserver.prototype._unmonitorIntersections = function() { + if (this._monitoringIntersections) { + this._monitoringIntersections = false; + + clearInterval(this._monitoringInterval); + this._monitoringInterval = null; + + removeEvent(window, 'resize', this._checkForIntersections, true); + removeEvent(document, 'scroll', this._checkForIntersections, true); + + if (this._domObserver) { + this._domObserver.disconnect(); + this._domObserver = null; + } + } + }; + + + /** + * Scans each observation target for intersection changes and adds them + * to the internal entries queue. If new entries are found, it + * schedules the callback to be invoked. + * @private + */ + IntersectionObserver.prototype._checkForIntersections = function() { + var rootIsInDom = this._rootIsInDom(); + var rootRect = rootIsInDom ? this._getRootRect() : getEmptyRect(); + + this._observationTargets.forEach(function(item) { + var target = item.element; + var targetRect = getBoundingClientRect(target); + var rootContainsTarget = this._rootContainsTarget(target); + var oldEntry = item.entry; + var intersectionRect = rootIsInDom && rootContainsTarget && + this._computeTargetAndRootIntersection(target, rootRect); + + var newEntry = item.entry = new IntersectionObserverEntry({ + time: now(), + target: target, + boundingClientRect: targetRect, + rootBounds: rootRect, + intersectionRect: intersectionRect + }); + + if (!oldEntry) { + this._queuedEntries.push(newEntry); + } else if (rootIsInDom && rootContainsTarget) { + // If the new entry intersection ratio has crossed any of the + // thresholds, add a new entry. + if (this._hasCrossedThreshold(oldEntry, newEntry)) { + this._queuedEntries.push(newEntry); + } + } else { + // If the root is not in the DOM or target is not contained within + // root but the previous entry for this target had an intersection, + // add a new record indicating removal. + if (oldEntry && oldEntry.isIntersecting) { + this._queuedEntries.push(newEntry); + } + } + }, this); + + if (this._queuedEntries.length) { + this._callback(this.takeRecords(), this); + } + }; + + + /** + * Accepts a target and root rect computes the intersection between then + * following the algorithm in the spec. + * TODO(philipwalton): at this time clip-path is not considered. + * https://w3c.github.io/IntersectionObserver/#calculate-intersection-rect-algo + * @param {Element} target The target DOM element + * @param {Object} rootRect The bounding rect of the root after being + * expanded by the rootMargin value. + * @return {?Object} The final intersection rect object or undefined if no + * intersection is found. + * @private + */ + IntersectionObserver.prototype._computeTargetAndRootIntersection = + function(target, rootRect) { + + // If the element isn't displayed, an intersection can't happen. + if (window.getComputedStyle(target).display == 'none') return; + + var targetRect = getBoundingClientRect(target); + var intersectionRect = targetRect; + var parent = getParentNode(target); + var atRoot = false; + + while (!atRoot) { + var parentRect = null; + var parentComputedStyle = parent.nodeType == 1 ? + window.getComputedStyle(parent) : {}; + + // If the parent isn't displayed, an intersection can't happen. + if (parentComputedStyle.display == 'none') return; + + if (parent == this.root || parent == document) { + atRoot = true; + parentRect = rootRect; + } else { + // If the element has a non-visible overflow, and it's not the + // or element, update the intersection rect. + // Note: and cannot be clipped to a rect that's not also + // the document rect, so no need to compute a new intersection. + if (parent != document.body && + parent != document.documentElement && + parentComputedStyle.overflow != 'visible') { + parentRect = getBoundingClientRect(parent); + } + } + + // If either of the above conditionals set a new parentRect, + // calculate new intersection data. + if (parentRect) { + intersectionRect = computeRectIntersection(parentRect, intersectionRect); + + if (!intersectionRect) break; + } + parent = getParentNode(parent); + } + return intersectionRect; + }; + + + /** + * Returns the root rect after being expanded by the rootMargin value. + * @return {Object} The expanded root rect. + * @private + */ + IntersectionObserver.prototype._getRootRect = function() { + var rootRect; + if (this.root) { + rootRect = getBoundingClientRect(this.root); + } else { + // Use / instead of window since scroll bars affect size. + var html = document.documentElement; + var body = document.body; + rootRect = { + top: 0, + left: 0, + right: html.clientWidth || body.clientWidth, + width: html.clientWidth || body.clientWidth, + bottom: html.clientHeight || body.clientHeight, + height: html.clientHeight || body.clientHeight + }; + } + return this._expandRectByRootMargin(rootRect); + }; + + + /** + * Accepts a rect and expands it by the rootMargin value. + * @param {Object} rect The rect object to expand. + * @return {Object} The expanded rect. + * @private + */ + IntersectionObserver.prototype._expandRectByRootMargin = function(rect) { + var margins = this._rootMarginValues.map(function(margin, i) { + return margin.unit == 'px' ? margin.value : + margin.value * (i % 2 ? rect.width : rect.height) / 100; + }); + var newRect = { + top: rect.top - margins[0], + right: rect.right + margins[1], + bottom: rect.bottom + margins[2], + left: rect.left - margins[3] + }; + newRect.width = newRect.right - newRect.left; + newRect.height = newRect.bottom - newRect.top; + + return newRect; + }; + + + /** + * Accepts an old and new entry and returns true if at least one of the + * threshold values has been crossed. + * @param {?IntersectionObserverEntry} oldEntry The previous entry for a + * particular target element or null if no previous entry exists. + * @param {IntersectionObserverEntry} newEntry The current entry for a + * particular target element. + * @return {boolean} Returns true if a any threshold has been crossed. + * @private + */ + IntersectionObserver.prototype._hasCrossedThreshold = + function(oldEntry, newEntry) { + + // To make comparing easier, an entry that has a ratio of 0 + // but does not actually intersect is given a value of -1 + var oldRatio = oldEntry && oldEntry.isIntersecting ? + oldEntry.intersectionRatio || 0 : -1; + var newRatio = newEntry.isIntersecting ? + newEntry.intersectionRatio || 0 : -1; + + // Ignore unchanged ratios + if (oldRatio === newRatio) return; + + for (var i = 0; i < this.thresholds.length; i++) { + var threshold = this.thresholds[i]; + + // Return true if an entry matches a threshold or if the new ratio + // and the old ratio are on the opposite sides of a threshold. + if (threshold == oldRatio || threshold == newRatio || + threshold < oldRatio !== threshold < newRatio) { + return true; + } + } + }; + + + /** + * Returns whether or not the root element is an element and is in the DOM. + * @return {boolean} True if the root element is an element and is in the DOM. + * @private + */ + IntersectionObserver.prototype._rootIsInDom = function() { + return !this.root || containsDeep(document, this.root); + }; + + + /** + * Returns whether or not the target element is a child of root. + * @param {Element} target The target element to check. + * @return {boolean} True if the target element is a child of root. + * @private + */ + IntersectionObserver.prototype._rootContainsTarget = function(target) { + return containsDeep(this.root || document, target); + }; + + + /** + * Adds the instance to the global IntersectionObserver registry if it isn't + * already present. + * @private + */ + IntersectionObserver.prototype._registerInstance = function() { + if (registry.indexOf(this) < 0) { + registry.push(this); + } + }; + + + /** + * Removes the instance from the global IntersectionObserver registry. + * @private + */ + IntersectionObserver.prototype._unregisterInstance = function() { + var index = registry.indexOf(this); + if (index != -1) registry.splice(index, 1); + }; + + + /** + * Returns the result of the performance.now() method or null in browsers + * that don't support the API. + * @return {number} The elapsed time since the page was requested. + */ + function now() { + return window.performance && performance.now && performance.now(); } -}; + + + /** + * Throttles a function and delays its executiong, so it's only called at most + * once within a given time period. + * @param {Function} fn The function to throttle. + * @param {number} timeout The amount of time that must pass before the + * function can be called again. + * @return {Function} The throttled function. + */ + function throttle(fn, timeout) { + var timer = null; + return function () { + if (!timer) { + timer = setTimeout(function() { + fn(); + timer = null; + }, timeout); + } + }; + } + + + /** + * Adds an event handler to a DOM node ensuring cross-browser compatibility. + * @param {Node} node The DOM node to add the event handler to. + * @param {string} event The event name. + * @param {Function} fn The event handler to add. + * @param {boolean} opt_useCapture Optionally adds the even to the capture + * phase. Note: this only works in modern browsers. + */ + function addEvent(node, event, fn, opt_useCapture) { + if (typeof node.addEventListener == 'function') { + node.addEventListener(event, fn, opt_useCapture || false); + } + else if (typeof node.attachEvent == 'function') { + node.attachEvent('on' + event, fn); + } + } + + + /** + * Removes a previously added event handler from a DOM node. + * @param {Node} node The DOM node to remove the event handler from. + * @param {string} event The event name. + * @param {Function} fn The event handler to remove. + * @param {boolean} opt_useCapture If the event handler was added with this + * flag set to true, it should be set to true here in order to remove it. + */ + function removeEvent(node, event, fn, opt_useCapture) { + if (typeof node.removeEventListener == 'function') { + node.removeEventListener(event, fn, opt_useCapture || false); + } + else if (typeof node.detatchEvent == 'function') { + node.detatchEvent('on' + event, fn); + } + } + + + /** + * Returns the intersection between two rect objects. + * @param {Object} rect1 The first rect. + * @param {Object} rect2 The second rect. + * @return {?Object} The intersection rect or undefined if no intersection + * is found. + */ + function computeRectIntersection(rect1, rect2) { + var top = Math.max(rect1.top, rect2.top); + var bottom = Math.min(rect1.bottom, rect2.bottom); + var left = Math.max(rect1.left, rect2.left); + var right = Math.min(rect1.right, rect2.right); + var width = right - left; + var height = bottom - top; + + return (width >= 0 && height >= 0) && { + top: top, + bottom: bottom, + left: left, + right: right, + width: width, + height: height + }; + } + + + /** + * Shims the native getBoundingClientRect for compatibility with older IE. + * @param {Element} el The element whose bounding rect to get. + * @return {Object} The (possibly shimmed) rect of the element. + */ + function getBoundingClientRect(el) { + var rect; + + try { + rect = el.getBoundingClientRect(); + } catch (err) { + // Ignore Windows 7 IE11 "Unspecified error" + // https://github.com/w3c/IntersectionObserver/pull/205 + } + + if (!rect) return getEmptyRect(); + + // Older IE + if (!(rect.width && rect.height)) { + rect = { + top: rect.top, + right: rect.right, + bottom: rect.bottom, + left: rect.left, + width: rect.right - rect.left, + height: rect.bottom - rect.top + }; + } + return rect; + } + + + /** + * Returns an empty rect object. An empty rect is returned when an element + * is not in the DOM. + * @return {Object} The empty rect. + */ + function getEmptyRect() { + return { + top: 0, + bottom: 0, + left: 0, + right: 0, + width: 0, + height: 0 + }; + } + + /** + * Checks to see if a parent element contains a child elemnt (including inside + * shadow DOM). + * @param {Node} parent The parent element. + * @param {Node} child The child element. + * @return {boolean} True if the parent node contains the child node. + */ + function containsDeep(parent, child) { + var node = child; + while (node) { + if (node == parent) return true; + + node = getParentNode(node); + } + return false; + } + + + /** + * Gets the parent node of an element or its host element if the parent node + * is a shadow root. + * @param {Node} node The node whose parent to get. + * @return {Node|null} The parent node or null if no parent exists. + */ + function getParentNode(node) { + var parent = node.parentNode; + + if (parent && parent.nodeType == 11 && parent.host) { + // If the parent is a shadow root, return the host element. + return parent.host; + } + return parent; + } + + + // Exposes the constructors globally. + window.IntersectionObserver = IntersectionObserver; + window.IntersectionObserverEntry = IntersectionObserverEntry; + + }(window, document)); // Let's kick things off now -if ( document.readyState === 'interactive' || document.readyState === 'complete' ) { +if ( document.readyState === 'interactive' || document.readyState === "complete" ) { jetpackLazyImagesModule(); } else { document.addEventListener( 'DOMContentLoaded', jetpackLazyImagesModule ); diff --git a/vendor/automattic/jetpack-lazy-images/src/js/lazy-images.min.js b/vendor/automattic/jetpack-lazy-images/src/js/lazy-images.min.js index 5cc3218566357..a213f97336c2d 100644 --- a/vendor/automattic/jetpack-lazy-images/src/js/lazy-images.min.js +++ b/vendor/automattic/jetpack-lazy-images/src/js/lazy-images.min.js @@ -1 +1 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}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 a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));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=0)}([function(e,t){const n=function(){const e={rootMargin:"200px 0px",threshold:.01},t=[];let n,r,a;i();const o=document.querySelector("body");function i(){n=Array.from(document.querySelectorAll("img.jetpack-lazy-image:not(.jetpack-lazy-image--handled)")),a&&a.disconnect(),"IntersectionObserver"in window?(a=new IntersectionObserver(l,e),n.forEach((function(e){e.getAttribute("data-lazy-loaded")||a.observe(e)})),window.addEventListener("beforeprint",c),window.matchMedia&&window.matchMedia("print").addListener((function(e){e.matches&&c()}))):d()}function d(){for(a&&a.disconnect();n.length>0;)s(n[0])}function l(e){for(let t=0;t0&&(a.unobserve(n.target),s(n.target))}0===n.length&&a.disconnect()}function c(){if(!r&&(n.length>0||t.length>0)){(r=document.createElement("div")).id="loadingWarning",r.style.fontWeight="bold",r.innerText=jetpackLazyImagesL10n.loading_warning;const e=document.createElement("style");e.innerHTML="#loadingWarning { display: none; }\n@media print {\n#loadingWarning { display: block; }\nbody > #loadingWarning ~ * { display: none !important; }\n}",r.appendChild(e),o.insertBefore(r,o.firstChild)}n.length>0&&d(),r&&alert(jetpackLazyImagesL10n.loading_warning)}function s(e){let r;if(!(e instanceof HTMLImageElement))return;const a=e.getAttribute("data-lazy-srcset"),o=e.getAttribute("data-lazy-sizes");e.removeAttribute("data-lazy-srcset"),e.removeAttribute("data-lazy-sizes"),e.removeAttribute("data-lazy-src"),e.classList.add("jetpack-lazy-image--handled"),e.setAttribute("data-lazy-loaded",1),o&&e.setAttribute("sizes",o),a?e.setAttribute("srcset",a):e.removeAttribute("srcset"),e.setAttribute("loading","eager"),t.push(e);const i=n.indexOf(e);i>=0&&n.splice(i,1),e.complete?u.call(e,null):(e.addEventListener("load",u,{once:!0}),e.addEventListener("error",u,{once:!0}));try{r=new Event("jetpack-lazy-loaded-image",{bubbles:!0,cancelable:!0})}catch(e){(r=document.createEvent("Event")).initEvent("jetpack-lazy-loaded-image",!0,!0)}e.dispatchEvent(r)}function u(){const e=t.indexOf(this);e>=0&&t.splice(e,1),r&&0===n.length&&0===t.length&&(r.parentNode.removeChild(r),r=null)}o&&(o.addEventListener("is.post-load",i),o.addEventListener("jetpack-lazy-images-load",i))};"interactive"===document.readyState||"complete"===document.readyState?n():document.addEventListener("DOMContentLoaded",n)}]); \ No newline at end of file +!function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e){var n=function(){var t,e,n,o,r={rootMargin:"200px 0px",threshold:.01},i=0;c();var s=document.querySelector("body");function c(){if(t=document.querySelectorAll("img.jetpack-lazy-image:not(.jetpack-lazy-image--handled)"),i=t.length,e&&e.disconnect(),"IntersectionObserver"in window)for(e=new IntersectionObserver(a,r),o=0;o0&&(i--,e.unobserve(o.target),h(o.target))}}function h(t){var e,n,o;if(!(!t instanceof HTMLImageElement)){e=t.getAttribute("data-lazy-srcset"),n=t.getAttribute("data-lazy-sizes"),t.removeAttribute("data-lazy-srcset"),t.removeAttribute("data-lazy-sizes"),t.removeAttribute("data-lazy-src"),t.classList.add("jetpack-lazy-image--handled"),t.setAttribute("data-lazy-loaded",1),n&&t.setAttribute("sizes",n),e?t.setAttribute("srcset",e):t.removeAttribute("srcset");try{o=new Event("jetpack-lazy-loaded-image",{bubbles:!0,cancelable:!0})}catch(t){(o=document.createEvent("Event")).initEvent("jetpack-lazy-loaded-image",!0,!0)}t.dispatchEvent(o)}}s&&(s.addEventListener("is.post-load",c),s.addEventListener("jetpack-lazy-images-load",c))};!function(t,e){"use strict";if("IntersectionObserver"in t&&"IntersectionObserverEntry"in t&&"intersectionRatio"in t.IntersectionObserverEntry.prototype)"isIntersecting"in t.IntersectionObserverEntry.prototype||Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var n=[];r.prototype.THROTTLE_TIMEOUT=100,r.prototype.POLL_INTERVAL=null,r.prototype.USE_MUTATION_OBSERVER=!0,r.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},r.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},r.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},r.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},r.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]}))},r.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},r.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(i(t,"resize",this._checkForIntersections,!0),i(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in t&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},r.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,s(t,"resize",this._checkForIntersections,!0),s(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},r.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),n=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var i=r.element,s=c(i),a=this._rootContainsTarget(i),h=r.entry,u=e&&a&&this._computeTargetAndRootIntersection(i,n),l=r.entry=new o({time:t.performance&&performance.now&&performance.now(),target:i,boundingClientRect:s,rootBounds:n,intersectionRect:u});h?e&&a?this._hasCrossedThreshold(h,l)&&this._queuedEntries.push(l):h&&h.isIntersecting&&this._queuedEntries.push(l):this._queuedEntries.push(l)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},r.prototype._computeTargetAndRootIntersection=function(n,o){if("none"!=t.getComputedStyle(n).display){for(var r,i,s,a,u,l,d,p,f=c(n),g=h(n),v=!1;!v;){var m=null,b=1==g.nodeType?t.getComputedStyle(g):{};if("none"==b.display)return;if(g==this.root||g==e?(v=!0,m=o):g!=e.body&&g!=e.documentElement&&"visible"!=b.overflow&&(m=c(g)),m&&(r=m,i=f,s=void 0,a=void 0,u=void 0,l=void 0,d=void 0,p=void 0,s=Math.max(r.top,i.top),a=Math.min(r.bottom,i.bottom),u=Math.max(r.left,i.left),l=Math.min(r.right,i.right),p=a-s,!(f=(d=l-u)>=0&&p>=0&&{top:s,bottom:a,left:u,right:l,width:d,height:p})))break;g=h(g)}return f}},r.prototype._getRootRect=function(){var t;if(this.root)t=c(this.root);else{var n=e.documentElement,o=e.body;t={top:0,left:0,right:n.clientWidth||o.clientWidth,width:n.clientWidth||o.clientWidth,bottom:n.clientHeight||o.clientHeight,height:n.clientHeight||o.clientHeight}}return this._expandRectByRootMargin(t)},r.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100})),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},r.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,o=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==o)for(var r=0;r __( 'Images are still loading. Please cancel your print and try again.', 'jetpack' ), - ) - ); } } diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 50a473717a62b..7f9572db3f3ff 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInitf4b7b70b114e3d14b34ab30f33a9a084 +class ComposerAutoloaderInit322320f583925c267e07d92b1da9a1a8 { private static $loader; @@ -22,15 +22,15 @@ public static function getLoader() return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInitf4b7b70b114e3d14b34ab30f33a9a084', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit322320f583925c267e07d92b1da9a1a8', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(); - spl_autoload_unregister(array('ComposerAutoloaderInitf4b7b70b114e3d14b34ab30f33a9a084', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit322320f583925c267e07d92b1da9a1a8', 'loadClassLoader')); $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); if ($useStaticLoader) { require_once __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInitf4b7b70b114e3d14b34ab30f33a9a084::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInit322320f583925c267e07d92b1da9a1a8::getInitializer($loader)); } else { $classMap = require __DIR__ . '/autoload_classmap.php'; if ($classMap) { @@ -42,19 +42,19 @@ public static function getLoader() $loader->register(true); if ($useStaticLoader) { - $includeFiles = Composer\Autoload\ComposerStaticInitf4b7b70b114e3d14b34ab30f33a9a084::$files; + $includeFiles = Composer\Autoload\ComposerStaticInit322320f583925c267e07d92b1da9a1a8::$files; } else { $includeFiles = require __DIR__ . '/autoload_files.php'; } foreach ($includeFiles as $fileIdentifier => $file) { - composerRequiref4b7b70b114e3d14b34ab30f33a9a084($fileIdentifier, $file); + composerRequire322320f583925c267e07d92b1da9a1a8($fileIdentifier, $file); } return $loader; } } -function composerRequiref4b7b70b114e3d14b34ab30f33a9a084($fileIdentifier, $file) +function composerRequire322320f583925c267e07d92b1da9a1a8($fileIdentifier, $file) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { require $file; diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index da6da7d4218ab..c4613f7a1a6f0 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInitf4b7b70b114e3d14b34ab30f33a9a084 +class ComposerStaticInit322320f583925c267e07d92b1da9a1a8 { public static $files = array ( 'bce4ecd6aabb2a2948e06d0e2c4ea9a6' => __DIR__ . '/..' . '/automattic/jetpack-connection/legacy/load-ixr.php', @@ -147,10 +147,10 @@ class ComposerStaticInitf4b7b70b114e3d14b34ab30f33a9a084 public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInitf4b7b70b114e3d14b34ab30f33a9a084::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInitf4b7b70b114e3d14b34ab30f33a9a084::$prefixDirsPsr4; - $loader->prefixesPsr0 = ComposerStaticInitf4b7b70b114e3d14b34ab30f33a9a084::$prefixesPsr0; - $loader->classMap = ComposerStaticInitf4b7b70b114e3d14b34ab30f33a9a084::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInit322320f583925c267e07d92b1da9a1a8::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit322320f583925c267e07d92b1da9a1a8::$prefixDirsPsr4; + $loader->prefixesPsr0 = ComposerStaticInit322320f583925c267e07d92b1da9a1a8::$prefixesPsr0; + $loader->classMap = ComposerStaticInit322320f583925c267e07d92b1da9a1a8::$classMap; }, null, ClassLoader::class); } diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index eb35f4372f50c..e0072fc89b4d5 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -1,16 +1,23 @@ [ { "name": "automattic/jetpack-a8c-mc-stats", - "version": "dev-add/jetpack-lazy-images-package", - "version_normalized": "dev-add/jetpack-lazy-images-package", + "version": "v1.2.0", + "version_normalized": "1.2.0.0", + "source": { + "type": "git", + "url": "https://github.com/Automattic/jetpack-a8c-mc-stats.git", + "reference": "9daa7d933679f7c3c38f1a2a1eaeaa87d7b43e37" + }, "dist": { - "type": "path", - "url": "./packages/a8c-mc-stats", - "reference": "72e8464c053658a730113aa3cfb6d8b292cd16e2" + "type": "zip", + "url": "https://api.github.com/repos/Automattic/jetpack-a8c-mc-stats/zipball/9daa7d933679f7c3c38f1a2a1eaeaa87d7b43e37", + "reference": "9daa7d933679f7c3c38f1a2a1eaeaa87d7b43e37", + "shasum": "" }, "require-dev": { "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5" }, + "time": "2020-09-17T18:20:50+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -18,37 +25,37 @@ "src/" ] }, - "scripts": { - "phpunit": [ - "@composer install", - "./vendor/phpunit/phpunit/phpunit --colors=always" - ] - }, + "notification-url": "https://packagist.org/downloads/", "license": [ "GPL-2.0-or-later" ], - "description": "Used to record internal usage stats for Automattic. Not visible to site owners.", - "transport-options": { - "relative": true - } + "description": "Used to record internal usage stats for Automattic. Not visible to site owners." }, { "name": "automattic/jetpack-abtest", - "version": "dev-add/jetpack-lazy-images-package", - "version_normalized": "dev-add/jetpack-lazy-images-package", + "version": "v1.8.4", + "version_normalized": "1.8.4.0", + "source": { + "type": "git", + "url": "https://github.com/Automattic/jetpack-abtest.git", + "reference": "5eb3addbca6cbbc0603cbf74b653078615bb92d7" + }, "dist": { - "type": "path", - "url": "./packages/abtest", - "reference": "8295c4e5fe6e61ad3f2848f294763398f966e8e9" + "type": "zip", + "url": "https://api.github.com/repos/Automattic/jetpack-abtest/zipball/5eb3addbca6cbbc0603cbf74b653078615bb92d7", + "reference": "5eb3addbca6cbbc0603cbf74b653078615bb92d7", + "shasum": "" }, "require": { - "automattic/jetpack-connection": "@dev", - "automattic/jetpack-error": "@dev" + "automattic/jetpack-connection": "1.21.1", + "automattic/jetpack-error": "1.2.0" }, "require-dev": { + "automattic/wordbless": "dev-master", "php-mock/php-mock": "^2.1", "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5" }, + "time": "2020-11-24T17:51:11+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -56,37 +63,36 @@ "src/" ] }, - "scripts": { - "phpunit": [ - "@composer install", - "./vendor/phpunit/phpunit/phpunit --colors=always" - ] - }, + "notification-url": "https://packagist.org/downloads/", "license": [ "GPL-2.0-or-later" ], - "description": "Provides an interface to the WP.com A/B tests.", - "transport-options": { - "relative": true - } + "description": "Provides an interface to the WP.com A/B tests." }, { "name": "automattic/jetpack-assets", - "version": "dev-add/jetpack-lazy-images-package", - "version_normalized": "dev-add/jetpack-lazy-images-package", + "version": "v1.9.1", + "version_normalized": "1.9.1.0", + "source": { + "type": "git", + "url": "https://github.com/Automattic/jetpack-assets.git", + "reference": "2eb64917ef18f9e26258ff1e1bfadf3ff71e7518" + }, "dist": { - "type": "path", - "url": "./packages/assets", - "reference": "2e25ad7667693395602e6a1962357901c842b067" + "type": "zip", + "url": "https://api.github.com/repos/Automattic/jetpack-assets/zipball/2eb64917ef18f9e26258ff1e1bfadf3ff71e7518", + "reference": "2eb64917ef18f9e26258ff1e1bfadf3ff71e7518", + "shasum": "" }, "require": { - "automattic/jetpack-constants": "@dev" + "automattic/jetpack-constants": "1.5.1" }, "require-dev": { - "brain/monkey": "2.4.0", + "brain/monkey": "2.5.0", "php-mock/php-mock": "^2.1", "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5" }, + "time": "2020-11-24T17:30:55+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -94,28 +100,26 @@ "src/" ] }, - "scripts": { - "phpunit": [ - "@composer install", - "./vendor/phpunit/phpunit/phpunit --colors=always" - ] - }, + "notification-url": "https://packagist.org/downloads/", "license": [ "GPL-2.0-or-later" ], - "description": "Asset management utilities for Jetpack ecosystem packages", - "transport-options": { - "relative": true - } + "description": "Asset management utilities for Jetpack ecosystem packages" }, { "name": "automattic/jetpack-autoloader", - "version": "dev-add/jetpack-lazy-images-package", - "version_normalized": "dev-add/jetpack-lazy-images-package", + "version": "v2.6.0", + "version_normalized": "2.6.0.0", + "source": { + "type": "git", + "url": "https://github.com/Automattic/jetpack-autoloader.git", + "reference": "47dde8dbca6b1e30f176725f2f748a9abefcaf58" + }, "dist": { - "type": "path", - "url": "./packages/autoloader", - "reference": "557195e755ff951fe3f8544056c5696eecc4d2cb" + "type": "zip", + "url": "https://api.github.com/repos/Automattic/jetpack-autoloader/zipball/47dde8dbca6b1e30f176725f2f748a9abefcaf58", + "reference": "47dde8dbca6b1e30f176725f2f748a9abefcaf58", + "shasum": "" }, "require": { "composer-plugin-api": "^1.1 || ^2.0" @@ -123,6 +127,7 @@ "require-dev": { "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5" }, + "time": "2020-11-19T21:20:12+00:00", "type": "composer-plugin", "extra": { "class": "Automattic\\Jetpack\\Autoloader\\CustomAutoloaderPlugin" @@ -136,29 +141,28 @@ "Automattic\\Jetpack\\Autoloader\\": "src" } }, - "scripts": { - "phpunit": [ - "@composer install", - "./vendor/phpunit/phpunit/phpunit --colors=always" - ] - }, + "notification-url": "https://packagist.org/downloads/", "license": [ "GPL-2.0-or-later" ], - "description": "Creates a custom autoloader for a plugin or theme.", - "transport-options": { - "relative": true - } + "description": "Creates a custom autoloader for a plugin or theme." }, { "name": "automattic/jetpack-backup", - "version": "dev-add/jetpack-lazy-images-package", - "version_normalized": "dev-add/jetpack-lazy-images-package", + "version": "v1.0.2", + "version_normalized": "1.0.2.0", + "source": { + "type": "git", + "url": "https://github.com/Automattic/jetpack-backup.git", + "reference": "ea2aaa9be3697d8b885a74a11411c7818fba5a75" + }, "dist": { - "type": "path", - "url": "./packages/backup", - "reference": "69733464fcefcb51342908dcdd6db6feb285c180" + "type": "zip", + "url": "https://api.github.com/repos/Automattic/jetpack-backup/zipball/ea2aaa9be3697d8b885a74a11411c7818fba5a75", + "reference": "ea2aaa9be3697d8b885a74a11411c7818fba5a75", + "shasum": "" }, + "time": "2019-11-08T21:16:05+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -169,27 +173,32 @@ "src/" ] }, + "notification-url": "https://packagist.org/downloads/", "license": [ "GPL-2.0-or-later" ], - "description": "Tools to assist with backing up Jetpack sites.", - "transport-options": { - "relative": true - } + "description": "Tools to assist with backing up Jetpack sites." }, { "name": "automattic/jetpack-blocks", - "version": "dev-add/nonce-removal", - "version_normalized": "dev-add/nonce-removal", + "version": "v1.1.1", + "version_normalized": "1.1.1.0", + "source": { + "type": "git", + "url": "https://github.com/Automattic/jetpack-blocks.git", + "reference": "4f1ac651e6a5746c9ef10f93fa61d4b5777d2e31" + }, "dist": { - "type": "path", - "url": "./packages/blocks", - "reference": "057e0ecae8c03cbc335bb5ea488f67b51603fd7a" + "type": "zip", + "url": "https://api.github.com/repos/Automattic/jetpack-blocks/zipball/4f1ac651e6a5746c9ef10f93fa61d4b5777d2e31", + "reference": "4f1ac651e6a5746c9ef10f93fa61d4b5777d2e31", + "shasum": "" }, "require-dev": { "automattic/wordbless": "dev-master", "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5" }, + "time": "2020-11-13T15:03:31+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -197,36 +206,32 @@ "src/" ] }, - "scripts": { - "phpunit": [ - "@composer install", - "./vendor/phpunit/phpunit/phpunit --colors=always" - ], - "post-update-cmd": [ - "php -r \"copy('vendor/automattic/wordbless/src/dbless-wpdb.php', 'wordpress/wp-content/db.php');\"" - ] - }, + "notification-url": "https://packagist.org/downloads/", "license": [ "GPL-2.0-or-later" ], - "description": "Register and manage blocks within a plugin. Used to manage block registration, enqueues, and more.", - "transport-options": { - "relative": true - } + "description": "Register and manage blocks within a plugin. Used to manage block registration, enqueues, and more." }, { "name": "automattic/jetpack-compat", - "version": "dev-add/jetpack-lazy-images-package", - "version_normalized": "dev-add/jetpack-lazy-images-package", + "version": "v1.5.1", + "version_normalized": "1.5.1.0", + "source": { + "type": "git", + "url": "https://github.com/Automattic/jetpack-compat.git", + "reference": "00165f14c19729d4b28ed5a67d1e2b68393ae291" + }, "dist": { - "type": "path", - "url": "./packages/compat", - "reference": "68d64fff654a688bab6db5d79d1609c9ec288701" + "type": "zip", + "url": "https://api.github.com/repos/Automattic/jetpack-compat/zipball/00165f14c19729d4b28ed5a67d1e2b68393ae291", + "reference": "00165f14c19729d4b28ed5a67d1e2b68393ae291", + "shasum": "" }, "require-dev": { "php-mock/php-mock": "^2.1", "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5" }, + "time": "2020-10-28T19:00:19+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -237,29 +242,28 @@ "legacy" ] }, - "scripts": { - "phpunit": [ - "@composer install", - "./vendor/phpunit/phpunit/phpunit --colors=always" - ] - }, + "notification-url": "https://packagist.org/downloads/", "license": [ "GPL-2.0-or-later" ], - "description": "Compatibility layer with previous versions of Jetpack", - "transport-options": { - "relative": true - } + "description": "Compatibility layer with previous versions of Jetpack" }, { "name": "automattic/jetpack-config", - "version": "dev-add/jetpack-lazy-images-package", - "version_normalized": "dev-add/jetpack-lazy-images-package", + "version": "v1.4.2", + "version_normalized": "1.4.2.0", + "source": { + "type": "git", + "url": "https://github.com/Automattic/jetpack-config.git", + "reference": "0f4b1f66f276cc2352d5fa0c29f98566df8efdd3" + }, "dist": { - "type": "path", - "url": "./packages/config", - "reference": "2276f5efe5e29fff5c373e9b7a272d7d007005f4" + "type": "zip", + "url": "https://api.github.com/repos/Automattic/jetpack-config/zipball/0f4b1f66f276cc2352d5fa0c29f98566df8efdd3", + "reference": "0f4b1f66f276cc2352d5fa0c29f98566df8efdd3", + "shasum": "" }, + "time": "2020-10-28T19:00:23+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -267,35 +271,41 @@ "src/" ] }, + "notification-url": "https://packagist.org/downloads/", "license": [ "GPL-2.0-or-later" ], - "description": "Jetpack configuration package that initializes other packages and configures Jetpack's functionality. Can be used as a base for all variants of Jetpack package usage.", - "transport-options": { - "relative": true - } + "description": "Jetpack configuration package that initializes other packages and configures Jetpack's functionality. Can be used as a base for all variants of Jetpack package usage." }, { "name": "automattic/jetpack-connection", - "version": "dev-add/jetpack-lazy-images-package", - "version_normalized": "dev-add/jetpack-lazy-images-package", + "version": "v1.21.1", + "version_normalized": "1.21.1.0", + "source": { + "type": "git", + "url": "https://github.com/Automattic/jetpack-connection.git", + "reference": "d44cc99636389cff1f7ca0e1a2aee630b9d1673f" + }, "dist": { - "type": "path", - "url": "./packages/connection", - "reference": "bb68aeb045a837fe2fe4784ca41ac667fe5b6fa5" + "type": "zip", + "url": "https://api.github.com/repos/Automattic/jetpack-connection/zipball/d44cc99636389cff1f7ca0e1a2aee630b9d1673f", + "reference": "d44cc99636389cff1f7ca0e1a2aee630b9d1673f", + "shasum": "" }, "require": { - "automattic/jetpack-constants": "@dev", - "automattic/jetpack-options": "@dev", - "automattic/jetpack-roles": "@dev", - "automattic/jetpack-status": "@dev", - "automattic/jetpack-tracking": "@dev" + "automattic/jetpack-constants": "1.5.1", + "automattic/jetpack-heartbeat": "1.2.2", + "automattic/jetpack-options": "1.9.1", + "automattic/jetpack-roles": "1.3.1", + "automattic/jetpack-status": "1.6.0", + "automattic/jetpack-tracking": "1.11.1" }, "require-dev": { "automattic/wordbless": "@dev", "php-mock/php-mock": "^2.1", "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5" }, + "time": "2020-11-24T17:50:38+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -307,36 +317,32 @@ "src/" ] }, - "scripts": { - "phpunit": [ - "@composer install", - "./vendor/phpunit/phpunit/phpunit --colors=always" - ], - "post-update-cmd": [ - "php -r \"copy('vendor/automattic/wordbless/src/dbless-wpdb.php', 'wordpress/wp-content/db.php');\"" - ] - }, + "notification-url": "https://packagist.org/downloads/", "license": [ "GPL-2.0-or-later" ], - "description": "Everything needed to connect to the Jetpack infrastructure", - "transport-options": { - "relative": true - } + "description": "Everything needed to connect to the Jetpack infrastructure" }, { "name": "automattic/jetpack-constants", - "version": "dev-add/jetpack-lazy-images-package", - "version_normalized": "dev-add/jetpack-lazy-images-package", + "version": "v1.5.1", + "version_normalized": "1.5.1.0", + "source": { + "type": "git", + "url": "https://github.com/Automattic/jetpack-constants.git", + "reference": "18f772daddc8be5df76c9f4a92e017a3c2569a5b" + }, "dist": { - "type": "path", - "url": "./packages/constants", - "reference": "d8c1e77b35ab7d05f228ddd1bef563fabeb0628b" + "type": "zip", + "url": "https://api.github.com/repos/Automattic/jetpack-constants/zipball/18f772daddc8be5df76c9f4a92e017a3c2569a5b", + "reference": "18f772daddc8be5df76c9f4a92e017a3c2569a5b", + "shasum": "" }, "require-dev": { "php-mock/php-mock": "^2.1", "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5" }, + "time": "2020-10-28T19:00:31+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -344,33 +350,32 @@ "src/" ] }, - "scripts": { - "phpunit": [ - "@composer install", - "./vendor/phpunit/phpunit/phpunit --colors=always" - ] - }, + "notification-url": "https://packagist.org/downloads/", "license": [ "GPL-2.0-or-later" ], - "description": "A wrapper for defining constants in a more testable way.", - "transport-options": { - "relative": true - } + "description": "A wrapper for defining constants in a more testable way." }, { "name": "automattic/jetpack-device-detection", - "version": "dev-add/jetpack-lazy-images-package", - "version_normalized": "dev-add/jetpack-lazy-images-package", + "version": "v1.2.1", + "version_normalized": "1.2.1.0", + "source": { + "type": "git", + "url": "https://github.com/Automattic/jetpack-device-detection.git", + "reference": "c6c98a5590b4dfe28c7331f51a24b5a3e682a412" + }, "dist": { - "type": "path", - "url": "./packages/device-detection", - "reference": "235a1225b76554ca04daece6ca94bcf28dd23399" + "type": "zip", + "url": "https://api.github.com/repos/Automattic/jetpack-device-detection/zipball/c6c98a5590b4dfe28c7331f51a24b5a3e682a412", + "reference": "c6c98a5590b4dfe28c7331f51a24b5a3e682a412", + "shasum": "" }, "require-dev": { "php-mock/php-mock": "^2.1", "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5" }, + "time": "2020-11-10T17:39:44+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -378,32 +383,31 @@ "src/" ] }, - "scripts": { - "phpunit": [ - "@composer install", - "./vendor/phpunit/phpunit/phpunit --colors=always" - ] - }, + "notification-url": "https://packagist.org/downloads/", "license": [ "GPL-2.0-or-later" ], - "description": "A way to detect device types based on User-Agent header.", - "transport-options": { - "relative": true - } + "description": "A way to detect device types based on User-Agent header." }, { "name": "automattic/jetpack-error", - "version": "dev-add/jetpack-lazy-images-package", - "version_normalized": "dev-add/jetpack-lazy-images-package", + "version": "v1.2.0", + "version_normalized": "1.2.0.0", + "source": { + "type": "git", + "url": "https://github.com/Automattic/jetpack-error.git", + "reference": "8ebe103c86f6a423e3abffb2812d787600bf9ea0" + }, "dist": { - "type": "path", - "url": "./packages/error", - "reference": "a4c523b50f710b69579f95b2c9de8a4f97d976d6" + "type": "zip", + "url": "https://api.github.com/repos/Automattic/jetpack-error/zipball/8ebe103c86f6a423e3abffb2812d787600bf9ea0", + "reference": "8ebe103c86f6a423e3abffb2812d787600bf9ea0", + "shasum": "" }, "require-dev": { "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5" }, + "time": "2020-08-13T14:33:16+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -411,36 +415,35 @@ "src/" ] }, - "scripts": { - "phpunit": [ - "@composer install", - "./vendor/phpunit/phpunit/phpunit --colors=always" - ] - }, + "notification-url": "https://packagist.org/downloads/", "license": [ "GPL-2.0-or-later" ], - "description": "Jetpack Error - a wrapper around WP_Error.", - "transport-options": { - "relative": true - } + "description": "Jetpack Error - a wrapper around WP_Error." }, { "name": "automattic/jetpack-heartbeat", - "version": "dev-add/jetpack-lazy-images-package", - "version_normalized": "dev-add/jetpack-lazy-images-package", + "version": "v1.2.2", + "version_normalized": "1.2.2.0", + "source": { + "type": "git", + "url": "https://github.com/Automattic/jetpack-heartbeat.git", + "reference": "22bfefe0477978a1aca5410f406b020bf5a6920e" + }, "dist": { - "type": "path", - "url": "./packages/heartbeat", - "reference": "ad4ce7ae64a1881dea8f09a7f94c789a02956f00" + "type": "zip", + "url": "https://api.github.com/repos/Automattic/jetpack-heartbeat/zipball/22bfefe0477978a1aca5410f406b020bf5a6920e", + "reference": "22bfefe0477978a1aca5410f406b020bf5a6920e", + "shasum": "" }, "require": { - "automattic/jetpack-a8c-mc-stats": "@dev", - "automattic/jetpack-options": "@dev" + "automattic/jetpack-a8c-mc-stats": "1.2.0", + "automattic/jetpack-options": "1.9.1" }, "require-dev": { "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5" }, + "time": "2020-11-24T17:50:38+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -448,45 +451,44 @@ "src/" ] }, - "scripts": { - "phpunit": [ - "@composer install", - "./vendor/phpunit/phpunit/phpunit --colors=always" - ] - }, + "notification-url": "https://packagist.org/downloads/", "license": [ "GPL-2.0-or-later" ], - "description": "This adds a cronjob that sends a batch of internal automattic stats to wp.com once a day", - "transport-options": { - "relative": true - } + "description": "This adds a cronjob that sends a batch of internal automattic stats to wp.com once a day" }, { "name": "automattic/jetpack-jitm", - "version": "dev-add/jetpack-lazy-images-package", - "version_normalized": "dev-add/jetpack-lazy-images-package", + "version": "v1.12.1", + "version_normalized": "1.12.1.0", + "source": { + "type": "git", + "url": "https://github.com/Automattic/jetpack-jitm.git", + "reference": "a7a407d9695316c3163465af07411c06b10096fa" + }, "dist": { - "type": "path", - "url": "./packages/jitm", - "reference": "705eb87a82f661570e546e65671dddf6f80035fa" + "type": "zip", + "url": "https://api.github.com/repos/Automattic/jetpack-jitm/zipball/a7a407d9695316c3163465af07411c06b10096fa", + "reference": "a7a407d9695316c3163465af07411c06b10096fa", + "shasum": "" }, "require": { - "automattic/jetpack-assets": "@dev", - "automattic/jetpack-connection": "@dev", - "automattic/jetpack-constants": "@dev", - "automattic/jetpack-logo": "@dev", - "automattic/jetpack-options": "@dev", - "automattic/jetpack-partner": "@dev", - "automattic/jetpack-redirect": "@dev", - "automattic/jetpack-status": "@dev", - "automattic/jetpack-tracking": "@dev" + "automattic/jetpack-assets": "1.9.1", + "automattic/jetpack-connection": "1.21.1", + "automattic/jetpack-constants": "1.5.1", + "automattic/jetpack-logo": "1.4.0", + "automattic/jetpack-options": "1.9.1", + "automattic/jetpack-partner": "1.3.1", + "automattic/jetpack-redirect": "1.4.1", + "automattic/jetpack-status": "1.6.0", + "automattic/jetpack-tracking": "1.11.1" }, "require-dev": { "mockery/mockery": "^1.2", "php-mock/php-mock": "^2.1", "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5" }, + "time": "2020-11-24T17:51:41+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -494,36 +496,36 @@ "src/" ] }, - "scripts": { - "phpunit": [ - "@composer install", - "./vendor/phpunit/phpunit/phpunit --colors=always" - ] - }, + "notification-url": "https://packagist.org/downloads/", "license": [ "GPL-2.0-or-later" ], - "description": "Just in time messages for Jetpack", - "transport-options": { - "relative": true - } + "description": "Just in time messages for Jetpack" }, { "name": "automattic/jetpack-lazy-images", - "version": "dev-add/jetpack-lazy-images-package", - "version_normalized": "dev-add/jetpack-lazy-images-package", + "version": "v1.1.2", + "version_normalized": "1.1.2.0", + "source": { + "type": "git", + "url": "https://github.com/Automattic/jetpack-lazy-images.git", + "reference": "489ba6b2c4fd15b47bbdb3dbbc75b68a483ef4d9" + }, "dist": { - "type": "path", - "url": "./packages/lazy-images", - "reference": "16409fc61cce65c8b914b08c80cae2cc0662ca2d" + "type": "zip", + "url": "https://api.github.com/repos/Automattic/jetpack-lazy-images/zipball/489ba6b2c4fd15b47bbdb3dbbc75b68a483ef4d9", + "reference": "489ba6b2c4fd15b47bbdb3dbbc75b68a483ef4d9", + "shasum": "" }, "require": { - "automattic/jetpack-constants": "@dev" + "automattic/jetpack-assets": "1.9.1", + "automattic/jetpack-constants": "1.5.1" }, "require-dev": { "automattic/wordbless": "dev-master", "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5" }, + "time": "2020-11-24T18:24:26+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -531,41 +533,37 @@ "src/" ] }, - "scripts": { - "phpunit": [ - "@composer install", - "./vendor/phpunit/phpunit/phpunit --colors=always" - ], - "post-update-cmd": [ - "php -r \"copy('vendor/automattic/wordbless/src/dbless-wpdb.php', 'wordpress/wp-content/db.php');\"" - ] - }, + "notification-url": "https://packagist.org/downloads/", "license": [ "GPL-2.0-or-later" ], - "description": "Speed up your site and create a smoother viewing experience by loading images as visitors scroll down the screen, instead of all at once.", - "transport-options": { - "relative": true - } + "description": "Speed up your site and create a smoother viewing experience by loading images as visitors scroll down the screen, instead of all at once." }, { "name": "automattic/jetpack-licensing", - "version": "dev-add/license-support", - "version_normalized": "dev-add/license-support", + "version": "v1.2.4", + "version_normalized": "1.2.4.0", + "source": { + "type": "git", + "url": "https://github.com/Automattic/jetpack-licensing.git", + "reference": "b02e82ea6abaf4dbc325d54be98d300cf930c9e8" + }, "dist": { - "type": "path", - "url": "./packages/licensing", - "reference": "0b3150892c93b9bdb252933500b80db692a1d1e9" + "type": "zip", + "url": "https://api.github.com/repos/Automattic/jetpack-licensing/zipball/b02e82ea6abaf4dbc325d54be98d300cf930c9e8", + "reference": "b02e82ea6abaf4dbc325d54be98d300cf930c9e8", + "shasum": "" }, "require": { - "automattic/jetpack-connection": "@dev", - "automattic/jetpack-options": "@dev" + "automattic/jetpack-connection": "1.21.1", + "automattic/jetpack-options": "1.9.1" }, "require-dev": { "automattic/wordbless": "@dev", "php-mock/php-mock": "^2.1", "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5" }, + "time": "2020-11-24T17:50:38+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -573,36 +571,32 @@ "src/" ] }, - "scripts": { - "phpunit": [ - "@composer install", - "./vendor/phpunit/phpunit/phpunit --colors=always" - ], - "post-update-cmd": [ - "php -r \"copy('vendor/automattic/wordbless/src/dbless-wpdb.php', 'wordpress/wp-content/db.php');\"" - ] - }, + "notification-url": "https://packagist.org/downloads/", "license": [ "GPL-2.0-or-later" ], - "description": "Everything needed to manage Jetpack licenses client-side.", - "transport-options": { - "relative": true - } + "description": "Everything needed to manage Jetpack licenses client-side." }, { "name": "automattic/jetpack-logo", - "version": "dev-add/jetpack-lazy-images-package", - "version_normalized": "dev-add/jetpack-lazy-images-package", + "version": "v1.4.0", + "version_normalized": "1.4.0.0", + "source": { + "type": "git", + "url": "https://github.com/Automattic/jetpack-logo.git", + "reference": "4e209e3515f43f1586b25755c626cc3ec8e7b06c" + }, "dist": { - "type": "path", - "url": "./packages/logo", - "reference": "c62a9f8e0d4a881097cc7c65500badd5065f80b6" + "type": "zip", + "url": "https://api.github.com/repos/Automattic/jetpack-logo/zipball/4e209e3515f43f1586b25755c626cc3ec8e7b06c", + "reference": "4e209e3515f43f1586b25755c626cc3ec8e7b06c", + "shasum": "" }, "require-dev": { "php-mock/php-mock": "^2.1", "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5" }, + "time": "2020-08-13T14:33:24+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -610,36 +604,35 @@ "src/" ] }, - "scripts": { - "phpunit": [ - "@composer install", - "./vendor/phpunit/phpunit/phpunit --colors=always" - ] - }, + "notification-url": "https://packagist.org/downloads/", "license": [ "GPL-2.0-or-later" ], - "description": "A logo for Jetpack", - "transport-options": { - "relative": true - } + "description": "A logo for Jetpack" }, { "name": "automattic/jetpack-options", - "version": "dev-add/jetpack-lazy-images-package", - "version_normalized": "dev-add/jetpack-lazy-images-package", + "version": "v1.9.1", + "version_normalized": "1.9.1.0", + "source": { + "type": "git", + "url": "https://github.com/Automattic/jetpack-options.git", + "reference": "59c630e3d88f878195f2076971e7d5e2a72941ee" + }, "dist": { - "type": "path", - "url": "./packages/options", - "reference": "6602d93381bb43d69627484fb8d7af5ce939d880" + "type": "zip", + "url": "https://api.github.com/repos/Automattic/jetpack-options/zipball/59c630e3d88f878195f2076971e7d5e2a72941ee", + "reference": "59c630e3d88f878195f2076971e7d5e2a72941ee", + "shasum": "" }, "require": { - "automattic/jetpack-constants": "@dev" + "automattic/jetpack-constants": "1.5.1" }, "require-dev": { "10up/wp_mock": "0.4.2", "phpunit/phpunit": "7.*.*" }, + "time": "2020-11-24T17:47:49+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -647,29 +640,34 @@ "legacy" ] }, + "notification-url": "https://packagist.org/downloads/", "license": [ "GPL-2.0-or-later" ], - "description": "A wrapper for wp-options to manage specific Jetpack options.", - "transport-options": { - "relative": true - } + "description": "A wrapper for wp-options to manage specific Jetpack options." }, { "name": "automattic/jetpack-partner", - "version": "dev-add/jetpack-lazy-images-package", - "version_normalized": "dev-add/jetpack-lazy-images-package", + "version": "v1.3.1", + "version_normalized": "1.3.1.0", + "source": { + "type": "git", + "url": "https://github.com/Automattic/jetpack-partner.git", + "reference": "3656927fbe34e0dfacda1e3814556fe545aaca65" + }, "dist": { - "type": "path", - "url": "./packages/partner", - "reference": "14332b26281567bc6691096875176862fba01300" + "type": "zip", + "url": "https://api.github.com/repos/Automattic/jetpack-partner/zipball/3656927fbe34e0dfacda1e3814556fe545aaca65", + "reference": "3656927fbe34e0dfacda1e3814556fe545aaca65", + "shasum": "" }, "require-dev": { - "brain/monkey": "2.4.0", + "brain/monkey": "2.5.0", "mockery/mockery": "^1.2", "php-mock/php-mock": "^2.1", "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5" }, + "time": "2020-10-29T02:34:49+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -677,32 +675,35 @@ "src/" ] }, - "scripts": { - "phpunit": [ - "@composer install", - "./vendor/phpunit/phpunit/phpunit --colors=always" - ] - }, + "notification-url": "https://packagist.org/downloads/", "license": [ "GPL-2.0-or-later" ], - "description": "Support functions for Jetpack hosting partners.", - "transport-options": { - "relative": true - } + "description": "Support functions for Jetpack hosting partners." }, { "name": "automattic/jetpack-redirect", - "version": "dev-add/jetpack-lazy-images-package", - "version_normalized": "dev-add/jetpack-lazy-images-package", + "version": "v1.4.1", + "version_normalized": "1.4.1.0", + "source": { + "type": "git", + "url": "https://github.com/Automattic/jetpack-redirect.git", + "reference": "de76b20f8667656e1901499abe09e674ccb830e9" + }, "dist": { - "type": "path", - "url": "./packages/redirect", - "reference": "84327fef3be2e9321aa99d081b71ac3013f06dc7" + "type": "zip", + "url": "https://api.github.com/repos/Automattic/jetpack-redirect/zipball/de76b20f8667656e1901499abe09e674ccb830e9", + "reference": "de76b20f8667656e1901499abe09e674ccb830e9", + "shasum": "" + }, + "require": { + "automattic/jetpack-status": "1.6.0" }, "require-dev": { + "brain/monkey": "^2.5", "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5" }, + "time": "2020-11-24T17:30:55+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -710,33 +711,32 @@ "src/" ] }, - "scripts": { - "phpunit": [ - "@composer install", - "./vendor/phpunit/phpunit/phpunit --colors=always" - ] - }, + "notification-url": "https://packagist.org/downloads/", "license": [ "GPL-2.0-or-later" ], - "description": "Utilities to build URLs to the jetpack.com/redirect/ service", - "transport-options": { - "relative": true - } + "description": "Utilities to build URLs to the jetpack.com/redirect/ service" }, { "name": "automattic/jetpack-roles", - "version": "dev-add/jetpack-lazy-images-package", - "version_normalized": "dev-add/jetpack-lazy-images-package", + "version": "v1.3.1", + "version_normalized": "1.3.1.0", + "source": { + "type": "git", + "url": "https://github.com/Automattic/jetpack-roles.git", + "reference": "10234f39a2294d7c2598e7492477031470f5a01b" + }, "dist": { - "type": "path", - "url": "./packages/roles", - "reference": "139dfbbf05e2f6c45682a9c8bf13ef29c9f9bd83" + "type": "zip", + "url": "https://api.github.com/repos/Automattic/jetpack-roles/zipball/10234f39a2294d7c2598e7492477031470f5a01b", + "reference": "10234f39a2294d7c2598e7492477031470f5a01b", + "shasum": "" }, "require-dev": { "php-mock/php-mock": "^2.1", "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5" }, + "time": "2020-10-28T19:01:03+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -744,34 +744,33 @@ "src/" ] }, - "scripts": { - "phpunit": [ - "@composer install", - "./vendor/phpunit/phpunit/phpunit --colors=always" - ] - }, + "notification-url": "https://packagist.org/downloads/", "license": [ "GPL-2.0-or-later" ], - "description": "Utilities, related with user roles and capabilities.", - "transport-options": { - "relative": true - } + "description": "Utilities, related with user roles and capabilities." }, { "name": "automattic/jetpack-status", - "version": "dev-add/jetpack-lazy-images-package", - "version_normalized": "dev-add/jetpack-lazy-images-package", + "version": "v1.6.0", + "version_normalized": "1.6.0.0", + "source": { + "type": "git", + "url": "https://github.com/Automattic/jetpack-status.git", + "reference": "5ae34fcc1b5c48594778dbdb2783910109746d45" + }, "dist": { - "type": "path", - "url": "./packages/status", - "reference": "65e70cc54dc8141a328e6d43fbe9bb4286281afb" + "type": "zip", + "url": "https://api.github.com/repos/Automattic/jetpack-status/zipball/5ae34fcc1b5c48594778dbdb2783910109746d45", + "reference": "5ae34fcc1b5c48594778dbdb2783910109746d45", + "shasum": "" }, "require-dev": { - "brain/monkey": "2.4.0", + "brain/monkey": "2.5.0", "php-mock/php-mock": "^2.1", "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5" }, + "time": "2020-11-23T17:14:22+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -779,36 +778,35 @@ "src/" ] }, - "scripts": { - "phpunit": [ - "@composer install", - "./vendor/phpunit/phpunit/phpunit --colors=always" - ] - }, + "notification-url": "https://packagist.org/downloads/", "license": [ "GPL-2.0-or-later" ], - "description": "Used to retrieve information about the current status of Jetpack and the site overall.", - "transport-options": { - "relative": true - } + "description": "Used to retrieve information about the current status of Jetpack and the site overall." }, { "name": "automattic/jetpack-sync", - "version": "dev-add/publishing-tweetstorms", - "version_normalized": "dev-add/publishing-tweetstorms", + "version": "v1.18.1", + "version_normalized": "1.18.1.0", + "source": { + "type": "git", + "url": "https://github.com/Automattic/jetpack-sync.git", + "reference": "e4f714c10b9b3caad9bccfd1a3427dbd5b0cf7bc" + }, "dist": { - "type": "path", - "url": "./packages/sync", - "reference": "f163052f84a9656349985737f75c0e20c9a3c8e0" + "type": "zip", + "url": "https://api.github.com/repos/Automattic/jetpack-sync/zipball/e4f714c10b9b3caad9bccfd1a3427dbd5b0cf7bc", + "reference": "e4f714c10b9b3caad9bccfd1a3427dbd5b0cf7bc", + "shasum": "" }, "require": { - "automattic/jetpack-connection": "@dev", - "automattic/jetpack-constants": "@dev", - "automattic/jetpack-options": "@dev", - "automattic/jetpack-roles": "@dev", - "automattic/jetpack-status": "@dev" + "automattic/jetpack-connection": "1.21.1", + "automattic/jetpack-constants": "1.5.1", + "automattic/jetpack-options": "1.9.1", + "automattic/jetpack-roles": "1.3.1", + "automattic/jetpack-status": "1.6.0" }, + "time": "2020-11-24T17:50:38+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -816,32 +814,36 @@ "src/" ] }, + "notification-url": "https://packagist.org/downloads/", "license": [ "GPL-2.0-or-later" ], - "description": "Everything needed to allow syncing to the WP.com infrastructure.", - "transport-options": { - "relative": true - } + "description": "Everything needed to allow syncing to the WP.com infrastructure." }, { "name": "automattic/jetpack-terms-of-service", - "version": "dev-add/jetpack-lazy-images-package", - "version_normalized": "dev-add/jetpack-lazy-images-package", + "version": "v1.8.2", + "version_normalized": "1.8.2.0", + "source": { + "type": "git", + "url": "https://github.com/Automattic/jetpack-terms-of-service.git", + "reference": "25bbbdee520eb17f9a30e899255494583a2bbb64" + }, "dist": { - "type": "path", - "url": "./packages/terms-of-service", - "reference": "f97241d09352c4ca44eab26520cac4c1903d08d3" + "type": "zip", + "url": "https://api.github.com/repos/Automattic/jetpack-terms-of-service/zipball/25bbbdee520eb17f9a30e899255494583a2bbb64", + "reference": "25bbbdee520eb17f9a30e899255494583a2bbb64", + "shasum": "" }, "require": { - "automattic/jetpack-connection": "@dev", - "automattic/jetpack-options": "@dev", - "automattic/jetpack-status": "@dev" + "automattic/jetpack-options": "1.9.1", + "automattic/jetpack-status": "1.6.0" }, "require-dev": { "php-mock/php-mock": "^2.1", "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5" }, + "time": "2020-11-24T17:50:38+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -849,37 +851,37 @@ "src/" ] }, - "scripts": { - "phpunit": [ - "@composer install", - "./vendor/phpunit/phpunit/phpunit --colors=always" - ] - }, + "notification-url": "https://packagist.org/downloads/", "license": [ "GPL-2.0-or-later" ], - "description": "Everything need to manage the terms of service state", - "transport-options": { - "relative": true - } + "description": "Everything need to manage the terms of service state" }, { "name": "automattic/jetpack-tracking", - "version": "dev-add/jetpack-lazy-images-package", - "version_normalized": "dev-add/jetpack-lazy-images-package", + "version": "v1.11.1", + "version_normalized": "1.11.1.0", + "source": { + "type": "git", + "url": "https://github.com/Automattic/jetpack-tracking.git", + "reference": "982936c59852e8fd3768a8e33121db63928fba76" + }, "dist": { - "type": "path", - "url": "./packages/tracking", - "reference": "b2686165f1137a485f5f923c170d9d5b00871fe0" + "type": "zip", + "url": "https://api.github.com/repos/Automattic/jetpack-tracking/zipball/982936c59852e8fd3768a8e33121db63928fba76", + "reference": "982936c59852e8fd3768a8e33121db63928fba76", + "shasum": "" }, "require": { - "automattic/jetpack-options": "@dev", - "automattic/jetpack-terms-of-service": "@dev" + "automattic/jetpack-options": "1.9.1", + "automattic/jetpack-status": "1.6.0", + "automattic/jetpack-terms-of-service": "1.8.2" }, "require-dev": { "php-mock/php-mock": "^2.1", "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5" }, + "time": "2020-11-24T17:51:57+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -888,19 +890,11 @@ "src/" ] }, - "scripts": { - "phpunit": [ - "@composer install", - "./vendor/phpunit/phpunit/phpunit --colors=always" - ] - }, + "notification-url": "https://packagist.org/downloads/", "license": [ "GPL-2.0-or-later" ], - "description": "Tracking for Jetpack", - "transport-options": { - "relative": true - } + "description": "Tracking for Jetpack" }, { "name": "nojimage/twitter-text-php", diff --git a/vendor/composer/jetpack_autoload_classmap.php b/vendor/composer/jetpack_autoload_classmap.php index 544b638070284..073a5223d3361 100644 --- a/vendor/composer/jetpack_autoload_classmap.php +++ b/vendor/composer/jetpack_autoload_classmap.php @@ -7,19 +7,19 @@ return array( 'Automattic\\Jetpack\\Autoloader\\AutoloadGenerator' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '2.6.0.0', 'path' => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadGenerator.php' ), 'Automattic\\Jetpack\\Autoloader\\CustomAutoloaderPlugin' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '2.6.0.0', 'path' => $vendorDir . '/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php' ), 'Automattic\\Jetpack\\Autoloader\\AutoloadProcessor' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '2.6.0.0', 'path' => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadProcessor.php' ), 'Automattic\\Jetpack\\Autoloader\\ManifestGenerator' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '2.6.0.0', 'path' => $vendorDir . '/automattic/jetpack-autoloader/src/ManifestGenerator.php' ), 'Twitter\\Text\\Regex' => array( @@ -71,359 +71,359 @@ 'path' => $baseDir . '/src/class-tracking.php' ), 'Automattic\\Jetpack\\Sync\\Defaults' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/class-defaults.php' ), 'Automattic\\Jetpack\\Sync\\Replicastore' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/class-replicastore.php' ), 'Automattic\\Jetpack\\Sync\\Actions' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/class-actions.php' ), 'Automattic\\Jetpack\\Sync\\Settings' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/class-settings.php' ), 'Automattic\\Jetpack\\Sync\\JSON_Deflate_Array_Codec' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/class-json-deflate-array-codec.php' ), 'Automattic\\Jetpack\\Sync\\Health' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/class-health.php' ), 'Automattic\\Jetpack\\Sync\\Functions' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/class-functions.php' ), 'Automattic\\Jetpack\\Sync\\Server' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/class-server.php' ), 'Automattic\\Jetpack\\Sync\\Simple_Codec' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/class-simple-codec.php' ), 'Automattic\\Jetpack\\Sync\\Sender' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/class-sender.php' ), 'Automattic\\Jetpack\\Sync\\Lock' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/class-lock.php' ), 'Automattic\\Jetpack\\Sync\\Utils' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/class-utils.php' ), 'Automattic\\Jetpack\\Sync\\Replicastore_Interface' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/interface-replicastore.php' ), 'Automattic\\Jetpack\\Sync\\Queue_Buffer' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/class-queue-buffer.php' ), 'Automattic\\Jetpack\\Sync\\Modules' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/class-modules.php' ), 'Automattic\\Jetpack\\Sync\\Listener' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/class-listener.php' ), 'Automattic\\Jetpack\\Sync\\Main' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/class-main.php' ), 'Automattic\\Jetpack\\Sync\\Modules\\Callables' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/modules/class-callables.php' ), 'Automattic\\Jetpack\\Sync\\Modules\\Network_Options' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/modules/class-network-options.php' ), 'Automattic\\Jetpack\\Sync\\Modules\\Updates' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/modules/class-updates.php' ), 'Automattic\\Jetpack\\Sync\\Modules\\Full_Sync' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/modules/class-full-sync.php' ), 'Automattic\\Jetpack\\Sync\\Modules\\Term_Relationships' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/modules/class-term-relationships.php' ), 'Automattic\\Jetpack\\Sync\\Modules\\Stats' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/modules/class-stats.php' ), 'Automattic\\Jetpack\\Sync\\Modules\\WP_Super_Cache' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/modules/class-wp-super-cache.php' ), 'Automattic\\Jetpack\\Sync\\Modules\\Comments' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/modules/class-comments.php' ), 'Automattic\\Jetpack\\Sync\\Modules\\WooCommerce' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/modules/class-woocommerce.php' ), 'Automattic\\Jetpack\\Sync\\Modules\\Protect' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/modules/class-protect.php' ), 'Automattic\\Jetpack\\Sync\\Modules\\Terms' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/modules/class-terms.php' ), 'Automattic\\Jetpack\\Sync\\Modules\\Full_Sync_Immediately' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/modules/class-full-sync-immediately.php' ), 'Automattic\\Jetpack\\Sync\\Modules\\Plugins' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/modules/class-plugins.php' ), 'Automattic\\Jetpack\\Sync\\Modules\\Meta' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/modules/class-meta.php' ), 'Automattic\\Jetpack\\Sync\\Modules\\Themes' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/modules/class-themes.php' ), 'Automattic\\Jetpack\\Sync\\Modules\\Constants' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/modules/class-constants.php' ), 'Automattic\\Jetpack\\Sync\\Modules\\Posts' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/modules/class-posts.php' ), 'Automattic\\Jetpack\\Sync\\Modules\\Attachments' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/modules/class-attachments.php' ), 'Automattic\\Jetpack\\Sync\\Modules\\Options' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/modules/class-options.php' ), 'Automattic\\Jetpack\\Sync\\Modules\\Import' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/modules/class-import.php' ), 'Automattic\\Jetpack\\Sync\\Modules\\Users' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/modules/class-users.php' ), 'Automattic\\Jetpack\\Sync\\Modules\\Module' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/modules/class-module.php' ), 'Automattic\\Jetpack\\Sync\\Modules\\Menus' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/modules/class-menus.php' ), 'Automattic\\Jetpack\\Sync\\Queue' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/class-queue.php' ), 'Automattic\\Jetpack\\Sync\\Users' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/class-users.php' ), 'Automattic\\Jetpack\\Sync\\Codec_Interface' => array( - 'version' => 'dev-add/publishing-tweetstorms', + 'version' => '1.18.1.0', 'path' => $vendorDir . '/automattic/jetpack-sync/src/interface-codec.php' ), 'Automattic\\Jetpack\\Licensing' => array( - 'version' => 'dev-add/license-support', + 'version' => '1.2.4.0', 'path' => $vendorDir . '/automattic/jetpack-licensing/src/class-licensing.php' ), 'Automattic\\Jetpack\\Jetpack_Lazy_Images' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.1.2.0', 'path' => $vendorDir . '/automattic/jetpack-lazy-images/src/lazy-images.php' ), 'Automattic\\Jetpack\\JITMS\\Pre_Connection_JITM' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.12.1.0', 'path' => $vendorDir . '/automattic/jetpack-jitm/src/class-pre-connection-jitm.php' ), 'Automattic\\Jetpack\\JITMS\\JITM' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.12.1.0', 'path' => $vendorDir . '/automattic/jetpack-jitm/src/class-jitm.php' ), 'Automattic\\Jetpack\\JITMS\\Post_Connection_JITM' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.12.1.0', 'path' => $vendorDir . '/automattic/jetpack-jitm/src/class-post-connection-jitm.php' ), - 'Automattic\\Jetpack\\Heartbeat' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', - 'path' => $vendorDir . '/automattic/jetpack-heartbeat/src/class-heartbeat.php' - ), 'Automattic\\Jetpack\\Device_Detection' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.2.1.0', 'path' => $vendorDir . '/automattic/jetpack-device-detection/src/class-device-detection.php' ), 'Automattic\\Jetpack\\Device_Detection\\User_Agent_Info' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.2.1.0', 'path' => $vendorDir . '/automattic/jetpack-device-detection/src/class-user-agent-info.php' ), 'Automattic\\Jetpack\\Config' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.4.2.0', 'path' => $vendorDir . '/automattic/jetpack-config/src/class-config.php' ), 'JetpackTracking' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.5.1.0', 'path' => $vendorDir . '/automattic/jetpack-compat/legacy/class-jetpacktracking.php' ), 'Jetpack_Sync_Actions' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.5.1.0', 'path' => $vendorDir . '/automattic/jetpack-compat/legacy/class-jetpack-sync-actions.php' ), 'Jetpack_Sync_Modules' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.5.1.0', 'path' => $vendorDir . '/automattic/jetpack-compat/legacy/class-jetpack-sync-modules.php' ), 'Jetpack_Client' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.5.1.0', 'path' => $vendorDir . '/automattic/jetpack-compat/legacy/class-jetpack-client.php' ), 'Jetpack_Sync_Settings' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.5.1.0', 'path' => $vendorDir . '/automattic/jetpack-compat/legacy/class-jetpack-sync-settings.php' ), 'Automattic\\Jetpack\\Blocks' => array( - 'version' => 'dev-add/nonce-removal', + 'version' => '1.1.1.0', 'path' => $vendorDir . '/automattic/jetpack-blocks/src/class-blocks.php' ), 'Automattic\\Jetpack\\Backup\\Helper_Script_Manager' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.0.2.0', 'path' => $vendorDir . '/automattic/jetpack-backup/src/class-helper-script-manager.php' ), 'Automattic\\Jetpack\\Abtest' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.8.4.0', 'path' => $vendorDir . '/automattic/jetpack-abtest/src/class-abtest.php' ), - 'Automattic\\Jetpack\\Assets' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', - 'path' => $vendorDir . '/automattic/jetpack-assets/src/class-assets.php' - ), 'Automattic\\Jetpack\\Assets\\Logo' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.4.0.0', 'path' => $vendorDir . '/automattic/jetpack-logo/src/class-logo.php' ), 'Automattic\\Jetpack\\Partner' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.3.1.0', 'path' => $vendorDir . '/automattic/jetpack-partner/src/class-partner.php' ), 'Automattic\\Jetpack\\Redirect' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.4.1.0', 'path' => $vendorDir . '/automattic/jetpack-redirect/src/class-redirect.php' ), - 'Automattic\\Jetpack\\A8c_Mc_Stats' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', - 'path' => $vendorDir . '/automattic/jetpack-a8c-mc-stats/src/class-a8c-mc-stats.php' - ), 'Automattic\\Jetpack\\Error' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.2.0.0', 'path' => $vendorDir . '/automattic/jetpack-error/src/class-error.php' ), - 'Jetpack_Tracks_Client' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', - 'path' => $vendorDir . '/automattic/jetpack-tracking/legacy/class-jetpack-tracks-client.php' - ), - 'Jetpack_Tracks_Event' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', - 'path' => $vendorDir . '/automattic/jetpack-tracking/legacy/class-jetpack-tracks-event.php' - ), - 'Automattic\\Jetpack\\Tracking' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', - 'path' => $vendorDir . '/automattic/jetpack-tracking/src/class-tracking.php' - ), - 'Automattic\\Jetpack\\Terms_Of_Service' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', - 'path' => $vendorDir . '/automattic/jetpack-terms-of-service/src/class-terms-of-service.php' + 'Automattic\\Jetpack\\Assets' => array( + 'version' => '1.9.1.0', + 'path' => $vendorDir . '/automattic/jetpack-assets/src/class-assets.php' ), 'Jetpack_IXR_Client' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.21.1.0', 'path' => $vendorDir . '/automattic/jetpack-connection/legacy/class-jetpack-ixr-client.php' ), 'Jetpack_IXR_ClientMulticall' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.21.1.0', 'path' => $vendorDir . '/automattic/jetpack-connection/legacy/class-jetpack-ixr-clientmulticall.php' ), 'Jetpack_XMLRPC_Server' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.21.1.0', 'path' => $vendorDir . '/automattic/jetpack-connection/legacy/class-jetpack-xmlrpc-server.php' ), 'Jetpack_Signature' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.21.1.0', 'path' => $vendorDir . '/automattic/jetpack-connection/legacy/class-jetpack-signature.php' ), 'Automattic\\Jetpack\\Connection\\Manager' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.21.1.0', 'path' => $vendorDir . '/automattic/jetpack-connection/src/class-manager.php' ), 'Automattic\\Jetpack\\Connection\\Client' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.21.1.0', 'path' => $vendorDir . '/automattic/jetpack-connection/src/class-client.php' ), 'Automattic\\Jetpack\\Connection\\Plugin' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.21.1.0', 'path' => $vendorDir . '/automattic/jetpack-connection/src/class-plugin.php' ), 'Automattic\\Jetpack\\Connection\\XMLRPC_Connector' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.21.1.0', 'path' => $vendorDir . '/automattic/jetpack-connection/src/class-xmlrpc-connector.php' ), 'Automattic\\Jetpack\\Connection\\Rest_Authentication' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.21.1.0', 'path' => $vendorDir . '/automattic/jetpack-connection/src/class-rest-authentication.php' ), 'Automattic\\Jetpack\\Connection\\XMLRPC_Async_Call' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.21.1.0', 'path' => $vendorDir . '/automattic/jetpack-connection/src/class-xmlrpc-async-call.php' ), 'Automattic\\Jetpack\\Connection\\Manager_Interface' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.21.1.0', 'path' => $vendorDir . '/automattic/jetpack-connection/src/interface-manager.php' ), 'Automattic\\Jetpack\\Connection\\REST_Connector' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.21.1.0', 'path' => $vendorDir . '/automattic/jetpack-connection/src/class-rest-connector.php' ), 'Automattic\\Jetpack\\Connection\\Utils' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.21.1.0', 'path' => $vendorDir . '/automattic/jetpack-connection/src/class-utils.php' ), 'Automattic\\Jetpack\\Connection\\Plugin_Storage' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.21.1.0', 'path' => $vendorDir . '/automattic/jetpack-connection/src/class-plugin-storage.php' ), 'Automattic\\Jetpack\\Connection\\Error_Handler' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.21.1.0', 'path' => $vendorDir . '/automattic/jetpack-connection/src/class-error-handler.php' ), + 'Automattic\\Jetpack\\Heartbeat' => array( + 'version' => '1.2.2.0', + 'path' => $vendorDir . '/automattic/jetpack-heartbeat/src/class-heartbeat.php' + ), + 'Automattic\\Jetpack\\A8c_Mc_Stats' => array( + 'version' => '1.2.0.0', + 'path' => $vendorDir . '/automattic/jetpack-a8c-mc-stats/src/class-a8c-mc-stats.php' + ), 'Automattic\\Jetpack\\Roles' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.3.1.0', 'path' => $vendorDir . '/automattic/jetpack-roles/src/class-roles.php' ), + 'Jetpack_Tracks_Client' => array( + 'version' => '1.11.1.0', + 'path' => $vendorDir . '/automattic/jetpack-tracking/legacy/class-jetpack-tracks-client.php' + ), + 'Jetpack_Tracks_Event' => array( + 'version' => '1.11.1.0', + 'path' => $vendorDir . '/automattic/jetpack-tracking/legacy/class-jetpack-tracks-event.php' + ), + 'Automattic\\Jetpack\\Tracking' => array( + 'version' => '1.11.1.0', + 'path' => $vendorDir . '/automattic/jetpack-tracking/src/class-tracking.php' + ), + 'Automattic\\Jetpack\\Terms_Of_Service' => array( + 'version' => '1.8.2.0', + 'path' => $vendorDir . '/automattic/jetpack-terms-of-service/src/class-terms-of-service.php' + ), 'Automattic\\Jetpack\\Status' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.6.0.0', 'path' => $vendorDir . '/automattic/jetpack-status/src/class-status.php' ), 'Jetpack_Options' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.9.1.0', 'path' => $vendorDir . '/automattic/jetpack-options/legacy/class-jetpack-options.php' ), 'Automattic\\Jetpack\\Constants' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.5.1.0', 'path' => $vendorDir . '/automattic/jetpack-constants/src/class-constants.php' ), ); diff --git a/vendor/composer/jetpack_autoload_filemap.php b/vendor/composer/jetpack_autoload_filemap.php index 9f634976dbdfa..d151904997dad 100644 --- a/vendor/composer/jetpack_autoload_filemap.php +++ b/vendor/composer/jetpack_autoload_filemap.php @@ -7,15 +7,15 @@ return array( 'bce4ecd6aabb2a2948e06d0e2c4ea9a6' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.21.1.0', 'path' => $vendorDir . '/automattic/jetpack-connection/legacy/load-ixr.php' ), 'd4eb94df91a729802d18373ee8cdc79f' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.0.2.0', 'path' => $vendorDir . '/automattic/jetpack-backup/actions.php' ), '009de6aaa0d497eacea41fab13fc05f1' => array( - 'version' => 'dev-add/jetpack-lazy-images-package', + 'version' => '1.5.1.0', 'path' => $vendorDir . '/automattic/jetpack-compat/functions.php' ), ); diff --git a/vendor/jetpack-autoloader/autoload_functions.php b/vendor/jetpack-autoloader/autoload_functions.php index bc76a8eb78512..ae5e3480470ae 100644 --- a/vendor/jetpack-autoloader/autoload_functions.php +++ b/vendor/jetpack-autoloader/autoload_functions.php @@ -5,7 +5,7 @@ * @package automattic/jetpack-autoloader */ -namespace Automattic\Jetpack\Autoloader\jpf4b7b70b114e3d14b34ab30f33a9a084; +namespace Automattic\Jetpack\Autoloader\jp322320f583925c267e07d92b1da9a1a8; // phpcs:ignore diff --git a/vendor/jetpack-autoloader/class-autoloader-handler.php b/vendor/jetpack-autoloader/class-autoloader-handler.php index bc0e3989ad1b2..150023c4b0685 100644 --- a/vendor/jetpack-autoloader/class-autoloader-handler.php +++ b/vendor/jetpack-autoloader/class-autoloader-handler.php @@ -5,7 +5,7 @@ * @package automattic/jetpack-autoloader */ -namespace Automattic\Jetpack\Autoloader\jpf4b7b70b114e3d14b34ab30f33a9a084; +namespace Automattic\Jetpack\Autoloader\jp322320f583925c267e07d92b1da9a1a8; // phpcs:ignore diff --git a/vendor/jetpack-autoloader/class-autoloader-locator.php b/vendor/jetpack-autoloader/class-autoloader-locator.php index 3cd7724b32882..a0a71217e3891 100644 --- a/vendor/jetpack-autoloader/class-autoloader-locator.php +++ b/vendor/jetpack-autoloader/class-autoloader-locator.php @@ -5,7 +5,7 @@ * @package automattic/jetpack-autoloader */ -namespace Automattic\Jetpack\Autoloader\jpf4b7b70b114e3d14b34ab30f33a9a084; +namespace Automattic\Jetpack\Autoloader\jp322320f583925c267e07d92b1da9a1a8; // phpcs:ignore diff --git a/vendor/jetpack-autoloader/class-manifest-handler.php b/vendor/jetpack-autoloader/class-manifest-handler.php index 9757d01717330..62a80ee492b9b 100644 --- a/vendor/jetpack-autoloader/class-manifest-handler.php +++ b/vendor/jetpack-autoloader/class-manifest-handler.php @@ -5,7 +5,7 @@ * @package automattic/jetpack-autoloader */ -namespace Automattic\Jetpack\Autoloader\jpf4b7b70b114e3d14b34ab30f33a9a084; +namespace Automattic\Jetpack\Autoloader\jp322320f583925c267e07d92b1da9a1a8; // phpcs:ignore diff --git a/vendor/jetpack-autoloader/class-plugins-handler.php b/vendor/jetpack-autoloader/class-plugins-handler.php index a67a871eb4b6c..cf4b8b063ba09 100644 --- a/vendor/jetpack-autoloader/class-plugins-handler.php +++ b/vendor/jetpack-autoloader/class-plugins-handler.php @@ -5,7 +5,7 @@ * @package automattic/jetpack-autoloader */ -namespace Automattic\Jetpack\Autoloader\jpf4b7b70b114e3d14b34ab30f33a9a084; +namespace Automattic\Jetpack\Autoloader\jp322320f583925c267e07d92b1da9a1a8; // phpcs:ignore diff --git a/vendor/jetpack-autoloader/class-version-loader.php b/vendor/jetpack-autoloader/class-version-loader.php index db0544cf64639..7b77705b96fdd 100644 --- a/vendor/jetpack-autoloader/class-version-loader.php +++ b/vendor/jetpack-autoloader/class-version-loader.php @@ -5,7 +5,7 @@ * @package automattic/jetpack-autoloader */ -namespace Automattic\Jetpack\Autoloader\jpf4b7b70b114e3d14b34ab30f33a9a084; +namespace Automattic\Jetpack\Autoloader\jp322320f583925c267e07d92b1da9a1a8; // phpcs:ignore diff --git a/vendor/jetpack-autoloader/class-version-selector.php b/vendor/jetpack-autoloader/class-version-selector.php index d68d891d37307..aca69c877c7ae 100644 --- a/vendor/jetpack-autoloader/class-version-selector.php +++ b/vendor/jetpack-autoloader/class-version-selector.php @@ -5,7 +5,7 @@ * @package automattic/jetpack-autoloader */ -namespace Automattic\Jetpack\Autoloader\jpf4b7b70b114e3d14b34ab30f33a9a084; +namespace Automattic\Jetpack\Autoloader\jp322320f583925c267e07d92b1da9a1a8; // phpcs:ignore