@bensitu/image-editor 1.4.2 → 1.5.0

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