@veloceapps/sdk 3.0.1 → 3.0.3

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.
@@ -3,6 +3,7 @@ import { UITemplatesApiService } from '@veloce/api';
3
3
  import { ToastService } from '@veloce/components';
4
4
  import { UIDefinition } from '@veloce/sdk/cms';
5
5
  import { BehaviorSubject } from 'rxjs';
6
+ import { FlowCustomization } from '../../types';
6
7
  import * as i0 from "@angular/core";
7
8
  interface State {
8
9
  loading: boolean;
@@ -12,16 +13,17 @@ export declare class ShoppingCartComponent implements OnInit, OnDestroy {
12
13
  private templatesApi;
13
14
  private cdr;
14
15
  private toastService;
16
+ private customizationService?;
15
17
  uiDefinition?: UIDefinition;
16
18
  state$: BehaviorSubject<State>;
17
19
  private destroyed$;
18
- constructor(templatesApi: UITemplatesApiService, cdr: ChangeDetectorRef, toastService: ToastService);
20
+ constructor(templatesApi: UITemplatesApiService, cdr: ChangeDetectorRef, toastService: ToastService, customizationService?: FlowCustomization | undefined);
19
21
  ngOnInit(): void;
20
22
  ngOnDestroy(): void;
21
23
  private getTemplateRootComponent$;
22
24
  private getShoppingCartComponentMeta$;
23
25
  private generateUIDefinition$;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<ShoppingCartComponent, never>;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShoppingCartComponent, [null, null, null, { optional: true; }]>;
25
27
  static ɵcmp: i0.ɵɵComponentDeclaration<ShoppingCartComponent, "vl-flow-shopping-cart", never, {}, {}, never, never>;
26
28
  }
27
29
  export {};
@@ -1,9 +1,10 @@
1
1
  import { InjectionToken } from '@angular/core';
2
- import { UIDefinition as LegacyUIDefinition } from '@veloce/core';
2
+ import { TemplateComponentWithAttachments, UIDefinition as LegacyUIDefinition } from '@veloce/core';
3
3
  import { UIDefinition } from '@veloce/sdk/cms';
4
4
  import { Observable } from 'rxjs';
5
5
  export declare const FLOW_CUSTOMIZATION: InjectionToken<FlowCustomization>;
6
6
  export interface FlowCustomization {
7
7
  getUiDefinition?(productId: string): Observable<UIDefinition | null>;
8
8
  getLegacyUiDefinition?(productId: string): Observable<LegacyUIDefinition | null>;
9
+ getShoppingCartComponent?(): Observable<TemplateComponentWithAttachments | null>;
9
10
  }