@fluentui/react-motion
Advanced tools
Comparing version 9.6.1 to 9.6.2
# Change Log - @fluentui/react-motion | ||
This log was last generated on Mon, 11 Nov 2024 09:55:10 GMT and should not be manually modified. | ||
This log was last generated on Thu, 28 Nov 2024 09:29:42 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## [9.6.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-motion_v9.6.2) | ||
Thu, 28 Nov 2024 09:29:42 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-motion_v9.6.1..@fluentui/react-motion_v9.6.2) | ||
### Patches | ||
- fix: respect reduced motion in createMotionComponent() ([PR #33357](https://github.com/microsoft/fluentui/pull/33357) by olfedias@microsoft.com) | ||
## [9.6.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-motion_v9.6.1) | ||
Mon, 11 Nov 2024 09:55:10 GMT | ||
Mon, 11 Nov 2024 10:00:45 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-motion_v9.6.0..@fluentui/react-motion_v9.6.1) | ||
@@ -15,4 +24,4 @@ | ||
- 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) | ||
- Bump @fluentui/react-shared-contexts to v9.21.0 ([PR #33238](https://github.com/microsoft/fluentui/pull/33238) by beachball) | ||
- Bump @fluentui/react-utilities to v9.18.17 ([PR #33238](https://github.com/microsoft/fluentui/pull/33238) by beachball) | ||
@@ -19,0 +28,0 @@ ## [9.6.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-motion_v9.6.0) |
@@ -12,4 +12,5 @@ "use strict"; | ||
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); | ||
const _reactsharedcontexts = require("@fluentui/react-shared-contexts"); | ||
const _reactutilities = require("@fluentui/react-utilities"); | ||
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react")); | ||
const _reactsharedcontexts = require("@fluentui/react-shared-contexts"); | ||
const REDUCED_MEDIA_QUERY = 'screen and (prefers-reduced-motion: reduce)'; | ||
@@ -22,3 +23,3 @@ function useIsReducedMotion() { | ||
const isEnabled = _react.useCallback(()=>queryValue.current, []); | ||
_react.useEffect(()=>{ | ||
(0, _reactutilities.useIsomorphicLayoutEffect)(()=>{ | ||
if (targetWindow === null || typeof targetWindow.matchMedia !== 'function') { | ||
@@ -25,0 +26,0 @@ return; |
@@ -0,3 +1,4 @@ | ||
import { useFluent_unstable as useFluent } from '@fluentui/react-shared-contexts'; | ||
import { useIsomorphicLayoutEffect } from '@fluentui/react-utilities'; | ||
import * as React from 'react'; | ||
import { useFluent_unstable as useFluent } from '@fluentui/react-shared-contexts'; | ||
const REDUCED_MEDIA_QUERY = 'screen and (prefers-reduced-motion: reduce)'; | ||
@@ -11,3 +12,3 @@ // TODO: find a better approach there as each hook creates a separate subscription | ||
const isEnabled = React.useCallback(()=>queryValue.current, []); | ||
React.useEffect(()=>{ | ||
useIsomorphicLayoutEffect(()=>{ | ||
if (targetWindow === null || typeof targetWindow.matchMedia !== 'function') { | ||
@@ -14,0 +15,0 @@ return; |
{ | ||
"name": "@fluentui/react-motion", | ||
"version": "9.6.1", | ||
"version": "9.6.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
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
211667
1872