Socket
Socket
Sign inDemoInstall

@atlaskit/motion

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaskit/motion - npm Package Compare versions

Comparing version 1.5.1 to 1.5.2

dist/types-ts4.5/entering/exiting-persistence.d.ts

2

accessibility/package.json

@@ -9,3 +9,3 @@ {

"typesVersions": {
">=4.5 <4.9": {
">=4.5 <5.4": {
"*": [

@@ -12,0 +12,0 @@ "../dist/types-ts4.5/entry-points/accessibility.d.ts"

# @atlaskit/motion
## 1.5.2
### Patch Changes
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
## 1.5.1

@@ -4,0 +10,0 @@

@@ -9,3 +9,3 @@ {

"typesVersions": {
">=4.5 <4.9": {
">=4.5 <5.4": {
"*": [

@@ -12,0 +12,0 @@ "../dist/types-ts4.5/entry-points/curves.d.ts"

@@ -11,4 +11,4 @@ "use strict";

var _useForceRender = require("../utils/use-force-render");
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
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; }
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
/**

@@ -15,0 +15,0 @@ * Internally we will be playing with an element that will always have a key defined.

@@ -18,4 +18,4 @@ "use strict";

var _staggeredEntrance = require("./staggered-entrance");
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
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; }
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }

@@ -22,0 +22,0 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }

@@ -37,3 +37,3 @@ "use strict";

*
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/motion/docs/entering-motions)
* See [examples](https://atlaskit.atlassian.com/packages/design-system/motion/docs/entering-motions).
*/

@@ -40,0 +40,0 @@ var SlideIn = function SlideIn(_ref2) {

@@ -14,4 +14,4 @@ "use strict";

var _useUniqueId = require("../utils/use-unique-id");
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
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; }
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
var StaggeredEntranceContext = /*#__PURE__*/(0, _react.createContext)(function () {

@@ -18,0 +18,0 @@ return {

@@ -1,5 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
"use strict";

@@ -20,3 +20,3 @@ "use strict";

var _exitingPersistence = _interopRequireWildcard(require("../entering/exiting-persistence"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
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; }
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }

@@ -26,3 +26,3 @@ "use strict";

var _fadeIn = _interopRequireWildcard(require("../entering/fade-in"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
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; }
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }

@@ -20,3 +20,3 @@ "use strict";

var _slideIn = _interopRequireWildcard(require("../entering/slide-in"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
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; }
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }

@@ -20,3 +20,3 @@ "use strict";

var _staggeredEntrance = _interopRequireWildcard(require("../entering/staggered-entrance"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
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; }
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }

@@ -1,5 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
"use strict";

@@ -26,3 +26,3 @@ "use strict";

var _zoomIn = _interopRequireWildcard(require("../entering/zoom-in"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
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; }
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }

@@ -162,3 +162,3 @@ "use strict";

var _shrinkOut = _interopRequireDefault(require("./entering/shrink-out"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
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; }
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }

@@ -20,9 +20,7 @@ "use strict";

var _excluded = ["children"];
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
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; }
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
/**
* __useResizingHeight__
* `useResizingHeight` animates height changes over state changes. If the height hasn't changed nothing will happen.
*
* useResizingHeight animates height changes over state changes. If the height hasn't changed nothing will happen.
*
* __WARNING__: Potentially janky. This hook animates height which is

@@ -32,3 +30,3 @@ * [notoriously unperformant](https://firefox-source-docs.mozilla.org/performance/bestpractices.html#Get_familiar_with_the_pipeline_that_gets_pixels_to_the_screen).

*
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/motion/docs/resizing-motions)
* See [examples](https://atlaskit.atlassian.com/packages/design-system/motion/docs/resizing-motions).
*/

@@ -112,3 +110,3 @@ var useResizingHeight = exports.useResizingHeight = function useResizingHeight() {

*
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/motion/docs/resizing-motions)
* See [examples](https://atlaskit.atlassian.com/packages/design-system/motion/docs/resizing-motions).
*/

@@ -115,0 +113,0 @@ var ResizingHeight = exports.ResizingHeight = function ResizingHeight(_ref2) {

@@ -31,3 +31,3 @@ import React from 'react';

*
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/motion/docs/entering-motions)
* See [examples](https://atlaskit.atlassian.com/packages/design-system/motion/docs/entering-motions).
*/

@@ -34,0 +34,0 @@ const SlideIn = ({

@@ -10,6 +10,4 @@ import React, { Fragment, useRef } from 'react';

/**
* __useResizingHeight__
* `useResizingHeight` animates height changes over state changes. If the height hasn't changed nothing will happen.
*
* useResizingHeight animates height changes over state changes. If the height hasn't changed nothing will happen.
*
* __WARNING__: Potentially janky. This hook animates height which is

@@ -19,3 +17,3 @@ * [notoriously unperformant](https://firefox-source-docs.mozilla.org/performance/bestpractices.html#Get_familiar_with_the_pipeline_that_gets_pixels_to_the_screen).

*
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/motion/docs/resizing-motions)
* See [examples](https://atlaskit.atlassian.com/packages/design-system/motion/docs/resizing-motions).
*/

@@ -90,3 +88,3 @@ export const useResizingHeight = ({

*
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/motion/docs/resizing-motions)
* See [examples](https://atlaskit.atlassian.com/packages/design-system/motion/docs/resizing-motions).
*/

@@ -93,0 +91,0 @@ export const ResizingHeight = ({

@@ -30,3 +30,3 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";

*
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/motion/docs/entering-motions)
* See [examples](https://atlaskit.atlassian.com/packages/design-system/motion/docs/entering-motions).
*/

@@ -33,0 +33,0 @@ var SlideIn = function SlideIn(_ref2) {

@@ -13,6 +13,4 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";

/**
* __useResizingHeight__
* `useResizingHeight` animates height changes over state changes. If the height hasn't changed nothing will happen.
*
* useResizingHeight animates height changes over state changes. If the height hasn't changed nothing will happen.
*
* __WARNING__: Potentially janky. This hook animates height which is

@@ -22,3 +20,3 @@ * [notoriously unperformant](https://firefox-source-docs.mozilla.org/performance/bestpractices.html#Get_familiar_with_the_pipeline_that_gets_pixels_to_the_screen).

*
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/motion/docs/resizing-motions)
* See [examples](https://atlaskit.atlassian.com/packages/design-system/motion/docs/resizing-motions).
*/

@@ -102,3 +100,3 @@ export var useResizingHeight = function useResizingHeight() {

*
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/motion/docs/resizing-motions)
* See [examples](https://atlaskit.atlassian.com/packages/design-system/motion/docs/resizing-motions).
*/

@@ -105,0 +103,0 @@ export var ResizingHeight = function ResizingHeight(_ref2) {

@@ -9,24 +9,24 @@ /// <reference types="react" />

/**
Direction the element will slide in from.
E.g. `"right"` will slide in from the right to the left.
If `exitTo` is not set, exiting will reverse this motion.
E.g. if `enterFrom: "right"`, will slide out to the right.
* Direction the element will slide in from.
* E.g. `"right"` will slide in from the right to the left.
*
* If `exitTo` is not set, exiting will reverse this motion.
* E.g. If `enterFrom: "right"`, will slide out to the right.
*/
enterFrom: Direction;
/**
Direction the element will slide out towards.
E.g. `"right"` will slide out to the right.
If this is not set, exiting will reverse the entrance motion.
E.g. if `enterFrom: "right"`, will slide out to the right.
*/
* Direction the element will slide out towards.
* E.g. `"right"` will slide out to the right.
*
* If this is not set, exiting will reverse the entrance motion.
* E.g. If `enterFrom: "right"`, will slide out to the right.
*/
exitTo?: Direction;
/**
Whether an element will fade on enter, on exit or both.
`'none'` is the default and will cause the element to not fade,
`'in'` will cause the element to fade on enter,
`'out'` will cause the element to fade on exit,
`'inout'` will cause the element to fade on both
* Whether an element will fade on enter, on exit or both.
*
* `'none'` is the default and will cause the element to not fade,
* `'in'` will cause the element to fade on enter,
* `'out'` will cause the element to fade on exit,
* `'inout'` will cause the element to fade on both.
*/

@@ -45,5 +45,5 @@ fade?: Fade;

*
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/motion/docs/entering-motions)
* See [examples](https://atlaskit.atlassian.com/packages/design-system/motion/docs/entering-motions).
*/
declare const SlideIn: ({ children, enterFrom, exitTo, fade, duration, isPaused, onFinish, animationTimingFunction, }: SlideInProps) => JSX.Element;
export default SlideIn;

@@ -11,9 +11,9 @@ import { Ref } from 'react';

/**
Number of columns the children elements will be displayed over.
Use `"responsive"` to have it calculate dynamically on the client side.
__NOTE:__ This has a big caveat that the elements will be invisible until the client side Javascript executes.
If you have a fixed grid or list, set this to a specific number.
Defaults to `"responsive"`.
*/
* Number of columns the children elements will be displayed over. Use
* `"responsive"` to have it calculate dynamically on the client side.
*
* __NOTE:__ This has a big caveat that the elements will be invisible until
* the client side Javascript executes. If you have a fixed grid or list, set
* this to a specific number. Defaults to `"responsive"`.
*/
columns?: number | 'responsive';

@@ -20,0 +20,0 @@ /**

@@ -5,19 +5,18 @@ import React from 'react';

/**
Duration as a `function`.
Will receive previous and next `height` and return the `duration`.
By default this will match the [ADG specifications](https://atlassian.design) for how long motion should take.
Design specifications are still a work in progress.
*/
* Duration as a `function`.
* Will receive previous and next `height` and return the `duration`.
*
* By default this will match the [ADG specifications](https://atlassian.design) for how long motion should take.
* Design specifications are still a work in progress.
*/
duration?: (prevHeight: number, nextHeight: number) => number;
/**
Timing function as a `function`.
This is handy for changing the curve depending on the user interaction.
Does the user interact [directly or indirectly](/packages/helpers/motion/docs/variables)?
You'll want to use an appropriate curve.
Will receive previous and next `height`,
`duration`,
and return the [timing function](https://developer.mozilla.org/en-US/docs/Web/CSS/timing-function).
By default this will assume indirect motion using `easeInOut`.
* Timing function as a `function`.
* This is handy for changing the curve depending on the user interaction.
* Does the user interact [directly or indirectly](/packages/helpers/motion/docs/variables)?
* You'll want to use an appropriate curve.
* Will receive previous and next `height`, `duration`, and return the
* [timing function](https://developer.mozilla.org/en-US/docs/Web/CSS/timing-function).
*
* By default this will assume indirect motion using `easeInOut`.
*/

@@ -27,6 +26,4 @@ timingFunction?: (prevHeight: number, nextHeight: number, duration: number) => string;

/**
* __useResizingHeight__
* `useResizingHeight` animates height changes over state changes. If the height hasn't changed nothing will happen.
*
* useResizingHeight animates height changes over state changes. If the height hasn't changed nothing will happen.
*
* __WARNING__: Potentially janky. This hook animates height which is

@@ -36,3 +33,3 @@ * [notoriously unperformant](https://firefox-source-docs.mozilla.org/performance/bestpractices.html#Get_familiar_with_the_pipeline_that_gets_pixels_to_the_screen).

*
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/motion/docs/resizing-motions)
* See [examples](https://atlaskit.atlassian.com/packages/design-system/motion/docs/resizing-motions).
*/

@@ -47,3 +44,3 @@ export declare const useResizingHeight: ({ duration: calcDuration, timingFunction: calcTimingFunction, }?: ResizingHeightOpts) => {

*
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/motion/docs/resizing-motions)
* See [examples](https://atlaskit.atlassian.com/packages/design-system/motion/docs/resizing-motions).
*/

@@ -50,0 +47,0 @@ export declare const ResizingHeight: ({ children, ...props }: ResizingHeightOpts & {

@@ -9,3 +9,3 @@ {

"typesVersions": {
">=4.5 <4.9": {
">=4.5 <5.4": {
"*": [

@@ -12,0 +12,0 @@ "../dist/types-ts4.5/entry-points/durations.d.ts"

@@ -9,3 +9,3 @@ {

"typesVersions": {
">=4.5 <4.9": {
">=4.5 <5.4": {
"*": [

@@ -12,0 +12,0 @@ "../dist/types-ts4.5/entry-points/exiting-persistence.d.ts"

@@ -9,3 +9,3 @@ {

"typesVersions": {
">=4.5 <4.9": {
">=4.5 <5.4": {
"*": [

@@ -12,0 +12,0 @@ "../dist/types-ts4.5/entry-points/fade-in.d.ts"

{
"name": "@atlaskit/motion",
"version": "1.5.1",
"version": "1.5.2",
"description": "A set of utilities to apply motion in your application.",

@@ -67,3 +67,3 @@ "publishConfig": {

"react-router-dom": "^4.2.2",
"typescript": "~4.9.5"
"typescript": "~5.4.2"
},

@@ -100,2 +100,2 @@ "keywords": [

"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
}
}

@@ -9,3 +9,3 @@ {

"typesVersions": {
">=4.5 <4.9": {
">=4.5 <5.4": {
"*": [

@@ -12,0 +12,0 @@ "../dist/types-ts4.5/entry-points/shrink-out.d.ts"

@@ -9,3 +9,3 @@ {

"typesVersions": {
">=4.5 <4.9": {
">=4.5 <5.4": {
"*": [

@@ -12,0 +12,0 @@ "../dist/types-ts4.5/entry-points/slide-in.d.ts"

@@ -9,3 +9,3 @@ {

"typesVersions": {
">=4.5 <4.9": {
">=4.5 <5.4": {
"*": [

@@ -12,0 +12,0 @@ "../dist/types-ts4.5/entry-points/staggered-entrance.d.ts"

@@ -9,3 +9,3 @@ {

"typesVersions": {
">=4.5 <4.9": {
">=4.5 <5.4": {
"*": [

@@ -12,0 +12,0 @@ "../dist/types-ts4.5/entry-points/types.d.ts"

@@ -9,3 +9,3 @@ {

"typesVersions": {
">=4.5 <4.9": {
">=4.5 <5.4": {
"*": [

@@ -12,0 +12,0 @@ "../dist/types-ts4.5/entry-points/zoom-in.d.ts"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc