@bensitu/image-editor 1.4.2 → 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;
@@ -81,28 +82,69 @@ declare module '@bensitu/image-editor' {
81
82
  export interface ElementIdMap {
82
83
  canvas?: string;
83
84
  canvasContainer?: string | null;
84
- imgPlaceholder?: string;
85
- scaleRate?: string;
86
- rotationLeftInput?: string;
87
- rotationRightInput?: string;
88
- rotateLeftBtn?: string;
89
- rotateRightBtn?: string;
90
- addMaskBtn?: string;
91
- removeMaskBtn?: string;
92
- removeAllMasksBtn?: string;
93
- mergeBtn?: string;
94
- downloadBtn?: string;
95
- maskList?: string;
96
- zoomInBtn?: string;
97
- zoomOutBtn?: string;
98
- resetBtn?: string;
99
- undoBtn?: string;
100
- redoBtn?: string;
101
- imageInput?: string;
102
- uploadArea?: string;
103
- cropBtn?: string;
104
- applyCropBtn?: string;
105
- cancelCropBtn?: string;
85
+ imagePlaceholder?: string | null;
86
+ /** @deprecated Use imagePlaceholder instead. This alias will be removed in v2.0.0. */
87
+ imgPlaceholder?: string | null;
88
+ scalePercentageInput?: string | null;
89
+ /** @deprecated Use scalePercentageInput instead. This alias will be removed in v2.0.0. */
90
+ scaleRate?: string | null;
91
+ rotateLeftDegreesInput?: string | null;
92
+ /** @deprecated Use rotateLeftDegreesInput instead. This alias will be removed in v2.0.0. */
93
+ rotationLeftInput?: string | null;
94
+ rotateRightDegreesInput?: string | null;
95
+ /** @deprecated Use rotateRightDegreesInput instead. This alias will be removed in v2.0.0. */
96
+ rotationRightInput?: string | null;
97
+ rotateLeftButton?: string | null;
98
+ /** @deprecated Use rotateLeftButton instead. This alias will be removed in v2.0.0. */
99
+ rotateLeftBtn?: string | null;
100
+ rotateRightButton?: string | null;
101
+ /** @deprecated Use rotateRightButton instead. This alias will be removed in v2.0.0. */
102
+ rotateRightBtn?: string | null;
103
+ /** Create mask button. Preferred canonical key. */
104
+ createMaskButton?: string | null;
105
+ /** @deprecated Use createMaskButton instead. This alias will be removed in v2.0.0. */
106
+ addMaskBtn?: string | null;
107
+ removeSelectedMaskButton?: string | null;
108
+ /** @deprecated Use removeSelectedMaskButton instead. This alias will be removed in v2.0.0. */
109
+ removeMaskBtn?: string | null;
110
+ removeAllMasksButton?: string | null;
111
+ /** @deprecated Use removeAllMasksButton instead. This alias will be removed in v2.0.0. */
112
+ removeAllMasksBtn?: string | null;
113
+ /** Merge masks button. Preferred canonical key. */
114
+ mergeMasksButton?: string | null;
115
+ /** @deprecated Use mergeMasksButton instead. This alias will be removed in v2.0.0. */
116
+ mergeBtn?: string | null;
117
+ downloadImageButton?: string | null;
118
+ /** @deprecated Use downloadImageButton instead. This alias will be removed in v2.0.0. */
119
+ downloadBtn?: string | null;
120
+ maskList?: string | null;
121
+ zoomInButton?: string | null;
122
+ /** @deprecated Use zoomInButton instead. This alias will be removed in v2.0.0. */
123
+ zoomInBtn?: string | null;
124
+ zoomOutButton?: string | null;
125
+ /** @deprecated Use zoomOutButton instead. This alias will be removed in v2.0.0. */
126
+ zoomOutBtn?: string | null;
127
+ /** Reset image transform button. Preferred canonical key. */
128
+ resetImageTransformButton?: string | null;
129
+ /** @deprecated Use resetImageTransformButton instead. This alias will be removed in v2.0.0. */
130
+ resetBtn?: string | null;
131
+ undoButton?: string | null;
132
+ /** @deprecated Use undoButton instead. This alias will be removed in v2.0.0. */
133
+ undoBtn?: string | null;
134
+ redoButton?: string | null;
135
+ /** @deprecated Use redoButton instead. This alias will be removed in v2.0.0. */
136
+ redoBtn?: string | null;
137
+ imageInput?: string | null;
138
+ uploadArea?: string | null;
139
+ enterCropModeButton?: string | null;
140
+ /** @deprecated Use enterCropModeButton instead. This alias will be removed in v2.0.0. */
141
+ cropBtn?: string | null;
142
+ applyCropButton?: string | null;
143
+ /** @deprecated Use applyCropButton instead. This alias will be removed in v2.0.0. */
144
+ applyCropBtn?: string | null;
145
+ cancelCropButton?: string | null;
146
+ /** @deprecated Use cancelCropButton instead. This alias will be removed in v2.0.0. */
147
+ cancelCropBtn?: string | null;
106
148
  }
107
149
 
108
150
  export interface MaskConfig {
package/package.json CHANGED
@@ -1,15 +1,16 @@
1
1
  {
2
2
  "name": "@bensitu/image-editor",
3
- "version": "1.4.2",
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": {