@octanejs/image-crop 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/ReactCrop.tsrx +1 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octanejs/image-crop",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"description": "react-image-crop for Octane with matching crop interaction behavior.",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"type": "module",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"typescript": "^5.9.3",
|
|
47
47
|
"vitest": "^4.1.10",
|
|
48
|
-
"octane": "0.2.
|
|
48
|
+
"octane": "0.2.12"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run --root ../.. --project image-crop",
|
package/src/ReactCrop.tsrx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { CSSProperties } from 'octane';
|
|
1
2
|
import { type OctaneNode, useEffect, useRef, useState } from 'octane';
|
|
2
|
-
import type { Octane } from 'octane/jsx-runtime';
|
|
3
3
|
|
|
4
4
|
import type { Crop, Ords, PercentCrop, PixelCrop, XYOrds } from './types';
|
|
5
5
|
import {
|
|
@@ -33,8 +33,6 @@ interface Rectangle {
|
|
|
33
33
|
height: number;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
type CSSProperties = Exclude<NonNullable<Octane.HTMLAttributes<Element>['style']>, string>;
|
|
37
|
-
|
|
38
36
|
const DOC_MOVE_OPTS = { capture: true, passive: false };
|
|
39
37
|
let instanceCount = 0;
|
|
40
38
|
|