@wizishop/img-manager 0.2.99 → 0.2.100

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.
@@ -1,19 +1,10 @@
1
- import { OnInit, EventEmitter, OnDestroy, Renderer2 } from '@angular/core';
1
+ import { OnInit, EventEmitter, OnDestroy } from '@angular/core';
2
2
  import { CanvaService } from '../../services/canva.service';
3
3
  import { CanvaButtonApi } from '../../dto/canva.dto';
4
- import { ImgEventService } from '../../services/img-event.service';
5
- import { ImgManagerService } from '../../services/img-manager.service';
6
- import { TranslateService } from '@ngx-translate/core';
7
4
  import { Subscription } from 'rxjs';
8
- import { AlertService } from '../../services/alert.service';
9
5
  import { stateDisplayed } from '../../dto/export-dtos.api';
10
6
  export declare class CanvaBtnComponent implements OnInit, OnDestroy {
11
7
  private canvaService;
12
- private imgManager;
13
- private wzImgEventService;
14
- private translateService;
15
- private alertService;
16
- private renderer;
17
8
  stateDisplayed: stateDisplayed;
18
9
  showImgUploaded: EventEmitter<any>;
19
10
  canvaApi: CanvaButtonApi;
@@ -37,17 +28,9 @@ export declare class CanvaBtnComponent implements OnInit, OnDestroy {
37
28
  expectedHeight: number;
38
29
  expectedWidth: number;
39
30
  subs: Subscription[];
40
- uploadingImg: string;
41
- successUploadPhoto: string;
42
- errorUploadCanvaImg: string;
43
- errorRenameCanvaImg: string;
44
- constructor(canvaService: CanvaService, imgManager: ImgManagerService, wzImgEventService: ImgEventService, translateService: TranslateService, alertService: AlertService, renderer: Renderer2);
31
+ constructor(canvaService: CanvaService);
45
32
  ngOnInit(): void;
46
33
  listenCanvaExpectedSize(): void;
47
34
  onOpenCanva(width: number, height: number): void;
48
- private createDesign;
49
- private designPublished;
50
- private addOverflowBody;
51
- private removeOverflowBody;
52
35
  ngOnDestroy(): void;
53
36
  }
@@ -2,15 +2,29 @@ import { Observable } from 'rxjs';
2
2
  import { CanvaButtonApi } from '../dto/canva.dto';
3
3
  import { ImgManagerConfigService } from './config/external-config.service';
4
4
  import { WiziBlockMediaDto } from '../dto/wizi-block-media.dto';
5
+ import { AlertService } from './alert.service';
6
+ import { ImgManagerService } from './img-manager.service';
7
+ import { ImgEventService } from './img-event.service';
8
+ import { TranslateService } from '@ngx-translate/core';
5
9
  export declare class CanvaService {
6
10
  private externalConfigService;
11
+ private imgManager;
12
+ private wzImgEventService;
13
+ private alertService;
14
+ private translateService;
7
15
  canvaApi: any;
8
16
  canvaApiURL: string;
9
17
  canvaApiKey: string;
10
18
  canvaLogoRoute: string;
19
+ imgLoading: boolean;
20
+ uploadingImg: string;
21
+ successUploadPhoto: string;
22
+ errorUploadCanvaImg: string;
23
+ errorRenameCanvaImg: string;
24
+ forceToOpenCanva: boolean;
11
25
  private bindExpectedImgSizeEvent;
12
26
  private bindExpectedSizeDone;
13
- constructor(externalConfigService: ImgManagerConfigService);
27
+ constructor(externalConfigService: ImgManagerConfigService, imgManager: ImgManagerService, wzImgEventService: ImgEventService, alertService: AlertService, translateService: TranslateService);
14
28
  private setCanvaApiConfig;
15
29
  getCanvaLogo(): string;
16
30
  bindEventExepectedImgSizeChange(): Observable<WiziBlockMediaDto>;
@@ -19,4 +33,9 @@ export declare class CanvaService {
19
33
  private initializeCanva;
20
34
  private loadCanva;
21
35
  private loadCanvaScript;
36
+ openCanva(width: number, height: number): void;
37
+ private addOverflowBody;
38
+ private removeOverflowBody;
39
+ private createDesign;
40
+ private designPublished;
22
41
  }
@@ -8,6 +8,7 @@ import { CanvaService } from './services/canva.service';
8
8
  import { ImgEventService } from './services/img-event.service';
9
9
  import { DomService } from './services/dom.service';
10
10
  import { stateDisplayed } from '../public-api';
11
+ import { WiziBlockMediaDto } from './dto/wizi-block-media.dto';
11
12
  export declare class WzImgManagerComponent implements OnInit {
12
13
  private imgSelectionService;
13
14
  private externalConfigService;
@@ -18,6 +19,7 @@ export declare class WzImgManagerComponent implements OnInit {
18
19
  stateDisplayed: stateDisplayed;
19
20
  showSelection: boolean;
20
21
  externalConfig: ImgManagerConfigDto;
22
+ set forceToOpenCanva(forceToOpenCanva: boolean | WiziBlockMediaDto);
21
23
  imgManagerClosed: EventEmitter<any>;
22
24
  private _multipleImgMode;
23
25
  set multipleImgMode(activate: boolean);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wizishop/img-manager",
3
- "version": "0.2.99",
3
+ "version": "0.2.100",
4
4
  "description": "The best and the most beautiful image manager.",
5
5
  "repository": {
6
6
  "type": "git",
Binary file
@@ -15,7 +15,7 @@ export { CropperComponent as ɵv } from './lib/components/img-editor/cropper/cro
15
15
  export { ImgEditorComponent as ɵp } from './lib/components/img-editor/img-editor.component';
16
16
  export { EditorInfoSectionComponent as ɵq } from './lib/components/img-editor/info-section/info-section.component';
17
17
  export { ImgSelectionComponent as ɵs } from './lib/components/img-selection/img-selection.component';
18
- export { ImgTabsComponent as ɵf } from './lib/components/img-tabs/img-tabs.component';
18
+ export { ImgTabsComponent as ɵg } from './lib/components/img-tabs/img-tabs.component';
19
19
  export { ImgUploadComponent as ɵh } from './lib/components/img-upload/img-upload.component';
20
20
  export { LoaderComponent as ɵt } from './lib/components/loader/loader.component';
21
21
  export { PexelLibComponent as ɵj } from './lib/components/pexels-lib/pexels-lib.component';
@@ -46,10 +46,10 @@ export { LargeNumberOfPagePipe as ɵby } from './lib/pipes/pagination/large-numb
46
46
  export { PagniationText as ɵbv } from './lib/pipes/pagination/text/custom-text.pipe';
47
47
  export { PagniationIsLastPage as ɵbu } from './lib/pipes/pagination/total-pages/is-last-page.pipe';
48
48
  export { SelectFiltersPipe as ɵbz } from './lib/pipes/select/select-filters.pipe';
49
- export { AlertService as ɵg } from './lib/services/alert.service';
49
+ export { AlertService as ɵe } from './lib/services/alert.service';
50
50
  export { ImgManagerConfigService as ɵa } from './lib/services/config/external-config.service';
51
51
  export { ImgCDNService as ɵb } from './lib/services/config/img-cdn.service';
52
- export { DomService as ɵe } from './lib/services/dom.service';
52
+ export { DomService as ɵf } from './lib/services/dom.service';
53
53
  export { ImgEventService as ɵd } from './lib/services/img-event.service';
54
54
  export { PexelsService as ɵl } from './lib/services/pexels.service';
55
55
  export { FiltersTableService as ɵbb } from './lib/services/table/filters-table.service';