@fluentui/react-motion
Advanced tools
Comparing version 9.6.0 to 9.6.1
# Change Log - @fluentui/react-motion | ||
This log was last generated on Tue, 15 Oct 2024 17:13:32 GMT and should not be manually modified. | ||
This log was last generated on Mon, 11 Nov 2024 09:55:10 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## [9.6.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-motion_v9.6.1) | ||
Mon, 11 Nov 2024 09:55:10 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-motion_v9.6.0..@fluentui/react-motion_v9.6.1) | ||
### Patches | ||
- chore: replace npm-scripts and just-scrtips with nx inferred tasks ([PR #33074](https://github.com/microsoft/fluentui/pull/33074) by martinhochel@microsoft.com) | ||
- Bump @fluentui/react-shared-contexts to v9.21.0 ([PR #31887](https://github.com/microsoft/fluentui/pull/31887) by beachball) | ||
- Bump @fluentui/react-utilities to v9.18.17 ([PR #31887](https://github.com/microsoft/fluentui/pull/31887) by beachball) | ||
## [9.6.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-motion_v9.6.0) | ||
Tue, 15 Oct 2024 17:13:32 GMT | ||
Tue, 15 Oct 2024 17:17:53 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-motion_v9.5.2..@fluentui/react-motion_v9.6.0) | ||
@@ -11,0 +22,0 @@ |
@@ -11,4 +11,4 @@ "use strict"; | ||
}); | ||
const _define_property = require("@swc/helpers/_/_define_property"); | ||
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); | ||
const _define_property = require("@swc/helpers/_/_define_property"); | ||
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react")); | ||
@@ -42,4 +42,4 @@ const _getNextChildMapping = require("../utils/groups/getNextChildMapping"); | ||
super(props, context); | ||
(0, _define_property._)(this, "mounted", false); | ||
(0, _define_property._)(this, "handleExit", (childKey)=>{ | ||
_define_property._(this, "mounted", false); | ||
_define_property._(this, "handleExit", (childKey)=>{ | ||
const currentChildMapping = (0, _getChildMapping.getChildMapping)(this.props.children); | ||
@@ -46,0 +46,0 @@ if (childKey in currentChildMapping) { |
@@ -21,3 +21,3 @@ "use strict"; | ||
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react")); | ||
const MotionBehaviourContext = /*#__PURE__*/ _react.createContext(undefined); | ||
const MotionBehaviourContext = _react.createContext(undefined); | ||
const MotionBehaviourProvider = MotionBehaviourContext.Provider; | ||
@@ -24,0 +24,0 @@ const useMotionBehaviourContext = ()=>{ |
@@ -13,2 +13,2 @@ "use strict"; | ||
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react")); | ||
const PresenceGroupChildContext = /*#__PURE__*/ _react.createContext(undefined); | ||
const PresenceGroupChildContext = _react.createContext(undefined); |
@@ -79,3 +79,3 @@ "use strict"; | ||
]); | ||
return /*#__PURE__*/ _react.cloneElement(children, { | ||
return _react.cloneElement(children, { | ||
ref: (0, _reactutilities.useMergedRefs)(elementRef, child.ref) | ||
@@ -82,0 +82,0 @@ }); |
@@ -118,3 +118,4 @@ "use strict"; | ||
}; | ||
}, // eslint-disable-next-line react-hooks/exhaustive-deps | ||
}, // Excluding `isFirstMount` from deps to prevent re-triggering the animation on subsequent renders | ||
// eslint-disable-next-line react-hooks/exhaustive-deps | ||
[ | ||
@@ -130,3 +131,3 @@ animateAtoms, | ||
if (mounted) { | ||
return /*#__PURE__*/ _react.cloneElement(child, { | ||
return _react.cloneElement(child, { | ||
ref | ||
@@ -133,0 +134,0 @@ }); |
@@ -17,3 +17,3 @@ "use strict"; | ||
_react.Children.toArray(children).forEach((child)=>{ | ||
if (/*#__PURE__*/ _react.isValidElement(child)) { | ||
if (_react.isValidElement(child)) { | ||
var _child_key; | ||
@@ -20,0 +20,0 @@ childMapping[(_child_key = child.key) !== null && _child_key !== void 0 ? _child_key : ''] = { |
@@ -1,6 +0,2 @@ | ||
/** | ||
* When you're adding or removing children some may be added or removed in the same render pass. We want to show *both* | ||
* since we want to simultaneously animate elements in and out. This function takes a previous set of keys and a new set | ||
* of keys and merges them with its best guess of the correct ordering. | ||
*/ "use strict"; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -7,0 +3,0 @@ value: true |
{ | ||
"name": "@fluentui/react-motion", | ||
"version": "9.6.0", | ||
"version": "9.6.1", | ||
"description": "A package with utilities & motion definitions using Web Animations API", | ||
@@ -20,15 +20,2 @@ "main": "lib-commonjs/index.js", | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "just-scripts build", | ||
"clean": "just-scripts clean", | ||
"generate-api": "just-scripts generate-api", | ||
"lint": "just-scripts lint", | ||
"start": "yarn storybook", | ||
"storybook": "yarn --cwd ../stories storybook", | ||
"test": "jest --passWithNoTests", | ||
"type-check": "just-scripts type-check", | ||
"e2e": "cypress run --component", | ||
"e2e:local": "cypress open --component", | ||
"bundle-size": "monosize measure" | ||
}, | ||
"devDependencies": { | ||
@@ -39,8 +26,7 @@ "@fluentui/eslint-plugin": "*", | ||
"@fluentui/scripts-api-extractor": "*", | ||
"@fluentui/scripts-tasks": "*", | ||
"@fluentui/scripts-cypress": "*" | ||
}, | ||
"dependencies": { | ||
"@fluentui/react-shared-contexts": "^9.20.2", | ||
"@fluentui/react-utilities": "^9.18.16", | ||
"@fluentui/react-shared-contexts": "^9.21.0", | ||
"@fluentui/react-utilities": "^9.18.17", | ||
"@swc/helpers": "^0.5.1", | ||
@@ -47,0 +33,0 @@ "react-is": "^17.0.2" |
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
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
5
210854
1870