Skip to content

Commit

Permalink
Bump react-moveable from 0.39.6 to 0.49.2 (#13217)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: ayushnirwal <coding.carrots@gmail.com>
Co-authored-by: Pascal Birchler <pascalb@google.com>
  • Loading branch information
3 people authored Apr 26, 2023
1 parent b0ed419 commit 80d3192
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 31 deletions.
50 changes: 23 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/moveable/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@googleforcreators/react": "*",
"@types/styled-components": "^5.1.26",
"prop-types": "^15.7.2",
"react-moveable": "^0.39.3",
"react-moveable": "^0.49.2",
"styled-components": "^5.3.9"
},
"devDependencies": {}
Expand Down
2 changes: 1 addition & 1 deletion packages/story-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,6 @@
"libheif-js": "^1.15.1",
"mockdate": "^3.0.5",
"react": "^17.0.2",
"react-moveable": "^0.39.3"
"react-moveable": "^0.49.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ function useMultiSelectionDrag({
nodesById[id].contains(inputEvent.target)
);
if (clickedElement) {
handleSelectElement(clickedElement, inputEvent);
setTimeout(() => {
handleSelectElement(clickedElement, inputEvent);
}, 0);
}
// Click was handled.
return true;
Expand Down
2 changes: 1 addition & 1 deletion patches/react-moveable+0.39.6.patch
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ index e7706fd..a28c4ab 100644
+import { IObject } from "@daybrush/utils";
import { Able } from "./types";
import { InitialMoveable } from "./InitialMoveable";
-export declare function makeMoveable<T = {}>(ables: Array<Able<T>>): typeof InitialMoveable & (new (...args: any[]) => InitialMoveable<T>);
-export declare function makeMoveable<T extends Record<string, any> = {}>(ables: Array<Able<T>>): typeof InitialMoveable & (new (...args: any[]) => InitialMoveable<T>);
+export declare function makeMoveable<T extends IObject<any> = {}>(ables: Array<Able<T>>): typeof InitialMoveable & (new (...args: any[]) => InitialMoveable<T>);

0 comments on commit 80d3192

Please sign in to comment.