@veloceapps/sdk 11.0.0-4 → 11.0.0-5
Sign up to get free protection for your applications and to get access to all the features.
- package/core/modules/configuration/services/runtime-context.service.d.ts +1 -1
- package/core/modules/configuration/types/configuration-runtime.types.d.ts +2 -0
- package/esm2020/core/modules/configuration/services/configuration-runtime.service.mjs +4 -2
- package/esm2020/core/modules/configuration/services/runtime-context.service.mjs +5 -3
- package/esm2020/core/modules/configuration/types/configuration-runtime.types.mjs +1 -1
- package/esm2020/src/pages/product/product.component.mjs +9 -2
- package/fesm2015/veloceapps-sdk-core.mjs +7 -3
- package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2015/veloceapps-sdk.mjs +9 -2
- package/fesm2015/veloceapps-sdk.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-core.mjs +7 -3
- package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk.mjs +8 -1
- package/fesm2020/veloceapps-sdk.mjs.map +1 -1
- package/package.json +1 -1
@@ -1342,6 +1342,8 @@ class ProductComponent {
|
|
1342
1342
|
return quoteDraft$.pipe(first(), switchMap(quote => {
|
1343
1343
|
const contextProperties = this.contextService.resolve().properties;
|
1344
1344
|
const productId = contextProperties.productId ?? this.flowInfoService.flow?.properties.queryParams['productId'];
|
1345
|
+
const defaultUIDefinitionId = this.flowInfoService.flow?.properties.queryParams['defaultUIDefinitionId'];
|
1346
|
+
const requiredUIDefinitionId = this.flowInfoService.flow?.properties.queryParams['requiredUIDefinitionId'];
|
1345
1347
|
if (!productId) {
|
1346
1348
|
throw new Error(`Unable to start configuration for 'productId == null'`);
|
1347
1349
|
}
|
@@ -1354,7 +1356,12 @@ class ProductComponent {
|
|
1354
1356
|
this.configurationService.setConfigurableRamp(lineItem);
|
1355
1357
|
}
|
1356
1358
|
const { offeringId } = lineItem ?? {};
|
1357
|
-
return this.configurationRuntimeService.init({
|
1359
|
+
return this.configurationRuntimeService.init({
|
1360
|
+
productId,
|
1361
|
+
offeringId,
|
1362
|
+
defaultUIDefinitionId,
|
1363
|
+
requiredUIDefinitionId,
|
1364
|
+
});
|
1358
1365
|
}), switchMap(() => this.customizeUI$()), tap(() => {
|
1359
1366
|
const uiDefinition = this.configurationRuntimeService.runtimeContext?.uiDefinitionContainer?.source;
|
1360
1367
|
if (uiDefinition) {
|