@bensitu/image-editor 1.5.0 → 1.5.1

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/image-editor.d.ts CHANGED
@@ -55,6 +55,7 @@ declare module '@bensitu/image-editor' {
55
55
  imageLoadTimeoutMs?: number;
56
56
 
57
57
  exportMultiplier?: number;
58
+ maxExportPixels?: number;
58
59
  exportImageAreaByDefault?: boolean;
59
60
 
60
61
  defaultMaskWidth?: number;
@@ -116,7 +117,7 @@ declare module '@bensitu/image-editor' {
116
117
  downloadImageButton?: string | null;
117
118
  /** @deprecated Use downloadImageButton instead. This alias will be removed in v2.0.0. */
118
119
  downloadBtn?: string | null;
119
- maskList?: string;
120
+ maskList?: string | null;
120
121
  zoomInButton?: string | null;
121
122
  /** @deprecated Use zoomInButton instead. This alias will be removed in v2.0.0. */
122
123
  zoomInBtn?: string | null;
@@ -133,8 +134,8 @@ declare module '@bensitu/image-editor' {
133
134
  redoButton?: string | null;
134
135
  /** @deprecated Use redoButton instead. This alias will be removed in v2.0.0. */
135
136
  redoBtn?: string | null;
136
- imageInput?: string;
137
- uploadArea?: string;
137
+ imageInput?: string | null;
138
+ uploadArea?: string | null;
138
139
  enterCropModeButton?: string | null;
139
140
  /** @deprecated Use enterCropModeButton instead. This alias will be removed in v2.0.0. */
140
141
  cropBtn?: string | null;
package/package.json CHANGED
@@ -1,15 +1,16 @@
1
1
  {
2
2
  "name": "@bensitu/image-editor",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Lightweight canvas-based image editor",
5
- "main": "./dist/image-editor.js",
5
+ "main": "./dist/image-editor.cjs",
6
6
  "module": "./dist/image-editor.esm.mjs",
7
7
  "types": "./image-editor.d.ts",
8
8
  "exports": {
9
9
  ".": {
10
10
  "types": "./image-editor.d.ts",
11
11
  "import": "./dist/image-editor.esm.mjs",
12
- "default": "./dist/image-editor.js"
12
+ "require": "./dist/image-editor.cjs",
13
+ "default": "./dist/image-editor.esm.mjs"
13
14
  }
14
15
  },
15
16
  "scripts": {