@mjhls/mjh-framework 1.0.205 → 1.0.207

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/DeckContent.js +10 -11
  3. package/dist/cjs/DeckQueue.js +11 -12
  4. package/dist/cjs/{Dfp-d94f7f73.js → Dfp-c4f1f12a.js} +5 -5
  5. package/dist/cjs/GridContent-089aa22c.js +632 -0
  6. package/dist/cjs/GridContent.js +17 -604
  7. package/dist/cjs/IssueContentDeck.js +4 -4
  8. package/dist/cjs/IssueDeck.js +4 -4
  9. package/dist/cjs/MasterDeck.js +5 -6
  10. package/dist/cjs/{Normal-7dd8c339.js → Normal-47d9e184.js} +62 -3
  11. package/dist/cjs/PublicationDeck.js +4 -4
  12. package/dist/cjs/QueueDeckExpanded.js +13 -13
  13. package/dist/cjs/{TaxonomyCard-7b5b4298.js → TaxonomyCard-d97685e2.js} +5 -5
  14. package/dist/cjs/TaxonomyCard.js +1 -1
  15. package/dist/cjs/TemplateNormal.js +4 -4
  16. package/dist/cjs/ThumbnailCard.js +4 -4
  17. package/dist/cjs/VideoSeriesListing.js +6 -7
  18. package/dist/cjs/{YoutubeGroup-f7707ceb.js → YoutubeGroup-7dc3064d.js} +6 -6
  19. package/dist/cjs/YoutubeGroup.js +1 -1
  20. package/dist/cjs/{debounce-286eb3fb.js → debounce-a963b136.js} +211 -6
  21. package/dist/cjs/{get-06aac51b.js → get-126b1712.js} +10 -10
  22. package/dist/cjs/{visibility-sensor-5c5a7302.js → index-0322e486.js} +0 -587
  23. package/dist/cjs/index.js +213 -97
  24. package/dist/cjs/{index.es-2289df51.js → visibility-sensor-bea3105d.js} +587 -0
  25. package/dist/esm/DeckContent.js +3 -4
  26. package/dist/esm/DeckQueue.js +4 -5
  27. package/dist/esm/{Dfp-ab7941d3.js → Dfp-6731ac01.js} +3 -3
  28. package/dist/esm/GridContent-214acb61.js +625 -0
  29. package/dist/esm/GridContent.js +16 -603
  30. package/dist/esm/MasterDeck.js +3 -4
  31. package/dist/esm/{Normal-403c5666.js → Normal-be430fa9.js} +62 -4
  32. package/dist/esm/QueueDeckExpanded.js +2 -2
  33. package/dist/esm/TemplateNormal.js +4 -4
  34. package/dist/esm/VideoSeriesListing.js +4 -5
  35. package/dist/esm/{YoutubeGroup-06df4923.js → YoutubeGroup-dc617e8b.js} +3 -3
  36. package/dist/esm/YoutubeGroup.js +1 -1
  37. package/dist/esm/{debounce-a0242b4a.js → debounce-dc0c02e5.js} +202 -2
  38. package/dist/esm/{get-b684ff61.js → get-b074314b.js} +1 -1
  39. package/dist/esm/{visibility-sensor-3cfe6713.js → index-6a79dad6.js} +2 -588
  40. package/dist/esm/index.js +185 -71
  41. package/dist/esm/{index.es-f369b3e8.js → visibility-sensor-675d3fa1.js} +588 -2
  42. package/package.json +1 -1
  43. package/dist/cjs/AD-e2479b7c.js +0 -31
  44. package/dist/cjs/isSymbol-311eb805.js +0 -209
  45. package/dist/esm/AD-1b2a3dd3.js +0 -26
  46. package/dist/esm/isSymbol-c2b7d05a.js +0 -203
@@ -6,7 +6,6 @@ var React = require('react');
6
6
  var React__default = _interopDefault(React);
7
7
  var _commonjsHelpers = require('./_commonjsHelpers-3fc1f64e.js');
8
8
  var PropTypes = _interopDefault(require('prop-types'));
9
- var reactDom = _interopDefault(require('react-dom'));
10
9
 
11
10
  var domain;
12
11
 
@@ -1660,592 +1659,6 @@ var lib_1 = lib.DFPSlotsProvider;
1660
1659
  var lib_2 = lib.AdSlot;
1661
1660
  var lib_3 = lib.DFPManager;
1662
1661
 
1663
- var visibilitySensor = _commonjsHelpers.createCommonjsModule(function (module, exports) {
1664
- (function webpackUniversalModuleDefinition(root, factory) {
1665
- module.exports = factory(React__default, reactDom);
1666
- })(_commonjsHelpers.commonjsGlobal, function(__WEBPACK_EXTERNAL_MODULE__1__, __WEBPACK_EXTERNAL_MODULE__2__) {
1667
- return /******/ (function(modules) { // webpackBootstrap
1668
- /******/ // The module cache
1669
- /******/ var installedModules = {};
1670
- /******/
1671
- /******/ // The require function
1672
- /******/ function __webpack_require__(moduleId) {
1673
- /******/
1674
- /******/ // Check if module is in cache
1675
- /******/ if(installedModules[moduleId]) {
1676
- /******/ return installedModules[moduleId].exports;
1677
- /******/ }
1678
- /******/ // Create a new module (and put it into the cache)
1679
- /******/ var module = installedModules[moduleId] = {
1680
- /******/ i: moduleId,
1681
- /******/ l: false,
1682
- /******/ exports: {}
1683
- /******/ };
1684
- /******/
1685
- /******/ // Execute the module function
1686
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
1687
- /******/
1688
- /******/ // Flag the module as loaded
1689
- /******/ module.l = true;
1690
- /******/
1691
- /******/ // Return the exports of the module
1692
- /******/ return module.exports;
1693
- /******/ }
1694
- /******/
1695
- /******/
1696
- /******/ // expose the modules object (__webpack_modules__)
1697
- /******/ __webpack_require__.m = modules;
1698
- /******/
1699
- /******/ // expose the module cache
1700
- /******/ __webpack_require__.c = installedModules;
1701
- /******/
1702
- /******/ // define getter function for harmony exports
1703
- /******/ __webpack_require__.d = function(exports, name, getter) {
1704
- /******/ if(!__webpack_require__.o(exports, name)) {
1705
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
1706
- /******/ }
1707
- /******/ };
1708
- /******/
1709
- /******/ // define __esModule on exports
1710
- /******/ __webpack_require__.r = function(exports) {
1711
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
1712
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1713
- /******/ }
1714
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
1715
- /******/ };
1716
- /******/
1717
- /******/ // create a fake namespace object
1718
- /******/ // mode & 1: value is a module id, require it
1719
- /******/ // mode & 2: merge all properties of value into the ns
1720
- /******/ // mode & 4: return value when already ns object
1721
- /******/ // mode & 8|1: behave like require
1722
- /******/ __webpack_require__.t = function(value, mode) {
1723
- /******/ if(mode & 1) value = __webpack_require__(value);
1724
- /******/ if(mode & 8) return value;
1725
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
1726
- /******/ var ns = Object.create(null);
1727
- /******/ __webpack_require__.r(ns);
1728
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
1729
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
1730
- /******/ return ns;
1731
- /******/ };
1732
- /******/
1733
- /******/ // getDefaultExport function for compatibility with non-harmony modules
1734
- /******/ __webpack_require__.n = function(module) {
1735
- /******/ var getter = module && module.__esModule ?
1736
- /******/ function getDefault() { return module['default']; } :
1737
- /******/ function getModuleExports() { return module; };
1738
- /******/ __webpack_require__.d(getter, 'a', getter);
1739
- /******/ return getter;
1740
- /******/ };
1741
- /******/
1742
- /******/ // Object.prototype.hasOwnProperty.call
1743
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
1744
- /******/
1745
- /******/ // __webpack_public_path__
1746
- /******/ __webpack_require__.p = "";
1747
- /******/
1748
- /******/
1749
- /******/ // Load entry module and return exports
1750
- /******/ return __webpack_require__(__webpack_require__.s = 4);
1751
- /******/ })
1752
- /************************************************************************/
1753
- /******/ ([
1754
- /* 0 */
1755
- /***/ (function(module, exports, __webpack_require__) {
1756
-
1757
- /**
1758
- * Copyright (c) 2013-present, Facebook, Inc.
1759
- *
1760
- * This source code is licensed under the MIT license found in the
1761
- * LICENSE file in the root directory of this source tree.
1762
- */
1763
-
1764
- {
1765
- // By explicitly using `prop-types` you are opting into new production behavior.
1766
- // http://fb.me/prop-types-in-prod
1767
- module.exports = __webpack_require__(5)();
1768
- }
1769
-
1770
-
1771
- /***/ }),
1772
- /* 1 */
1773
- /***/ (function(module, exports) {
1774
-
1775
- module.exports = __WEBPACK_EXTERNAL_MODULE__1__;
1776
-
1777
- /***/ }),
1778
- /* 2 */
1779
- /***/ (function(module, exports) {
1780
-
1781
- module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
1782
-
1783
- /***/ }),
1784
- /* 3 */
1785
- /***/ (function(module, exports) {
1786
-
1787
- // Tell whether the rect is visible, given an offset
1788
- //
1789
- // return: boolean
1790
- module.exports = function (offset, rect, containmentRect) {
1791
- var offsetDir = offset.direction;
1792
- var offsetVal = offset.value; // Rules for checking different kind of offsets. In example if the element is
1793
- // 90px below viewport and offsetTop is 100, it is considered visible.
1794
-
1795
- switch (offsetDir) {
1796
- case 'top':
1797
- return containmentRect.top + offsetVal < rect.top && containmentRect.bottom > rect.bottom && containmentRect.left < rect.left && containmentRect.right > rect.right;
1798
-
1799
- case 'left':
1800
- return containmentRect.left + offsetVal < rect.left && containmentRect.bottom > rect.bottom && containmentRect.top < rect.top && containmentRect.right > rect.right;
1801
-
1802
- case 'bottom':
1803
- return containmentRect.bottom - offsetVal > rect.bottom && containmentRect.left < rect.left && containmentRect.right > rect.right && containmentRect.top < rect.top;
1804
-
1805
- case 'right':
1806
- return containmentRect.right - offsetVal > rect.right && containmentRect.left < rect.left && containmentRect.top < rect.top && containmentRect.bottom > rect.bottom;
1807
- }
1808
- };
1809
-
1810
- /***/ }),
1811
- /* 4 */
1812
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1813
- __webpack_require__.r(__webpack_exports__);
1814
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return VisibilitySensor; });
1815
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
1816
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1817
- /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
1818
- /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__);
1819
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0);
1820
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
1821
- /* harmony import */ var _lib_is_visible_with_offset__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);
1822
- /* harmony import */ var _lib_is_visible_with_offset__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_lib_is_visible_with_offset__WEBPACK_IMPORTED_MODULE_3__);
1823
-
1824
-
1825
- function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
1826
-
1827
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1828
-
1829
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
1830
-
1831
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
1832
-
1833
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
1834
-
1835
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
1836
-
1837
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1838
-
1839
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
1840
-
1841
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
1842
-
1843
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1844
-
1845
-
1846
-
1847
-
1848
-
1849
-
1850
- function normalizeRect(rect) {
1851
- if (rect.width === undefined) {
1852
- rect.width = rect.right - rect.left;
1853
- }
1854
-
1855
- if (rect.height === undefined) {
1856
- rect.height = rect.bottom - rect.top;
1857
- }
1858
-
1859
- return rect;
1860
- }
1861
-
1862
- var VisibilitySensor =
1863
- /*#__PURE__*/
1864
- function (_React$Component) {
1865
- _inherits(VisibilitySensor, _React$Component);
1866
-
1867
- function VisibilitySensor(props) {
1868
- var _this;
1869
-
1870
- _classCallCheck(this, VisibilitySensor);
1871
-
1872
- _this = _possibleConstructorReturn(this, _getPrototypeOf(VisibilitySensor).call(this, props));
1873
-
1874
- _defineProperty(_assertThisInitialized(_this), "getContainer", function () {
1875
- return _this.props.containment || window;
1876
- });
1877
-
1878
- _defineProperty(_assertThisInitialized(_this), "addEventListener", function (target, event, delay, throttle) {
1879
- if (!_this.debounceCheck) {
1880
- _this.debounceCheck = {};
1881
- }
1882
-
1883
- var timeout;
1884
- var func;
1885
-
1886
- var later = function later() {
1887
- timeout = null;
1888
-
1889
- _this.check();
1890
- };
1891
-
1892
- if (throttle > -1) {
1893
- func = function func() {
1894
- if (!timeout) {
1895
- timeout = setTimeout(later, throttle || 0);
1896
- }
1897
- };
1898
- } else {
1899
- func = function func() {
1900
- clearTimeout(timeout);
1901
- timeout = setTimeout(later, delay || 0);
1902
- };
1903
- }
1904
-
1905
- var info = {
1906
- target: target,
1907
- fn: func,
1908
- getLastTimeout: function getLastTimeout() {
1909
- return timeout;
1910
- }
1911
- };
1912
- target.addEventListener(event, info.fn);
1913
- _this.debounceCheck[event] = info;
1914
- });
1915
-
1916
- _defineProperty(_assertThisInitialized(_this), "startWatching", function () {
1917
- if (_this.debounceCheck || _this.interval) {
1918
- return;
1919
- }
1920
-
1921
- if (_this.props.intervalCheck) {
1922
- _this.interval = setInterval(_this.check, _this.props.intervalDelay);
1923
- }
1924
-
1925
- if (_this.props.scrollCheck) {
1926
- _this.addEventListener(_this.getContainer(), "scroll", _this.props.scrollDelay, _this.props.scrollThrottle);
1927
- }
1928
-
1929
- if (_this.props.resizeCheck) {
1930
- _this.addEventListener(window, "resize", _this.props.resizeDelay, _this.props.resizeThrottle);
1931
- } // if dont need delayed call, check on load ( before the first interval fires )
1932
-
1933
-
1934
- !_this.props.delayedCall && _this.check();
1935
- });
1936
-
1937
- _defineProperty(_assertThisInitialized(_this), "stopWatching", function () {
1938
- if (_this.debounceCheck) {
1939
- // clean up event listeners and their debounce callers
1940
- for (var debounceEvent in _this.debounceCheck) {
1941
- if (_this.debounceCheck.hasOwnProperty(debounceEvent)) {
1942
- var debounceInfo = _this.debounceCheck[debounceEvent];
1943
- clearTimeout(debounceInfo.getLastTimeout());
1944
- debounceInfo.target.removeEventListener(debounceEvent, debounceInfo.fn);
1945
- _this.debounceCheck[debounceEvent] = null;
1946
- }
1947
- }
1948
- }
1949
-
1950
- _this.debounceCheck = null;
1951
-
1952
- if (_this.interval) {
1953
- _this.interval = clearInterval(_this.interval);
1954
- }
1955
- });
1956
-
1957
- _defineProperty(_assertThisInitialized(_this), "check", function () {
1958
- var el = _this.node;
1959
- var rect;
1960
- var containmentRect; // if the component has rendered to null, dont update visibility
1961
-
1962
- if (!el) {
1963
- return _this.state;
1964
- }
1965
-
1966
- rect = normalizeRect(_this.roundRectDown(el.getBoundingClientRect()));
1967
-
1968
- if (_this.props.containment) {
1969
- var containmentDOMRect = _this.props.containment.getBoundingClientRect();
1970
-
1971
- containmentRect = {
1972
- top: containmentDOMRect.top,
1973
- left: containmentDOMRect.left,
1974
- bottom: containmentDOMRect.bottom,
1975
- right: containmentDOMRect.right
1976
- };
1977
- } else {
1978
- containmentRect = {
1979
- top: 0,
1980
- left: 0,
1981
- bottom: window.innerHeight || document.documentElement.clientHeight,
1982
- right: window.innerWidth || document.documentElement.clientWidth
1983
- };
1984
- } // Check if visibility is wanted via offset?
1985
-
1986
-
1987
- var offset = _this.props.offset || {};
1988
- var hasValidOffset = _typeof(offset) === "object";
1989
-
1990
- if (hasValidOffset) {
1991
- containmentRect.top += offset.top || 0;
1992
- containmentRect.left += offset.left || 0;
1993
- containmentRect.bottom -= offset.bottom || 0;
1994
- containmentRect.right -= offset.right || 0;
1995
- }
1996
-
1997
- var visibilityRect = {
1998
- top: rect.top >= containmentRect.top,
1999
- left: rect.left >= containmentRect.left,
2000
- bottom: rect.bottom <= containmentRect.bottom,
2001
- right: rect.right <= containmentRect.right
2002
- }; // https://github.com/joshwnj/react-visibility-sensor/pull/114
2003
-
2004
- var hasSize = rect.height > 0 && rect.width > 0;
2005
- var isVisible = hasSize && visibilityRect.top && visibilityRect.left && visibilityRect.bottom && visibilityRect.right; // check for partial visibility
2006
-
2007
- if (hasSize && _this.props.partialVisibility) {
2008
- var partialVisible = rect.top <= containmentRect.bottom && rect.bottom >= containmentRect.top && rect.left <= containmentRect.right && rect.right >= containmentRect.left; // account for partial visibility on a single edge
2009
-
2010
- if (typeof _this.props.partialVisibility === "string") {
2011
- partialVisible = visibilityRect[_this.props.partialVisibility];
2012
- } // if we have minimum top visibility set by props, lets check, if it meets the passed value
2013
- // so if for instance element is at least 200px in viewport, then show it.
2014
-
2015
-
2016
- isVisible = _this.props.minTopValue ? partialVisible && rect.top <= containmentRect.bottom - _this.props.minTopValue : partialVisible;
2017
- } // Deprecated options for calculating offset.
2018
-
2019
-
2020
- if (typeof offset.direction === "string" && typeof offset.value === "number") {
2021
- console.warn("[notice] offset.direction and offset.value have been deprecated. They still work for now, but will be removed in next major version. Please upgrade to the new syntax: { %s: %d }", offset.direction, offset.value);
2022
- isVisible = _lib_is_visible_with_offset__WEBPACK_IMPORTED_MODULE_3___default()(offset, rect, containmentRect);
2023
- }
2024
-
2025
- var state = _this.state; // notify the parent when the value changes
2026
-
2027
- if (_this.state.isVisible !== isVisible) {
2028
- state = {
2029
- isVisible: isVisible,
2030
- visibilityRect: visibilityRect
2031
- };
2032
-
2033
- _this.setState(state);
2034
-
2035
- if (_this.props.onChange) _this.props.onChange(isVisible);
2036
- }
2037
-
2038
- return state;
2039
- });
2040
-
2041
- _this.state = {
2042
- isVisible: null,
2043
- visibilityRect: {}
2044
- };
2045
- return _this;
2046
- }
2047
-
2048
- _createClass(VisibilitySensor, [{
2049
- key: "componentDidMount",
2050
- value: function componentDidMount() {
2051
- this.node = react_dom__WEBPACK_IMPORTED_MODULE_1___default.a.findDOMNode(this);
2052
-
2053
- if (this.props.active) {
2054
- this.startWatching();
2055
- }
2056
- }
2057
- }, {
2058
- key: "componentWillUnmount",
2059
- value: function componentWillUnmount() {
2060
- this.stopWatching();
2061
- }
2062
- }, {
2063
- key: "componentDidUpdate",
2064
- value: function componentDidUpdate(prevProps) {
2065
- // re-register node in componentDidUpdate if children diffs [#103]
2066
- this.node = react_dom__WEBPACK_IMPORTED_MODULE_1___default.a.findDOMNode(this);
2067
-
2068
- if (this.props.active && !prevProps.active) {
2069
- this.setState({
2070
- isVisible: null,
2071
- visibilityRect: {}
2072
- });
2073
- this.startWatching();
2074
- } else if (!this.props.active) {
2075
- this.stopWatching();
2076
- }
2077
- }
2078
- }, {
2079
- key: "roundRectDown",
2080
- value: function roundRectDown(rect) {
2081
- return {
2082
- top: Math.floor(rect.top),
2083
- left: Math.floor(rect.left),
2084
- bottom: Math.floor(rect.bottom),
2085
- right: Math.floor(rect.right)
2086
- };
2087
- }
2088
- /**
2089
- * Check if the element is within the visible viewport
2090
- */
2091
-
2092
- }, {
2093
- key: "render",
2094
- value: function render() {
2095
- if (this.props.children instanceof Function) {
2096
- return this.props.children({
2097
- isVisible: this.state.isVisible,
2098
- visibilityRect: this.state.visibilityRect
2099
- });
2100
- }
2101
-
2102
- return react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.only(this.props.children);
2103
- }
2104
- }]);
2105
-
2106
- return VisibilitySensor;
2107
- }(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
2108
-
2109
- _defineProperty(VisibilitySensor, "defaultProps", {
2110
- active: true,
2111
- partialVisibility: false,
2112
- minTopValue: 0,
2113
- scrollCheck: false,
2114
- scrollDelay: 250,
2115
- scrollThrottle: -1,
2116
- resizeCheck: false,
2117
- resizeDelay: 250,
2118
- resizeThrottle: -1,
2119
- intervalCheck: true,
2120
- intervalDelay: 100,
2121
- delayedCall: false,
2122
- offset: {},
2123
- containment: null,
2124
- children: react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", null)
2125
- });
2126
-
2127
- _defineProperty(VisibilitySensor, "propTypes", {
2128
- onChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
2129
- active: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
2130
- partialVisibility: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(["top", "right", "bottom", "left"])]),
2131
- delayedCall: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
2132
- offset: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.shape({
2133
- top: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,
2134
- left: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,
2135
- bottom: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,
2136
- right: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number
2137
- }), // deprecated offset property
2138
- prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.shape({
2139
- direction: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(["top", "right", "bottom", "left"]),
2140
- value: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number
2141
- })]),
2142
- scrollCheck: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
2143
- scrollDelay: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,
2144
- scrollThrottle: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,
2145
- resizeCheck: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
2146
- resizeDelay: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,
2147
- resizeThrottle: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,
2148
- intervalCheck: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
2149
- intervalDelay: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,
2150
- containment: typeof window !== "undefined" ? prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.instanceOf(window.Element) : prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.any,
2151
- children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func]),
2152
- minTopValue: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number
2153
- });
2154
-
2155
-
2156
-
2157
- /***/ }),
2158
- /* 5 */
2159
- /***/ (function(module, exports, __webpack_require__) {
2160
- /**
2161
- * Copyright (c) 2013-present, Facebook, Inc.
2162
- *
2163
- * This source code is licensed under the MIT license found in the
2164
- * LICENSE file in the root directory of this source tree.
2165
- */
2166
-
2167
-
2168
-
2169
- var ReactPropTypesSecret = __webpack_require__(6);
2170
-
2171
- function emptyFunction() {}
2172
- function emptyFunctionWithReset() {}
2173
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
2174
-
2175
- module.exports = function() {
2176
- function shim(props, propName, componentName, location, propFullName, secret) {
2177
- if (secret === ReactPropTypesSecret) {
2178
- // It is still safe when called from React.
2179
- return;
2180
- }
2181
- var err = new Error(
2182
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
2183
- 'Use PropTypes.checkPropTypes() to call them. ' +
2184
- 'Read more at http://fb.me/use-check-prop-types'
2185
- );
2186
- err.name = 'Invariant Violation';
2187
- throw err;
2188
- } shim.isRequired = shim;
2189
- function getShim() {
2190
- return shim;
2191
- } // Important!
2192
- // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
2193
- var ReactPropTypes = {
2194
- array: shim,
2195
- bool: shim,
2196
- func: shim,
2197
- number: shim,
2198
- object: shim,
2199
- string: shim,
2200
- symbol: shim,
2201
-
2202
- any: shim,
2203
- arrayOf: getShim,
2204
- element: shim,
2205
- elementType: shim,
2206
- instanceOf: getShim,
2207
- node: shim,
2208
- objectOf: getShim,
2209
- oneOf: getShim,
2210
- oneOfType: getShim,
2211
- shape: getShim,
2212
- exact: getShim,
2213
-
2214
- checkPropTypes: emptyFunctionWithReset,
2215
- resetWarningCache: emptyFunction
2216
- };
2217
-
2218
- ReactPropTypes.PropTypes = ReactPropTypes;
2219
-
2220
- return ReactPropTypes;
2221
- };
2222
-
2223
-
2224
- /***/ }),
2225
- /* 6 */
2226
- /***/ (function(module, exports, __webpack_require__) {
2227
- /**
2228
- * Copyright (c) 2013-present, Facebook, Inc.
2229
- *
2230
- * This source code is licensed under the MIT license found in the
2231
- * LICENSE file in the root directory of this source tree.
2232
- */
2233
-
2234
-
2235
-
2236
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
2237
-
2238
- module.exports = ReactPropTypesSecret;
2239
-
2240
-
2241
- /***/ })
2242
- /******/ ]);
2243
- });
2244
- });
2245
-
2246
- var VisibilitySensor = _commonjsHelpers.unwrapExports(visibilitySensor);
2247
-
2248
- exports.VisibilitySensor = VisibilitySensor;
2249
1662
  exports.lib_1 = lib_1;
2250
1663
  exports.lib_2 = lib_2;
2251
1664
  exports.lib_3 = lib_3;