@chakra-ui/editable
Advanced tools
Comparing version 1.2.1 to 1.2.2
# Change Log | ||
## 1.2.2 | ||
### Patch Changes | ||
- [`655b1a878`](https://github.com/chakra-ui/chakra-ui/commit/655b1a878cde607921fe4c9ae6fe41373552c5c3) | ||
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Update | ||
focus-on-mousedown util to avoid memory leak | ||
- Updated dependencies | ||
[[`8b5eb9654`](https://github.com/chakra-ui/chakra-ui/commit/8b5eb9654affe562795d38a19f732f84732a949d), | ||
[`d1532f0b7`](https://github.com/chakra-ui/chakra-ui/commit/d1532f0b72c36d0609ee4510613d7c76f4f9c113)]: | ||
- @chakra-ui/utils@1.5.2 | ||
- @chakra-ui/hooks@1.4.0 | ||
## 1.2.1 | ||
@@ -4,0 +18,0 @@ |
@@ -8,6 +8,6 @@ "use strict"; | ||
var _reactUtils = require("@chakra-ui/react-utils"); | ||
var _utils = require("@chakra-ui/utils"); | ||
var _reactUtils = require("@chakra-ui/react-utils"); | ||
var _react = require("react"); | ||
@@ -80,3 +80,4 @@ | ||
(0, _hooks.useFocusOnPointerDown)({ | ||
doc: _utils.isBrowser ? (0, _utils.getOwnerDocument)(inputRef.current) : null, | ||
ref: inputRef, | ||
enabled: isEditing, | ||
elements: [cancelButtonRef, submitButtonRef] | ||
@@ -83,0 +84,0 @@ }); |
@@ -6,4 +6,4 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
import { useControllableState, useFocusOnPointerDown, useUpdateEffect } from "@chakra-ui/hooks"; | ||
import { ariaAttr, callAllHandlers, contains, focus, getOwnerDocument, isBrowser, isEmpty, normalizeEventKey, getRelatedTarget } from "@chakra-ui/utils"; | ||
import { mergeRefs } from "@chakra-ui/react-utils"; | ||
import { ariaAttr, callAllHandlers, contains, focus, getRelatedTarget, isEmpty, normalizeEventKey } from "@chakra-ui/utils"; | ||
import { useCallback, useRef, useState } from "react"; | ||
@@ -60,3 +60,4 @@ | ||
useFocusOnPointerDown({ | ||
doc: isBrowser ? getOwnerDocument(inputRef.current) : null, | ||
ref: inputRef, | ||
enabled: isEditing, | ||
elements: [cancelButtonRef, submitButtonRef] | ||
@@ -63,0 +64,0 @@ }); |
{ | ||
"name": "@chakra-ui/editable", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "React component used to build inline-editable components", | ||
@@ -58,8 +58,8 @@ "keywords": [ | ||
"dependencies": { | ||
"@chakra-ui/hooks": "1.3.1", | ||
"@chakra-ui/hooks": "1.4.0", | ||
"@chakra-ui/react-utils": "1.1.1", | ||
"@chakra-ui/utils": "1.5.1" | ||
"@chakra-ui/utils": "1.5.2" | ||
}, | ||
"devDependencies": { | ||
"@chakra-ui/system": "1.6.1", | ||
"@chakra-ui/system": "1.6.2", | ||
"react": "^17.0.1" | ||
@@ -66,0 +66,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
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
95083
858
+ Added@chakra-ui/hooks@1.4.0(transitive)
+ Added@chakra-ui/utils@1.5.2(transitive)
- Removed@chakra-ui/hooks@1.3.1(transitive)
- Removed@chakra-ui/utils@1.5.1(transitive)
Updated@chakra-ui/hooks@1.4.0
Updated@chakra-ui/utils@1.5.2