@radix-ui/react-popper
Advanced tools
Comparing version 1.1.3-rc.1 to 1.1.3-rc.2
@@ -27,2 +27,3 @@ import * as React from "react"; | ||
arrowPadding?: number; | ||
avoidCollisions?: boolean; | ||
collisionBoundary?: Boundary | Boundary[]; | ||
@@ -32,3 +33,3 @@ collisionPadding?: number | Partial<Record<Side, number>>; | ||
hideWhenDetached?: boolean; | ||
avoidCollisions?: boolean; | ||
updatePositionStrategy?: 'optimized' | 'always'; | ||
onPlaced?: () => void; | ||
@@ -35,0 +36,0 @@ } |
@@ -95,3 +95,3 @@ var $50Iv9$babelruntimehelpersextends = require("@babel/runtime/helpers/extends"); | ||
var _arrowSize$width, _arrowSize$height, _middlewareData$arrow, _middlewareData$arrow2, _middlewareData$arrow3, _middlewareData$trans, _middlewareData$trans2, _middlewareData$hide; | ||
const { __scopePopper: __scopePopper , side: side = 'bottom' , sideOffset: sideOffset = 0 , align: align = 'center' , alignOffset: alignOffset = 0 , arrowPadding: arrowPadding = 0 , collisionBoundary: collisionBoundary = [] , collisionPadding: collisionPaddingProp = 0 , sticky: sticky = 'partial' , hideWhenDetached: hideWhenDetached = false , avoidCollisions: avoidCollisions = true , onPlaced: onPlaced , ...contentProps } = props; | ||
const { __scopePopper: __scopePopper , side: side = 'bottom' , sideOffset: sideOffset = 0 , align: align = 'center' , alignOffset: alignOffset = 0 , arrowPadding: arrowPadding = 0 , avoidCollisions: avoidCollisions = true , collisionBoundary: collisionBoundary = [] , collisionPadding: collisionPaddingProp = 0 , sticky: sticky = 'partial' , hideWhenDetached: hideWhenDetached = false , updatePositionStrategy: updatePositionStrategy = 'optimized' , onPlaced: onPlaced , ...contentProps } = props; | ||
const context = $34310caa050a8d63$var$usePopperContext($34310caa050a8d63$var$CONTENT_NAME, __scopePopper); | ||
@@ -127,3 +127,8 @@ const [content, setContent] = $50Iv9$react.useState(null); | ||
placement: desiredPlacement, | ||
whileElementsMounted: $50Iv9$floatinguireactdom.autoUpdate, | ||
whileElementsMounted: (...args)=>{ | ||
const cleanup = $50Iv9$floatinguireactdom.autoUpdate(...args, { | ||
animationFrame: updatePositionStrategy === 'always' | ||
}); | ||
return cleanup; | ||
}, | ||
elements: { | ||
@@ -130,0 +135,0 @@ reference: context.anchor |
{ | ||
"name": "@radix-ui/react-popper", | ||
"version": "1.1.3-rc.1", | ||
"version": "1.1.3-rc.2", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "exports": { |
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
104583
682