Socket
Socket
Sign inDemoInstall

@chakra-ui/popper

Package Overview
Dependencies
Maintainers
4
Versions
160
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chakra-ui/popper - npm Package Compare versions

Comparing version 2.3.0 to 2.3.1

10

CHANGELOG.md
# Change Log
## 2.3.1
### Patch Changes
- [`c3f016149`](https://github.com/chakra-ui/chakra-ui/commit/c3f01614929d2f68a39cf78111d17f4f4c684706)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Remove default `[]`
value for modifiers and moved it into `createPopper` definition. This allows
memoized modifiers to work correctly in user-land when used with
`useCallback`.
## 2.3.0

@@ -4,0 +14,0 @@

5

dist/cjs/use-popper.js

@@ -34,4 +34,3 @@ "use strict";

enabled = _props$enabled === void 0 ? true : _props$enabled,
_props$modifiers = _props.modifiers,
modifiers = _props$modifiers === void 0 ? [] : _props$modifiers,
modifiers = _props.modifiers,
_props$placement = _props.placement,

@@ -94,3 +93,3 @@ placementProp = _props$placement === void 0 ? "bottom" : _props$placement,

}
}].concat(modifiers),
}].concat(modifiers != null ? modifiers : []),
strategy: strategy

@@ -97,0 +96,0 @@ }); // force update one-time to fix any positioning issues

4

dist/esm/use-popper.js

@@ -18,3 +18,3 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }

enabled = true,
modifiers = [],
modifiers,
placement: placementProp = "bottom",

@@ -70,3 +70,3 @@ strategy = "absolute",

}, // allow users override internal modifiers
...modifiers],
...(modifiers != null ? modifiers : [])],
strategy

@@ -73,0 +73,0 @@ }); // force update one-time to fix any positioning issues

{
"name": "@chakra-ui/popper",
"version": "2.3.0",
"version": "2.3.1",
"description": "A React component and hooks wrapper for popper.js",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc