@veloceapps/sdk 11.0.0-1 → 11.0.0-11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. package/cms/cms.actions.d.ts +0 -40
  2. package/cms/vendor-map.d.ts +10 -21
  3. package/core/modules/configuration/services/configuration-state.service.d.ts +0 -4
  4. package/core/modules/configuration/services/configuration.service.d.ts +5 -1
  5. package/core/modules/configuration/services/runtime-context.service.d.ts +1 -1
  6. package/core/modules/configuration/types/configuration-runtime.types.d.ts +2 -0
  7. package/core/types/flow-customization.types.d.ts +0 -12
  8. package/esm2020/cms/cms.actions.mjs +1 -36
  9. package/esm2020/cms/components/element-tools-panel/element-tools-panel.component.mjs +3 -3
  10. package/esm2020/cms/vendor-map.mjs +4 -9
  11. package/esm2020/core/modules/configuration/services/configuration-runtime.service.mjs +4 -2
  12. package/esm2020/core/modules/configuration/services/configuration-state.service.mjs +2 -3
  13. package/esm2020/core/modules/configuration/services/configuration.service.mjs +29 -10
  14. package/esm2020/core/modules/configuration/services/runtime-context.service.mjs +5 -3
  15. package/esm2020/core/modules/configuration/types/configuration-runtime.types.mjs +1 -1
  16. package/esm2020/core/types/flow-customization.types.mjs +1 -1
  17. package/esm2020/src/pages/product/product.component.mjs +9 -2
  18. package/fesm2015/veloceapps-sdk-cms.mjs +15 -52
  19. package/fesm2015/veloceapps-sdk-cms.mjs.map +1 -1
  20. package/fesm2015/veloceapps-sdk-core.mjs +32 -14
  21. package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
  22. package/fesm2015/veloceapps-sdk.mjs +9 -2
  23. package/fesm2015/veloceapps-sdk.mjs.map +1 -1
  24. package/fesm2020/veloceapps-sdk-cms.mjs +7 -54
  25. package/fesm2020/veloceapps-sdk-cms.mjs.map +1 -1
  26. package/fesm2020/veloceapps-sdk-core.mjs +34 -14
  27. package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
  28. package/fesm2020/veloceapps-sdk.mjs +8 -1
  29. package/fesm2020/veloceapps-sdk.mjs.map +1 -1
  30. package/package.json +1 -1
@@ -1354,9 +1354,11 @@ class ProductComponent {
1354
1354
  quoteDraft$ = of(undefined);
1355
1355
  }
1356
1356
  return quoteDraft$.pipe(first(), switchMap(quote => {
1357
- var _a, _b;
1357
+ var _a, _b, _c, _d;
1358
1358
  const contextProperties = this.contextService.resolve().properties;
1359
1359
  const productId = (_a = contextProperties.productId) !== null && _a !== void 0 ? _a : (_b = this.flowInfoService.flow) === null || _b === void 0 ? void 0 : _b.properties.queryParams['productId'];
1360
+ const defaultUIDefinitionId = (_c = this.flowInfoService.flow) === null || _c === void 0 ? void 0 : _c.properties.queryParams['defaultUIDefinitionId'];
1361
+ const requiredUIDefinitionId = (_d = this.flowInfoService.flow) === null || _d === void 0 ? void 0 : _d.properties.queryParams['requiredUIDefinitionId'];
1360
1362
  if (!productId) {
1361
1363
  throw new Error(`Unable to start configuration for 'productId == null'`);
1362
1364
  }
@@ -1369,7 +1371,12 @@ class ProductComponent {
1369
1371
  this.configurationService.setConfigurableRamp(lineItem);
1370
1372
  }
1371
1373
  const { offeringId } = lineItem !== null && lineItem !== void 0 ? lineItem : {};
1372
- return this.configurationRuntimeService.init({ productId, offeringId });
1374
+ return this.configurationRuntimeService.init({
1375
+ productId,
1376
+ offeringId,
1377
+ defaultUIDefinitionId,
1378
+ requiredUIDefinitionId,
1379
+ });
1373
1380
  }), switchMap(() => this.customizeUI$()), tap(() => {
1374
1381
  var _a, _b;
1375
1382
  const uiDefinition = (_b = (_a = this.configurationRuntimeService.runtimeContext) === null || _a === void 0 ? void 0 : _a.uiDefinitionContainer) === null || _b === void 0 ? void 0 : _b.source;