@wizishop/img-manager 0.2.100 → 0.2.103

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 (27) hide show
  1. package/assets/i18n/fr.json +1 -1
  2. package/bundles/wizishop-img-manager.umd.js +27 -8
  3. package/bundles/wizishop-img-manager.umd.js.map +1 -1
  4. package/bundles/wizishop-img-manager.umd.min.js +1 -1
  5. package/bundles/wizishop-img-manager.umd.min.js.map +1 -1
  6. package/esm2015/lib/components/canva-btn/canva-btn.component.js +2 -2
  7. package/esm2015/lib/components/images-view/images-view.component.js +2 -2
  8. package/esm2015/lib/components/img-editor/img-editor.component.js +2 -2
  9. package/esm2015/lib/components/img-upload/img-upload.component.js +23 -4
  10. package/esm2015/lib/components/pexels-lib/pexels-lib.component.js +2 -2
  11. package/esm2015/lib/components/upload-list/upload-list.component.js +2 -2
  12. package/esm5/lib/components/canva-btn/canva-btn.component.js +2 -2
  13. package/esm5/lib/components/images-view/images-view.component.js +2 -2
  14. package/esm5/lib/components/img-editor/img-editor.component.js +2 -2
  15. package/esm5/lib/components/img-upload/img-upload.component.js +23 -4
  16. package/esm5/lib/components/pexels-lib/pexels-lib.component.js +2 -2
  17. package/esm5/lib/components/upload-list/upload-list.component.js +2 -2
  18. package/fesm2015/wizishop-img-manager.js +27 -8
  19. package/fesm2015/wizishop-img-manager.js.map +1 -1
  20. package/fesm5/wizishop-img-manager.js +27 -8
  21. package/fesm5/wizishop-img-manager.js.map +1 -1
  22. package/lib/components/img-upload/img-upload.component.d.ts +3 -0
  23. package/package.json +1 -1
  24. package/wizishop-img-manager-0.2.103.tgz +0 -0
  25. package/wizishop-img-manager.metadata.json +1 -1
  26. package/wz-img-manager.scss +193 -189
  27. package/wizishop-img-manager-0.2.100.tgz +0 -0
@@ -17,6 +17,7 @@ export declare class ImgUploadComponent implements OnInit {
17
17
  loadingText: string;
18
18
  errorUploadingImg: string;
19
19
  errorNotImg: string;
20
+ MAX_IMAGE_SIZE: number;
20
21
  constructor(imgManager: ImgManagerService, alertService: AlertService, externalConfigService: ImgManagerConfigService);
21
22
  ngOnInit(): void;
22
23
  filesChangeByClick(event: any): void;
@@ -30,6 +31,8 @@ export declare class ImgUploadComponent implements OnInit {
30
31
  */
31
32
  onImgUpload(img: ImgPictureDTO[]): void;
32
33
  isFileImage(fileType: string): boolean;
34
+ isSizeValid(imageBytesSize: number): boolean;
35
+ getImageSizeInKo(size: number): number;
33
36
  /**
34
37
  * Remove the style of the drag and drop box
35
38
  * After an img is droped, the box is still grey
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wizishop/img-manager",
3
- "version": "0.2.100",
3
+ "version": "0.2.103",
4
4
  "description": "The best and the most beautiful image manager.",
5
5
  "repository": {
6
6
  "type": "git",
Binary file