@veloceapps/sdk 10.0.0-50 → 10.0.0-52
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/core/services/context.service.d.ts +3 -1
- package/core/services/flow-info.service.d.ts +4 -2
- package/core/services/quote-draft.service.d.ts +3 -1
- package/core/services/runtime-settings.service.d.ts +1 -1
- package/esm2020/cms/components/element-tools-panel/element-tools-panel.component.mjs +3 -3
- package/esm2020/core/modules/configuration/services/configuration.service.mjs +2 -2
- package/esm2020/core/services/context.service.mjs +15 -6
- package/esm2020/core/services/flow-info.service.mjs +19 -6
- package/esm2020/core/services/flow-state.service.mjs +15 -2
- package/esm2020/core/services/quote-draft.service.mjs +21 -9
- package/esm2020/core/services/runtime-settings.service.mjs +3 -3
- package/esm2020/src/guards/context.guard.mjs +4 -6
- package/esm2020/src/guards/flow.guard.mjs +5 -4
- package/fesm2015/veloceapps-sdk-cms.mjs +2 -2
- package/fesm2015/veloceapps-sdk-cms.mjs.map +1 -1
- package/fesm2015/veloceapps-sdk-core.mjs +269 -227
- package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2015/veloceapps-sdk.mjs +6 -7
- package/fesm2015/veloceapps-sdk.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-cms.mjs +2 -2
- package/fesm2020/veloceapps-sdk-cms.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-core.mjs +266 -225
- package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk.mjs +6 -7
- package/fesm2020/veloceapps-sdk.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { ContextApiService } from '@veloceapps/api';
|
|
2
2
|
import { ConfigurationContext, ConfigurationContextMode } from '@veloceapps/core';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
+
import { RuntimeSettingsService } from './runtime-settings.service';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class ContextService {
|
|
6
7
|
private contextApiService;
|
|
8
|
+
private runtimeSettingsService;
|
|
7
9
|
private context;
|
|
8
|
-
constructor(contextApiService: ContextApiService);
|
|
10
|
+
constructor(contextApiService: ContextApiService, runtimeSettingsService: RuntimeSettingsService);
|
|
9
11
|
get isInitialized(): boolean;
|
|
10
12
|
get isInitialized$(): Observable<boolean>;
|
|
11
13
|
get mode(): ConfigurationContextMode | undefined;
|
|
@@ -3,10 +3,12 @@ import { FlowsApiService, UITemplatesApiService } from '@veloceapps/api';
|
|
|
3
3
|
import { Flow, UITemplate, UITemplateType } from '@veloceapps/core';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import { FlowCustomization } from '../types';
|
|
6
|
+
import { RuntimeSettingsService } from './runtime-settings.service';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class FlowInfoService {
|
|
8
9
|
private flowsApiService;
|
|
9
10
|
private templatesApiService;
|
|
11
|
+
private runtimeSettingsService;
|
|
10
12
|
private customizationService?;
|
|
11
13
|
flow$: Observable<Flow | null>;
|
|
12
14
|
params?: Params;
|
|
@@ -19,11 +21,11 @@ export declare class FlowInfoService {
|
|
|
19
21
|
get isStateful(): boolean;
|
|
20
22
|
private readonly defaultTemplates;
|
|
21
23
|
private flowSubj$;
|
|
22
|
-
constructor(flowsApiService: FlowsApiService, templatesApiService: UITemplatesApiService, customizationService?: FlowCustomization | undefined);
|
|
24
|
+
constructor(flowsApiService: FlowsApiService, templatesApiService: UITemplatesApiService, runtimeSettingsService: RuntimeSettingsService, customizationService?: FlowCustomization | undefined);
|
|
23
25
|
init$(flowId: string, routeQueryParams: Params): Observable<void>;
|
|
24
26
|
cleanup(): void;
|
|
25
27
|
private initFlowTemplates$;
|
|
26
28
|
private remapTemplateName;
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FlowInfoService, [null, null, { optional: true; }]>;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FlowInfoService, [null, null, null, { optional: true; }]>;
|
|
28
30
|
static ɵprov: i0.ɵɵInjectableDeclaration<FlowInfoService>;
|
|
29
31
|
}
|
|
@@ -4,12 +4,14 @@ import { Dictionary } from 'lodash';
|
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import { ContextService } from './context.service';
|
|
6
6
|
import { FlowInfoService } from './flow-info.service';
|
|
7
|
+
import { RuntimeSettingsService } from './runtime-settings.service';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class QuoteDraftService {
|
|
9
10
|
private context;
|
|
10
11
|
private flowInfoService;
|
|
11
12
|
private accountApiService;
|
|
12
13
|
private quoteApiService;
|
|
14
|
+
private runtimeSettingsService;
|
|
13
15
|
private quoteSubj$;
|
|
14
16
|
private assetsSubj$;
|
|
15
17
|
private resetSubj$;
|
|
@@ -27,7 +29,7 @@ export declare class QuoteDraftService {
|
|
|
27
29
|
get hasAssets(): boolean;
|
|
28
30
|
get assetsState(): AccountAssetsState | null;
|
|
29
31
|
reset$: Observable<boolean>;
|
|
30
|
-
constructor(context: ContextService, flowInfoService: FlowInfoService, accountApiService: AccountApiService, quoteApiService: QuoteApiService);
|
|
32
|
+
constructor(context: ContextService, flowInfoService: FlowInfoService, accountApiService: AccountApiService, quoteApiService: QuoteApiService, runtimeSettingsService: RuntimeSettingsService);
|
|
31
33
|
reset(): void;
|
|
32
34
|
init(headerId: string, params: Dictionary<string>): Observable<void>;
|
|
33
35
|
finalizeInit(): void;
|
|
@@ -13,7 +13,7 @@ export declare class RuntimeSettingsService {
|
|
|
13
13
|
create(): Observable<void>;
|
|
14
14
|
initCurrency(iso?: string): void;
|
|
15
15
|
getFormattingSettings(): FormattingSettings;
|
|
16
|
-
|
|
16
|
+
get configurationSettings(): RuntimeConfigurationSettings;
|
|
17
17
|
getShoppingCartSettings(): ShoppingCartSetting[];
|
|
18
18
|
getCurrencySettings(): RuntimeCurrencySettings;
|
|
19
19
|
private parseConfigurationSettings;
|