@atlaskit/motion
Advanced tools
Comparing version 0.2.3 to 0.2.4
# @atlaskit/motion | ||
## 0.2.4 | ||
### Patch Changes | ||
- [patch][e5eb921e97](https://bitbucket.org/atlassian/atlassian-frontend/commits/e5eb921e97): | ||
Change imports to comply with Atlassian conventions- Updated dependencies [3940bd71f1](https://bitbucket.org/atlassian/atlassian-frontend/commits/3940bd71f1): | ||
- Updated dependencies [6b8e60827e](https://bitbucket.org/atlassian/atlassian-frontend/commits/6b8e60827e): | ||
- Updated dependencies [f6667f2909](https://bitbucket.org/atlassian/atlassian-frontend/commits/f6667f2909): | ||
- Updated dependencies [57c0487a02](https://bitbucket.org/atlassian/atlassian-frontend/commits/57c0487a02): | ||
- Updated dependencies [a4d063330a](https://bitbucket.org/atlassian/atlassian-frontend/commits/a4d063330a): | ||
- @atlaskit/tooltip@15.2.6 | ||
- @atlaskit/button@13.3.11 | ||
- @atlaskit/logo@12.3.4 | ||
- @atlaskit/lozenge@9.1.7 | ||
## 0.2.3 | ||
@@ -4,0 +21,0 @@ |
@@ -6,7 +6,7 @@ "use strict"; | ||
var core_1 = require("@emotion/core"); | ||
var staggered_entrance_1 = require("./staggered-entrance"); | ||
var exiting_persistence_1 = require("./exiting-persistence"); | ||
var accessibility_1 = require("../utils/accessibility"); | ||
var durations_1 = require("../utils/durations"); | ||
var accessibility_1 = require("../utils/accessibility"); | ||
var timer_hooks_1 = require("../utils/timer-hooks"); | ||
var exiting_persistence_1 = require("./exiting-persistence"); | ||
var staggered_entrance_1 = require("./staggered-entrance"); | ||
/** | ||
@@ -13,0 +13,0 @@ * Used to multipy the initial duration for exiting motions. |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var curves_1 = require("../utils/curves"); | ||
var durations_1 = require("../utils/durations"); | ||
var timer_hooks_1 = require("../utils/timer-hooks"); | ||
var use_element_ref_1 = require("../utils/use-element-ref"); | ||
var use_layout_effect_1 = require("../utils/use-layout-effect"); | ||
var exiting_persistence_1 = require("./exiting-persistence"); | ||
var use_element_ref_1 = require("../utils/use-element-ref"); | ||
var timer_hooks_1 = require("../utils/timer-hooks"); | ||
var durations_1 = require("../utils/durations"); | ||
var curves_1 = require("../utils/curves"); | ||
var ShrinkOut = function (_a) { | ||
@@ -11,0 +11,0 @@ var children = _a.children, _b = _a.duration, duration = _b === void 0 ? durations_1.smallDurationMs : _b, onFinish = _a.onFinish; |
@@ -5,3 +5,3 @@ import React from 'react'; | ||
import { KeyframesMotionProps } from './keyframes-motion'; | ||
import { Transition, Direction } from './types'; | ||
import { Direction, Transition } from './types'; | ||
export declare const slideInAnimation: (from: Direction, state: Transition) => ObjectInterpolation<undefined>; | ||
@@ -8,0 +8,0 @@ export interface SlideInProps extends KeyframesMotionProps { |
@@ -5,9 +5,9 @@ "use strict"; | ||
var react_1 = require("react"); | ||
var use_layout_effect_1 = require("../utils/use-layout-effect"); | ||
var accessibility_1 = require("../utils/accessibility"); | ||
var curves_1 = require("../utils/curves"); | ||
var durations_1 = require("../utils/durations"); | ||
var curves_1 = require("../utils/curves"); | ||
var use_snapshot_before_update_1 = require("../utils/use-snapshot-before-update"); | ||
var timer_hooks_1 = require("../utils/timer-hooks"); | ||
var use_element_ref_1 = require("../utils/use-element-ref"); | ||
var use_layout_effect_1 = require("../utils/use-layout-effect"); | ||
var use_snapshot_before_update_1 = require("../utils/use-snapshot-before-update"); | ||
exports.useResizingHeight = function (_a) { | ||
@@ -14,0 +14,0 @@ var _b = _a === void 0 ? {} : _a, _c = _b.duration, calcDuration = _c === void 0 ? function () { return durations_1.mediumDurationMs; } : _c, _d = _b.timingFunction, calcTimingFunction = _d === void 0 ? function () { return curves_1.easeInOut; } : _d; |
{ | ||
"name": "@atlaskit/motion", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"sideEffects": false | ||
} |
@@ -1,2 +0,2 @@ | ||
import React, { useRef, useMemo, useContext, createContext, Children, } from 'react'; | ||
import React, { Children, createContext, useContext, useMemo, useRef, } from 'react'; | ||
import { isReducedMotion } from '../utils/accessibility'; | ||
@@ -3,0 +3,0 @@ import { useForceRender } from '../utils/use-force-render'; |
import { __assign } from "tslib"; | ||
import React, { useEffect } from 'react'; | ||
import { ClassNames, keyframes } from '@emotion/core'; | ||
import { useStaggeredEntrance } from './staggered-entrance'; | ||
import { useExitingPersistence } from './exiting-persistence'; | ||
import { prefersReducedMotion } from '../utils/accessibility'; | ||
import { largeDurationMs } from '../utils/durations'; | ||
import { prefersReducedMotion } from '../utils/accessibility'; | ||
import { useSetTimeout } from '../utils/timer-hooks'; | ||
import { useExitingPersistence } from './exiting-persistence'; | ||
import { useStaggeredEntrance } from './staggered-entrance'; | ||
/** | ||
@@ -10,0 +10,0 @@ * Used to multipy the initial duration for exiting motions. |
import { __read } from "tslib"; | ||
import { easeIn } from '../utils/curves'; | ||
import { smallDurationMs } from '../utils/durations'; | ||
import { useRequestAnimationFrame, useSetTimeout } from '../utils/timer-hooks'; | ||
import { useElementRef } from '../utils/use-element-ref'; | ||
import { useLayoutEffect } from '../utils/use-layout-effect'; | ||
import { useExitingPersistence } from './exiting-persistence'; | ||
import { useElementRef } from '../utils/use-element-ref'; | ||
import { useRequestAnimationFrame, useSetTimeout } from '../utils/timer-hooks'; | ||
import { smallDurationMs } from '../utils/durations'; | ||
import { easeIn } from '../utils/curves'; | ||
var ShrinkOut = function (_a) { | ||
@@ -9,0 +9,0 @@ var children = _a.children, _b = _a.duration, duration = _b === void 0 ? smallDurationMs : _b, onFinish = _a.onFinish; |
@@ -5,3 +5,3 @@ import React from 'react'; | ||
import { KeyframesMotionProps } from './keyframes-motion'; | ||
import { Transition, Direction } from './types'; | ||
import { Direction, Transition } from './types'; | ||
export declare const slideInAnimation: (from: Direction, state: Transition) => ObjectInterpolation<undefined>; | ||
@@ -8,0 +8,0 @@ export interface SlideInProps extends KeyframesMotionProps { |
import { __assign, __rest } from "tslib"; | ||
import React from 'react'; | ||
import { easeOut, easeIn } from '../utils/curves'; | ||
import { easeIn, easeOut } from '../utils/curves'; | ||
import { mediumDurationMs } from '../utils/durations'; | ||
@@ -5,0 +5,0 @@ import KeyframesMotion from './keyframes-motion'; |
import { __read } from "tslib"; | ||
import React, { useState, useRef, createContext, useContext } from 'react'; | ||
import React, { createContext, useContext, useRef, useState } from 'react'; | ||
import { useLayoutEffect } from '../utils/use-layout-effect'; | ||
@@ -4,0 +4,0 @@ import { useUniqueId } from '../utils/use-unique-id'; |
import { __read, __rest } from "tslib"; | ||
import { useRef } from 'react'; | ||
import { useLayoutEffect } from '../utils/use-layout-effect'; | ||
import { isReducedMotion } from '../utils/accessibility'; | ||
import { easeInOut } from '../utils/curves'; | ||
import { mediumDurationMs } from '../utils/durations'; | ||
import { easeInOut } from '../utils/curves'; | ||
import { useRequestAnimationFrame, useSetTimeout } from '../utils/timer-hooks'; | ||
import { useElementRef } from '../utils/use-element-ref'; | ||
import { useLayoutEffect } from '../utils/use-layout-effect'; | ||
import { useSnapshotBeforeUpdate } from '../utils/use-snapshot-before-update'; | ||
import { useSetTimeout, useRequestAnimationFrame } from '../utils/timer-hooks'; | ||
import { useElementRef } from '../utils/use-element-ref'; | ||
export var useResizingHeight = function (_a) { | ||
@@ -11,0 +11,0 @@ var _b = _a === void 0 ? {} : _a, _c = _b.duration, calcDuration = _c === void 0 ? function () { return mediumDurationMs; } : _c, _d = _b.timingFunction, calcTimingFunction = _d === void 0 ? function () { return easeInOut; } : _d; |
import { __read, __spread } from "tslib"; | ||
import { useEffect, useRef, useCallback } from 'react'; | ||
import { useCallback, useEffect, useRef } from 'react'; | ||
var getHookDeps = function (opts) { | ||
@@ -4,0 +4,0 @@ switch (opts.cleanup) { |
@@ -1,2 +0,2 @@ | ||
import { useRef, useCallback } from 'react'; | ||
import { useCallback, useRef } from 'react'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Will return a tuple of the element and the callback ref to set. |
@@ -1,2 +0,2 @@ | ||
import { useLayoutEffect as useRealLayoutEffect, useEffect } from 'react'; | ||
import { useEffect, useLayoutEffect as useRealLayoutEffect } from 'react'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Needed to supress the SSR warning when running use layout effect on the server. |
{ | ||
"name": "@atlaskit/motion", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"sideEffects": false | ||
} |
{ | ||
"name": "@atlaskit/motion", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "Atlassian motion variables, components and more.", | ||
@@ -32,10 +32,10 @@ "publishConfig": { | ||
"@atlaskit/build-utils": "^2.4.0", | ||
"@atlaskit/button": "^13.3.10", | ||
"@atlaskit/button": "^13.3.11", | ||
"@atlaskit/docs": "^8.5.1", | ||
"@atlaskit/logo": "^12.3.2", | ||
"@atlaskit/lozenge": "^9.1.4", | ||
"@atlaskit/logo": "^12.3.4", | ||
"@atlaskit/lozenge": "^9.1.7", | ||
"@atlaskit/section-message": "^4.1.5", | ||
"@atlaskit/ssr": "^0.1.1", | ||
"@atlaskit/theme": "^9.5.3", | ||
"@atlaskit/tooltip": "^15.2.3", | ||
"@atlaskit/tooltip": "^15.2.6", | ||
"@atlaskit/visual-regression": "^0.1.9", | ||
@@ -57,5 +57,6 @@ "@testing-library/react": "^8.0.1", | ||
"@atlassian/frontend": { | ||
"tree-shaking": [] | ||
"import-structure": "atlassian-conventions", | ||
"tree-shaking": "off" | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
149430