File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 100100 },
101101 "dependencies" : {
102102 "re-resizable" : " 6.3.2" ,
103- "react-draggable" : " 4.2.0 " ,
103+ "react-draggable" : " 4.4.3 " ,
104104 "tslib" : " 1.11.1"
105105 }
106106}
Original file line number Diff line number Diff line change @@ -71,16 +71,18 @@ type MaxSize = {
7171 maxHeight : number | string ;
7272} ;
7373
74- export type ResizeEnable = {
75- bottom ?: boolean ;
76- bottomLeft ?: boolean ;
77- bottomRight ?: boolean ;
78- left ?: boolean ;
79- right ?: boolean ;
80- top ?: boolean ;
81- topLeft ?: boolean ;
82- topRight ?: boolean ;
83- } | boolean ;
74+ export type ResizeEnable =
75+ | {
76+ bottom ?: boolean ;
77+ bottomLeft ?: boolean ;
78+ bottomRight ?: boolean ;
79+ left ?: boolean ;
80+ right ?: boolean ;
81+ top ?: boolean ;
82+ topLeft ?: boolean ;
83+ topRight ?: boolean ;
84+ }
85+ | boolean ;
8486
8587export type HandleClasses = {
8688 bottom ?: string ;
@@ -157,6 +159,8 @@ export interface Props {
157159 disableDragging ?: boolean ;
158160 cancel ?: string ;
159161 enableUserSelectHack ?: boolean ;
162+ allowAnyClick ?: boolean ;
163+ nodeRef ?: React . Ref < typeof React . Component > ;
160164 scale ?: number ;
161165 [ key : string ] : any ;
162166}
@@ -578,6 +582,8 @@ export class Rnd extends React.PureComponent<Props, State> {
578582 resizeHandleWrapperClass,
579583 resizeHandleWrapperStyle,
580584 scale,
585+ allowAnyClick,
586+ nodeRef,
581587 ...resizableProps
582588 } = this . props ;
583589 const defaultValue = this . props . default ? { ...this . props . default } : undefined ;
@@ -619,6 +625,8 @@ export class Rnd extends React.PureComponent<Props, State> {
619625 enableUserSelectHack = { enableUserSelectHack }
620626 cancel = { cancel }
621627 scale = { scale }
628+ allowAnyClick = { allowAnyClick }
629+ nodeRef = { nodeRef }
622630 >
623631 < Resizable
624632 { ...resizableProps }
Original file line number Diff line number Diff line change @@ -10143,7 +10143,15 @@ react-dom@^16.8.3:
1014310143 prop-types "^15.6.2"
1014410144 scheduler "^0.18.0"
1014510145
10146- react-draggable@4.2.0, react-draggable@^4.0.3:
10146+ react-draggable@4.4.3:
10147+ version "4.4.3"
10148+ resolved "https://registry.yarnpkg.com/react-draggable/-/react-draggable-4.4.3.tgz#0727f2cae5813e36b0e4962bf11b2f9ef2b406f3"
10149+ integrity sha512-jV4TE59MBuWm7gb6Ns3Q1mxX8Azffb7oTtDtBgFkxRvhDp38YAARmRplrj0+XGkhOJB5XziArX+4HUUABtyZ0w==
10150+ dependencies:
10151+ classnames "^2.2.5"
10152+ prop-types "^15.6.0"
10153+
10154+ react-draggable@^4.0.3:
1014710155 version "4.2.0"
1014810156 resolved "https://registry.yarnpkg.com/react-draggable/-/react-draggable-4.2.0.tgz#40cc5209082ca7d613104bf6daf31372cc0e1114"
1014910157 integrity sha512-5wFq//gEoeTYprnd4ze8GrFc+Rbnx+9RkOMR3vk4EbWxj02U6L6T3yrlKeiw4X5CtjD2ma2+b3WujghcXNRzkw==
You can’t perform that action at this time.
0 commit comments