@veloceapps/sdk 8.0.0-102 → 8.0.0-104
Sign up to get free protection for your applications and to get access to all the features.
- package/cms/utils/index.d.ts +1 -0
- package/core/services/flow-info.service.d.ts +4 -2
- package/core/services/flow-state.service.d.ts +6 -3
- package/core/types/flow-customization.types.d.ts +22 -0
- package/core/types/index.d.ts +1 -0
- package/esm2020/cms/utils/index.mjs +2 -1
- package/esm2020/core/services/flow-info.service.mjs +20 -8
- package/esm2020/core/services/flow-state.service.mjs +41 -15
- package/esm2020/core/types/flow-customization.types.mjs +3 -0
- package/esm2020/core/types/index.mjs +2 -1
- package/esm2020/src/components/doc-gen/doc-gen.component.mjs +14 -25
- package/esm2020/src/components/flow-header/flow-header.component.mjs +16 -26
- package/esm2020/src/components/guided-selling/guided-selling.component.mjs +16 -26
- package/esm2020/src/pages/assets/assets.component.mjs +20 -29
- package/esm2020/src/pages/catalog/catalog.component.mjs +20 -28
- package/esm2020/src/pages/product/product.component.mjs +2 -3
- package/esm2020/src/pages/shopping-cart/shopping-cart.component.mjs +21 -29
- package/esm2020/src/types/index.mjs +1 -2
- package/fesm2015/veloceapps-sdk-cms.mjs +1 -1
- package/fesm2015/veloceapps-sdk-core.mjs +68 -23
- package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2015/veloceapps-sdk.mjs +92 -171
- package/fesm2015/veloceapps-sdk.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-cms.mjs +1 -1
- package/fesm2020/veloceapps-sdk-core.mjs +77 -40
- package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk.mjs +92 -171
- package/fesm2020/veloceapps-sdk.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/doc-gen/doc-gen.component.d.ts +3 -5
- package/src/components/flow-header/flow-header.component.d.ts +3 -5
- package/src/components/guided-selling/guided-selling.component.d.ts +3 -5
- package/src/pages/assets/assets.component.d.ts +3 -5
- package/src/pages/catalog/catalog.component.d.ts +3 -5
- package/src/pages/product/product.component.d.ts +1 -2
- package/src/pages/shopping-cart/shopping-cart.component.d.ts +3 -5
- package/src/types/index.d.ts +0 -1
- package/esm2020/src/types/flow-customization.types.mjs +0 -3
- package/src/types/flow-customization.types.d.ts +0 -12
package/package.json
CHANGED
@@ -2,9 +2,8 @@ import { OnDestroy } from '@angular/core';
|
|
2
2
|
import { UITemplatesApiService } from '@veloceapps/api';
|
3
3
|
import { ToastService } from '@veloceapps/components';
|
4
4
|
import { UIDefinition } from '@veloceapps/core';
|
5
|
-
import { ContextService, FlowInfoService, FlowStateService } from '@veloceapps/sdk/core';
|
5
|
+
import { ContextService, FlowCustomization, FlowInfoService, FlowStateService } from '@veloceapps/sdk/core';
|
6
6
|
import { BehaviorSubject } from 'rxjs';
|
7
|
-
import { FlowCustomization } from '../../types';
|
8
7
|
import * as i0 from "@angular/core";
|
9
8
|
export declare class DocGenComponent implements OnDestroy {
|
10
9
|
private templatesApi;
|
@@ -19,9 +18,8 @@ export declare class DocGenComponent implements OnDestroy {
|
|
19
18
|
constructor(templatesApi: UITemplatesApiService, contextService: ContextService, flowStateService: FlowStateService, flowInfo: FlowInfoService, toastService: ToastService, customizationService?: FlowCustomization | undefined);
|
20
19
|
ngOnDestroy(): void;
|
21
20
|
private initialize;
|
22
|
-
private
|
23
|
-
private
|
24
|
-
private getDocGenComponentMeta$;
|
21
|
+
private getLocalMeta$;
|
22
|
+
private getOrgMeta$;
|
25
23
|
private generateUIDefinition$;
|
26
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocGenComponent, [null, null, null, null, null, { optional: true; }]>;
|
27
25
|
static ɵcmp: i0.ɵɵComponentDeclaration<DocGenComponent, "vl-flow-doc-gen", never, {}, {}, never, never, false, never>;
|
@@ -2,9 +2,8 @@ import { OnDestroy } from '@angular/core';
|
|
2
2
|
import { UITemplatesApiService } from '@veloceapps/api';
|
3
3
|
import { ToastService } from '@veloceapps/components';
|
4
4
|
import { UIDefinition } from '@veloceapps/core';
|
5
|
-
import { FlowInfoService, FlowStateService } from '@veloceapps/sdk/core';
|
5
|
+
import { FlowCustomization, FlowInfoService, FlowStateService } from '@veloceapps/sdk/core';
|
6
6
|
import { BehaviorSubject } from 'rxjs';
|
7
|
-
import { FlowCustomization } from '../../types';
|
8
7
|
import * as i0 from "@angular/core";
|
9
8
|
export declare class FlowHeaderComponent implements OnDestroy {
|
10
9
|
private templatesApi;
|
@@ -18,9 +17,8 @@ export declare class FlowHeaderComponent implements OnDestroy {
|
|
18
17
|
constructor(templatesApi: UITemplatesApiService, flowStateService: FlowStateService, flowInfo: FlowInfoService, toastService: ToastService, customizationService?: FlowCustomization | undefined);
|
19
18
|
ngOnDestroy(): void;
|
20
19
|
private initialize;
|
21
|
-
private
|
22
|
-
private
|
23
|
-
private getFlowHeaderComponentMeta$;
|
20
|
+
private getLocalMeta$;
|
21
|
+
private getOrgMeta$;
|
24
22
|
private generateUIDefinition$;
|
25
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowHeaderComponent, [null, null, null, null, { optional: true; }]>;
|
26
24
|
static ɵcmp: i0.ɵɵComponentDeclaration<FlowHeaderComponent, "vl-flow-new-header", never, {}, {}, never, never, false, never>;
|
@@ -2,9 +2,8 @@ import { OnDestroy } from '@angular/core';
|
|
2
2
|
import { UITemplatesApiService } from '@veloceapps/api';
|
3
3
|
import { ToastService } from '@veloceapps/components';
|
4
4
|
import { UIDefinition } from '@veloceapps/core';
|
5
|
-
import { FlowInfoService, FlowStateService } from '@veloceapps/sdk/core';
|
5
|
+
import { FlowCustomization, FlowInfoService, FlowStateService } from '@veloceapps/sdk/core';
|
6
6
|
import { BehaviorSubject } from 'rxjs';
|
7
|
-
import { FlowCustomization } from '../../types';
|
8
7
|
import * as i0 from "@angular/core";
|
9
8
|
export declare class GuidedSellingComponent implements OnDestroy {
|
10
9
|
private templatesApi;
|
@@ -18,9 +17,8 @@ export declare class GuidedSellingComponent implements OnDestroy {
|
|
18
17
|
constructor(templatesApi: UITemplatesApiService, flowStateService: FlowStateService, flowInfo: FlowInfoService, toastService: ToastService, customizationService?: FlowCustomization | undefined);
|
19
18
|
ngOnDestroy(): void;
|
20
19
|
private initialize;
|
21
|
-
private
|
22
|
-
private
|
23
|
-
private getGuidedSellingComponentMeta$;
|
20
|
+
private getLocalMeta$;
|
21
|
+
private getOrgMeta$;
|
24
22
|
private generateUIDefinition$;
|
25
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<GuidedSellingComponent, [null, null, null, null, { optional: true; }]>;
|
26
24
|
static ɵcmp: i0.ɵɵComponentDeclaration<GuidedSellingComponent, "vl-flow-guided-selling", never, {}, {}, never, never, false, never>;
|
@@ -2,9 +2,8 @@ import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { UITemplatesApiService } from '@veloceapps/api';
|
3
3
|
import { ToastService } from '@veloceapps/components';
|
4
4
|
import { UIDefinition } from '@veloceapps/core';
|
5
|
-
import { FlowInfoService } from '@veloceapps/sdk/core';
|
5
|
+
import { FlowCustomization, FlowInfoService } from '@veloceapps/sdk/core';
|
6
6
|
import { BehaviorSubject } from 'rxjs';
|
7
|
-
import { FlowCustomization } from '../../types';
|
8
7
|
import * as i0 from "@angular/core";
|
9
8
|
interface State {
|
10
9
|
loading: boolean;
|
@@ -23,9 +22,8 @@ export declare class AssetsComponent implements OnInit, OnDestroy {
|
|
23
22
|
constructor(templatesApi: UITemplatesApiService, cdr: ChangeDetectorRef, toastService: ToastService, flowInfo: FlowInfoService, customizationService?: FlowCustomization | undefined);
|
24
23
|
ngOnInit(): void;
|
25
24
|
ngOnDestroy(): void;
|
26
|
-
private
|
27
|
-
private
|
28
|
-
private getAssetsComponentMeta$;
|
25
|
+
private getLocalMeta$;
|
26
|
+
private getOrgMeta$;
|
29
27
|
private generateUIDefinition$;
|
30
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<AssetsComponent, [null, null, null, null, { optional: true; }]>;
|
31
29
|
static ɵcmp: i0.ɵɵComponentDeclaration<AssetsComponent, "vl-flow-assets", never, {}, {}, never, never, false, never>;
|
@@ -2,9 +2,8 @@ import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { UITemplatesApiService } from '@veloceapps/api';
|
3
3
|
import { ToastService } from '@veloceapps/components';
|
4
4
|
import { UIDefinition } from '@veloceapps/core';
|
5
|
-
import { FlowInfoService } from '@veloceapps/sdk/core';
|
5
|
+
import { FlowCustomization, FlowInfoService } from '@veloceapps/sdk/core';
|
6
6
|
import { BehaviorSubject } from 'rxjs';
|
7
|
-
import { FlowCustomization } from '../../types';
|
8
7
|
import * as i0 from "@angular/core";
|
9
8
|
interface State {
|
10
9
|
loading: boolean;
|
@@ -23,9 +22,8 @@ export declare class CatalogComponent implements OnInit, OnDestroy {
|
|
23
22
|
constructor(templatesApi: UITemplatesApiService, cdr: ChangeDetectorRef, toastService: ToastService, flowInfo: FlowInfoService, customizationService?: FlowCustomization | undefined);
|
24
23
|
ngOnInit(): void;
|
25
24
|
ngOnDestroy(): void;
|
26
|
-
private
|
27
|
-
private
|
28
|
-
private getCatalogComponentMeta$;
|
25
|
+
private getLocalMeta$;
|
26
|
+
private getOrgMeta$;
|
29
27
|
private generateUIDefinition$;
|
30
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogComponent, [null, null, null, null, { optional: true; }]>;
|
31
29
|
static ɵcmp: i0.ɵɵComponentDeclaration<CatalogComponent, "vl-flow-catalog", never, {}, {}, never, never, false, never>;
|
@@ -1,8 +1,7 @@
|
|
1
1
|
import { UIDefinition } from '@veloceapps/core';
|
2
2
|
import { CMSPreviewConfig } from '@veloceapps/sdk/cms';
|
3
|
-
import { ConfigurationRuntimeService, ConfigurationService, ConfigurationState, ContextService, IntegrationState, QuoteDraftService } from '@veloceapps/sdk/core';
|
3
|
+
import { ConfigurationRuntimeService, ConfigurationService, ConfigurationState, ContextService, FlowCustomization, IntegrationState, QuoteDraftService } from '@veloceapps/sdk/core';
|
4
4
|
import { BehaviorSubject } from 'rxjs';
|
5
|
-
import { FlowCustomization } from '../../types/flow-customization.types';
|
6
5
|
import * as i0 from "@angular/core";
|
7
6
|
export declare class ProductComponent {
|
8
7
|
private contextService;
|
@@ -2,9 +2,8 @@ import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { UITemplatesApiService } from '@veloceapps/api';
|
3
3
|
import { ToastService } from '@veloceapps/components';
|
4
4
|
import { UIDefinition } from '@veloceapps/core';
|
5
|
-
import { FlowInfoService } from '@veloceapps/sdk/core';
|
5
|
+
import { FlowCustomization, FlowInfoService } from '@veloceapps/sdk/core';
|
6
6
|
import { BehaviorSubject } from 'rxjs';
|
7
|
-
import { FlowCustomization } from '../../types';
|
8
7
|
import * as i0 from "@angular/core";
|
9
8
|
interface State {
|
10
9
|
loading: boolean;
|
@@ -23,9 +22,8 @@ export declare class ShoppingCartComponent implements OnInit, OnDestroy {
|
|
23
22
|
constructor(templatesApi: UITemplatesApiService, cdr: ChangeDetectorRef, toastService: ToastService, flowInfo: FlowInfoService, customizationService?: FlowCustomization | undefined);
|
24
23
|
ngOnInit(): void;
|
25
24
|
ngOnDestroy(): void;
|
26
|
-
private
|
27
|
-
private
|
28
|
-
private getShoppingCartComponentMeta$;
|
25
|
+
private getLocalMeta$;
|
26
|
+
private getOrgMeta$;
|
29
27
|
private generateUIDefinition$;
|
30
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<ShoppingCartComponent, [null, null, null, null, { optional: true; }]>;
|
31
29
|
static ɵcmp: i0.ɵɵComponentDeclaration<ShoppingCartComponent, "vl-flow-shopping-cart", never, {}, {}, never, never, false, never>;
|
package/src/types/index.d.ts
CHANGED
@@ -1,3 +0,0 @@
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
2
|
-
export const FLOW_CUSTOMIZATION = new InjectionToken('FLOW_CUSTOMIZATION');
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmxvdy1jdXN0b21pemF0aW9uLn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wbGF0ZUNvbXBvbmVudFdpdGhBdHRhY2htZW50cyB8IG51bGw+O1xuICBnZXRDYXRhbG9nQ29tcG9uZW50Pyh0ZW1wbGF0ZU5hbWU6IHN0cmluZyk6IE9ic2VydmFibGU8VGVtcGxhdGVDb21wb25lbnRXaXRoQXR0YWNobWVudHMgfCBudWxsPjtcbiAgZ2V0QXNzZXRzQ29tcG9uZW50Pyh0ZW1wbGF0ZU5hbWU6IHN0cmluZyk6IE9ic2VydmFibGU8VGVtcGxhdGVDb21wb25lbnRXaXRoQXR0YWNobWVudHMgfCBudWxsPjtcblxuICBnZXRUZW1wbGF0ZUNvbXBvbmVudD8odGVtcGxhdGVOYW1lOiBzdHJpbmcpOiBPYnNlcnZhYmxlPFRlbXBsYXRlQ29tcG9uZW50V2l0aEF0dGFjaG1lbnRzW10gfCBudWxsPjtcbn1cbiJdfQ==
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
2
|
-
import { TemplateComponentWithAttachments, UIDefinitionContainer } from '@veloceapps/core';
|
3
|
-
import { Observable } from 'rxjs';
|
4
|
-
export declare const FLOW_CUSTOMIZATION: InjectionToken<FlowCustomization>;
|
5
|
-
export interface FlowCustomization {
|
6
|
-
getUiDefinition?(productId: string): Observable<UIDefinitionContainer | null>;
|
7
|
-
getLegacyUiDefinition?(productId: string): Observable<UIDefinitionContainer | null>;
|
8
|
-
getShoppingCartComponent?(templateName: string): Observable<TemplateComponentWithAttachments | null>;
|
9
|
-
getCatalogComponent?(templateName: string): Observable<TemplateComponentWithAttachments | null>;
|
10
|
-
getAssetsComponent?(templateName: string): Observable<TemplateComponentWithAttachments | null>;
|
11
|
-
getTemplateComponent?(templateName: string): Observable<TemplateComponentWithAttachments[] | null>;
|
12
|
-
}
|