@quintype/components 2.31.5 → 2.31.6-test-branch.0

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.
package/dist/cjs/index.js CHANGED
@@ -33,8 +33,7 @@ var React__default = _interopDefault(React);
33
33
  var reactRedux = require('react-redux');
34
34
  var wretch = _interopDefault(require('wretch'));
35
35
  var omit = _interopDefault(require('@babel/runtime/helpers/objectWithoutProperties'));
36
- var PropTypes = require('prop-types');
37
- var PropTypes__default = _interopDefault(PropTypes);
36
+ var propTypes = require('prop-types');
38
37
  var get = _interopDefault(require('lodash/get'));
39
38
  var _defineProperty = _interopDefault(require('@babel/runtime/helpers/defineProperty'));
40
39
  var reactDfp = require('react-dfp');
@@ -391,7 +390,7 @@ var EagerLoadImages = /*#__PURE__*/function (_React$Component) {
391
390
  return EagerLoadImages;
392
391
  }(React__default.Component);
393
392
  EagerLoadImages.childContextTypes = {
394
- lazyLoadEagerPredicate: PropTypes.func
393
+ lazyLoadEagerPredicate: propTypes.func
395
394
  };
396
395
 
397
396
  function _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -1322,8 +1321,8 @@ var LazyLoadImages = /*#__PURE__*/function (_React$Component) {
1322
1321
  return LazyLoadImages;
1323
1322
  }(React__default.Component);
1324
1323
  LazyLoadImages.childContextTypes = {
1325
- lazyLoadObserveImage: PropTypes.func,
1326
- lazyLoadUnobserveImage: PropTypes.func
1324
+ lazyLoadObserveImage: propTypes.func,
1325
+ lazyLoadUnobserveImage: propTypes.func
1327
1326
  };
1328
1327
 
1329
1328
  function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
@@ -1890,9 +1889,9 @@ var ThumborImage = /*#__PURE__*/function (_React$Component) {
1890
1889
  return ThumborImage;
1891
1890
  }(React__default.Component);
1892
1891
  ThumborImage.contextTypes = {
1893
- lazyLoadObserveImage: PropTypes.func,
1894
- lazyLoadUnobserveImage: PropTypes.func,
1895
- lazyLoadEagerPredicate: PropTypes.func
1892
+ lazyLoadObserveImage: propTypes.func,
1893
+ lazyLoadUnobserveImage: propTypes.func,
1894
+ lazyLoadEagerPredicate: propTypes.func
1896
1895
  };
1897
1896
 
1898
1897
  function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
@@ -5574,9 +5573,9 @@ function WithHostUrlBase(_ref) {
5574
5573
  }
5575
5574
 
5576
5575
  WithHostUrlBase.propTypes = {
5577
- children: PropTypes__default.func.isRequired,
5578
- primaryHostUrl: PropTypes__default.string,
5579
- currentHostUrl: PropTypes__default.string
5576
+ children: propTypes.func.isRequired,
5577
+ primaryHostUrl: propTypes.string,
5578
+ currentHostUrl: propTypes.string
5580
5579
  };
5581
5580
 
5582
5581
  function mapStateToProps$b(_ref2) {
@@ -19,7 +19,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
19
19
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
20
20
 
21
21
  import get from "lodash/get";
22
- import PropTypes from "prop-types";
22
+ import { bool, func, number, string } from "prop-types";
23
23
  import React from "react";
24
24
  import { batch, connect } from "react-redux";
25
25
  import { ACCESS_BEING_LOADED, ACCESS_UPDATED, ASSET_PLANS, CAMPAIGN_SUBSCRIPTION_GROUP_UPDATED, METER_UPDATED, PAYMENT_OPTIONS_UPDATED, SUBSCRIPTION_GROUP_UPDATED } from "../store/actions";
@@ -1,7 +1,7 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
- import React from "react";
3
- import PropTypes from "prop-types";
4
2
  import get from "lodash/get";
3
+ import { object, string } from "prop-types";
4
+ import React from "react";
5
5
 
6
6
  function getSize(sizeMap) {
7
7
  var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
@@ -9,8 +9,8 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
9
9
 
10
10
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
11
11
 
12
- import React from "react";
13
12
  import { func, string } from 'prop-types';
13
+ import React from "react";
14
14
 
15
15
  var IntersectionObserverWrapper = /*#__PURE__*/function () {
16
16
  function IntersectionObserverWrapper(callback) {
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { connect } from "react-redux";
3
2
  import { LinkBase } from "./link-base";
4
3
 
@@ -1,5 +1,5 @@
1
+ import { func, string } from 'prop-types';
1
2
  import React from 'react';
2
- import PropTypes from 'prop-types';
3
3
  export function LoadMoreButton(props) {
4
4
  return /*#__PURE__*/React.createElement("button", {
5
5
  className: props.className,
@@ -1,6 +1,6 @@
1
+ import { bool, element, number, string } from "prop-types";
1
2
  import React from "react";
2
3
  import { StarIcon } from "./star-icon";
3
- import PropTypes from "prop-types";
4
4
  /**
5
5
  * This component takes in the value for rating and renders star for the value passed in. This comopent is generally used for story review type.
6
6
  *
@@ -8,8 +8,8 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
8
8
 
9
9
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
10
10
 
11
+ import { any, element, func, string } from 'prop-types';
11
12
  import React from 'react';
12
- import PropTypes from 'prop-types';
13
13
  import { connect } from "react-redux";
14
14
 
15
15
  var SearchBoxBase = /*#__PURE__*/function (_React$Component) {
@@ -8,8 +8,8 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
8
8
 
9
9
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
10
10
 
11
+ import { bool, func, string } from 'prop-types';
11
12
  import React from 'react';
12
- import PropTypes from 'prop-types';
13
13
  import { postRequest } from '../api-client';
14
14
  /**
15
15
  * This is an abstract render props component for logging in with social accounts. The component adds two items to scope: `serverSideLoginPath` for redirecting to server side, and `login` for doing a client side login. Calling `login()` returns a promise which can be used to handle success and failure cases.
@@ -10,8 +10,8 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
10
10
 
11
11
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
12
12
 
13
+ import { any, func, number } from 'prop-types';
13
14
  import React from 'react';
14
- import PropTypes from 'prop-types';
15
15
  /**
16
16
  * This render props component willupdate it's children via props while executing data loaders sent as props to the component.
17
17
  *
@@ -1,5 +1,5 @@
1
+ import { func, string } from "prop-types";
1
2
  import { connect } from "react-redux";
2
- import PropTypes from "prop-types";
3
3
 
4
4
  function WithHostUrlBase(_ref) {
5
5
  var children = _ref.children,
@@ -12,9 +12,9 @@ function WithHostUrlBase(_ref) {
12
12
  }
13
13
 
14
14
  WithHostUrlBase.propTypes = {
15
- children: PropTypes.func.isRequired,
16
- primaryHostUrl: PropTypes.string,
17
- currentHostUrl: PropTypes.string
15
+ children: func.isRequired,
16
+ primaryHostUrl: string,
17
+ currentHostUrl: string
18
18
  };
19
19
 
20
20
  function mapStateToProps(_ref2) {
@@ -8,8 +8,8 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
8
8
 
9
9
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
10
10
 
11
+ import { func, number, string } from 'prop-types';
11
12
  import React from 'react';
12
- import PropTypes from 'prop-types';
13
13
  /**
14
14
  * This component can be used to load some DOM just before it scrolls into the screen. Currently, it does not support unloading. The `margin` prop is passed to `IntersectionObserver`.
15
15
  *
@@ -9,11 +9,11 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
9
9
 
10
10
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
11
11
 
12
+ import { bool, func } from "prop-types";
12
13
  import React from "react";
13
14
  import { connect } from "react-redux";
14
- import PropTypes from "prop-types";
15
+ import { MEMBER_BEING_LOADED, MEMBER_UPDATED } from '../store/actions';
15
16
  import { getRequest } from './api-client';
16
- import { MEMBER_UPDATED, MEMBER_BEING_LOADED } from '../store/actions';
17
17
  var loadedMember = false;
18
18
 
19
19
  var WithMemberBase = /*#__PURE__*/function (_React$Component) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quintype/components",
3
- "version": "2.31.5",
3
+ "version": "2.31.6-test-branch.0",
4
4
  "description": "Components to help build Quintype Node.js apps",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/es/index.js",