@fluentui/react-motion
Advanced tools
Comparing version 0.0.0-nightly-20241104-0408.1 to 0.0.0-nightly-20241105-0406.1
# Change Log - @fluentui/react-motion | ||
This log was last generated on Mon, 04 Nov 2024 04:13:11 GMT and should not be manually modified. | ||
This log was last generated on Tue, 05 Nov 2024 04:10:25 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## [0.0.0-nightly-20241104-0408.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-motion_v0.0.0-nightly-20241104-0408.1) | ||
## [0.0.0-nightly-20241105-0406.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-motion_v0.0.0-nightly-20241105-0406.1) | ||
Mon, 04 Nov 2024 04:13:11 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-motion_v9.6.0..@fluentui/react-motion_v0.0.0-nightly-20241104-0408.1) | ||
Tue, 05 Nov 2024 04:10:25 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-motion_v9.6.0..@fluentui/react-motion_v0.0.0-nightly-20241105-0406.1) | ||
@@ -15,6 +15,6 @@ ### Changes | ||
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/not available) by fluentui-internal@service.microsoft.com) | ||
- Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20241104-0408.1 ([commit](https://github.com/microsoft/fluentui/commit/1c03df0bb0e5a1b1757b2045b9faf77f01ed022c) by beachball) | ||
- Bump @fluentui/react-utilities to v0.0.0-nightly-20241104-0408.1 ([commit](https://github.com/microsoft/fluentui/commit/1c03df0bb0e5a1b1757b2045b9faf77f01ed022c) by beachball) | ||
- Bump @fluentui/react-conformance to v0.0.0-nightly-20241104-0408.1 ([commit](https://github.com/microsoft/fluentui/commit/1c03df0bb0e5a1b1757b2045b9faf77f01ed022c) by beachball) | ||
- Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20241104-0408.1 ([commit](https://github.com/microsoft/fluentui/commit/1c03df0bb0e5a1b1757b2045b9faf77f01ed022c) by beachball) | ||
- Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20241105-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/7786365a6cb520e8adc36db34a372ad9f38a637e) by beachball) | ||
- Bump @fluentui/react-utilities to v0.0.0-nightly-20241105-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/7786365a6cb520e8adc36db34a372ad9f38a637e) by beachball) | ||
- Bump @fluentui/react-conformance to v0.0.0-nightly-20241105-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/7786365a6cb520e8adc36db34a372ad9f38a637e) by beachball) | ||
- Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20241105-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/7786365a6cb520e8adc36db34a372ad9f38a637e) by beachball) | ||
@@ -21,0 +21,0 @@ ## [9.6.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-motion_v9.6.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": "0.0.0-nightly-20241104-0408.1", | ||
"version": "0.0.0-nightly-20241105-0406.1", | ||
"description": "A package with utilities & motion definitions using Web Animations API", | ||
@@ -20,26 +20,12 @@ "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": { | ||
"@fluentui/eslint-plugin": "*", | ||
"@fluentui/react-conformance": "0.0.0-nightly-20241104-0408.1", | ||
"@fluentui/react-conformance-griffel": "0.0.0-nightly-20241104-0408.1", | ||
"@fluentui/react-conformance": "0.0.0-nightly-20241105-0406.1", | ||
"@fluentui/react-conformance-griffel": "0.0.0-nightly-20241105-0406.1", | ||
"@fluentui/scripts-api-extractor": "*", | ||
"@fluentui/scripts-tasks": "*", | ||
"@fluentui/scripts-cypress": "*" | ||
}, | ||
"dependencies": { | ||
"@fluentui/react-shared-contexts": "0.0.0-nightly-20241104-0408.1", | ||
"@fluentui/react-utilities": "0.0.0-nightly-20241104-0408.1", | ||
"@fluentui/react-shared-contexts": "0.0.0-nightly-20241105-0406.1", | ||
"@fluentui/react-utilities": "0.0.0-nightly-20241105-0406.1", | ||
"@swc/helpers": "^0.5.1", | ||
@@ -46,0 +32,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
211428
1870
+ Added@fluentui/keyboard-keys@0.0.0-nightly-20241105-0406.1(transitive)
+ Added@fluentui/react-shared-contexts@0.0.0-nightly-20241105-0406.1(transitive)
+ Added@fluentui/react-theme@0.0.0-nightly-20241105-0406.1(transitive)
+ Added@fluentui/react-utilities@0.0.0-nightly-20241105-0406.1(transitive)
+ Added@fluentui/tokens@0.0.0-nightly-20241105-0406.1(transitive)
- Removed@fluentui/keyboard-keys@0.0.0-nightly-20241104-0408.1(transitive)
- Removed@fluentui/react-shared-contexts@0.0.0-nightly-20241104-0408.1(transitive)
- Removed@fluentui/react-theme@0.0.0-nightly-20241104-0408.1(transitive)
- Removed@fluentui/react-utilities@0.0.0-nightly-20241104-0408.1(transitive)
- Removed@fluentui/tokens@0.0.0-nightly-20241104-0408.1(transitive)
Updated@fluentui/react-shared-contexts@0.0.0-nightly-20241105-0406.1
Updated@fluentui/react-utilities@0.0.0-nightly-20241105-0406.1