@fluentui/react-motion
Advanced tools
Comparing version 9.2.1 to 9.2.2
# Change Log - @fluentui/react-motion | ||
This log was last generated on Mon, 01 Jul 2024 20:25:35 GMT and should not be manually modified. | ||
This log was last generated on Thu, 04 Jul 2024 15:13:31 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## [9.2.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-motion_v9.2.2) | ||
Thu, 04 Jul 2024 15:13:31 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-motion_v9.2.1..@fluentui/react-motion_v9.2.2) | ||
### Patches | ||
- fix: Check if DOM is available before using Element global to avoid breaks in build. ([PR #31907](https://github.com/microsoft/fluentui/pull/31907) by estebanmu@microsoft.com) | ||
## [9.2.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-motion_v9.2.1) | ||
Mon, 01 Jul 2024 20:25:35 GMT | ||
Mon, 01 Jul 2024 20:30:22 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-motion_v9.2.0..@fluentui/react-motion_v9.2.1) | ||
@@ -11,0 +20,0 @@ |
@@ -13,4 +13,7 @@ "use strict"; | ||
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react")); | ||
var _document_defaultView; | ||
// eslint-disable-next-line no-restricted-globals | ||
const win = typeof document === 'object' ? (_document_defaultView = document.defaultView) === null || _document_defaultView === void 0 ? void 0 : _document_defaultView.window : undefined; | ||
// Heads up! "Element." is a side-effect for minifiers, should be kept as IIFE to avoid leaking after minification. | ||
const SUPPORTS_WEB_ANIMATIONS = /*@__PURE__*/ (()=>typeof Element.prototype.animate === 'function')(); | ||
const SUPPORTS_WEB_ANIMATIONS = /*@__PURE__*/ (()=>win && typeof win.Element.prototype.animate === 'function')(); | ||
/** | ||
@@ -17,0 +20,0 @@ * In test environments, this hook is used to delay the execution of a callback until the next render. This is necessary |
@@ -12,11 +12,5 @@ "use strict"; | ||
_export(exports, { | ||
motionTokens: function() { | ||
return _motionTokens.motionTokens; | ||
PresenceGroup: function() { | ||
return _PresenceGroup.PresenceGroup; | ||
}, | ||
durations: function() { | ||
return _motionTokens.durations; | ||
}, | ||
curves: function() { | ||
return _motionTokens.curves; | ||
}, | ||
createMotionComponent: function() { | ||
@@ -28,4 +22,10 @@ return _createMotionComponent.createMotionComponent; | ||
}, | ||
PresenceGroup: function() { | ||
return _PresenceGroup.PresenceGroup; | ||
curves: function() { | ||
return _motionTokens.curves; | ||
}, | ||
durations: function() { | ||
return _motionTokens.durations; | ||
}, | ||
motionTokens: function() { | ||
return _motionTokens.motionTokens; | ||
} | ||
@@ -32,0 +32,0 @@ }); |
@@ -15,8 +15,8 @@ // Copied from packages/tokens/src/global/durations.ts | ||
_export(exports, { | ||
curves: function() { | ||
return curves; | ||
}, | ||
durations: function() { | ||
return durations; | ||
}, | ||
curves: function() { | ||
return curves; | ||
}, | ||
motionTokens: function() { | ||
@@ -23,0 +23,0 @@ return motionTokens; |
@@ -0,4 +1,7 @@ | ||
var _document_defaultView; | ||
import * as React from 'react'; | ||
// eslint-disable-next-line no-restricted-globals | ||
const win = typeof document === 'object' ? (_document_defaultView = document.defaultView) === null || _document_defaultView === void 0 ? void 0 : _document_defaultView.window : undefined; | ||
// Heads up! "Element." is a side-effect for minifiers, should be kept as IIFE to avoid leaking after minification. | ||
const SUPPORTS_WEB_ANIMATIONS = /*@__PURE__*/ (()=>typeof Element.prototype.animate === 'function')(); | ||
const SUPPORTS_WEB_ANIMATIONS = /*@__PURE__*/ (()=>win && typeof win.Element.prototype.animate === 'function')(); | ||
/** | ||
@@ -5,0 +8,0 @@ * In test environments, this hook is used to delay the execution of a callback until the next render. This is necessary |
{ | ||
"name": "@fluentui/react-motion", | ||
"version": "9.2.1", | ||
"version": "9.2.2", | ||
"description": "A package with utilities & motion definitions using Web Animations API", | ||
@@ -5,0 +5,0 @@ "main": "lib-commonjs/index.js", |
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
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
172159
1544