@radix-ui/react-presence
Advanced tools
Comparing version 1.1.0 to 1.1.1-rc.1
@@ -40,3 +40,2 @@ "use strict"; | ||
var React2 = __toESM(require("react")); | ||
var ReactDOM = __toESM(require("react-dom")); | ||
var import_react_compose_refs = require("@radix-ui/react-compose-refs"); | ||
@@ -115,3 +114,12 @@ var import_react_use_layout_effect = require("@radix-ui/react-use-layout-effect"); | ||
if (event.target === node && isCurrentAnimation) { | ||
ReactDOM.flushSync(() => send("ANIMATION_END")); | ||
send("ANIMATION_END"); | ||
if (!prevPresentRef.current) { | ||
const currentFillMode = node.style.animationFillMode; | ||
node.style.animationFillMode = "forwards"; | ||
setTimeout(() => { | ||
if (node.style.animationFillMode === "forwards") { | ||
node.style.animationFillMode = currentFillMode; | ||
} | ||
}); | ||
} | ||
} | ||
@@ -118,0 +126,0 @@ }; |
{ | ||
"name": "@radix-ui/react-presence", | ||
"version": "1.1.0", | ||
"version": "1.1.1-rc.1", | ||
"license": "MIT", | ||
@@ -55,3 +55,4 @@ "exports": { | ||
"url": "https://github.com/radix-ui/primitives/issues" | ||
} | ||
}, | ||
"stableVersion": "1.1.0" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
35397
302
0
1