diff --git a/CHANGELOG.md b/CHANGELOG.md index c9e6edaa7..208788974 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). +## [0.7.1] - 2019-08-20 +### Fixed +- Remove unnecessary code. + ## [0.7.0] - 2019-08-20 ### Added - Add [Groupable](https://github.com/daybrush/moveable/blob/master/groupable.md) diff --git a/package-lock.json b/package-lock.json index e204d9673..29c7597ea 100644 --- a/package-lock.json +++ b/package-lock.json @@ -985,9 +985,9 @@ } }, "preact-moveable": { - "version": "0.9.3", - "resolved": "https://registry.npmjs.org/preact-moveable/-/preact-moveable-0.9.3.tgz", - "integrity": "sha512-MT3C3n4Di0vCMj+cO0CVcCbxel6J7KeW5PjgCh3/WQeqwp0Of80m8nRf1YGgCx9m6amJtiLoHnCyZLQCcCx0Ig==", + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/preact-moveable/-/preact-moveable-0.9.4.tgz", + "integrity": "sha512-b1KyWs+J5ZswcclFjrVD+TfehI1S7OrMeXpkKYIuCF7lTtwg3EwFkV4VctlPMPsWRj1UcQjYJFT4crKpLfNBPQ==", "requires": { "@daybrush/drag": "^0.8.1", "@daybrush/utils": "^0.10.0", @@ -995,7 +995,7 @@ "framework-utils": "^0.2.0", "preact-compat": "^3.19.0", "preact-css-styler": "^0.4.1", - "react-moveable": "^0.10.3" + "react-moveable": "^0.10.4" } }, "preact-render-to-string": { @@ -1083,9 +1083,9 @@ "integrity": "sha512-aUk3bHfZ2bRSVFFbbeVS4i+lNPZr3/WM5jT2J5omUVV1zzcs1nAaf3l51ctA5FFvCRbhrH0bdAsRRQddFJZPtA==" }, "react-moveable": { - "version": "0.10.3", - "resolved": "https://registry.npmjs.org/react-moveable/-/react-moveable-0.10.3.tgz", - "integrity": "sha512-jzf2XyLFHIulB200aCy+EDROZrJzaPKCWnbB9mXIMPHilnecxZBU0FHfBUn5f0hNPsP6YDuVO9cfCG6lgEX7fQ==", + "version": "0.10.4", + "resolved": "https://registry.npmjs.org/react-moveable/-/react-moveable-0.10.4.tgz", + "integrity": "sha512-dLtegAsyq92TTuVKruwbfCZPfUk7Qu9k9c7+h+CsJ6962HHL+6UZP853q+bb4Ftqq5ezdV4T8H3dsxhYzMunYw==", "requires": { "@daybrush/drag": "^0.8.1", "@daybrush/utils": "^0.10.0", diff --git a/package.json b/package.json index cc47bd174..2253584d6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "moveable", - "version": "0.7.0", + "version": "0.7.1", "description": "Moveable is Draggable, Resizable, Scalable, Rotatable, Warpable, Pinchable, Groupable.", "main": "./dist/moveable.cjs.js", "module": "./dist/moveable.esm.js", @@ -57,7 +57,7 @@ "@egjs/children-differ": "^1.0.0", "@egjs/component": "^2.1.2", "framework-utils": "^0.2.0", - "preact-moveable": "^0.9.3" + "preact-moveable": "^0.9.4" }, "devDependencies": { "@daybrush/builder": "^0.1.1", diff --git a/packages/preact-moveable/package-lock.json b/packages/preact-moveable/package-lock.json index 748849a26..c95e97e8c 100644 --- a/packages/preact-moveable/package-lock.json +++ b/packages/preact-moveable/package-lock.json @@ -747,9 +747,9 @@ "integrity": "sha512-aUk3bHfZ2bRSVFFbbeVS4i+lNPZr3/WM5jT2J5omUVV1zzcs1nAaf3l51ctA5FFvCRbhrH0bdAsRRQddFJZPtA==" }, "react-moveable": { - "version": "0.10.3", - "resolved": "https://registry.npmjs.org/react-moveable/-/react-moveable-0.10.3.tgz", - "integrity": "sha512-jzf2XyLFHIulB200aCy+EDROZrJzaPKCWnbB9mXIMPHilnecxZBU0FHfBUn5f0hNPsP6YDuVO9cfCG6lgEX7fQ==", + "version": "0.10.4", + "resolved": "https://registry.npmjs.org/react-moveable/-/react-moveable-0.10.4.tgz", + "integrity": "sha512-dLtegAsyq92TTuVKruwbfCZPfUk7Qu9k9c7+h+CsJ6962HHL+6UZP853q+bb4Ftqq5ezdV4T8H3dsxhYzMunYw==", "requires": { "@daybrush/drag": "^0.8.1", "@daybrush/utils": "^0.10.0", diff --git a/packages/preact-moveable/package.json b/packages/preact-moveable/package.json index b66a36f5d..343888d16 100644 --- a/packages/preact-moveable/package.json +++ b/packages/preact-moveable/package.json @@ -1,6 +1,6 @@ { "name": "preact-moveable", - "version": "0.9.3", + "version": "0.9.4", "description": "A Preact Component that create Moveable, Draggable, Resizable, Scalable, Rotatable, Pinchable, Groupable.", "main": "./dist/moveable.cjs.js", "module": "./dist/moveable.esm.js", @@ -64,6 +64,6 @@ "framework-utils": "^0.2.0", "preact-compat": "^3.19.0", "preact-css-styler": "^0.4.1", - "react-moveable": "^0.10.3" + "react-moveable": "^0.10.4" } } diff --git a/packages/react-moveable/package.json b/packages/react-moveable/package.json index 92f4b3477..c9eb67b5c 100644 --- a/packages/react-moveable/package.json +++ b/packages/react-moveable/package.json @@ -1,6 +1,6 @@ { "name": "react-moveable", - "version": "0.10.3", + "version": "0.10.4", "description": "A React Component that create Moveable, Draggable, Resizable, Scalable, Rotatable, Warpable, Pinchable, Groupable.", "main": "./dist/moveable.cjs.js", "module": "./dist/moveable.esm.js", diff --git a/packages/react-moveable/src/react-moveable/Moveable.tsx b/packages/react-moveable/src/react-moveable/Moveable.tsx index 72f585d98..b51994bc4 100644 --- a/packages/react-moveable/src/react-moveable/Moveable.tsx +++ b/packages/react-moveable/src/react-moveable/Moveable.tsx @@ -1,8 +1,8 @@ +import * as React from "react"; import { MoveableProps } from "./types"; import MoveableManager from "./MoveableManager"; import { MOVEABLE_ABLES } from "./consts"; import MoveableGroup from "./MoveableGroup"; -import React from "react"; import { ref } from "framework-utils"; import { isArray } from "@daybrush/utils"; diff --git a/packages/react-moveable/src/react-moveable/ables/Groupable.tsx b/packages/react-moveable/src/react-moveable/ables/Groupable.tsx index a09adce39..bb6ec486b 100644 --- a/packages/react-moveable/src/react-moveable/ables/Groupable.tsx +++ b/packages/react-moveable/src/react-moveable/ables/Groupable.tsx @@ -1,4 +1,4 @@ -import React from "react"; +import * as React from "react"; import { refs, ref } from "framework-utils"; import MoveableGroup from "../MoveableGroup"; import MoveableManager from "../MoveableManager"; diff --git a/packages/react-moveable/src/react-moveable/ables/Origin.tsx b/packages/react-moveable/src/react-moveable/ables/Origin.tsx index 94296dc59..7a558879c 100644 --- a/packages/react-moveable/src/react-moveable/ables/Origin.tsx +++ b/packages/react-moveable/src/react-moveable/ables/Origin.tsx @@ -1,4 +1,4 @@ -import React from "react"; +import * as React from "react"; import MoveableManager from "../MoveableManager"; import { prefix, getControlTransform } from "../utils"; diff --git a/packages/react-moveable/src/react-moveable/ables/Rotatable.tsx b/packages/react-moveable/src/react-moveable/ables/Rotatable.tsx index 8d37fa859..b585b59d2 100644 --- a/packages/react-moveable/src/react-moveable/ables/Rotatable.tsx +++ b/packages/react-moveable/src/react-moveable/ables/Rotatable.tsx @@ -1,4 +1,4 @@ -import React from "react"; +import * as React from "react"; import { getRad, throttle, prefix, triggerEvent } from "../utils"; import { IObject, hasClass } from "@daybrush/utils"; import MoveableManager from "../MoveableManager"; diff --git a/packages/react-moveable/src/react-moveable/ables/Warpable.tsx b/packages/react-moveable/src/react-moveable/ables/Warpable.tsx index ff4f12ebb..85c915a49 100644 --- a/packages/react-moveable/src/react-moveable/ables/Warpable.tsx +++ b/packages/react-moveable/src/react-moveable/ables/Warpable.tsx @@ -1,4 +1,4 @@ -import React from "react"; +import * as React from "react"; import { warp as warpMatrix, getRad, prefix, getLineStyle, getDirection } from "../utils"; import { convertDimension, invert, multiply, diff --git a/packages/react-moveable/src/react-moveable/renderDirection.tsx b/packages/react-moveable/src/react-moveable/renderDirection.tsx index 55a4b30ae..344a9d408 100644 --- a/packages/react-moveable/src/react-moveable/renderDirection.tsx +++ b/packages/react-moveable/src/react-moveable/renderDirection.tsx @@ -1,4 +1,4 @@ -import React from "react"; +import * as React from "react"; import MoveableManager from "./MoveableManager"; import { prefix, getControlTransform } from "./utils"; import { ResizableProps, ScalableProps, WarpableProps } from "./types";