@uncinc/uncinc-react-kitchen-sink 2.11.3 → 2.11.4

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.
@@ -1,21 +1,20 @@
1
1
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
- import React from 'react';
2
+ import React, { lazy, Suspense } from 'react';
3
3
  import PropTypes from 'prop-types';
4
- import loadable from '@loadable/component';
5
4
 
6
5
  // Lazy-load Lottie animations with a delay.
7
6
  var Lottie = /*#__PURE__*/React.forwardRef(function (props, ref) {
8
7
  var delay = props.delay;
9
- var LottieAnimation = loadable(function () {
8
+ var LottieAnimation = /*#__PURE__*/lazy(function () {
10
9
  return new Promise(function (resolve) {
11
10
  setTimeout(function () {
12
11
  return resolve(import('./LottieAnimation'));
13
12
  }, delay);
14
13
  });
15
14
  });
16
- return /*#__PURE__*/React.createElement(LottieAnimation, _extends({
15
+ return /*#__PURE__*/React.createElement(Suspense, null, /*#__PURE__*/React.createElement(LottieAnimation, _extends({
17
16
  ref: ref
18
- }, props));
17
+ }, props)));
19
18
  });
20
19
  Lottie.propTypes = {
21
20
  id: PropTypes.string,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uncinc/uncinc-react-kitchen-sink",
3
- "version": "2.11.3",
3
+ "version": "2.11.4",
4
4
  "description": "Default React components that are easily extended.",
5
5
  "author": "uncinc",
6
6
  "license": "MIT",
@@ -51,7 +51,6 @@
51
51
  "dependencies": {
52
52
  "@apollo/client": "^3.4.16",
53
53
  "@elastic/datemath": "^5.0.3",
54
- "@loadable/component": "^5.15.0",
55
54
  "@searchkit/client": "^3.0.0",
56
55
  "@searchkit/elastic-ui": "^3.0.0",
57
56
  "apollo-server-micro": "^3.4.0",