@chayns-components/core 5.0.0-beta.86 → 5.0.0-beta.89

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.
@@ -7,15 +7,12 @@ exports.default = void 0;
7
7
  var _framerMotion = require("framer-motion");
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
11
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
12
- const loadFeatures = () => Promise.resolve().then(() => _interopRequireWildcard(require('../../utils/motion-features'))).then(res => res.default);
13
10
  const LazyMotionWrapper = _ref => {
14
11
  let {
15
12
  children
16
13
  } = _ref;
17
14
  return /*#__PURE__*/_react.default.createElement(_framerMotion.LazyMotion, {
18
- features: loadFeatures
15
+ features: _framerMotion.domAnimation
19
16
  }, children);
20
17
  };
21
18
  LazyMotionWrapper.displayName = 'LazyMotionWrapper';
@@ -1 +1 @@
1
- {"version":3,"file":"LazyMotionWrapper.js","names":["_framerMotion","require","_react","_interopRequireDefault","obj","__esModule","default","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","_interopRequireWildcard","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","loadFeatures","Promise","resolve","then","res","LazyMotionWrapper","_ref","children","createElement","LazyMotion","features","displayName","_default","exports"],"sources":["../../../src/components/lazy-motion-wrapper/LazyMotionWrapper.tsx"],"sourcesContent":["import { LazyMotion } from 'framer-motion';\nimport React, { FC, ReactNode } from 'react';\n\nexport type LazyMotionWrapperProps = {\n children: ReactNode;\n};\n\nconst loadFeatures = () => import('../../utils/motion-features').then((res) => res.default);\n\nconst LazyMotionWrapper: FC<LazyMotionWrapperProps> = ({ children }) => (\n <LazyMotion features={loadFeatures}>{children}</LazyMotion>\n);\n\nLazyMotionWrapper.displayName = 'LazyMotionWrapper';\n\nexport default LazyMotionWrapper;\n"],"mappings":";;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAA6C,SAAAE,uBAAAC,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAI,wBAAAR,GAAA,EAAAI,WAAA,SAAAA,WAAA,IAAAJ,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAS,KAAA,GAAAN,wBAAA,CAAAC,WAAA,OAAAK,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAV,GAAA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","LazyMotionWrapper","_ref","children","createElement","LazyMotion","features","domAnimation","displayName","_default","exports"],"sources":["../../../src/components/lazy-motion-wrapper/LazyMotionWrapper.tsx"],"sourcesContent":["import { domAnimation, LazyMotion } from 'framer-motion';\nimport React, { FC, ReactNode } from 'react';\n\nexport type LazyMotionWrapperProps = {\n children: ReactNode;\n};\n\nconst LazyMotionWrapper: FC<LazyMotionWrapperProps> = ({ children }) => (\n <LazyMotion features={domAnimation}>{children}</LazyMotion>\n);\n\nLazyMotionWrapper.displayName = 'LazyMotionWrapper';\n\nexport default LazyMotionWrapper;\n"],"mappings":";;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAA6C,SAAAE,uBAAAC,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAM7C,MAAMG,iBAA6C,GAAGC,IAAA;EAAA,IAAC;IAAEC;EAAS,CAAC,GAAAD,IAAA;EAAA,oBAC/DN,MAAA,CAAAI,OAAA,CAAAI,aAAA,CAACV,aAAA,CAAAW,UAAU;IAACC,QAAQ,EAAEC;EAAa,GAAEJ,QAAQ,CAAc;AAAA,CAC9D;AAEDF,iBAAiB,CAACO,WAAW,GAAG,mBAAmB;AAAC,IAAAC,QAAA,GAErCR,iBAAiB;AAAAS,OAAA,CAAAV,OAAA,GAAAS,QAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chayns-components/core",
3
- "version": "5.0.0-beta.86",
3
+ "version": "5.0.0-beta.89",
4
4
  "description": "A set of beautiful React components for developing your own applications with chayns.",
5
5
  "keywords": [
6
6
  "chayns",
@@ -62,5 +62,5 @@
62
62
  "publishConfig": {
63
63
  "access": "public"
64
64
  },
65
- "gitHead": "d0bc1e1d54251502ff9e26a4bce597328f2a0ea7"
65
+ "gitHead": "6762ce977ccf926ce6a2e0e0ae513d5709395758"
66
66
  }
@@ -1,2 +0,0 @@
1
- import { domAnimation } from 'framer-motion';
2
- export default domAnimation;
@@ -1,10 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _framerMotion = require("framer-motion");
8
- var _default = _framerMotion.domAnimation;
9
- exports.default = _default;
10
- //# sourceMappingURL=motion-features.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"motion-features.js","names":["_framerMotion","require","_default","domAnimation","exports","default"],"sources":["../../src/utils/motion-features.ts"],"sourcesContent":["import { domAnimation } from 'framer-motion';\n\nexport default domAnimation;\n"],"mappings":";;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAA6C,IAAAC,QAAA,GAE9BC,0BAAY;AAAAC,OAAA,CAAAC,OAAA,GAAAH,QAAA"}