cropt2 2.0.5 → 2.0.7

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.
Files changed (2) hide show
  1. package/README.md +5 -5
  2. package/package.json +4 -2
package/README.md CHANGED
@@ -5,8 +5,7 @@ Originally based on [Foliotek/Croppie](https://github.com/Foliotek/Croppie), but
5
5
  [Devtheorem](https://devtheorem.github.io/cropt/).
6
6
 
7
7
  It was extensively enhanced (but backwards compatible with v1) to include adjustable viewport, rotation,
8
- keyboard handling, and various optimizations and bug fixes. And packed to work as browser install, commonJS,
9
- esm package, etc.
8
+ keyboard handling, and various optimizations and bug fixes. And packed to work as browser install, commonJS, esm package, etc.
10
9
 
11
10
 
12
11
  ## Quick Start
@@ -34,10 +33,10 @@ npm start
34
33
  3. Import Cropt and bind it to an image:
35
34
 
36
35
  ```javascript
37
- import { Cropt } from "cropt";
36
+ import Cropt from "cropt2";
38
37
 
39
- let c = new Cropt(document.getElementById('demo'), options);
40
- c.bind("path/to/image.jpg");
38
+ const cropt = new Cropt(document.getElementById('demo'), options);
39
+ cropt.bind("path/to/image.jpg");
41
40
  ```
42
41
 
43
42
  ### Sizing
@@ -163,3 +162,4 @@ Cropt should also work in any other modern browser using an engine based on Geck
163
162
  ## License
164
163
 
165
164
  MIT
165
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cropt2",
3
- "version": "2.0.5",
3
+ "version": "2.0.7",
4
4
  "description": "A lightweight but powerful JavaScript image cropper",
5
5
  "keywords": [
6
6
  "cropping",
@@ -20,7 +20,9 @@
20
20
  "import": "./dist/cropt.esm.min.js",
21
21
  "require": "./dist/cropt.min.js",
22
22
  "default": "./dist/cropt.min.js"
23
- }
23
+ },
24
+ "./style": "./dist/cropt.min.css",
25
+ "./dist/cropt.min.css": "./dist/cropt.min.css"
24
26
  },
25
27
  "types": "dist/cropt.d.ts",
26
28
  "files": [