@veloceapps/sdk 4.0.5-1 → 4.0.6
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/bundles/veloce-sdk-cms.umd.js +4 -2
- package/bundles/veloce-sdk-cms.umd.js.map +1 -1
- package/bundles/veloce-sdk-core.umd.js +26 -16
- package/bundles/veloce-sdk-core.umd.js.map +1 -1
- package/bundles/veloce-sdk.umd.js +26 -3
- package/bundles/veloce-sdk.umd.js.map +1 -1
- package/core/modules/configuration/services/configuration-runtime.service.d.ts +0 -1
- package/core/modules/configuration/services/configuration.service.d.ts +0 -2
- package/core/modules/configuration/types/configuration-runtime.types.d.ts +0 -15
- package/core/services/quote-draft.service.d.ts +3 -1
- package/esm2015/cms/components/preview/preview.component.js +5 -4
- package/esm2015/core/modules/configuration/services/configuration-runtime.service.js +5 -7
- package/esm2015/core/modules/configuration/services/configuration.service.js +1 -4
- package/esm2015/core/modules/configuration/types/configuration-runtime.types.js +1 -1
- package/esm2015/core/services/quote-draft.service.js +19 -8
- package/esm2015/src/components/header/cart-overlay/cart-preview.component.js +2 -2
- package/esm2015/src/components/header/header.component.js +2 -2
- package/esm2015/src/resolvers/quote.resolver.js +24 -2
- package/fesm2015/veloce-sdk-cms.js +4 -3
- package/fesm2015/veloce-sdk-cms.js.map +1 -1
- package/fesm2015/veloce-sdk-core.js +21 -15
- package/fesm2015/veloce-sdk-core.js.map +1 -1
- package/fesm2015/veloce-sdk.js +25 -3
- package/fesm2015/veloce-sdk.js.map +1 -1
- package/package.json +1 -1
- package/src/resolvers/quote.resolver.d.ts +1 -0
@@ -1646,6 +1646,7 @@
|
|
1646
1646
|
this.configurationService.reset();
|
1647
1647
|
};
|
1648
1648
|
PreviewComponent.prototype.initializeConfiguration$ = function () {
|
1649
|
+
var _this = this;
|
1649
1650
|
var isAlreadyInitialized = this.runtimeService.isInitialized;
|
1650
1651
|
if (!this.uiDefinition || this.uiDefinition.type !== 'CONFIGURATION' || isAlreadyInitialized) {
|
1651
1652
|
return rxjs.of({});
|
@@ -1655,8 +1656,9 @@
|
|
1655
1656
|
return rxjs.of({});
|
1656
1657
|
}
|
1657
1658
|
// If still not initialized - init configuration in Test mode
|
1658
|
-
return this.runtimeService
|
1659
|
-
|
1659
|
+
return this.runtimeService
|
1660
|
+
.initTestMode(this.modelId, this.uiDefinition)
|
1661
|
+
.pipe(rxjs.switchMap(function () { return _this.configurationService.configure(); }));
|
1660
1662
|
};
|
1661
1663
|
PreviewComponent.prototype.elementToMetadataSafe = function (elements) {
|
1662
1664
|
var _a, _b;
|