Socket
Socket
Sign inDemoInstall

@chakra-ui/editable

Package Overview
Dependencies
Maintainers
4
Versions
456
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chakra-ui/editable - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

14

CHANGELOG.md
# 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 @@

7

dist/cjs/use-editable.js

@@ -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

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