@udecode/plate-resizable
Advanced tools
Comparing version 39.0.0 to 39.1.6
@@ -70,2 +70,3 @@ import * as csstype from 'csstype'; | ||
isResizing: boolean; | ||
readOnly: boolean; | ||
setInitialPosition: React.Dispatch<React.SetStateAction<number>>; | ||
@@ -80,3 +81,4 @@ setInitialSize: React.Dispatch<React.SetStateAction<number>>; | ||
}; | ||
declare const useResizeHandle: ({ isHorizontal, isResizing, setInitialPosition, setInitialSize, setIsResizing, onHover, onHoverEnd, onMouseDown, onTouchStart, }: ReturnType<typeof useResizeHandleState>) => { | ||
declare const useResizeHandle: ({ isHorizontal, isResizing, readOnly, setInitialPosition, setInitialSize, setIsResizing, onHover, onHoverEnd, onMouseDown, onTouchStart, }: ReturnType<typeof useResizeHandleState>) => { | ||
hidden: boolean; | ||
props: { | ||
@@ -110,2 +112,3 @@ onMouseDown: React.MouseEventHandler<Element>; | ||
isResizing: boolean; | ||
readOnly: boolean; | ||
setInitialPosition: React.Dispatch<React.SetStateAction<number>>; | ||
@@ -112,0 +115,0 @@ setInitialSize: React.Dispatch<React.SetStateAction<number>>; |
@@ -134,2 +134,3 @@ "use strict"; | ||
var import_react2 = require("@udecode/plate-common/react"); | ||
var import_slate_react = require("slate-react"); | ||
var initialState = { | ||
@@ -151,2 +152,3 @@ onResize: null | ||
}) => { | ||
const readOnly = (0, import_slate_react.useReadOnly)(); | ||
const onResizeStore = useResizeHandleStore().get.onResize(); | ||
@@ -203,2 +205,3 @@ const onResize = onResizeProp != null ? onResizeProp : onResizeStore; | ||
isResizing, | ||
readOnly, | ||
setInitialPosition, | ||
@@ -217,2 +220,3 @@ setInitialSize, | ||
isResizing, | ||
readOnly, | ||
setInitialPosition, | ||
@@ -253,2 +257,3 @@ setInitialSize, | ||
return { | ||
hidden: readOnly, | ||
props: { | ||
@@ -255,0 +260,0 @@ onMouseDown: handleMouseDown, |
{ | ||
"name": "@udecode/plate-resizable", | ||
"version": "39.0.0", | ||
"version": "39.1.6", | ||
"description": "Plate React resize components", | ||
@@ -49,3 +49,3 @@ "keywords": [ | ||
"peerDependencies": { | ||
"@udecode/plate-common": ">=39.0.0", | ||
"@udecode/plate-common": ">=39.1.4", | ||
"react": ">=16.8.0", | ||
@@ -52,0 +52,0 @@ "react-dom": ">=16.8.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
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
71202
859